summaryrefslogtreecommitdiff
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
commitd3fde8b447f78e4888db3c14c6bd99fa15b0ebcf (patch)
treebf98f218f8bfa81ab4881f456aaf0140d7785e53 /binutils/objcopy.c
parent77f010ee01dc97872507044f2c47bf24fd31229f (diff)
downloadbinutils-redhat-d3fde8b447f78e4888db3c14c6bd99fa15b0ebcf.tar.gz
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 d46d0936f7..de0746bf1f 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)