[PATCH] Update relocation values for ARC platform.

Ramana Radhakrishnan ramana.radhakrishnan@codito.com
Mon Apr 25 10:54:00 GMT 2005


Hi Nick,

>> This patch corrects the values of the relocation types for
>> the ARC platform. Tested by building cross arc-elf32 and running the 
>> tests with no regressions.
> 
> 
> I am worried about this.  What has happened to the old relocation values 
> (1, 2, 3) ?  What about backwards compatibility ?

FSF mainline was not ABI compliant with respect to these 
relocation values. (The relocation values 1, 2 and 3 are 
actually reserved for the relocation types R_ARC_8, 
R_ARC_16, R_ARC_24. ostensibly generated by the other 
toolchain for the ARC cores. ) which the GNU tools does not 
generate / handle currently.Mainline seems to have the 
values of 1,2,3 for these relocation types since the first 
revision.

With respect to backwards compatibility, if anything this 
should enable users to link in GNU compiled binaries with 
the other propreitary toolchain with a few more patches that 
are still in my pipeline. A persistent complaint has been 
this inability to link object files generated by the 2 
toolsets for the ARC platform .

Would a NEWS item indicating this change  be a valid thing 
to do indicating that mainline would be broken w.r.t 2.16 
branch. ?  Or would you want to put in some sort of version 
checks in the linker based on version info emitted by the 
assembler ?


cheers
Ramana

---
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)



More information about the Binutils mailing list