This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Relocation bug


This patch:

http://sources.redhat.com/ml/binutils/2001-01/msg00290.html

is the one that changed the behavior to what it is currently. It was a
revert of one of Ralf's patches to which he was cc'd on the mail. From a
quick look it appears correct, however, I can't find any reasoning other
than "ABI Compliance" in the patch.

Taking a look at foo.so:

[echristo at ghostwheel ~/mips]$
/ghostwheel/sourceware/builds-rewrite/build-mips/binutils/objdump -R
foo.so

foo.so:     file format elf32-bigmips

DYNAMIC RELOCATION RECORDS
OFFSET   TYPE              VALUE
00000000 R_MIPS_NONE       *ABS*
600203d0 R_MIPS_REL32      .data

And the abi spec (version 3, gotten from Caldera):

4-19:

"The R_MIPS_REL32 relocation type is the only relocation performed by
the dynamic linker..."

So, it appears that the behavior is correct according to the abi.

Maciej? Comments?

-eric

-- 
o/~ Cry havoc... o/~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]