OSDN Git Service

* dllfixdbg: Pass --only-keep-debug to objcopy, instead of
authorcorinna <corinna>
Thu, 8 Nov 2007 12:06:31 +0000 (12:06 +0000)
committercorinna <corinna>
Thu, 8 Nov 2007 12:06:31 +0000 (12:06 +0000)
selecting the sections manually.

winsup/cygwin/ChangeLog
winsup/cygwin/dllfixdbg

index feabd3e..05f0f11 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-07  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * dllfixdbg: Pass --only-keep-debug to objcopy, instead of
+       selecting the sections manually.
+
 2007-11-06  Corinna Vinschen  <corinna@vinschen.de>
 
        * thread.cc (pthread_key_create): Drop check for incoming valid object.
index 81f766b..47ec271 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# Copyright 2006 Red Hat, Inc.
+# Copyright 2006, 2007 Red Hat, Inc.
 #
 # This file is part of Cygwin.
 #
@@ -16,10 +16,8 @@ my $objdump = shift;
 my @objcopy = ((shift));
 my $dll = shift;
 my $dbg = shift;
-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, '--only-keep-debug', $dll, $dbg;
+xit 0, @objcopy, '-R', '.gnu_debuglink_overlay', $dbg;
 xit 0, @objcopy, '-g', '--add-gnu-debuglink=' . $dbg, $dll;
 open(OBJDUMP, '-|', "$objdump --headers $dll");
 my %section;