summaryrefslogtreecommitdiffstats
path: root/bfd/section.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2000-11-08 07:54:31 +0000
committerRichard Henderson <rth@redhat.com>2000-11-08 07:54:31 +0000
commit9a951beb03d7a4a8c1b6784bd06fdecfc1b3855d (patch)
tree5985fd6ae0227e9fa1fcd897f325dd266616e8f4 /bfd/section.c
parentaebad5fe2c11207eff4d7aebee889f1477fe5adb (diff)
downloadppe42-binutils-9a951beb03d7a4a8c1b6784bd06fdecfc1b3855d.tar.gz
ppe42-binutils-9a951beb03d7a4a8c1b6784bd06fdecfc1b3855d.zip
* elf64-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
Set it before bfd_elf64_bfd_final_link call. Use it after the call. * section.c (bfd_set_section_contents): Call memcpy if section->contents set and location not equal to contents plus offset.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c
index ef7a7e6fe2..38683fccc3 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -1081,6 +1081,11 @@ bfd_set_section_contents (abfd, section, location, offset, count)
break;
}
+ /* Record a copy of the data in memory if desired. */
+ if (section->contents
+ && location != section->contents + offset)
+ memcpy (section->contents + offset, location, count);
+
if (BFD_SEND (abfd, _bfd_set_section_contents,
(abfd, section, location, offset, count)))
{
OpenPOWER on IntegriCloud