binutils Newspaper
NOVEMBER 30, 2026
bfd/x86-64 — Proposed

bfd/x86-64: support COFF relocation type R_AMD64_ABS

Adds support for the R_AMD64_ABS relocation type in the x86-64 COFF backend.

This patch introduces support for the R_AMD64_ABS relocation type within the x86-64 COFF backend of binutils. This type is analogous to ELF’s R_X86_64_NONE and is known in the Windows world as IMAGE_REL_AMD64_ABSOLUTE. It is intended to be used for relocations that do not alter the binary content, similar to how R_*_NONE is handled in other contexts.

In Details

This patch updates the bfd/coff-x86_64.c file to introduce support for the COFF relocation type R_AMD64_ABS. It defines this type in the howto_table and ensures that coff_amd64_reloc_type_lookup maps BFD_RELOC_NONE to R_AMD64_ABS. The in_reloc_p function is also updated to not treat R_AMD64_ABS as an altering relocation. This aligns the x86-64 COFF backend with the handling of non-altering relocations, similar to ELF's R_X86_64_NONE and Windows' IMAGE_REL_AMD64_ABSOLUTE.

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_AMD64_ABS
A COFF relocation type for x86-64 architecture that represents an absolute relocation, meaning it does not modify the binary's content and is similar to ELF's R_X86_64_NONE.
BFD
Binary File Descriptor library, a crucial part of GNU Binutils that provides a common interface for reading and writing various object file formats.
Filed Under: relocationx86-64COFFBFD