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


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]