This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Relocation bug
- From: Eric Christopher <echristo at redhat dot com>
- To: "H. J. Lu" <hjl at lucon dot org>, macro at ds2 dot pg dot gda dot pl
- Cc: Ralf Baechle <ralf at linux-mips dot org>, binutils at sources dot redhat dot com, cgd at broadcom dot com, rafal at netbsd dot org
- Date: 22 Feb 2003 19:05:55 -0800
- Subject: Re: Relocation bug
- References: <20030222010409.A17169@linux-mips.org> <20030221174145.A6294@lucon.org>
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/~