xtensa: implement R_XTENSA_32_ABS
Adds support for the R_XTENSA_32_ABS relocation type for Xtensa processors.
This change implements the R_XTENSA_32_ABS relocation type, which calculates a 32-bit absolute address as Symbol + Addend. Unlike the existing R_XTENSA_32, this new type follows the generic SHT_RELA ABI by storing the addend solely in r_addend, not in the relocated word. This allows LLVM to emit it for 32-bit absolute data and enables linking with objects using R_XTENSA_32. New command-line options control its usage.
In Details
Implements R_XTENSA_32_ABS, a 32-bit absolute relocation. It differs from R_XTENSA_32 in that its addend is strictly from r_addend (per generic SHT_RELA ABI), rather than being partially encoded in the relocated word (partial_inplace howto). This change unifies handling with R_XTENSA_32 for linking and coalescing, and adds --abs32-rela and --enable-r-xtensa-32-abs options to control its emission.
- 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.
- 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.
- ABI
- Application Binary Interface. Defines how software components interact at the binary level, including function calling conventions, data structures, and object file formats.