This is the mail archive of the binutils@sourceware.org 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: [SH-ELF] : Mismatch in 'e_flags' value in elf header for Renesas SHC and GNUSH objects


Andrew STUBBS wrote:

>>A suitable modification to sh_elf_set_mach_from_flags in elf32-sh.c
>>would do what you want. It would be fairly simple to code a mapping of
>>Renesas eflags to BFD mach.

Yes. We agree to you and it looks very much feasible. 

Is it possible to have the same set of values (matching the Renesas SHC
values) for "e_flags" as generic and not option dependent?

Regards,
Gina Verlekar
KPIT Cummins Infosystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH, H8, R8C, M16C
and M32C 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 were released on February 6, 2007.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-----Original Message-----
From: Andrew STUBBS [mailto:andrew.stubbs@st.com] 
Sent: Tuesday, April 10, 2007 7:12 PM
To: Gina Verlekar
Cc: binutils@sources.redhat.com
Subject: Re: [SH-ELF] : Mismatch in 'e_flags' value in elf header for
Renesas SHC and GNUSH objects

Gina Verlekar wrote:
> Is it possible to have same values for 'e_flags' in GNUSH as in
Renesas
> SHC 
> toolchain (or maybe only on using '-mrenesas' option) ? This will
ensure
> better 
> interoperability between Renesas SHC and GNUSH with '-mrenesas'
option.

A suitable modification to sh_elf_set_mach_from_flags in elf32-sh.c 
would do what you want. It would be fairly simple to code a mapping of 
Renesas eflags to BFD mach.

However, it isn't obvious to me how one would know *when* to treat the 
flags as GNU or as Renesas. An -mrenesas option might allow the use of 
Renesas binaries, but does not provide any interoperability - it would 
misinterpret the GNU eflags.

Andrew


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