linux - Symbols, ELF and How To Link in Memory -


as far understand it, elf format names external symbols linked linker. want loading unlinked elf , link in memory , dynamically.

can explain me necessary details how linking down , changes in memory?

[update]

to clarify , defend question being broad again here more information.

  1. i understand jump addresses , can obtain jump addresses in memory functions using c. loading c program addresses.
  2. the parameter passing known , hard wired there nothing it.
  3. within asm or c o-file (elf-format) find symbol table should related problem not know in op codes have adapt , how.

and please not tell me read gnu libc stuff. not problem face. neither want dig format nor want fiddle down op code parsing stuff.

so how symbol table handled in memory , expressed? should simple answer knows how done.

elf divided sections onto disk, segments in memory.

basically loading process means doing section segments mapping, , process fixups. (including global tables got)

by symbol loading different way of loading. first process, , searches symbol in special tables.

anyway best free resource quick insight read "linkers , loaders" free ebook book j. irvine.


Popular posts from this blog