diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-30 14:16:18 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-30 14:16:18 -0400 |
commit | 47cc1490e0a610bd74a31c6699a3859a823da9b3 (patch) | |
tree | 11ae0f161ebcae7547f3914a08259b0e513ef903 /ports/sysdeps/tile/dl-runtime.c | |
parent | 017678433caae358b1782a2438b10e1ed510a8ad (diff) | |
download | glibc-47cc1490e0a610bd74a31c6699a3859a823da9b3.tar glibc-47cc1490e0a610bd74a31c6699a3859a823da9b3.tar.gz glibc-47cc1490e0a610bd74a31c6699a3859a823da9b3.tar.bz2 glibc-47cc1490e0a610bd74a31c6699a3859a823da9b3.zip |
Invoke DL_AFTER_LOAD if defined
This hook is useful for any arch-specific functionality that
should be done on loaded objects. For the tile architecture,
the hook is already provided (though we switch to using the new
macro name with this commit) and implements a simulator notifier
so that the simulator can load Elf symbols to match the object
and generate better error messages for PC's.
Also, remove a spurious definition of DL_UNMAP in dl-runtime.c
Diffstat (limited to 'ports/sysdeps/tile/dl-runtime.c')
-rw-r--r-- | ports/sysdeps/tile/dl-runtime.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/sysdeps/tile/dl-runtime.c b/ports/sysdeps/tile/dl-runtime.c index 0aa211db17..6864c3ac96 100644 --- a/ports/sysdeps/tile/dl-runtime.c +++ b/ports/sysdeps/tile/dl-runtime.c @@ -30,7 +30,7 @@ /* Support notifying the simulator about new objects. */ void internal_function -_dl_arch_map_object (struct link_map *l) +_dl_after_load (struct link_map *l) { int shift; @@ -75,5 +75,3 @@ _dl_unmap (struct link_map *l) __munmap ((void *) l->l_map_start, l->l_map_end - l->l_map_start); } - -#define DL_UNMAP(map) _dl_unmap (map) |