------- Additional Comments From jakub at redhat dot com 2008-03-25 15:06 ------- Do we need to do this even when info->relocatable? PGI apparently uses (or used?) global symbols in .debug_info sections and referenced them from within object's .debug_info section. With this change, ld -r on one or more *.o files which define such global symbols will make those symbols STB_LOCAL and so a final link fails. IMHO either the debug symbols should be made global, but hidden, or made local only when not ld -r.
--- bfd/elflink.c 2 Mar 2008 22:26:09 -0000 1.299 +++ bfd/elflink.c 25 Mar 2008 15:01:19 -0000 @@ -4294,7 +4294,7 @@ elf_link_add_object_symbols (bfd *abfd, dynsym = TRUE; } - if (definition && (sec->flags & SEC_DEBUGGING)) + if (definition && (sec->flags & SEC_DEBUGGING) && !info->relocatable) { /* We don't want to make debug symbol dynamic. */ (*bed->elf_backend_hide_symbol) (info, h, TRUE); works for me. -- http://sourceware.org/bugzilla/show_bug.cgi?id=3290 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils