[PATCH] ld: Put all emulation options in ldlex.h
Nick Clifton
nickc@redhat.com
Fri Jan 19 10:37:11 GMT 2024
Hi H.J.
>> For each command line option, parse_args() calls ldemul_parse_args()
>> to check if the command line option is an emulation option. But when
>> there is a conflict between the emulation option value and the default
>> option value, the default command line option will be processed as if
>> the emulation option is used.
Hmm, yes I see how this can be a problem. Given that the values are statically
allocated and there is know way of knowing how many emulations are going to be
involved in the creation of a single version of the linker, your approach makes
sense.
Patch approved - please apply.
Cheers
Nick
More information about the Binutils
mailing list