summaryrefslogtreecommitdiff
path: root/arch/sparc/vdso/vdso-layout.lds.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-10-25 20:36:19 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-25 20:36:19 +0300
commitcaf539cd1087f7c36b9c4df271575e9aee49fde5 (patch)
treeead06508c7fc91d86b0c0d302abd43110f32a056 /arch/sparc/vdso/vdso-layout.lds.S
parent44adbac8f7217040be97928cd19998259d9d4418 (diff)
downloadlinux-caf539cd1087f7c36b9c4df271575e9aee49fde5.tar.xz
sparc: Fix VDSO build with older binutils.
Older versions of bintutils do not allow symbol math across different segments on sparc: ==================== Assembler messages: 99: Error: operation combines symbols in different segments ==================== This is controlled by whether or not DIFF_EXPR_OK is defined in gas/config/tc-*.h and for sparc this was not the case until mid-2017. So we have to patch between %stick and %tick another way. Do what powerpc does and emit two versions of the relevant functions, one using %tick and one using %stick, and patch the symbols in the dynamic symbol table. Fixes: 2f6c9bf31a0b ("sparc: Improve VDSO instruction patching.") Reported-by: Meelis Roos <mroos@linux.ee> Tested-by: Meelis Roos <mroos@linux.ee> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/vdso/vdso-layout.lds.S')
-rw-r--r--arch/sparc/vdso/vdso-layout.lds.S3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/sparc/vdso/vdso-layout.lds.S b/arch/sparc/vdso/vdso-layout.lds.S
index ed36d49e1617..d31e57e8a3bb 100644
--- a/arch/sparc/vdso/vdso-layout.lds.S
+++ b/arch/sparc/vdso/vdso-layout.lds.S
@@ -73,9 +73,6 @@ SECTIONS
.text : { *(.text*) } :text =0x90909090,
- .tick_patch : { *(.tick_patch) } :text
- .tick_patch_insns : { *(.tick_patch_insns) } :text
-
/DISCARD/ : {
*(.discard)
*(.discard.*)