SOURCES: binutils-pr3290.patch - updated.
pluto
pluto at pld-linux.org
Mon Oct 2 10:18:47 CEST 2006
Author: pluto Date: Mon Oct 2 08:18:47 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- updated.
---- Files affected:
SOURCES:
binutils-pr3290.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/binutils-pr3290.patch
diff -u SOURCES/binutils-pr3290.patch:1.1 SOURCES/binutils-pr3290.patch:1.2
--- SOURCES/binutils-pr3290.patch:1.1 Sat Sep 30 09:39:48 2006
+++ SOURCES/binutils-pr3290.patch Mon Oct 2 10:18:42 2006
@@ -1,41 +1,16 @@
-"gcc -g -feliminate-dwarf2-dups" may generate symbols relative to debug
-section. When "ld -s" removes debug section, it changes those symbols
-to absolute. The resulting shared library may not be usable. strip is
-even worse. When .debug_info section is removed, section index of
-debug symbol is totally wrong.
-
-This patch will hide debug symbols.
-
2006-09-29 H.J. Lu <hongjiu.lu at intel.com>
PR ld/3290
- * elfcode.h (elf_slurp_symbol_table): Mark a debug symbol if it
- is in a debug section.
+ * elflink.c (elf_link_add_object_symbols): Hide definitions in
+ debug sections.
- * elflink.c (elf_link_add_object_symbols): Hide debug symbols.
-
---- bfd/elfcode.h.debug 2006-09-23 16:37:33.000000000 -0700
-+++ bfd/elfcode.h 2006-09-29 17:15:14.000000000 -0700
-@@ -1184,6 +1184,12 @@ elf_slurp_symbol_table (bfd *abfd, asymb
- although it is wrong. FIXME. */
- sym->symbol.section = bfd_abs_section_ptr;
- }
-+ else if ((sym->symbol.section->flags & SEC_DEBUGGING))
-+ {
-+ /* If this symbol is in a debug section, it must be a
-+ debug symbol. */
-+ sym->symbol.flags |= BSF_DEBUGGING;
-+ }
- }
- else if (isym->st_shndx == SHN_ABS)
- {
--- bfd/elflink.c.debug 2006-09-29 09:00:21.000000000 -0700
-+++ bfd/elflink.c 2006-09-29 17:13:25.000000000 -0700
++++ bfd/elflink.c 2006-09-30 18:30:40.000000000 -0700
@@ -4137,6 +4137,13 @@ elf_link_add_object_symbols (bfd *abfd,
dynsym = TRUE;
}
-+ if ((sec->flags & SEC_DEBUGGING))
++ if (definition && (sec->flags & SEC_DEBUGGING))
+ {
+ /* We don't want to make debug symbol dynamic. */
+ (*bed->elf_backend_hide_symbol) (info, h, TRUE);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/binutils-pr3290.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list