The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Editing file rahul303 Shell Programming and Scripting 4 09-23-2007 07:49 PM
Editing File using awk/sed Mohammed Shell Programming and Scripting 4 05-16-2007 08:00 AM
Editing the File using Awk awk_beginner Shell Programming and Scripting 3 04-06-2007 07:43 AM
Help with editing file dsravan Shell Programming and Scripting 4 01-31-2007 09:59 AM
File editing using awk rinku11 Shell Programming and Scripting 2 11-23-2006 07:34 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2008
Registered User
 

Join Date: May 2008
Posts: 1
editing ELF file

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?

I tried libelf but was unsuccessful. I had this pretty link http://people.freebsd.org/~jkoshy/do...f/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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-17-2008
Registered User
 

Join Date: Dec 2007
Posts: 6
Just a thought, could you try dissassembling it and then re-assemble/re-link?
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0