Line 0
Link Here
|
|
|
1 |
--- Source/JavaScriptCore/offlineasm/arm64.rb.orig 2018-06-01 22:16:58 UTC |
2 |
+++ Source/JavaScriptCore/offlineasm/arm64.rb |
3 |
@@ -945,7 +945,7 @@ class Instruction |
4 |
$asm.puts "ldr #{operands[1].arm64Operand(:ptr)}, [#{operands[1].arm64Operand(:ptr)}, #{operands[0].asmLabel}@GOTPAGEOFF]" |
5 |
|
6 |
# On Linux, use ELF GOT relocation specifiers. |
7 |
- $asm.putStr("#elif OS(LINUX)") |
8 |
+ $asm.putStr("#elif OS(LINUX) || OS(FREEBSD)") |
9 |
$asm.puts "adrp #{operands[1].arm64Operand(:ptr)}, :got:#{operands[0].asmLabel}" |
10 |
$asm.puts "ldr #{operands[1].arm64Operand(:ptr)}, [#{operands[1].arm64Operand(:ptr)}, :got_lo12:#{operands[0].asmLabel}]" |
11 |
|