When compiling for the RWPI relocation model [1], the debug information is wrong:
- the debug location is described as { DW_OP_addr Var } instead of { DW_OP_constNu Var DW_OP_bregX 0 DW_OP_plus }
- the relocation type [2] is R_ARM_ABS32 instead of R_ARM_SBREL32
References:
[1] ARM Read-Write Position Independence: https://github.com/ARM-software/abi-aa/blob/main/aapcs32/aapcs32.rst#read-write-position-independence-rwpi
[2] ARM ELF32 relocation types: https://github.com/ARM-software/abi-aa/blob/main/aaelf32/aaelf32.rst#5612relocation-types