This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [Gcl-devel] Re: relocation overflow
> Cc: drow@mvista.com, amodra@bigpond.net.au, gcl-devel@gnu.org,
> binutils@sources.redhat.com
> From: Camm Maguire <camm@enhanced.com>
> Date: 21 Nov 2002 13:53:07 -0500
> OK, this is what I thought you meant the first time. Unfortunately,
> this does not seem to be the case:
>
> camm@voltaire:~/gcl-2.5.0.cvs20020625/o$ gcc -c -Wall -DVOL=volatile -fsigned-char -fwritable-strings -pipe -fPIC main.c -o main.o
> camm@voltaire:~/gcl-2.5.0.cvs20020625/o$ objdump -x main.o |grep 24
> 00000024 O *COM* 00000004 Cnil_body
> 00000024 O *COM* 00000004 Dotnil_body
> 00000024 O *COM* 00000004 Ct_body
> 00002460 g F .text 00000084 siLinitialization_failure
> 000024e8 g F .text 00000054 Lidentity
> 00000048 R_PPC_PLTREL24 setbuf
> 00000058 R_PPC_PLTREL24 setbuf
> ...
> 00000024 R_PPC_ADDR32 system_directory
> 000000b4 R_PPC_ADDR32 .data+0x00000024
>
> Perhaps I need to pass each module through ld -shared too?
Yes, you do. Right now, you don't have a shared object, you just have
a relocatable object file built with -fPIC.
--
- Geoffrey Keating <geoffk@geoffk.org>