From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: geoffk@ozemail.com.au Cc: mark@codesourcery.com, gavin@cygnus.com, binutils@sourceware.cygnus.com, brendan@cygnus.com Subject: Re: Reloc changes to bfd/elf32-mips.c Date: Wed, 06 Oct 1999 19:35:00 -0000 Message-id: <19991007023447.2184.qmail@daffy.airs.com> References: <199909271118.VAA01663@gluttony.geoffk.wattle.id.au> <19990928005956V.mitchell@codesourcery.com> <199909290330.NAA00657@gluttony.geoffk.wattle.id.au> <19990929035539.20417.qmail@daffy.airs.com> <199909290450.OAA00966@gluttony.geoffk.wattle.id.au> <19990929050239.26015.qmail@daffy.airs.com> <199910070151.LAA01021@gluttony.geoffk.wattle.id.au> X-SW-Source: 1999-10/msg00019.html Date: Thu, 7 Oct 1999 11:51:21 +1000 From: Geoff Keating Perhaps you could explain what you think the code should be doing? This is often much more helpful than simply saying `I think this is wrong', since the usual response is `well, I think it is right'. Sorry, I thought I had explained it. I think that the 32 bit MIPS ELF code should compute a 64 bit reloc by computing a 32 bit reloc in the least significant 32 bits. The most significant bit of the result of that computation should then be sign extended into the most significant 32 bits. This behaviour is independent of whether BFD64 is defined or not. BFD64 is a host macro, and I am concerned with target behaviour. My test case for this is the following: configure --target=mipstx39-unknown-elf make cat > test.s <