[PATCH 0/4] PE/COFF: function size
Jan Beulich
jbeulich@suse.com
Fri Mar 28 14:49:29 GMT 2025
Being able to delimit functions can be valuable. For PE/COFF binaries
(e.g. EFI ones) nm so far didn't show the size, and ld also lost it
when linking ELF objects to a PE/COFF binary. Plus another correction
and some cleanup as noticed while doing the main piece of work here.
Patch 3 is pretty hacky; a possible alternative (intrusive, but the
intrusiveness being pretty mechanical) is outlined there. Opinions
very welcome.
1: nm: also retrieve size for COFF function symbols
2: nm: fall back to heuristic when ELF symbol has zero size
3: bfd/COFF: propagate function size when copying/linking ELF objects
4: bfd/COFF: drop link_add_one_symbol() hook
Jan
More information about the Binutils
mailing list