SYMTAB and DYNSYM tables relationship question
Mike Frysinger
vapier@gentoo.org
Sat Jul 3 16:31:00 GMT 2010
On Saturday, July 03, 2010 03:34:02 Vladimir Simonov wrote:
> In reality all not so simple - our dos-like OS EXE requires TEXT and PLT
> sections relocation (a program works in physical address space and can't
> be loaded at desired address).
doesnt sound complicated
> Investigations show that "strip --strip-all" and even "strip
> --strip-unneeded" remove symtab and necessary relocation sections. As I
> understand EXE's "text" relocation can't be done without symtab because
> relocation entry references symtab.
erm, no, all the relocation information you should need are in the .rel.* or
.rela.* sections. not that you should be looking up information by section
name; use the normal DT_REL* and related tags to locate them.
perhaps you should grab a copy of the ELF spec and review how a compliant ELF
is supposed to work.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20100703/0cde5c6d/attachment.sig>
More information about the Binutils
mailing list