diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2012-10-21 03:23:37 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2012-10-21 03:23:37 +0000 |
commit | d3a65d4deaf2c553480a43796e0d987adc5f9f43 (patch) | |
tree | bc9c72b14a2e1d22fd813f7f239c7939091ebb9f /bfd/linker.c | |
parent | 2cce1bffff52bbd71e77397e965839c82cd09a3b (diff) | |
download | gdb-d3a65d4deaf2c553480a43796e0d987adc5f9f43.zip gdb-d3a65d4deaf2c553480a43796e0d987adc5f9f43.tar.gz gdb-d3a65d4deaf2c553480a43796e0d987adc5f9f43.tar.bz2 |
* linker.c (_bfd_generic_link_output_symbols): Handle a
no-longer-global symbol entered as a BFD_PLUGIN.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r-- | bfd/linker.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/linker.c b/bfd/linker.c index 3caec96..d3ef9a4 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -2359,6 +2359,12 @@ _bfd_generic_link_output_symbols (bfd *output_bfd, else output = FALSE; } + else if (sym->flags == 0 + && (sym->section->owner->flags & BFD_PLUGIN) != 0) + /* LTO doesn't set symbol information. We get here with the + generic linker for a symbol that was "common" but no longer + needs to be global. */ + output = FALSE; else abort (); |