Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-11-08 15:06:32 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-11-08 15:06:32 +0300
commit4bc605814c34534c62314e6a4946e49831313a0a (patch)
treea3d48f64ab6fa60919b62a5c8904eca6ca5f6abb /winsup/cygwin/dllfixdbg
parent33e178064d60605b4ed0df0c907c9939872fc8a9 (diff)
* dllfixdbg: Pass --only-keep-debug to objcopy, instead of
selecting the sections manually.
Diffstat (limited to 'winsup/cygwin/dllfixdbg')
-rwxr-xr-xwinsup/cygwin/dllfixdbg8
1 files changed, 3 insertions, 5 deletions
diff --git a/winsup/cygwin/dllfixdbg b/winsup/cygwin/dllfixdbg
index 81f766b23..47ec27169 100755
--- a/winsup/cygwin/dllfixdbg
+++ b/winsup/cygwin/dllfixdbg
@@ -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;