|
Home > Archive > Unix Programming > August 2004 > Reading Elf files on Digital...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Reading Elf files on Digital...
|
|
| Milan Saxena 2004-08-17, 7:59 am |
| Hi,
I need to use ELF library for HP-UX (32-bit), Solaris (32-bit) and
OSF (Digital - 64 bit) to analyse the ELF object files already
generated for m68k target platform using gcc cross-compiler.
(Something similar to ElfReader.)
The problem is that these host machines (HP, Sun and Digital) as well
as the target machine (m68k) have different endianess.
1) HP (HP-UX) and Sun (Solaris) is Big Endian
2) Digital is little endian
3) m68k is Big endian
Thus the elf formatted object file generated for m68k is not being
read on Digital machine.
Can anyone please suggest me a standard ELF library for download which
takes care of the endianness of the host machine so that I can use the
same library for all the host platforms?
Thanking in anticipation,
Milan Saxena
| |
| Måns Rullgård 2004-08-17, 7:59 am |
| milan@cdotd.ernet.in (Milan Saxena) writes:
> Hi,
> I need to use ELF library for HP-UX (32-bit), Solaris (32-bit) and
> OSF (Digital - 64 bit) to analyse the ELF object files already
> generated for m68k target platform using gcc cross-compiler.
> (Something similar to ElfReader.)
>
> The problem is that these host machines (HP, Sun and Digital) as well
> as the target machine (m68k) have different endianess.
>
> 1) HP (HP-UX) and Sun (Solaris) is Big Endian
> 2) Digital is little endian
> 3) m68k is Big endian
>
> Thus the elf formatted object file generated for m68k is not being
> read on Digital machine.
>
> Can anyone please suggest me a standard ELF library for download which
> takes care of the endianness of the host machine so that I can use the
> same library for all the host platforms?
Maybe GNU libbfd (part of binutils) will do the job.
--
Måns Rullgård
mru@kth.se
|
|
|
|
|