[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/3290] Linker creates dynamic debug symbols in DSO

From: jakub at redhat dot com
Subject: [Bug ld/3290] Linker creates dynamic debug symbols in DSO
Date: 25 Mar 2008 15:06:49 -0000

------- 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.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]