[PATCH v2 0/3] PE/COFF: function size (and fallout)
Jan Beulich
jbeulich@suse.com
Mon Apr 7 13:51:50 GMT 2025
Being able to delimit functions can be valuable. For PE/COFF binaries
(e.g. EFI ones) while nm now does show the size, ld has been losing it
(and the fact they're functions) when linking ELF objects to a PE/COFF
binary. Plus then some cleanup noticed while doing the main piece of
work here.
Patch 1 continues to be pretty hacky, but at least it now only adds
cross-format knowledge in on direction; the previously outlined
alternative (intrusive, but the intrusiveness being pretty mechanical)
is likely still an option. A comment towards the end of struct
bfd_link_hash_entry made me stop that effort, though, for the necessary
size increase. As before, opinions very welcome.
1: bfd/COFF: propagate function size when copying/linking ELF objects
2: bfd/aout: drop add_one_symbol() hook
3: bfd/ELF/x86: avoid layering violation in link hash table entry init
Jan
More information about the Binutils
mailing list