Skip to content

Implement -Z relax-elf-relocations=yes|no#78605

Merged
bors merged 1 commit into
rust-lang:masterfrom
nox:relax-elf-relocations
Nov 2, 2020
Merged

Implement -Z relax-elf-relocations=yes|no#78605
bors merged 1 commit into
rust-lang:masterfrom
nox:relax-elf-relocations

Conversation

@nox

@nox nox commented Oct 31, 2020

Copy link
Copy Markdown
Contributor

This lets rustc users tweak whether the linker should relax ELF relocations without recompiling a whole new target with its own libcore etc.

This lets rustc users tweak whether the linker should relax ELF relocations,
namely whether it should emit R_X86_64_GOTPCRELX relocations instead of
R_X86_64_GOTPCREL, as the former is allowed by the ABI to be further
optimised. The default value is whatever the target defines.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @varkor

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 31, 2020
@eddyb

eddyb commented Nov 1, 2020

Copy link
Copy Markdown
Contributor

r? @nagisa cc @alexcrichton

@rust-highfive rust-highfive assigned nagisa and unassigned varkor Nov 1, 2020
@nagisa

nagisa commented Nov 1, 2020

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Nov 1, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 6febaf2 has been approved by nagisa

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 1, 2020
m-ou-se added a commit to m-ou-se/rust that referenced this pull request Nov 1, 2020
Implement -Z relax-elf-relocations=yes|no

This lets rustc users tweak whether the linker should relax ELF relocations without recompiling a whole new target with its own libcore etc.
@bors

bors commented Nov 2, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 6febaf2 with merge 3d0682b...

@bors

bors commented Nov 2, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: nagisa
Pushing 3d0682b to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 2, 2020
@bors bors merged commit 3d0682b into rust-lang:master Nov 2, 2020
@rustbot rustbot added this to the 1.49.0 milestone Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants