This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [SH-ELF] : Mismatch in 'e_flags' value in elf header for Renesas SHC and GNUSH objects
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: Gina Verlekar <Gina dot Verlekar at kpitcummins dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 10 Apr 2007 14:42:03 +0100
- Subject: Re: [SH-ELF] : Mismatch in 'e_flags' value in elf header for Renesas SHC and GNUSH objects
- References: <B9D27836A814694B95A1C294F714576632A3E5@sohm.kpit.com>
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