Saagar Jha
2018-10-28 03:56:17 UTC
This patch contains preliminary support for the LC_BUILD_VERSION load command, which seems to be similar to the LC_VERSION_MIN_* commands but extended with platform and build tool information. As it stands currently, the load command is only partially read in; in particular, the command contains a variable-size list of âtoolsâ used to compile the executable that I couldnât figure out a way to embed into a fixed-size struct on the stack. I was considering allocating memory here and storing this in a pointer in bfd_mach_o_build_version_command, but I couldnât really figure out which allocator to use (bfd/mach-o.c seems to use several in the same file) or when to free the allocated memory. Is there a way to implement this in the way version commands are currently structured?
Regards,
Saagar Jha
Regards,
Saagar Jha