Relocation bug

Eric Christopher echristo@redhat.com
Sun Feb 23 03:17:00 GMT 2003


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@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/~



More information about the Binutils mailing list