-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.

Description
I tried to link some code to large address using custom linker script but it says 'relocation R_X86_64_32S out of range'
linker script:
SECTIONS
{
. = 0xffff800000000000;
.text : { *(.text) }
.data : { *(.data) }
.bss : { *(.bss) }
}
command: rustc main.rs -C link-arg='--script=link.ld' -C code-model=large
Meta
rustc --version --verbose
:
rustc 1.44.0-nightly (1edd389cc 2020-03-23)
Backtrace
<backtrace>
phip1611
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.