This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with linking static lib text into specific section
- From: Ian Lance Taylor <iant at google dot com>
- To: Elad Yosef <elad dot yosef at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 04 Mar 2012 21:01:53 -0800
- Subject: Re: Problem with linking static lib text into specific section
- Authentication-results: mr.google.com; spf=pass (google.com: domain of iant@google.com designates 10.68.219.70 as permitted sender) smtp.mail=iant@google.com; dkim=pass header.i=iant@google.com
- References: <CAOFa9c1FazYZ+NdeXgAzjBqZwkETfVXcu_ytdNcmBYX6UK=EjA@mail.gmail.com>
Elad Yosef <elad.yosef@gmail.com> writes:
> Hi I have the following in my linker script:
>
> I'm forcing to link the text and the rodata from libMy-Cli.a into a
> specific section.
> Now I have additional file libMy-GUI.a that I also want to link in similar way.
> But It fails I get linking error that some addresses are out of the memory.
> Is there more elegant way to what i'm trying to achieve?
What is the exact error message?
This general approach should work.
Ian