diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2002-11-14 01:32:28 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2002-11-14 01:32:28 +0000 |
commit | 3416d2e74397b3170ffe6539afb8f471b7ab0453 (patch) | |
tree | 3fb6b8fb5c51115bbf5def1a952ce18049d86790 | |
parent | Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com> (diff) | |
download | binutils-gdb-3416d2e74397b3170ffe6539afb8f471b7ab0453.tar.gz binutils-gdb-3416d2e74397b3170ffe6539afb8f471b7ab0453.tar.bz2 binutils-gdb-3416d2e74397b3170ffe6539afb8f471b7ab0453.zip |
* elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs):
For bpo_gregs_section->contents, allocate _raw_size, not
_cooked_size.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf64-mmix.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fb0460cceff..89522999b6d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2002-11-14 Hans-Peter Nilsson <hp@bitrange.com> + + * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): + For bpo_gregs_section->contents, allocate _raw_size, not + _cooked_size. + 2002-11-13 Klee Dienes <kdienes@apple.com> * config.bfd: Add entries for powerpc-*-darwin and cousins. diff --git a/bfd/elf64-mmix.c b/bfd/elf64-mmix.c index 8b76f34e038..939d12f7b38 100644 --- a/bfd/elf64-mmix.c +++ b/bfd/elf64-mmix.c @@ -2170,8 +2170,11 @@ _bfd_mmix_finalize_linker_allocated_gregs (abfd, link_info) n_gregs = gregdata->n_allocated_bpo_gregs; + /* We need to have a _raw_size contents even though there's only + _cooked_size worth of data, since the generic relocation machinery + will allocate and copy that much temporarily. */ bpo_gregs_section->contents - = contents = bfd_alloc (bpo_greg_owner, bpo_gregs_section->_cooked_size); + = contents = bfd_alloc (bpo_greg_owner, bpo_gregs_section->_raw_size); if (contents == NULL) return false; |