[llvm-bugs] [Bug 52534] New: Out of range R_X86_64_REX_GOTPCRELX relocation for __preinit_array_start/end with linker script and high image base
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 17 07:47:25 PST 2021
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: unassignedbugs at nondot.org
Reporter: anng.sw at gmail.com
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211117/ccb28b84/attachment-0001.html>
More information about the llvm-bugs
mailing list