This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: linking possibilities
- To: Rafael Rodr?guez Velilla <rrv at tid dot es>
- Subject: Re: linking possibilities
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Tue, 12 Jun 2001 01:54:33 -0700
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
On Tue, Jun 12, 2001 at 09:45:07AM +0200, Rafael Rodr?guez Velilla wrote:
>
> I'm sure that someone before me has used gcc to compile a "shared library"
> for an embedded system (stored in a ROM or a FLASH), and surely there's a
> neater way to use this library than what I'm doing (I have made a perl
> script that extracts the symbols of the executable and prepares a linker
> script using that information).
> The information I need to know is, for example, what is the section
> .rel.got that gets generated when I use a global variable and compile with
> -fPIC switch?
Aha. You need the ELF spec and the relevant parts of the ABI. Start
at <http://www.sco.com/developer/gabi/>. You'll want the ARM
processor-specific supplement as well. That is probably on arm.com
somewhere, but that server seems to be down right now.
This should probably be linked off of <http://gcc.gnu.org/readings.html>.
--
zw But the voices in my head are what keeps me sane.
-- Shweta Narayan