artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b043dfc
)
Keep visibility information for references to discarded sections.
author
kettenis
<kettenis@openbsd.org>
Tue, 19 May 2015 13:38:29 +0000
(13:38 +0000)
committer
kettenis
<kettenis@openbsd.org>
Tue, 19 May 2015 13:38:29 +0000
(13:38 +0000)
gnu/usr.bin/binutils-2.17/bfd/elflink.c
patch
|
blob
|
history
diff --git
a/gnu/usr.bin/binutils-2.17/bfd/elflink.c
b/gnu/usr.bin/binutils-2.17/bfd/elflink.c
index
b572921
..
75fff26
100644
(file)
--- 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;