diff options
author | Nick Clifton <nickc@redhat.com> | 2011-12-01 15:50:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-12-01 15:50:58 +0000 |
commit | 810e69868440cdc8f2052c90fc30c3be71075899 (patch) | |
tree | 67a06837815ae6655dcf7122cd8468e5e802db28 /bfd/elf32-m68k.c | |
parent | 87f1617a4f71347db8f9bd7f257f729bc08f2d31 (diff) | |
download | gdb-810e69868440cdc8f2052c90fc30c3be71075899.zip gdb-810e69868440cdc8f2052c90fc30c3be71075899.tar.gz gdb-810e69868440cdc8f2052c90fc30c3be71075899.tar.bz2 |
* elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
non-SEC_ALLOC sections break before GOT and PLT accounting.
Diffstat (limited to 'bfd/elf32-m68k.c')
-rw-r--r-- | bfd/elf32-m68k.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c index 8c93548..bd660e9 100644 --- a/bfd/elf32-m68k.c +++ b/bfd/elf32-m68k.c @@ -2816,6 +2816,11 @@ elf_m68k_check_relocs (abfd, info, sec, relocs) case R_68K_8: case R_68K_16: case R_68K_32: + /* 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) { /* Make sure a plt entry is created for this symbol if it @@ -2829,8 +2834,7 @@ elf_m68k_check_relocs (abfd, info, sec, relocs) /* If we are creating a shared library, we need to copy the reloc into the shared library. */ - if (info->shared - && (sec->flags & SEC_ALLOC) != 0) + if (info->shared) { /* When creating a shared object, we must copy these reloc types into the output file. We create a reloc |