This matches how MS link.exe interprets this relocation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM. Happy you caught this. (I think this is consistent with my assembler for adrp.)
Comment Actions
Yup, it is consistent with that. In practice, this was harmless at least when linking code generated by LLVM, as I think it never generated any negative offsets here - but it makes it clear that we can only use a range of up to +1 MB, not 2.