Reading Elf files on Digital...
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Reading Elf files on Digital...




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Reading Elf files on Digital...  
Milan Saxena


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-04 12:59 PM

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





[ Post a follow-up to this message ]



    Re: Reading Elf files on Digital...  
Måns Rullgård


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-04 12:59 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:09 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register