make _dlstart_c function use hidden visibility
authorRich Felker <dalias@aerifal.cx>
Tue, 14 Apr 2015 04:28:30 +0000 (00:28 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 14 Apr 2015 04:28:30 +0000 (00:28 -0400)
otherwise the call/jump from the crt_arch.h asm may not resolve
correctly without -Bsymbolic-functions.

src/ldso/dlstart.c

index 5bd2a080bf4a0132076c012b5f016ad3f0a95de9..46f4a5c6c2bd7c4a1c5e9342ee918af09dceb02e 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "crt_arch.h"
 
+__attribute__((__visibility__("hidden")))
 void _dlstart_c(size_t *sp, size_t *dynv)
 {
        size_t i, aux[AUX_CNT], dyn[DYN_CNT];