use hidden visibility for call from dlsym to internal __dlsym

This commit is contained in:
Rich Felker 2015-04-14 11:39:11 -04:00
parent cbc02ba23c
commit 72b25ddb77
11 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,5 @@
.global dlsym
.hidden __dlsym
.type dlsym,%function
dlsym:
mov x2,x30

View File

@ -1,5 +1,6 @@
.text
.global dlsym
.hidden __dlsym
.type dlsym,%function
dlsym:
mov r2,lr

View File

@ -1598,6 +1598,7 @@ int __dladdr(const void *addr, Dl_info *info)
return 1;
}
__attribute__((__visibility__("hidden")))
void *__dlsym(void *restrict p, const char *restrict s, void *restrict ra)
{
void *res;

View File

@ -1,5 +1,6 @@
.text
.global dlsym
.hidden __dlsym
.type dlsym,@function
dlsym:
push (%esp)

View File

@ -1,5 +1,6 @@
.global dlsym
.hidden __dlsym
.type dlsym,@function
dlsym:
brid __dlsym@PLT
brid __dlsym
add r7, r15, r0

View File

@ -1,5 +1,6 @@
.set noreorder
.global dlsym
.hidden __dlsym
.type dlsym,@function
dlsym:
lui $gp, %hi(_gp_disp)

View File

@ -1,5 +1,6 @@
.global dlsym
.hidden __dlsym
.type dlsym,@function
dlsym:
l.j plt(__dlsym)
l.j __dlsym
l.ori r5, r9, 0

View File

@ -1,5 +1,6 @@
.text
.global dlsym
.hidden __dlsym
.type dlsym,@function
dlsym:
mflr 5 # The return address is arg3.

View File

@ -1,5 +1,6 @@
.text
.global dlsym
.hidden __dlsym
.type dlsym, @function
dlsym:
mov.l L1, r0
@ -7,4 +8,4 @@ dlsym:
1: mov.l @r15, r6
.align 2
L1: .long __dlsym@PLT-(1b-.)
L1: .long __dlsym-(1b-.)

View File

@ -1,5 +1,6 @@
.text
.global dlsym
.hidden __dlsym
.type dlsym,@function
dlsym:
mov (%rsp),%rdx

View File

@ -1,5 +1,6 @@
.text
.global dlsym
.hidden __dlsym
.type dlsym,@function
dlsym:
mov (%rsp),%rdx