]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Wed, 17 Aug 2005 05:13:13 +0000 (05:13 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Wed, 17 Aug 2005 05:13:13 +0000 (05:13 +0000)
Don't increment rel_count of .cranges here.  Set rawsize of .cranges.

ld/ChangeLog
ld/emultempl/sh64elf.em

index b6b007984cd1c7d5dfe2685d1f64ac0b19b97624..c64fa8d2612b31c6408b1b4a5cdb45b81333182b 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
+       Don't increment rel_count of .cranges here.  Set rawsize of .cranges.
+
 2005-08-10  Nick Clifton  <nickc@redhat.com>
 
        * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
index 816c6a72c6540c405242776b0866ddf582f12415..830960f1d0d5fe5b379ae6695a5a9662583a9136 100644 (file)
@@ -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;
 }