From 3efd345c3b8f1f91a1698023ac736f2648972d81 Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Tue, 3 Mar 2009 18:22:11 +0000 Subject: * 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. --- ld/NEWS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ld/NEWS') diff --git a/ld/NEWS b/ld/NEWS index e4951572d8..440534ac83 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -5,7 +5,9 @@ * PE targets no longer make use of the long section names PE extension to the COFF format when generating executable images, by default. The old (slightly non-conformant) behaviour can still be invoked by using the - new '--enable-long-section-names' command-line option. + new '--enable-long-section-names' command-line option. It is also enabled + automatically in the presence of un-stripped debug information, as GDB + needs to be able to find the debug info sections by their full names. * --as-needed now links in a dynamic library if it satisfies undefined symbols in regular objects, or in other dynamic libraries. In the -- cgit v1.2.1