linux-user: Load symbols from the interpreter.
commit682674b84189d0cd1426eb9b9d4b6b0d4c24be52
authorRichard Henderson <rth@twiddle.net>
Tue, 27 Jul 2010 17:25:33 +0000 (27 10:25 -0700)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 29 Jul 2010 06:32:28 +0000 (29 08:32 +0200)
treec60ef0224373ef370ae5ff79a3703d44369819d7
parent991f8f0c91d65cebf51fa931450e02b0d5209012
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>
linux-user/elfload.c