diff options
author | 2015-05-19 13:38:29 +0000 | |
---|---|---|
committer | 2015-05-19 13:38:29 +0000 | |
commit | de41601f6913604e475d530763356d0ce309383a (patch) | |
tree | 84b74e9daf80f153a4e8ca100da053504cad76f0 | |
parent | Increase a maximum firmware handshake timeout to 10s (diff) | |
download | wireguard-openbsd-de41601f6913604e475d530763356d0ce309383a.tar.xz wireguard-openbsd-de41601f6913604e475d530763356d0ce309383a.zip |
Keep visibility information for references to discarded sections.
-rw-r--r-- | gnu/usr.bin/binutils-2.17/bfd/elflink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elflink.c b/gnu/usr.bin/binutils-2.17/bfd/elflink.c index b572921706f..75fff26a14b 100644 --- a/gnu/usr.bin/binutils-2.17/bfd/elflink.c +++ b/gnu/usr.bin/binutils-2.17/bfd/elflink.c @@ -3585,12 +3585,10 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) sec = bfd_abs_section_ptr; else if (sec->kept_section) { - /* Symbols from discarded section are undefined, and have - default visibility. */ + /* Symbols from discarded section are undefined. We keep + its visibility. */ sec = bfd_und_section_ptr; isym->st_shndx = SHN_UNDEF; - isym->st_other = (STV_DEFAULT - | (isym->st_other & ~ ELF_ST_VISIBILITY (-1))); } else if ((abfd->flags & (EXEC_P | DYNAMIC)) != 0) value -= sec->vma; |