https://bugs.llvm.org/show_bug.cgi?id=52534
Bug ID: 52534
Summary: Out of range R_X86_64_REX_GOTPCRELX relocation for
__preinit_array_start/end with linker script and high
image base
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Test to reproduce issue:
# REQUIRES: x86
# RUN: split-file %s %t
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t/t.s -o %t.o
# RUN: ld.lld --script %t/t.script %t.o -o /dev/null --image-base=0x80000000
#--- t.s
.global _start
_start:
movq __preinit_array_start@GOTPCREL(%rip),%rax
#--- t.script
SECTIONS {
.text : { *(.text); }
.preinit_array : { *(.preinit_array); }
}
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs