bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Bug#134241: [arm] PIC handling busted in linker


From: Christopher C. Chimelis
Subject: Re: Bug#134241: [arm] PIC handling busted in linker
Date: Wed, 20 Feb 2002 10:20:34 -0500 (EST)

On 16 Feb 2002, Philip Blundell wrote:

> GOT relocations are not being emitted for locally-defined symbols.
> This is breaking the build of tclx8.0.4 and probably other packages.
> 
> $ cat got.s
> main:
> .word foo(GOT)
> 
> .globl foo
> foo:
> .word 0x1234
> $ as -o got.o got.s
> $ ld -o got got.o -lc
> ld: warning: cannot find entry symbol _start; defaulting to 00008134
> $ readelf -r got
> 
> There are no relocations in this file.
> $
> 
> I would expect to see an R_ARM_GLOB_DAT reloc in the .rel.got section.
> When I tried a similar test on i386 (replacing the ".word foo(GOT)" with
> "mov %eax, address@hidden") this reloc was generated correctly.

This occurred with CVS as well when I tested it last week using a
cross-linker.

C




reply via email to

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