bfd/objcopy handling of localizing common symbols

Alan Modra amodra@gmail.com
Mon Oct 29 11:44:00 GMT 2018


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



More information about the Binutils mailing list