binutils Newspaper
NOVEMBER 30, 2026
rx — Proposed

RX: gas rx-linux target FDPIC support

Adds FDPIC support to the RX gas assembler for the rx-linux target, enabling position-independent code generation.

This patch series introduces support for FDPIC (Fully Distributable PIC) to the RX gas assembler, specifically for the rx-linux target. It modifies the assembler’s configuration files, including parse definitions, C source files, and header files, to recognize and handle FDPIC-specific relocations and options, facilitating the creation of position-independent executables and shared libraries.

In Details

This patch series targets the GNU Assembler's RX backend to add support for FDPIC (Fully Distributable Position-Independent Code) on the rx-linux target. Changes span gas configuration files (rx-parse.y, tc-rx.c, tc-rx.h, rx-defs.h) and include new relocations, options (--fdpic), and logic to handle FDPIC requirements for code generation and assembly. This enables the creation of position-independent binaries for the RX architecture on Linux.

For Context
RX
A family of 32-bit microcontrollers developed by Renesas Electronics.
gas
The GNU Assembler, part of the GNU Binutils package. It translates assembly language code into machine code.
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.
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.
PIC
Position-Independent Code. Code that can be loaded and executed at any memory address without modification. This is essential for shared libraries.
Filed Under: binutilsrxgasfdpicposition-independent code