diff options
author | Richard Henderson <rth@twiddle.net> | 2010-07-27 10:25:33 -0700 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2010-07-29 08:32:28 +0200 |
commit | 682674b84189d0cd1426eb9b9d4b6b0d4c24be52 (patch) | |
tree | c60ef0224373ef370ae5ff79a3703d44369819d7 /nbd.c | |
parent | 991f8f0c91d65cebf51fa931450e02b0d5209012 (diff) |
linux-user: Load symbols from the interpreter.
First, adjust load_symbols to accept a load_bias parameter. At the same
time, read the entire section header table in one go, use pread instead
f lseek+read for the symbol and string tables, and properly free
allocated structures on error exit paths.
Second, adjust load_elf_interp to compute load_bias. This requires
finding out the built-in load addresses. Which allows us to honor a
pre-linked interpreter image when possible, and eliminate the hard-coded
INTERP_MAP_SIZE value.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'nbd.c')
0 files changed, 0 insertions, 0 deletions