Hi,
Does someone know how to convert a relocatable ELF file into an executable
ELF file?
Any help will be appreciated
Thank you
Tien Nghiem
ELF file
Re: ELF file
"Tien Nghiem" <tnghiem@oerlikon.ca> wrote in
news:a9mjha$29b$1@inn.qnx.com:
barfs on relocatable ELF (for unknown reason) you could just use spatch to
modify the attribute in the ELF header. Take a look at the elf.h file and
the ELF spec to find the right position. It should be the e_type in the
header, and is should be set to ET_REL for relocatable or ET_EXEC for
executable.
Of course this assumes the BDM only cares about the sym info in the file.
--
Cheers,
Adam
QNX Software Systems Ltd.
[ amallory@qnx.com ]
---------------------------------------------------
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
--Peter J. Schoenster <pschon@baste.magibox.net>
news:a9mjha$29b$1@inn.qnx.com:
If you wish to do this for a BDM (to extract the sym info) and you BDMDoes someone know how to convert a relocatable ELF file into an
executable ELF file?
barfs on relocatable ELF (for unknown reason) you could just use spatch to
modify the attribute in the ELF header. Take a look at the elf.h file and
the ELF spec to find the right position. It should be the e_type in the
header, and is should be set to ET_REL for relocatable or ET_EXEC for
executable.
Of course this assumes the BDM only cares about the sym info in the file.
--
Cheers,
Adam
QNX Software Systems Ltd.
[ amallory@qnx.com ]
---------------------------------------------------
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
--Peter J. Schoenster <pschon@baste.magibox.net>