This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: How to link in sub-object ganularity
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "Andras Tantos" <andras_tantos at yahoo dot com>
- Cc: <binutils at sources dot redhat dot com>, <gcc at gcc dot gnu dot org>
- Date: 02 Dec 2003 12:09:41 -0500
- Subject: Re: How to link in sub-object ganularity
- References: <00b801c3b8f4$98333690$a6963b9d@redmond.corp.microsoft.com>
"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