binutils Newspaper
NOVEMBER 30, 2026
pe/coff — Proposed

PE/COFF: R_*_ABS / R_*_NONE handling

Series of patches to improve handling of R_*_ABS and R_*_NONE relocations in PE/COFF files.

This is the cover letter for a series of patches addressing the handling of R_ABS and RNONE relocation types within the PE/COFF file format support in binutils. These relocations are similar to ELF’s R*_NONE and can be used for various purposes without altering the binary. The series aims to improve their processing and introduces necessary test cases.

In Details

This is the cover letter for a series of three patches intended to improve the binutils support for PE/COFF files concerning relocations of type R_*_ABS and R_*_NONE. These relocations, analogous to ELF's R_*_NONE, do not modify the binary's content. The series introduces support for R_AMD64_ABS in bfd/coff-x86_64.c, modifies the PE linker (ld/pe-dll.c) to ignore these types of relocations, and refactors relocation checking using in_reloc_p(). A new test case is also added.

For Context
PE/COFF
Portable Executable/Common Object File Format, the executable file format used by Windows operating systems. Binutils' ld supports this format for Windows targets.
relocation
A modification of a program or its data in the executable or library by the linker or loader to resolve symbolic references and make it runnable at its final address. Relocation types specify how the address or value should be calculated.
R_*_ABS / R_*_NONE
Relocation types that do not alter the binary's content. R_*_ABS typically refers to absolute symbol relocations, while R_*_NONE indicates no relocation is needed. These are analogous to ELF's R_X86_64_NONE.
ELF
Executable and Linkable Format, a common standard file format for object files, executables, and shared libraries in Unix-like operating systems. Binutils fully supports ELF.
Filed Under: linkerPE/COFFrelocationBFD