From 33615cd5ca4d40286d3000a941f96c5bebdf39fb Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 17 Apr 2015 22:16:30 -0400 Subject: [PATCH] fix sh build regressions in asm even hidden functions need @PLT symbol references; otherwise an absolute address is produced instead of a PC-relative one. --- src/ldso/sh/dlsym.s | 2 +- src/thread/sh/syscall_cp.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ldso/sh/dlsym.s b/src/ldso/sh/dlsym.s index 15a8dce8..bc8fd679 100644 --- a/src/ldso/sh/dlsym.s +++ b/src/ldso/sh/dlsym.s @@ -8,4 +8,4 @@ dlsym: 1: mov.l @r15, r6 .align 2 -L1: .long __dlsym-(1b-.) +L1: .long __dlsym@PLT-(1b-.) diff --git a/src/thread/sh/syscall_cp.s b/src/thread/sh/syscall_cp.s index c783ca05..6b28ddf0 100644 --- a/src/thread/sh/syscall_cp.s +++ b/src/thread/sh/syscall_cp.s @@ -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 -- 2.25.1