summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios/jmpbuf-unwind.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2013-03-22 17:48:51 +0100
committerBernd Schmidt <bernds@codesourcery.com>2013-03-22 18:01:33 +0100
commit6239e4c69d7fb09fb2313c0947a28127e1321631 (patch)
tree05b1f8d65d63495489c6aa715b49ab8807debe06 /libc/sysdeps/linux/nios/jmpbuf-unwind.h
parent697427cc42ca3c6794dc26f3a379866de71bb91b (diff)
Fix some fragileness in dlopen/do_dlopen wrapper & worker pair.
do_dlopen contains __builtin_return_address to determine from whence it was called, and uses that to determine which dynamic object's data it should use to start the search. (In the bug I was tracking, this related to whether the application's RPATH was used or not.) For that to work, it has to have been inlined into the wrapper function. As it happens, it wasn't being inlined. That's an unfortunate compiler behaviour, but it isn't wrong and shouldn't have caused dlopen to fail. This patch changes things so the wrapper function determines the return address, and passes it to the worker. If the worker's inlined, the generated code should be exactly the same as before. Signed-off-by: Nathan Sidwell <nathan@codesourcery.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Diffstat (limited to 'libc/sysdeps/linux/nios/jmpbuf-unwind.h')
0 files changed, 0 insertions, 0 deletions