--- Source/JavaScriptCore/offlineasm/arm64.rb.orig 2019-02-12 11:21:03 UTC +++ Source/JavaScriptCore/offlineasm/arm64.rb @@ -1034,7 +1034,7 @@ class Instruction $asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, #{operands[0].asmLabel}@GOTPAGEOFF]" # On Linux, use ELF GOT relocation specifiers. - $asm.putStr("#elif OS(LINUX)") + $asm.putStr("#elif OS(LINUX) || OS(FREEBSD) || OS(BSDSUNIX)") $asm.puts "adrp #{operands[1].arm64Operand(:quad)}, :got:#{operands[0].asmLabel}" $asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, :got_lo12:#{operands[0].asmLabel}]"