On Tue, Aug 29, 2006 at 01:14:12AM +0200, Eugeniy Meshcheryakov wrote:
> Patch for arm support is attached. It however adds support for only one
> ABI variant supported by gcc (default one, -mabi=apcs-gnu -mhard-float).
> 
> Support for -msoft-float can be added easily if if will be possible to
> get e_flags member from ELF header in arm_return_value_location(), but I
> do not see how it can be done.

You can get a pointer to the Elf struct for the current file as
ebl->elf. From there you can use something like the following to get
the elf header:
    GElf_Ehdr ehdr_mem;
    GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);

With the elf header you got e_flags too.


Aside from this, a mips status report: I implemented the register
mappings, but I've got to do some more reading for the retval stuff.

For o32/n32 ABIs it should work more or less, but I donno what
happens with o64/n64. I'll look into this tomorrow.

- Christian

Attachment: signature.asc
Description: Digital signature

Reply via email to