diff options
author | Alan Modra <amodra@gmail.com> | 2023-03-07 22:21:28 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-03-08 11:24:50 +1030 |
commit | d64c8f7181fd21f90983f8d55369f6f9a2960c43 (patch) | |
tree | 2121d1b6c59faefb19dd040ebe4eb57929782f76 /binutils | |
parent | b9ee26d9ca29b5f598772de9f78c3da21cfa6c1b (diff) | |
download | gdb-d64c8f7181fd21f90983f8d55369f6f9a2960c43.zip gdb-d64c8f7181fd21f90983f8d55369f6f9a2960c43.tar.gz gdb-d64c8f7181fd21f90983f8d55369f6f9a2960c43.tar.bz2 |
z8 and z80 coff_reloc16_extra_cases sanity checks
* reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
Use size_t variables. Sanity check reloc address. Handle
errors from bfd_coff_reloc16_extra_cases.
* coffcode.h (_bfd_coff_reloc16_extra_cases): Return bool, take
size_t* args.
(dummy_reloc16_extra_cases): Adjust to suit. Don't abort.
* coff-z80.c (extra_case): Sanity check reloc address. Return
errors. Tidy formatting. Use bfd_signed_vma temp var to
check for reloc overflow. Don't abort on unexpected reloc type,
instead print an error and return false.
* coff-z8k.c (extra_case): Likewise.
* libcoff.h: Regenerate.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions