Skip to content

[AArch64] Fix regression in abs relocation#1334

Open
Cédric Tessier (nezetic) wants to merge 1 commit into
qualcomm:mainfrom
nezetic:fix-aarch64-abs-reloc
Open

[AArch64] Fix regression in abs relocation#1334
Cédric Tessier (nezetic) wants to merge 1 commit into
qualcomm:mainfrom
nezetic:fix-aarch64-abs-reloc

Conversation

@nezetic

Copy link
Copy Markdown
Contributor

Fix a regression in aarch64 abs relocation.

The pauth path changed the original non-pauth logic, and this was never intended.

Signed-off-by: Cedric Tessier <ctessier@qti.qualcomm.com>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The revised logic makes sense to me.

I think I'd reorganize the code a bit to keep the ptrauth relocations closer to the non-ptrauth counterparts. There are some weird inconsistencies, like rsym && rsym->isWeak() && rsym->isUndef() vs. rsym && rsym->isWeakUndef() && (pParent.config().codeGenType() == LinkerConfig::Exec).

I'd like to see testcases for absolute relocations against PLT symbols, and against weak undefined symbols, with and without ptrauth,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we accompany this with a build/run test ?

We have support for running tests.

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.

3 participants