On 22 Jan 2004 at 16:31, Adriaan van Os wrote:
[...]
There seem to be some mechanisms within the compiler and binutils to assist in doing this - the switches: "-fdata-sections" and "-ffunction- sections" passed on to the compiler, and then objcopy with the switch "--only-section".
Unfortunately, not all platforms support --function-sections, e.g. Mac OS X doesn't.
In which case, if this method works, then there is the option of trying to get the porters of gcc to OS X to add support for "-ffunction- sections". The other option (i.e., doing it the gcc way) is not going to be viable.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/