This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bfd/objcopy handling of localizing common symbols
- From: Alan Modra <amodra at gmail dot com>
- To: Jordan Rupprecht <rupprecht at google dot com>
- Cc: binutils at sourceware dot org, Eric Christopher <echristo at gmail dot com>, nickc at redhat dot com
- Date: Mon, 29 Oct 2018 22:13:55 +1030
- Subject: Re: bfd/objcopy handling of localizing common symbols
- References: <CABC7LbRcJKrkdCWwski6USmXC4enUWOG0sRzQ1pHZriGFENVdA@mail.gmail.com>
On Fri, Oct 26, 2018 at 05:19:40PM -0700, Jordan Rupprecht via binutils wrote:
> objdump actually reports it as neither a global nor a local symbol.
The patch responsible for not setting BSF_GLOBAL on ELF common symbols
is git commit 42cf6d7950e. I don't know why this was done but it
certainly didn't happen by accident.
Other places in objcopy.c that want to handle common symbols select
them with bfd_is_com_section (bfd_get_section (sym)).
--
Alan Modra
Australia Development Lab, IBM