From: Hans-Peter Nilsson Date: Thu, 1 Dec 2011 22:25:59 +0000 (+0000) Subject: Apply mainline patches X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26e4aa4026d9ae0521a9925eeffd73a8771748a2;p=thirdparty%2Fbinutils-gdb.git Apply mainline patches * elf32-cris.c (cris_elf_check_relocs) : Move early break for non-SEC_ALLOC sections before GOT and PLT accounting. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 005934625d8..8b0851fe5b6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2011-12-01 Hans-Peter Nilsson + + Apply mainline patches + * elf32-cris.c (cris_elf_check_relocs) : Move early break for + non-SEC_ALLOC sections before GOT and PLT accounting. + 2011-11-21 Tristan Gingold * configure.in: Bump version to 2.22.0 diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 243a8ec140d..310f6d1e670 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -3579,6 +3579,12 @@ cris_elf_check_relocs (bfd *abfd, sec, cris_elf_howto_table[r_type].name); } + + /* We don't need to handle relocs into sections not going into + the "real" output. */ + if ((sec->flags & SEC_ALLOC) == 0) + break; + if (h != NULL) { h->non_got_ref = 1; @@ -3608,11 +3614,6 @@ cris_elf_check_relocs (bfd *abfd, if (! info->shared) break; - /* We don't need to handle relocs into sections not going into - the "real" output. */ - if ((sec->flags & SEC_ALLOC) == 0) - break; - /* We may need to create a reloc section in the dynobj and made room for this reloc. */ if (sreloc == NULL)