diff options
author | Alan Modra <amodra@gmail.com> | 2023-05-04 18:49:04 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-05-20 10:49:19 +0930 |
commit | cb3f0ff4795381fb19e128a85e258149ebed9cd6 (patch) | |
tree | d8a91754ed7ce878e4af1042e743b0615687d3ec /gdb | |
parent | 880853ed941dc1154e3bb2bd44ddd10b84dfecff (diff) | |
download | binutils-cb3f0ff4795381fb19e128a85e258149ebed9cd6.zip binutils-cb3f0ff4795381fb19e128a85e258149ebed9cd6.tar.gz binutils-cb3f0ff4795381fb19e128a85e258149ebed9cd6.tar.bz2 |
coffcode.h handle_COMDAT tidy
I started down the path of attempting to fix
https://sourceware.org/pipermail/binutils/2023-April/127263.html but
decided after a while that I didn't want to mess with this code..
This patch is a just a few things that I thought worth doing, the main
one being reporting of errors up the call chain. The while loop to
for loop change is shamelessly stolen from Oleg.
* coffcode.h (handle_COMDAT): Return bool. Make sec_flags a
flagword*, and adjust to suit. Replace while loop with for
loop. Check isym.n_numaux before reading aux entries. Alloc
coff_comdat_info and name in one call to bfd_alloc. Remove
goto breakloop.
(styp_to_sec_flags): Adjust handle_COMDAT call.
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions