RX: ld rx-linux target FDPIC support
Adds FDPIC support to the RX linker script for the rx-linux target, defining necessary sections.
This patch modifies the linker script elf32rx_linux.sh to add support for FDPIC (Fully Distributable Position-Independent Code) on the RX architecture for the Linux target. It introduces new linker script sections for GOT, .rela.got.funcdesc, and .rofixup, and adjusts parameters like MAXPAGESIZE and COMMONPAGESIZE to accommodate FDPIC requirements.
In Details
This patch updates the linker script (emulparams/elf32rx_linux.sh) for the RX target on Linux to support FDPIC. It defines new linker script sections such as .got, .rela.got.funcdesc, and .rofixup which are essential for FDPIC code generation. It also configures constants like MAXPAGESIZE and COMMONPAGESIZE and enables the generation of shared library and PIE scripts, all crucial for enabling FDPIC linkage.
- RX
- A family of 32-bit microcontrollers developed by Renesas Electronics.
- ld
- The GNU linker, part of the GNU Binutils package. It combines object files and libraries to create an executable file or a shared library.
- 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.
- rx-linux
- A target triplet indicating the RX architecture combined with the Linux operating system.
- Linker Script
- A file that provides instructions to the linker on how to arrange sections from input object files into the output executable or library. It defines memory layouts, section placement, and other structural aspects.
- GOT
- Global Offset Table. A data structure used in position-independent code (PIC) to store addresses of dynamically resolved external functions and global variables.
- PIE
- Position-Independent Executable. An executable file that can be loaded and run at any memory address, similar to position-independent code used for shared libraries.