Re: editing ELF file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, May 5, 2008 at 11:44 PM, tejas khatiwala <socretez@xxxxxxxxx> wrote:
Hello,

This is not exactly relevant to Linux kernel but I'm gonna ask any way.

Is there any way I can modify a 64-bit ELF object file to make it look like 32-bit ELF object file and link it (using `ld`) with 32-bit ELF file?

How about doing it statically using libbfd ( Binutils ) !!
I believe it would  be a bit difficult but its fine.


I tried libelf but was unsuccessful. I had this pretty link http://people.freebsd.org/~jkoshy/download/libelf/article.html from Freebsd website and it seems like the libelf library on Freebsd system is not similar to that on Linux system as it complained for "vis.h" headerfile and few library calls such as `elf_setshstrndx()`

Any suggestions?

Thanks :-)

/tejas



--
Regards,
Sandeep.






"To learn is to change. Education is a process that changes the learner."

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux