This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Query in MIPS HI and LO relocations
- From: Thiemo Seufer <ths at networkno dot de>
- To: Amarnath <amarnath at acmet dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 20 Apr 2006 15:31:37 +0100
- Subject: Re: Query in MIPS HI and LO relocations
- References: <000201c66486$d17663b0$ad00a8c0@amarnath>
Amarnath wrote:
> Hi all,
>
> I am having a query in the MIPS ABI. As per the SYSTEM V ABI,
> R_MIPS_HI16 relocation should be immediately followed by its
> corresponding R_MIPS_LO16.
The ELF ABI specifies this requirement. The GNU toolchain supports
somewhat relaxed rules which allow some optimisations.
> I would like to know whether this is specific to SYSTEM V architecture
> alone / the linker specification can be changed as per our own
> architecture.
Well, you can change it to anything you like, but it likely won't
be compatible any more. :-)
I recommend you stick with the model the GNU toolchain implements.
Thiemo