I have used EXCLUDE_FILE to explicitly omit placing certain sections of certain object files in the master object file that I want to generate. I was wondering if there is a way to omit out just a particular symbol rather than an entire section.
Example:
Say I have a library a.lib which consists of 1.o, 2.o and 3.o with .text and .data sections. .text section of 1.o contains func1, func2 and func3.
using EXCLUDE_FILE, I can only omit out the entire .text or .data section from 1.o. I want to be able to omit out only func1 and place func2 and func3. Is this possible?