about summary refs log tree commit diff
path: root/src/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-04-17 23:23:05 -0400
committerRich Felker <dalias@aerifal.cx>2015-04-17 23:23:05 -0400
commit326e126faf91e2c18a8a656fbb0daab54b1818d6 (patch)
treeabec706ee5d6fc2e041d6227065433a4a1aabf5d /src/ldso
parent02e5d564217cf2c92418f1cb5304754cfc9d57ff (diff)
downloadmusl-326e126faf91e2c18a8a656fbb0daab54b1818d6.tar.gz
musl-326e126faf91e2c18a8a656fbb0daab54b1818d6.tar.xz
musl-326e126faf91e2c18a8a656fbb0daab54b1818d6.zip
ensure debugger hook for dynamic linker does not point to a PLT slot
this change is made in preparation to support linking without
-Bsymbolic-functions.
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/dynlink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 122fc49e..9f91a738 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -998,10 +998,12 @@ static void do_init_fini(struct dso *p)
 	if (need_locking) pthread_mutex_unlock(&init_fini_lock);
 }
 
-void _dl_debug_state(void)
+static void dl_debug_state(void)
 {
 }
 
+weak_alias(dl_debug_state, _dl_debug_state);
+
 void __reset_tls()
 {
 	pthread_t self = __pthread_self();
@@ -1369,7 +1371,7 @@ _Noreturn void __dls3(size_t *sp)
 	runtime = 1;
 
 	debug.ver = 1;
-	debug.bp = _dl_debug_state;
+	debug.bp = dl_debug_state;
 	debug.head = head;
 	debug.base = ldso.base;
 	debug.state = 0;