aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-10-11 07:05:02 +0000
committerAlan Modra <amodra@gmail.com>2000-10-11 07:05:02 +0000
commitd01e2a23a35139d64687b473b93d7f39b54b9d56 (patch)
tree081978b43b2850be30c3dd4f01ca4b814f673ff5 /gas/config/obj-elf.c
parente47d05ade67e272fefb25ef2a1842e1c25f76052 (diff)
downloadgdb-d01e2a23a35139d64687b473b93d7f39b54b9d56.zip
gdb-d01e2a23a35139d64687b473b93d7f39b54b9d56.tar.gz
gdb-d01e2a23a35139d64687b473b93d7f39b54b9d56.tar.bz2
Revert 2000-10-07 link-once section symbol changes.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r--gas/config/obj-elf.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 0f49ab6..4e7f3a36 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -1742,21 +1742,6 @@ elf_frob_symbol (symp, puntp)
&& S_IS_DEFINED (symp))
symbol_get_bfdsym (symp)->flags |= BSF_OBJECT;
#endif
-
- if (symbol_section_p (symp))
- {
- asection *symsec = S_GET_SEGMENT (symp);
-
- if ((bfd_get_section_flags (stdoutput, symsec) & SEC_LINK_ONCE) != 0
- || strncmp (segment_name (symsec), ".gnu.linkonce",
- sizeof ".gnu.linkonce" - 1) == 0)
- {
- /* Make section syms global on ELF linkonce sections.
- This way, any reference to the section symbol will
- resolve to the section that actually stays in. */
- S_SET_EXTERNAL (symp);
- }
- }
}
void