With these relocations, I'm able to build a simple "hello world" program for AArch64 Debian.
cant' this just be a one-liner?
return R_AARCH64_ADR_GOT_PAGE || R_AARCH64_LD64_GOT_LO12_NC || relocNeedsPlt();
Please convert to the new overflow checker helper once you commit that.
We may have more GOT relocations in the near future, like R_AARCH64_*_GOTOFF_*, R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTPAGE_LO15.
If we'll get there, we can switch over. I'm for simplicity until we need something more complicated.
Looks good, thank you!
LGTM with a nit.
Remove ()s. (We can assume that everybody knows that == takes precedence over ||.)