public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RE: Exploring the possibility of linking objects with different relocationschemes.
@ 2005-01-04 11:45 Prafulla Thakare
  2005-01-05 13:26 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Prafulla Thakare @ 2005-01-04 11:45 UTC (permalink / raw)
  To: binutils; +Cc: Nick Clifton

Hi,

We have changed the ABI VERSION in elf header to identify the different 
relocation schemes. i.e. ABI = 1 stands for new (binutils 2.15 onwards) 
relocations while ABI = 0 stands for old (binutils 2.10) relocations. 

In linker, the relocations will be handled based on the ABI version. If 
the ABI version is "1", then relocation handling will remain same but 
if ABI version is "0", then relocations will be handled the way it is
done in 
binutils 2.10.1. 
For this purpose, we plan to re-use relocation handling source code of
2.10.1.

Please let us know, if this okay and also if anybody foresee any problem

with this implementation. 

Also any input on how above implementation will affect "-r" option to
linker?

>>Can anybody suggest how feasible is to
>> modify present linker to link objects with different relocation
>>scheme at the same time?

>This should be possible.  You may find that you cannot support the 
>--emit-relocs switch since you would not be able to label the output 
>file as containing both old and new ABI relocs.

-->This is okay.

Regards,
Prafulla Thakare
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series. 
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools are released on Oct 1, 2004. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Exploring the possibility of linking objects with different relocationschemes.
  2005-01-04 11:45 Exploring the possibility of linking objects with different relocationschemes Prafulla Thakare
@ 2005-01-05 13:26 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2005-01-05 13:26 UTC (permalink / raw)
  To: Prafulla Thakare; +Cc: binutils

Hi Prafulla,

> We have changed the ABI VERSION in elf header to identify the different 
> relocation schemes. i.e. ABI = 1 stands for new (binutils 2.15 onwards) 
> relocations while ABI = 0 stands for old (binutils 2.10) relocations. 

Note - you should probably define constants for these values and put 
them into include/elf/sh.h.

> Please let us know, if this okay and also if anybody foresee any problem

This is OK.

> Also any input on how above implementation will affect "-r" option to
> linker?

It should not be a problem.  As long as the code correctly propagates 
the ABIVERSION value to the output bfd (which should happen 
automatically, you should not need to add any new code).

Cheers
   Nick


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-05 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-04 11:45 Exploring the possibility of linking objects with different relocationschemes Prafulla Thakare
2005-01-05 13:26 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).