ELF file

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

“Tien Nghiem” <tnghiem@oerlikon.ca> wrote in
news:a9mjha$29b$1@inn.qnx.com:

Does someone know how to convert a relocatable ELF file into an
executable ELF file?

If you wish to do this for a BDM (to extract the sym info) and you BDM
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>