This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linker question. How to change memory section for functions that comes from a ".a" library?
- From: Ian Lance Taylor <iant at google dot com>
- To: foolo <olof dot andersson at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 03 Dec 2010 08:53:55 -0800
- Subject: Re: Linker question. How to change memory section for functions that comes from a ".a" library?
- References: <30365738.post@talk.nabble.com>
foolo <olof.andersson@gmail.com> writes:
> So the question is:
> How do i tell the linker to put the needed libgcc functions in a special
> memory section.
I believe you need to write something like
libgcc.a:*
to match all the objects being pulled in from libgcc.a. But since
libgcc.a is coming from some path, you may need something like
*/libgcc.a:*
Ian