This patch covers only the case where no DSO is involved.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| ELF/Target.cpp | ||
|---|---|---|
| 669–672 | I'd do this if (!isInt<28>(X)) {
if (Type == R_AARCH64_JUMP26)
error("Relocation R_AARCH64_JUMP26 out of range");
error("Relocation R_AARCH64_CALL26 out of range");
} | |
| test/elf2/aarch64-relocs.s | ||
|---|---|---|
| 62 | It's just to make things a bit more interesting with a non-zero addend. | |
I'd do this
if (!isInt<28>(X)) { if (Type == R_AARCH64_JUMP26) error("Relocation R_AARCH64_JUMP26 out of range"); error("Relocation R_AARCH64_CALL26 out of range"); }