This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC:elf32-m68k.c for coldfire v4e


On Thu, Feb 10, 2005 at 03:26:09PM +0530, C Jaiprakash, Noida wrote:
> Though these changes should be valid for m68k as well but the size of PLT is
> increased a bit. What I want to know is will this be acceptable?

No.  ld.so modifies the PLT, so the layout cannot change.

> If not then
> How can I decide which PLT is to be used among m68k, cpu32 or cfv4e? I may
> create a new target may be coldfire-linux but there will be a code
> duplication of elf32-m68k.c.

Yes, you should use a new target, but there should be no need for code
duplication.  The way you do this is by including elf32-target.h again
in elf32-m68k.c, with some changed defines.  A good example to look at
is the Symbian support in elf32-arm.c, which happens to use a
different PLT layout to other ARM targets.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]