#1126689 bpf-ld: string literal merge corrupts pointers (off-by-one in .rodata)

Package:
binutils-bpf
Source:
binutils-bpf
Description:
GNU binary utilities for bpf
Submitter:
choury
Date:
2026-02-03 19:51:01 UTC
Severity:
normal
#1126689#5
Date:
2026-01-30 17:51:55 UTC
From:
To:
Dear Maintainer,

When linking BPF objects, bpf-ld merges string literals incorrectly. The
resulting literal addresses in the final binary are shifted by one byte,
so literals point into the middle of other merged strings. This breaks
code that relies on correct literal pointers.

Reproduction:

a.c