(Not sure if this is the right subforum for this question - if not, thanks for moving the thread accordingly)
I know about the "/include:symbol" option that can force polink to include a specific symbol. What I would like to know is if there is an option to do just the opposite: force the linker NOT to include a symbol, even if it is part of one of the imported libraries.
In case there is no such option, could you think of another tool, workaround or method - even "dirty", such as manually editing the PE binary - to remove an unwanted symbol (or make it point to a null/NOP action)?
I'm just asking this out of curiosity, no specific reason other than generally studying the PE format and the Windows loader.
I do understand that such an option would obviously be unsafe and would have to be manipulated carefully.
Hoping for an interesting discussion!