diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2005-08-17 05:13:13 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2005-08-17 05:13:13 +0000 |
commit | 7e913e71491c81274a141c382a0cb91aba074e85 (patch) | |
tree | 3e4c83c0b55a5c1133a9883fd4d141cba24fb908 /ld/emultempl/sh64elf.em | |
parent | a42762731d46740ff7519c27bb58d45ee88ede19 (diff) | |
download | binutils-redhat-7e913e71491c81274a141c382a0cb91aba074e85.tar.gz |
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
Don't increment rel_count of .cranges here. Set rawsize of .cranges.
Diffstat (limited to 'ld/emultempl/sh64elf.em')
-rw-r--r-- | ld/emultempl/sh64elf.em | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ld/emultempl/sh64elf.em b/ld/emultempl/sh64elf.em index 816c6a72c6..830960f1d0 100644 --- a/ld/emultempl/sh64elf.em +++ b/ld/emultempl/sh64elf.em @@ -520,13 +520,6 @@ sh64_elf_${EMULATION_NAME}_after_allocation (void) bfd_put_32 (output_bfd, isec->output_offset, crangesp + SH64_CRANGE_CR_ADDR_OFFSET); cr_addr_order->u.reloc.p->addend = 0; - - /* We must update the number of relocations here, - since the elf linker does not take link orders - into account when setting header sizes. The - actual relocation orders are however executed - correctly. */ - elf_section_data(cranges)->rel_count++; } else bfd_put_32 (output_bfd, @@ -564,4 +557,5 @@ sh64_elf_${EMULATION_NAME}_after_allocation (void) sh64_elf_section_data (cranges)->sh64_info->cranges_growth = crangesp - cranges->contents - cranges->size; cranges->size = crangesp - cranges->contents; + cranges->rawsize = cranges->size; } |