From patchwork Tue Mar 28 02:09:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 75768 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1915865vqo; Mon, 27 Mar 2023 19:09:41 -0700 (PDT) X-Google-Smtp-Source: AKy350a/UYQMjwYU5LqljR9aYDxlm6zok2fTe9VuoTieeDb4btK8KkfJEzLbDOvVKeDw+8EUbTw6 X-Received: by 2002:a05:6402:4c5:b0:502:4182:648a with SMTP id n5-20020a05640204c500b005024182648amr6117440edw.9.1679969381251; Mon, 27 Mar 2023 19:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679969381; cv=none; d=google.com; s=arc-20160816; b=0TfqyI0rnc3oloumwTZ77Fp/2W8Vs/9nAzKxeye8LXcCLGNw9mw0qiKIe8tVM2LOV+ bF2F/lT8cDddoxe0SElWLqujtHfKHAUed0wEHx3sArhEw4cjH693Zr35GKO8RaWmhbV7 mVWEWU/aS23zydGQ8FjvpdSQZEVxr6a63MD0UE8KRC6BfFJrShPuwepjodqZMHOjAVBD annO991AJ9XkRIP0qJz922ykvKburJ114FMy8BNYOJDC3lKgh9cvn8nQgajRRqX1i/To UxsUXK/Ps9o8qsGNI+uYNSHN2MMxViyKkpC+CuD5x3gdV3g+K6tE65twep7X2/mSkfZS dojg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=EnGmRjhmKTqZzPRfFQEOiv377zY6wyyV06Fmryh7v8g=; b=a/By2yJtqlZ0lQMgtQ3/bEdxyVtn4+TrYJSe7dzNNMLZOv42dgiky3ThQdXkrLGrQR l97QzxJauTabh/6XpqA/OApC2fQ/1yV4Y/qN91dsOnLoCyko1FrCS8VWSY7slpjzrbC4 0LBBUPdUqaPPC48rYtkNUz6L8unymXW4ZzcVU2JCuJvC2069sJnfz1ByrwTTY/9P2Jor D5zK6O+es4TXyX7jRUWeglL3HMGpq9Ry/3ZVRL3E1W3sJwvGf15Od3Frdma9D0Xj1PZS wDGQzp+glGxn96YgPgGEH8f5PRUgEIugsrkfyPavzZ1R5vZJbQ8pLy6wEowyZ6QkRlfa LNSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=sCVWRitA; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id x23-20020aa7d6d7000000b004af60cc2a8csi30642084edr.486.2023.03.27.19.09.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 19:09:41 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=sCVWRitA; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 28C013858408 for ; Tue, 28 Mar 2023 02:09:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 28C013858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679969380; bh=EnGmRjhmKTqZzPRfFQEOiv377zY6wyyV06Fmryh7v8g=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=sCVWRitAakirivb0UY9YeKT4KV1SLCFTDZPvYNBWu4y7g3MVzdZxQJ5oMUF6fJw3I 5upRf9Ua/JK9IUK1Upq+wfDcjgpXt6Srw3xxrJId50eYYnuIrvelZLRPWgLnZK/waC igvFtP0RsEwtFx6+g0Go9Zvl10Kl/wgBjtt60268= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id AEEEC3858D39 for ; Tue, 28 Mar 2023 02:09:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AEEEC3858D39 Received: by mail-pl1-x62f.google.com with SMTP id w4so10240962plg.9 for ; Mon, 27 Mar 2023 19:09:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679969364; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EnGmRjhmKTqZzPRfFQEOiv377zY6wyyV06Fmryh7v8g=; b=Yxug8k6b65YSkGjvS0JIqqZz52Ua0k0EDcUtSByo4YjfliCASpjqHUOxOC++67qcWK a/26gsgspHHE5ENQJccleMyNeJDKqO9izU6Gks899tv4gS+xaAKtkASaMv3CeRYFjRUs 8zaImznv7iDWF90J++cXppB3hUchw1hy2BCkVjq61qGk63aCOPvXE86N0uWh3v1AXwFV udYgBQuWIOMVt4oOW78SPR7YuVf0l0Zlsrkse9fFm1f7yNeWzro+Wm0wrB8Pc1Qhnziz Mbxp9Mou3QPqyRnRkJCmhZ/a+jhwUAyGLb4FLuKGSfwBh5Nz3pYirzQe6SibiUM5KdWh +zLg== X-Gm-Message-State: AO0yUKW4au7fkkHguuOoZYF0AYGM9Np2x2fLZXrEmmVSESZdjDXA6lru 2NhPtFlATkjU1Jb6mUPm5cNGqW0T7/Q= X-Received: by 2002:a05:6a20:1a91:b0:db:9a60:a533 with SMTP id ci17-20020a056a201a9100b000db9a60a533mr12798526pzb.16.1679969364106; Mon, 27 Mar 2023 19:09:24 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:2482:c4ca:ffc8:93c7]) by smtp.gmail.com with ESMTPSA id u3-20020aa78483000000b00625e6eb438bsm19671459pfn.71.2023.03.27.19.09.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 19:09:23 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 9413F1140437; Tue, 28 Mar 2023 12:39:20 +1030 (ACDT) Date: Tue, 28 Mar 2023 12:39:20 +1030 To: binutils@sourceware.org Subject: ubsan: elfnn-aarch64.c:4595:19: runtime error: load of value 190 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3034.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761575574029793577?= X-GMAIL-MSGID: =?utf-8?q?1761575574029793577?= which is not a valid value for type '_Bool' FAIL: ld-aarch64/erratum843419 FAIL: ld-aarch64/erratum843419_tls_ie FAIL: aarch64-farcall-back FAIL: aarch64-farcall-b-defsym FAIL: aarch64-farcall-bl-defsym FAIL: aarch64-farcall-b-plt FAIL: aarch64-farcall-bl-plt FAIL: aarch64-farcall-bl FAIL: aarch64-farcall-b FAIL: aarch64-farcall-b-none-function FAIL: aarch64-farcall-bl-none-function FAIL: aarch64-farcall-b-section FAIL: aarch64-farcall-bl-section FAIL: aarch64-farcall-group FAIL: Check linker stubs with indirect calls handle BTI when target has BTI. So, lack of init for a new field. Let's fix this for the future too. * elfnn-aarch64.c (stub_hash_newfunc): Clear all fields past root. diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index c321ceb382e..c4db1e6f168 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -2767,14 +2767,9 @@ stub_hash_newfunc (struct bfd_hash_entry *entry, /* Initialize the local fields. */ eh = (struct elf_aarch64_stub_hash_entry *) entry; - eh->adrp_offset = 0; - eh->stub_sec = NULL; - eh->stub_offset = 0; - eh->target_value = 0; - eh->target_section = NULL; - eh->stub_type = aarch64_stub_none; - eh->h = NULL; - eh->id_sec = NULL; + memset (&eh->stub_sec, 0, + (sizeof (struct elf_aarch64_stub_hash_entry) + - offsetof (struct elf_aarch64_stub_hash_entry, stub_sec))); } return entry;