This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to link in sub-object ganularity


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]