Skip to content

Conversation

@higuoxing
Copy link
Member

This patch adds support for R_X86_64_SIZE32/R_X86_64_SIZE64 relocation types by introducing edge kinds x86_64::Size32/x86_64::Size64. The calculation for these relocations is: Z + A, where:

Z - Represents the size of the symbol whose index resides in the
relocation entry.

A - Represents the addend used to compute the value of the relocation
field.

Ref: System V Application Binary Interface x86-64

@higuoxing higuoxing requested review from lhames and maksfb September 26, 2024 04:30
@higuoxing higuoxing marked this pull request as draft September 26, 2024 05:04
This patch adds support for R_X86_64_SIZE32/R_X86_64_SIZE64 relocation
types by introducing edge kinds x86_64::Size32/x86_64::Size64. The
calculation for these relocations is: Z + A, where:

Z - Represents the size of the symbol whose index resides in the
    relocation entry.

A - Represents the addend used to compute the value of the relocation
    field.

Ref: [System V Application Binary Interface x86-64](https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build)
@higuoxing higuoxing marked this pull request as ready for review September 26, 2024 09:02
Copy link
Contributor

@lhames lhames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks very much for implementing this @higuoxing!

@higuoxing higuoxing merged commit 210140a into llvm:main Oct 16, 2024
8 checks passed
DanielCChen pushed a commit to DanielCChen/llvm-project that referenced this pull request Oct 16, 2024
This patch adds support for R_X86_64_SIZE32/R_X86_64_SIZE64 relocation
types by introducing edge kinds x86_64::Size32/x86_64::Size64. The
calculation for these relocations is: Z + A, where:

Z - Represents the size of the symbol whose index resides in the
    relocation entry.

A - Represents the addend used to compute the value of the relocation
    field.

Ref: [System V Application Binary Interface
x86-64](https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build)
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.

2 participants