tile: improve simulator notification for relative paths in dlopen
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 2 Nov 2012 17:49:42 +0000 (13:49 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 6 Nov 2012 14:24:44 +0000 (09:24 -0500)
commite7776fefa76a5815493b463049fd7ced67cb31a2
tree10e61e5a4ea81e9553d33868e6167637de505704
parentcd84016efe83d92ee3903fef37f79ca2bafb3985
tile: improve simulator notification for relative paths in dlopen

Normally, the simulator is notified of absolute pathnames by the
_dl_load_hook hook.  However, when a relative pathname is used, the
simulator may not know that the relative path matches a path that
it could figure out in the file system that it has access to.
Instead we provide a simplified version of the realpath function
so we can pass a plausible absolute pathname to the simulator.

Since we're now doing more work at object load time, we also add
a guard so we do no work at all if we're not running on the simulator.
ports/ChangeLog.tile
ports/sysdeps/tile/dl-runtime.c