On Mon, May 5, 2008 at 11:44 PM, tejas khatiwala <[EMAIL PROTECTED]> 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<http://people.freebsd.org/%7Ejkoshy/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."

Reply via email to