Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1279626

Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack"

From Edgar Bonet <linux@edgar-bonet.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack"
Date 2026-01-24 17:00 +0100
Message-ID <MgOdj-d0LL-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Package: binutils
Version: 2.45.50.20260119-1

Dear maintainer,

I am developing a program that needs a text file embedded in its binary
as a "resource" of sorts. I rely on ld for converting the file to an
object file. On Debian sid, however, ld segfaults on me.

How to reproduce:

$ echo foo > foo.txt
$ ld -r -b binary -z noexecstack foo.txt -o foo.o
Segmentation fault         ld -r -b binary -z noexecstack foo.txt -o foo.o

This works fine on Debian testing (with binutils 2.45.50.20251209-1).

Workaround: remove the option "-z noexecstack". This option, however, is
needed on bookworm to prevent a warning on the final link: "missing
.note.GNU-stack section implies executable stack".

Regards,

Edgar Bonet.

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack" Edgar Bonet <linux@edgar-bonet.org> - 2026-01-24 17:00 +0100
  Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack" Matthias Klose <doko@debian.org> - 2026-01-25 03:30 +0100
    Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack" Edgar Bonet <linux@edgar-bonet.org> - 2026-01-25 13:20 +0100
      Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack" Matthias Klose <doko@debian.org> - 2026-01-25 14:50 +0100
        Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack" Edgar Bonet <linux@edgar-bonet.org> - 2026-01-25 15:00 +0100
          Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack" Matthias Klose <doko@debian.org> - 2026-01-25 15:10 +0100
            Bug#1126349: ld segfaults if called with "-r -b binary -z noexecstack" Edgar Bonet <linux@edgar-bonet.org> - 2026-01-25 17:00 +0100

csiph-web