aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorBrian Dessent <brian@dessent.net>2007-04-18 13:11:35 +0000
committerBrian Dessent <brian@dessent.net>2007-04-18 13:11:35 +0000
commit09e5bb8e6065e361356046e2f1247479fd5e7876 (patch)
tree6b67d10c2cb62eaa77ba438c269d88e41201df0f /winsup/cygwin
parentfb5750bfb4c4ffd5ae839c416de192c8bc262b4b (diff)
downloadnewlib-09e5bb8e6065e361356046e2f1247479fd5e7876.zip
newlib-09e5bb8e6065e361356046e2f1247479fd5e7876.tar.gz
newlib-09e5bb8e6065e361356046e2f1247479fd5e7876.tar.bz2
* cygwin.sc: Remove duplicated .debug_macinfo section.
* dllfixdbg: Also copy DWARF-2 sections into .dbg file.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/cygwin.sc1
-rwxr-xr-xwinsup/cygwin/dllfixdbg5
3 files changed, 9 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 2a255a6..3ab96d0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-18 Brian Dessent <brian@dessent.net>
+
+ * cygwin.sc: Remove duplicated .debug_macinfo section.
+ * dllfixdbg: Also copy DWARF-2 sections into .dbg file.
+
2007-04-06 Eric Blake <ebb9@byu.net>
* include/stdint.h (WINT_MIN): Fix sign.
diff --git a/winsup/cygwin/cygwin.sc b/winsup/cygwin/cygwin.sc
index 6247e86..30b7b69 100644
--- a/winsup/cygwin/cygwin.sc
+++ b/winsup/cygwin/cygwin.sc
@@ -138,6 +138,5 @@ SECTIONS
.debug_str ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_str) }
.debug_loc ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_loc) }
.debug_macinfo ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_macinfo) }
- .debug_macinfo ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_macinfo) }
.debug_ranges ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_ranges) }
}
diff --git a/winsup/cygwin/dllfixdbg b/winsup/cygwin/dllfixdbg
index 4ffc4e6..81f766b 100755
--- a/winsup/cygwin/dllfixdbg
+++ b/winsup/cygwin/dllfixdbg
@@ -16,7 +16,10 @@ my $objdump = shift;
my @objcopy = ((shift));
my $dll = shift;
my $dbg = shift;
-xit 0, @objcopy, '-j', '.stab', '-j', '.stabstr', $dll, $dbg;
+xit 0, @objcopy, '-j', '.stab', '-j', '.stabstr', '-j', '.debug_aranges',
+ '-j', '.debug_pubnames', '-j', '.debug_info', '-j', '.debug_abbrev',
+ '-j', '.debug_line', '-j', '.debug_frame', '-j', '.debug_str', '-j',
+ '.debug_loc', '-j', '.debug_macinfo', '-j', '.debug_ranges', $dll, $dbg;
xit 0, @objcopy, '-g', '--add-gnu-debuglink=' . $dbg, $dll;
open(OBJDUMP, '-|', "$objdump --headers $dll");
my %section;