This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] RFD: Incorrect R_MIPS_26 handling for RELA
- From: Per Fogelström <pefo at opsycon dot se>
- To: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>, Ralf Baechle <ralf at oss dot sgi dot com>
- Cc: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>, Eric Christopher <echristo at redhat dot com>, binutils at sources dot redhat dot com
- Date: Fri, 07 Jun 2002 12:52:39 +0200
- Subject: Re: [patch] RFD: Incorrect R_MIPS_26 handling for RELA
- Organization: Opsycon AB, Sweden
- References: <Pine.GSO.3.96.1020607123127.16482C-100000@delta.ds2.pg.gda.pl>
Actually there is more to this than R_MIPS_26 handling.
Initialized 64 bit pointers for example was not initialized
correctly. Offsets was added twice etc. It appears that
relocations are generated differently for _64 and _32. In
_32 the offset is stored in the code, in _64 it is 'stored'
in the rel entry. With some fixes in gas and ld i have a
working OpenBSD/mips64 port where apps are statically linked
-no-abicalls. Most apps works but there are loads of issues...
and statically -noabicalls linked apps sucks performancewise
so so having a working GOT is a must...
Anyway, i'm about to pick up work on the 64 bit stuff again
so if someone is interested in details let me know.
Per