diff options
-rw-r--r-- | crt/rcrt1.c | 1 | ||||
-rw-r--r-- | src/ldso/dynlink.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/crt/rcrt1.c b/crt/rcrt1.c index 5ac612db..9be117fd 100644 --- a/crt/rcrt1.c +++ b/crt/rcrt1.c @@ -9,6 +9,7 @@ void _fini() __attribute__((weak)); _Noreturn int __libc_start_main(int (*)(), int, char **, void (*)(), void(*)(), void(*)()); +__attribute__((__visibility__("hidden"))) _Noreturn void __dls2(unsigned char *base, size_t *sp) { __libc_start_main(main, *sp, (void *)(sp+1), _init, _fini, 0); diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index cab30089..8025116f 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -1330,6 +1330,7 @@ static void update_tls_size() * linker itself, but some of the relocations performed may need to be * replaced later due to copy relocations in the main program. */ +__attribute__((__visibility__("hidden"))) void __dls2(unsigned char *base, size_t *sp) { if (DL_FDPIC) { |