diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2011-12-01 02:51:14 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2011-12-01 02:51:14 +0000 |
commit | 28f68c73a40a1f0a4cdc290cba9168d51999029c (patch) | |
tree | f30a7b45cb980b2779b4ef046a02bd98de2c00ca /bfd/elf32-cris.c | |
parent | a7e0bc41a1ff1a1d0f209721ebf8b990296f9589 (diff) | |
download | gdb-28f68c73a40a1f0a4cdc290cba9168d51999029c.zip gdb-28f68c73a40a1f0a4cdc290cba9168d51999029c.tar.gz gdb-28f68c73a40a1f0a4cdc290cba9168d51999029c.tar.bz2 |
* elf32-cris.c (cris_elf_check_relocs) <plt accounting for
R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for
non-SEC_ALLOC sections before GOT and PLT accounting.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r-- | bfd/elf32-cris.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 033d1c8..563e2c0 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -3583,6 +3583,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; @@ -3612,11 +3618,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) |