fix sh build regressions in asm
authorRich Felker <dalias@aerifal.cx>
Sat, 18 Apr 2015 02:16:30 +0000 (22:16 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 18 Apr 2015 02:18:06 +0000 (22:18 -0400)
even hidden functions need @PLT symbol references; otherwise an
absolute address is produced instead of a PC-relative one.

src/ldso/sh/dlsym.s
src/thread/sh/syscall_cp.s

index 15a8dce8b8d8be1afb38cba3fbcf9d36cc133a62..bc8fd6796d5a8d54747f4732dffc8da1c014a183 100644 (file)
@@ -8,4 +8,4 @@ dlsym:
 1:      mov.l @r15, r6
 
 .align 2
-L1:    .long __dlsym-(1b-.)
+L1:    .long __dlsym@PLT-(1b-.)
index c783ca053e66c5766e5b231c24fccb132359f3fa..6b28ddf05a56c41d456b90b3d93cb156bfe7240a 100644 (file)
@@ -22,7 +22,7 @@ __cp_begin:
 1:
 
 .align 2
-L1:    .long __cancel-(1b-.)
+L1:    .long __cancel@PLT-(1b-.)
 
 2:     mov   r5, r3
        mov   r6, r4