RX: rx-linux target FDPIC support
Adds FDPIC relocation types and flags to the ELF header definitions for the RX architecture on Linux.
This patch updates the ELF definitions for the RX architecture on Linux to include support for FDPIC (Fully Distributable Position-Independent Code). It adds new relocation types related to GOT (Global Offset Table), PLT (Procedure Linkage Table), and other FDPIC-specific mechanisms, as well as defines flags for PIC and FDPIC in the ELF header.
In Details
This patch is part of a series to enable FDPIC support for the RX target. It specifically modifies include/elf/rx.h to define new ELF relocation types necessary for FDPIC, such as R_RX_GOT, R_RX_PLT, and various GOT-related entries. It also introduces EF_RX_PIC and EF_RX_FDPIC flags to the ELF header to indicate the code's position-independent nature.
- RX
- A family of 32-bit microcontrollers developed by Renesas Electronics.
- FDPIC
- Fully Distributable Position-Independent Code. A system for generating position-independent code that can be loaded and executed at any memory address without modification, including support for shared libraries and position-independent data sections.
- ELF
- Executable and Linkable Format. A common standard file format for executables, object code, shared libraries, and core dumps on Unix-like operating systems.
- Relocation
- The process by which the linker or loader adjusts memory addresses in code or data to their final locations in memory. This is necessary for position-independent code and linking object files.
- GOT
- Global Offset Table. A data structure used in position-independent code (PIC) to store addresses of dynamically resolved external functions and global variables.
- PLT
- Procedure Linkage Table. A table used in ELF executables and shared libraries to resolve addresses of external functions at runtime, typically in conjunction with the GOT.