How to link in sub-object ganularity

Ian Lance Taylor ian@wasabisystems.com
Tue Dec 2 17:14:00 GMT 2003


"Andras Tantos" <andras_tantos@yahoo.com> writes:

> I guess the problem is that the linker cannot crack sections, so first I
> would need to specify GCC to put each (extern) symbol into a different
> section and than instruct the linker to do a per-section linking.

gcc -ffunction-sections
ld --gc-sections

See the documentation.

Ian



More information about the Gcc mailing list