gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Re: relocation overflow


From: Geoff Keating
Subject: Re: [Gcl-devel] Re: relocation overflow
Date: Thu, 21 Nov 2002 14:19:34 -0800

> Cc: address@hidden, address@hidden, address@hidden,
>    address@hidden
> From: Camm Maguire <address@hidden>
> 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:
> 
> address@hidden:~/gcl-2.5.0.cvs20020625/o$ gcc -c -Wall -DVOL=volatile 
> -fsigned-char -fwritable-strings -pipe -fPIC main.c -o main.o
> address@hidden:~/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 <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]