Bug 2437073 - ld segfaults when linking embedded BPF object for xdp-tools
Summary: ld segfaults when linking embedded BPF object for xdp-tools
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2435196
TreeView+ depends on / blocked
 
Reported: 2026-02-05 16:16 UTC by Toke Høiland-Jørgensen
Modified: 2026-02-10 11:21 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-02-10 11:21:58 UTC
Type: ---
Embargoed:
ralvaro: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-3122 0 None None None 2026-02-09 16:07:41 UTC

Description Toke Høiland-Jørgensen 2026-02-05 16:16:04 UTC
I'm getting segfault errors when building xdp-tools on Koji:

gcc -r -nostdlib -Wl,-z,noexecstack,--format=binary -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o xsk_def_xdp_prog.embed.o xsk_def_xdp_prog.o
gcc -r -nostdlib -Wl,-z,noexecstack,--format=binary -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o xsk_def_xdp_prog_5.3.embed.o xsk_def_xdp_prog_5.3.o
gcc -r -nostdlib -Wl,-z,noexecstack,--format=binary -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o xdp-dispatcher.embed.o xdp-dispatcher.o
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
make[2]: *** [Makefile:137: xsk_def_xdp_prog_5.3.embed.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:137: xsk_def_xdp_prog.embed.o] Error 1
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.

This only happens on x86_64 and s390, but seems to be consistent on those arches (at least I got the same error twice).

See full log here: https://koji.fedoraproject.org/koji/taskinfo?taskID=141947203

Reproducible: Always

Comment 1 Nick Clifton 2026-02-06 13:15:27 UTC
Hi Toke,

  The good news is that this should be fixed by the latest binutils release (binutils-2.45.50-19.fc44).

  The bad news is that the release was stuck in Bodhi because of testing issues.  But I have waived the problems so the build should reach the buildroot soon.

Cheers
  Nick

Comment 2 Toke Høiland-Jørgensen 2026-02-06 13:49:56 UTC
Alright, sounds good; will wait for that to appear and give it another go. Thanks!

Comment 3 Toke Høiland-Jørgensen 2026-02-09 10:47:10 UTC
Okay, so that version does seem to have made it into buildroot now, but the segfault persists: https://koji.fedoraproject.org/koji/taskinfo?taskID=142116942

root.log:
DEBUG util.py:461:   binutils                          x86_64 0:2.45.50-19.fc44            build       27.4 MiB

build.log:
gcc -r -nostdlib -Wl,-z,noexecstack,--format=binary -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o xdp-dispatcher.embed.o xdp-dispatcher.o
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.

Comment 4 Nick Clifton 2026-02-09 14:48:28 UTC
Hi Toke,

> Okay, so that version does seem to have made it into buildroot now, but the
> segfault persists:
> https://koji.fedoraproject.org/koji/taskinfo?taskID=142116942

Yes, I was able to reproduce this as well.  I could have sworn that it worked when I tested it originally. :-(

Anyway, I have tested both binutils-2.45.90-1.fc44 (for Fedora 44) and binutils-2.46-1.fc45 (for rawhide) and they are working for me.  So I really really hope that this time, once they reach the buildroot, your builds will start working properly.

Cheers
  Nick

Comment 5 Toke Høiland-Jørgensen 2026-02-10 11:21:58 UTC
Right, looks like my scratch builds are succeeding now, so I guess that means it's fixed - thanks!

rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=142155345
f44: https://koji.fedoraproject.org/koji/taskinfo?taskID=142155944


Note You need to log in before you can comment on or make changes to this bug.