Skip to content

Commit

Permalink
[ELF] Handle R_ARM_MOVT_PREL and R_ARM_PREL31 as non-address-taking r…
Browse files Browse the repository at this point in the history
…elocations

This is an attempt to fix #545 though
I don't know if this is a correct fix.
  • Loading branch information
rui314 committed Jun 19, 2022
1 parent 00c1655 commit 5294300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/arch-arm32.cc
Expand Up @@ -427,7 +427,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
case R_ARM_PREL31: {
Action table[][4] = {
// Absolute Local Imported data Imported code
{ ERROR, NONE, ERROR, ERROR }, // DSO
{ ERROR, NONE, ERROR, PLT }, // DSO
{ ERROR, NONE, COPYREL, PLT }, // PIE
{ NONE, NONE, COPYREL, PLT }, // PDE
};
Expand Down

0 comments on commit 5294300

Please sign in to comment.