Package: binutils
Version: 2.47.50.20261120-1
Severity: important
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Package: binutils
Version: 2.47.50.20261120-1
Severity: normal

The new version of binutils fails to recognize Guile compiled .go files.

**Steps to reproduce:**

Install guile-3.0 and binutils on Debian unstable (amd64) and execute:

```
objdump -p /usr/lib/x86_64-linux-gnu/guile/3.0/ccache/ice-9/boot-9.go
```

**Actual result:**

```
objdump: /usr/lib/x86_64-linux-gnu/guile/3.0/ccache/ice-9/boot-9.go: file 
format not recognized
```

**Expected result:**

The file should be recognized as elf64-little,
as with the previous version of binutils.

**Version comparison:**

- Binutils 2.47.50.20261021: works.
- Binutils 2.47.50.20261120: fails.
- Guile package version in both environments: 3.0.11-2+b1.

The problem also occurs with compiled Guile modules provided by the
guile-library package.

Explicitly specifying the BFD target with `objdump -b elf64-little`
does not solve the problem.

The ELF header of a tested compiled Guile file contains the following values:

- Class: ELF64
- OS/ABI: 0xff
- Type: DYN
- Machine: None (EM_NONE)

The readelf command continues to recognize the file correctly.

I discovered this regression while building the g-golf Debian package using 
sbuild. The regression causes dh_makeshlibs to fail, preventing the package from
being built.

I have verified that the same g-golf.go file generated inside the sbuild 
environment is rejected by the newer version of objdump but recognized 
correctly by
the older version outside the build environment.

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 7.3.5+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to