Skip to content

Remove [GT]PREL_[IS] internal binutils relocations#199

Merged
aswaterman merged 1 commit into
masterfrom
remove-internal-binutils-relocs
Jul 13, 2021
Merged

Remove [GT]PREL_[IS] internal binutils relocations#199
aswaterman merged 1 commit into
masterfrom
remove-internal-binutils-relocs

Conversation

@jrtc27

@jrtc27 jrtc27 commented Jul 9, 2021

Copy link
Copy Markdown
Collaborator

These have never been emitted by GCC or Clang, nor has there ever been
assembly syntax in either toolchain to create them. These are fake
internal relocations inside binutils used as part of its implementation
of linker relaxation, and so should not be part of the psABI. They
should be free to be reallocated for psABI uses (which can include
reintroducing them, if there is a need to expose them to assembly and
code generation).

Closes: #160

These have never been emitted by GCC or Clang, nor has there ever been
assembly syntax in either toolchain to create them. These are fake
internal relocations inside binutils used as part of its implementation
of linker relaxation, and so should not be part of the psABI. They
should be free to be reallocated for psABI uses (which can include
reintroducing them, if there is a need to expose them to assembly and
code generation).

Closes: #160
@jrtc27 jrtc27 force-pushed the remove-internal-binutils-relocs branch from 3e012b8 to 297cac7 Compare July 9, 2021 16:50
@jrtc27 jrtc27 added this to the First Release DoD milestone Jul 9, 2021
@aswaterman

Copy link
Copy Markdown
Contributor

Sounds right to me.

@sorear

sorear commented Jul 9, 2021

Copy link
Copy Markdown
Collaborator

LGTM

1 similar comment
@kito-cheng

Copy link
Copy Markdown
Collaborator

LGTM

@aswaterman

Copy link
Copy Markdown
Contributor

I think that's enough LGTMs!

@aswaterman aswaterman merged commit 44f98e0 into master Jul 13, 2021
@aswaterman aswaterman deleted the remove-internal-binutils-relocs branch July 13, 2021 09:32
asb added a commit to llvm/llvm-project that referenced this pull request Nov 4, 2021
These relocations have been removed from the psABI doc in
riscv-non-isa/riscv-elf-psabi-doc#199. This
patch simply updates llvm/include/llvm/BinaryFormat/ELFRelocs/RISCV.def
to match.

Differential Revision: https://reviews.llvm.org/D112999
mem-frob pushed a commit to draperlaboratory/hope-llvm-project that referenced this pull request Oct 7, 2022
These relocations have been removed from the psABI doc in
riscv-non-isa/riscv-elf-psabi-doc#199. This
patch simply updates llvm/include/llvm/BinaryFormat/ELFRelocs/RISCV.def
to match.

Differential Revision: https://reviews.llvm.org/D112999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPREL and TPREL register use

4 participants