This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
loader/linker for object code
- From: Jack Andrews <effbiae at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 3 Mar 2016 12:43:36 +1100
- Subject: loader/linker for object code
- Authentication-results: sourceware.org; auth=none
given a binary, b and a function in obj.c that only depends on symbols in b:
$ gcc -c obj.c
It seems reasonable that b could:
- load obj.o with mmap()
- relocate obj code
- resolve symbols using b exports
- call the function in obj.o
is there a loader out there that does this? or should I poke about in
binutils to find the secrets?