From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 0749638A814A for ; Thu, 17 Nov 2022 03:21:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0749638A814A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x62d.google.com with SMTP id g24so413792plq.3 for ; Wed, 16 Nov 2022 19:21:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=CNjxwJ+aZrLi547m8fYnny/0cg133doxUneFGSi6b1I=; b=PVKdM5i/Rvw0RyhV3Lafkb/yaiJGIOeH7Oi1JQ7HnKOtFLizIyRxz8RMIgpA5YZooV tVFviLG7DNHzAU0bap2rz4aEHX5nGjDfnOpX7MWAPZpgPkgXmJD/STqv3Zc3FWEW8cvm EnzarZU3CHUNHOzFHU05DHuETGHYFVum/Y2DYNjMN1NamV4aKLFXIwc7kj4P/S9xmYqO nnbjjKfCyJhKCX+FJP6bqIx6klGMpEgR2OHUEXyW545ssoT4WE5SUWgQP3xRw73UjFmw SOOx2R5l8jkr4VjeZu0nHKmyNXuKnX+GcSpXX2hal9gD5bkMVxl1xVRp+Y5zl0zZR9AG tdBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CNjxwJ+aZrLi547m8fYnny/0cg133doxUneFGSi6b1I=; b=WPbice461pAaI7HJyFh1lj/nnaSN9Zo1HwMSOC5XJxQu3Jk2uUg3y6su46QhoqrmB9 Prd1aJxYsm+jhLX7njaB8BZLNtIbirlKA7f9EMpQdsSDZ7uYSgJ/NgaJW9QsF7w1O0tv EYFat2oy9vlx2xPZbW/ESLieXS8pguloBogN7BOjmUmz9o8gfygw/vpas5zx+a6p8hx8 V7Y4H9dW7IwcSBwVY1YzlbCanWtoGghytb5VSQ+zvH7GTcD8TtUyIfdP06ELdaS+N8R5 fhb+KlV5ni8zBh7d0SG9uij+KA09QhewX3AY/cdKdl/33RnsdcTNjnSs4WIETV9C480g pRpw== X-Gm-Message-State: ANoB5plpR9aFrgY55e+QrrEhtH4ixwluNHupbLRMy8BxV+TqI4tm8Z8o 8nsqA8r+XWs3Lj0axiuHFOQ= X-Google-Smtp-Source: AA0mqf47reOhLG5JjXbOc5Gxm3lEj/qoJVqagVJRL2hs7cZQRX8NgIzZgsd6rg9CXFvBnGtcwpjTmQ== X-Received: by 2002:a17:90a:7e0d:b0:213:d630:f4af with SMTP id i13-20020a17090a7e0d00b00213d630f4afmr842702pjl.77.1668655314032; Wed, 16 Nov 2022 19:21:54 -0800 (PST) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id w37-20020a631625000000b00464858cf6b0sm10440826pgl.54.2022.11.16.19.21.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 19:21:53 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id D368911405E6; Thu, 17 Nov 2022 13:51:50 +1030 (ACDT) Date: Thu, 17 Nov 2022 13:51:50 +1030 From: Alan Modra To: "H.J. Lu" Cc: binutils@sourceware.org Subject: Re: [PATCH] ld: Always call elf_backend_output_arch_local_syms Message-ID: References: <20221116232039.1793148-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116232039.1793148-1-hjl.tools@gmail.com> X-Spam-Status: No, score=-3030.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 List-Id: On Wed, Nov 16, 2022 at 03:20:39PM -0800, H.J. Lu via Binutils wrote: > Always call elf_backend_output_arch_local_syms since only the backend > knows if elf_backend_output_arch_local_syms is needed when all symbols > are striped. elf_backend_output_arch_local_syms is defined only for > x86, ARM and AARCH64. On x86, elf_backend_output_arch_local_syms must > be called to handle local IFUNC symbols even if all symbols are striped. > Update ARM and AARCH64 to skip elf_backend_output_arch_local_syms when > symbols aren't needed. > > bfd/ > > PR ld/29797 > * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip if symbols > aren't needed. > * elfnn-aarch64.c (elfNN_aarch64_output_arch_local_syms): > Likewise. > * elflink.c (bfd_elf_final_link): Always call > elf_backend_output_arch_local_syms if available. > > ld/ > > PR ld/29797 > * testsuite/ld-elf/linux-x86.exp: Run PR ld/29797 test. > * testsuite/ld-elf/pr29797.c: New file. OK. -- Alan Modra Australia Development Lab, IBM