bug-binutils
[Top][All Lists]
Advanced

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

Re: BUG elf32-i386 R_386_PC32 done wrong


From: Ian Lance Taylor
Subject: Re: BUG elf32-i386 R_386_PC32 done wrong
Date: 19 Jun 2006 19:08:45 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

doctor electron <address@hidden> writes:

> As author of the HotBasic compiler for Windows, in porting same
> to Linux, I find that ld does not properly link relative
> relocations (R_386_PC32) in correct elf32-i386 .o files.

GNU ld is correct according to the ELF ABI Processor Supplement for
i386 Processors.

In typical use, the .o file will contain a 0xfffffffc in the four
bytes affected by R_386_PC32.  R_386_PC32 is defined to add the PC
relative offset from the start of the 4 byte field to the existing
contents of the 4 byte field.

Ian




reply via email to

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