aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-10-11 16:33:16 +0000
committerNick Clifton <nickc@redhat.com>2005-10-11 16:33:16 +0000
commitec948987302c988cdde4811c4f04809c8fa0b7a5 (patch)
tree3291301f6db804d0a24b824cfaffc8c55e82b8fa /binutils/objcopy.c
parent9497f5ac6bc10bdd65ea471787619bde1edca77d (diff)
downloadgdb-ec948987302c988cdde4811c4f04809c8fa0b7a5.zip
gdb-ec948987302c988cdde4811c4f04809c8fa0b7a5.tar.gz
gdb-ec948987302c988cdde4811c4f04809c8fa0b7a5.tar.bz2
PR binutils/1437
* cxxfilt.c (flags): Remove DMGL_TYPES; (long_options): Rename --no-types to --types. (usage): Likewise. (demangle_it): Add a comment describing why _ and $ prefixes are skipped. Use printf rather than puts to emit the demangled output in order to avoid emitting a new line character. (main): Have the -t flag enable type demangling. Emit a newline after every demangled command line argument. Copy whitespace from stdin to stdout. * doc/binutils.texi (c++filt): Document the change to the -t switch. Document why demangling names on the command line is slightly different to demangling names read from the standard input.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r--binutils/objcopy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index d46d093..de0746b 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -1349,6 +1349,13 @@ copy_object (bfd *ibfd, bfd *obfd)
bfd_nonfatal (gnu_debuglink_filename);
return FALSE;
}
+
+ if (bfd_get_flavour (obfd) == bfd_target_coff_flavour)
+ /* Try to set the VMA of the section to some non-zero value so
+ that it will work for PE format files. (We have no way to
+ distinguish between COFF and PE flavours). If this does not
+ work, just ignore the failure. */
+ bfd_set_section_vma (obfd, gnu_debuglink_section, 0xf0000000);
}
if (bfd_count_sections (obfd) == 0)