diff options
author | Alan Modra <amodra@bigpond.net.au> | 2003-02-25 04:39:32 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2003-02-25 04:39:32 +0000 |
commit | 73a3531b7cd4f885c55e8c7bc70c92ae695d2962 (patch) | |
tree | 2cfd808b80ad77e49b0efc9114d57ec74a4a1306 /bfd | |
parent | 844fb3b9037956e91e05ebac7a19638bb544f377 (diff) | |
download | binutils-redhat-73a3531b7cd4f885c55e8c7bc70c92ae695d2962.tar.gz |
* elflink.h (elf_link_read_relocs_from_section): Don't abort with
wrong reloc sizes.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 2 | ||||
-rw-r--r-- | bfd/elflink.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index eb0e0006ec..bf733ca76a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -3,6 +3,8 @@ * elflink.h (elf_bfd_final_link): Apportion reloc counts to rel_hdr and rel_hdr2 when initially counting input relocs rather than after creating output reloc sections. + (elf_link_read_relocs_from_section): Don't abort with wrong reloc + sizes. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. diff --git a/bfd/elflink.h b/bfd/elflink.h index bcc7d1f7c2..7d2d2e24ea 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -2579,7 +2579,10 @@ elf_link_read_relocs_from_section (abfd, shdr, external_relocs, else if (shdr->sh_entsize == sizeof (Elf_External_Rela)) swap_in = bed->s->swap_reloca_in; else - abort (); + { + bfd_set_error (bfd_error_wrong_format); + return FALSE; + } erela = external_relocs; erelaend = erela + NUM_SHDR_ENTRIES (shdr) * shdr->sh_entsize; |