aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-10-19 02:40:14 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-10-19 02:40:14 +0000
commit92b7c7b6e94eb456da640cfe6d5686ebd69078cb (patch)
tree1c5b3d18f6eb2d09a0caed466ada61fff64ce26d /bfd/elflink.c
parent2f4754876fee13c0bed40782e439e1a589f5caae (diff)
downloadgdb-92b7c7b6e94eb456da640cfe6d5686ebd69078cb.zip
gdb-92b7c7b6e94eb456da640cfe6d5686ebd69078cb.tar.gz
gdb-92b7c7b6e94eb456da640cfe6d5686ebd69078cb.tar.bz2
bfd/
2006-10-18 H.J. Lu <hongjiu.lu@intel.com> PR ld/3290 * elflink.c (elf_link_add_object_symbols): Hide definitions in debug sections. ld/testsuite/ 2006-10-18 H.J. Lu <hongjiu.lu@intel.com> PR ld/3290 * ld-elf/dummy.c: New file. * ld-elf/dwarf.exp: Likewise. * ld-elf/dwarf1.c: Likewise. * ld-elf/dwarf1.h: Likewise. * ld-elf/dwarf1.out: Likewise. * ld-elf/dwarf1main.c: Likewise.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 63cac8e..34816fa 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4156,6 +4156,13 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
dynsym = TRUE;
}
+ if (definition && (sec->flags & SEC_DEBUGGING))
+ {
+ /* We don't want to make debug symbol dynamic. */
+ (*bed->elf_backend_hide_symbol) (info, h, TRUE);
+ dynsym = FALSE;
+ }
+
/* Check to see if we need to add an indirect symbol for
the default name. */
if (definition || h->root.type == bfd_link_hash_common)