FRIDAY, OCTOBER 9, 2026
xtensa
xtensa: reserve relocation number for R_XTENSA_32_ABS
Reserves the relocation number 64 for R_XTENSA_32_ABS on Xtensa.
This commit reserves the relocation number 64 for the new R_XTENSA_32_ABS relocation type. This reservation is made ahead of the full implementation to allow other toolchain components to reference and use this number, ensuring consistency while the rest of the change is under review.
In Details
Reserves relocation number 64 for R_XTENSA_32_ABS. This relocation differs from R_XTENSA_32 by adhering to the generic SHT_RELA ABI (addend in r_addend only), whereas R_XTENSA_32 uses a partial_inplace howto. Reserving the number early allows toolchains to begin adopting it.
For Context
- R_XTENSA_32_ABS
- A relocation type for Xtensa processors that calculates a 32-bit absolute address using a symbol's address plus an addend stored in the relocation entry's r_addend field.
- relocation number
- A unique identifier assigned to each type of relocation (e.g., R_X86_64_PC32) within an object file format like ELF. These numbers are used by linkers to resolve symbol addresses.
- SHT_RELA
- A section type in ELF files that contains relocation entries with explicit addends. It is used for relocations that require more information than just the symbol and offset.
- partial_inplace
- A relocation handling method where part of the relocation information (the addend) is stored directly within the relocated data itself, rather than solely in the relocation entry.