tile: support simulator notification for ET_DYN objects
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 7 Aug 2013 18:07:03 +0000 (14:07 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 13 Aug 2013 20:26:17 +0000 (16:26 -0400)
commit0c1d1917c547c8e787fb58e20e2de577453c980c
tree35673bc9af034c859132f7f6c90edb1937997e7e
parent70d2b5958a04139fbffecf27791cf913dce8038e
tile: support simulator notification for ET_DYN objects

The tile code notifies the simulator of new ET_EXEC objects starting
to execute so that tracing code can properly annotate the objects.
However, we didn't support ET_DYN executables like ld.so, so we
didn't properly load symbols, etc.  This change enables that support;
we use a variant of the SIM_CONTROL_DLOPEN simulator notification
that newer simulators will recognize and use to set the base address
for the next SIM_CONTROL_OS_EXEC notification.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/mm/elf.c