aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2009-03-03 18:22:11 +0000
committerDave Korn <dave.korn@artimi.com>2009-03-03 18:22:11 +0000
commit3efd345c3b8f1f91a1698023ac736f2648972d81 (patch)
tree4799c1fd81b722a3fdc73518103ca02a4fb1fa2b /ld/ld.texinfo
parent6aa8e5c2ae66323abb1fb2f8b6c454305781aad2 (diff)
downloadgdb-3efd345c3b8f1f91a1698023ac736f2648972d81.zip
gdb-3efd345c3b8f1f91a1698023ac736f2648972d81.tar.gz
gdb-3efd345c3b8f1f91a1698023ac736f2648972d81.tar.bz2
* emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
(gld_${EMULATION_NAME}_after_open): Use it to iterate all sections of all input BFDs, looking for debug info. Enable long section names if any found. * emultempl/pe.em (debug_section_p): Likewise. (gld_${EMULATION_NAME}_after_open): Likewise. * NEWS: Retrospectively adjust news announcement. * ld.texinfo: Update documentation to mention new behaviour.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo8
1 files changed, 7 insertions, 1 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 167df28..e2a70a8 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -2124,7 +2124,13 @@ allow their use in executable images as well, or to (probably pointlessly!)
disallow it in object files, by using these two options. Executable images
generated with these long section names are slightly non-standard, carrying
as they do a string table, and may generate confusing output when examined
-with non-GNU PE-aware tools, such as file viewers and dumpers.
+with non-GNU PE-aware tools, such as file viewers and dumpers. However,
+GDB relies on the use of PE long section names to find Dwarf-2 debug
+information sections in an executable image at runtime, and so if neither
+option is specified on the command-line, @command{ld} will enable long
+section names, overriding the default and technically correct behaviour,
+when it finds the presence of debug information while linking an executable
+image and not stripping symbols.
[This option is valid for all PE targeted ports of the linker]
@kindex --enable-stdcall-fixup