[PATCH v3 1/2] ld: Add support for a new option, -exclude-symbols, in COFF object file directives

Martin Storsjö martin@martin.st
Mon Aug 1 11:35:53 GMT 2022

On Mon, 1 Aug 2022, Nick Clifton wrote:

> Hi Martin,
>> This maps to the same as ld's --exclude-symbols command line option,
>> but allowing specifying the option via directives embedded in the
>> object files instead of passed manually on the command line.
>> ---
>> v2: Fixed parsing multiple comma separated symbols. While 
>> pe_dll_add_excludes
>> does tokenize the string, the symbol tokens in deffilep.y don't
>> include commas, so we need to handle that at that level.
>> v3: Added an x86_64 testcase too, changed i*86 into i?86 in the testcases.
> Patch approved - please apply.

Thanks! I don't have commit access, so can someone apply the patches for 

// Martin

More information about the Binutils mailing list