- Package:
- binutils-loongarch64-linux-gnu
- Source:
- binutils-loongarch64-linux-gnu
- Description:
- GNU binary utilities, for loongarch64-linux-gnu target
- Submitter:
- Miao Wang
- Date:
- 2026-07-28 19:53:02 UTC
- Severity:
- normal
- Tags:
Dear maintainer, ld in binutils-loongarch64-linux-gnu 2.46.90.20260712-1 introduced a bug where relocations R_LARCH_ALIGN are inserted to ld -r outputs even if there is no such relocation in the input. This has broken the compilation of Linux kernel modules, rendering unloadable modules due to R_LARCH_ALIGN is not expected to be exist in kernel modules and cannot be handled by the kernel module loader. This has been fixed in upstream [1]. Cheers, Miao Wang [1]: https://sourceware.org/cgit/binutils-gdb/patch/?id=a4481c8ff808e7237b99815d84b0d4c06ded6124
this patch is not yet available on the 2.47 release branch. Please work with upstream to get this fixed upstream.
Hi,
I'm a bit confused, since I have just double checked that the commit
a4481c8ff808 ("LoongArch: only insert align section for ld -r if an
input has R_LARCH_ALIGN or R_LARCH_RELAX") is shown in the git history
of the current master branch. Another commit e644656548fc ("[v2]
LoongArch: only insert align section for ld -r if an input has
R_LARCH_ALIGN or R_LARCH_RELAX") with the same changes is also shown
in the git history of the current binutils-2_47-branch branch. In the
refs tab of that repo, I cannot find such a branch or a tag which is
updated recently and contains the word "release". I wonder which is
actually the 2.47 release branch you are referring to.
Cheers,
Miao Wang
is the suggested fix on the binutils-2_47-branch branch? I'm just confused that you are referring to a commit on HEAD in the first place.
Hi, It seems that commit a4481c8ff808 is on the master branch and was cherry-picked to the binutils-2_47-branch branch, becoming e644656548fc Cheers, Miao Wang
We believe that the bug you reported is fixed in the latest version of
binutils, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1142570@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated binutils package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 26 Jul 2026 19:48:55 +0200
Source: binutils
Architecture: source
Version: 2.47-1
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <doko@debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Closes: 1142570
Changes:
binutils (2.47-1) unstable; urgency=medium
.
* New upstream release.
- Fixes build of kernel modules on loong64. Closes: #1142570.
* Ignore tests results on sparc64 for now (Adrian Glaubitz).
* Update libgprofng symbols file.
* Refresh patches.
Checksums-Sha1:
f0311753321e5701f22f5a7b33f61874d3c8eeaf 11523 binutils_2.47-1.dsc
1ef5c256696b61f9ad5b8a07efe3cd7405c89128 29436368 binutils_2.47.orig.tar.xz
a3204e68e4ab1aeacebc910a23d42b888ef42ee5 124244 binutils_2.47-1.debian.tar.xz
3b875edebf7a5881c1670f46fc4b5f8ee69495cc 6184 binutils_2.47-1_source.buildinfo
Checksums-Sha256:
b4a8933fb43db5d1a3b4f436c3ae1f45b67f1859ee35495c0577e35ab202ceec 11523 binutils_2.47-1.dsc
ce42ea86f13688adadca942b375224775b98265c3a6f4a04b0ea898a06c65efb 29436368 binutils_2.47.orig.tar.xz
d7c84e0f334c3e956203a76e27f8d80c4da9afa7357acd7b6b0af139db760055 124244 binutils_2.47-1.debian.tar.xz
a1b8a82a30346ad9e3d997b79664029c84d69d2b9be8bb49426caf60c0b74a81 6184 binutils_2.47-1_source.buildinfo
Files:
78f9c37b33aaa89f4943143647c8dd94 11523 devel optional binutils_2.47-1.dsc
59555f11105aa761aca31b63ad7dabe3 29436368 devel optional binutils_2.47.orig.tar.xz
9dc7cfcd3f41a67327d74a78c8b50a3e 124244 devel optional binutils_2.47-1.debian.tar.xz
a7b83fe6c666b2ab2de63cfcc9a0279f 6184 devel optional binutils_2.47-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmpmSpAQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9Xc0D/0QmwHPPyGTfs9caIno20PwlQEXPleTYGoy
g8tWHMtuh7k4oTzIp9NV9OQhPVnnI/u9I6mbfZPKzZ9uxUpRcXB5MhxsZhv0YfJq
85QAC2VVkH0E1FJZfkEokiV5JBJBn5hCdRTh0BkiejrCnZv4R2xWCE25MJzwlUmr
5zt/4v20ozNHe4JUQDvQO7wrRIVyzJ8KBEhBBCKN3Ya1nhu0j4MQT71znp4uWN+F
6TpxJlzm/Lgr2VbgcqbxpNTycSykfglYtm8AWmIUXI/H3bRuPPieFst6k5UxfaJJ
6ogEq7UdEaBe+flQ/IZXQSarCCZDhRbFyRRy8zK+023NbV6Z/cWvJYlonQLFPxcI
ttVxp2wlX+nu6NVBozi2jWDmPcYcVrFQsPfpsWUzsgRd+4Q62g8ML9ixv+EMDsDe
MNQHp4rYs+qNZRZs48oYlPOkJMHTAeTLZ7mGECeDzUnzoa81OlQ1oNTYm4/RXYFE
4+hHsNyP2umh6xsMDZ1AgkqLupNuKkoOw7SW39PLeWvhbztuz5PrK8XG2/5WRbHA
0TIm7DeruzSRg365jEQoCjgDb0P6GrlilDSfMmVgkHWSCcdkAqPhuoEqy8wYfS5l
LNwKYzmKmi6bYvdKgl3gcKyQCo6wf5diHKF42MxBu3c2U7GWuwhUeFwHKUJZgOZn
75uXxqD/4Q==
=rtPM
-----END PGP SIGNATURE-----
Hello! Friends, I just installed `binutils-loongarch64-linux-gnu=2.47-2` and `linux-image-loong64=7.1.5-1` , and my laptop still won't start properly, I'm not sure if this issue has been resolved. I understand it like this: When compiling the kernel, binutils-loongarch64-linux-gnu is required. However, when compiling "linux-image-loong64=7.1.5-1", "binutils-loongarch64-linux-gnu=2.47-2" has not been released, right? Don't close this issue just yet! Wait a moment! Thanks! Regards, larryw3i
Dear Maintainer, I think this issue has been fixed now, I compiled the current `linux-stable` and installed it. It's fine! ```bash larry@loong6:~/Downloads$ sudo apt rdepends binutils-loongarch64-linux-gnu [sudo] password for larry: binutils-loongarch64-linux-gnu Reverse Depends: Depends: gcc-14-loongarch64-linux-gnu (>= 2.39) Depends: gcc-16-loongarch64-linux-gnu (>= 2.39) Depends: gcc-15-loongarch64-linux-gnu (>= 2.39) Depends: binutils (= 2.47-2) Depends: binutils-loongarch64-linux-gnu-dbg (= 2.47-2) larry@loong6:~/Downloads$ sudo hw-probe -all -upload Probe for hardware ... Ok Reading logs ... Ok Uploaded to DB, Thank you! Probe URL: https://linux-hardware.org/?probe=8884d9f71a larry@loong6:~/Downloads$ sudo apt show binutils-loongarch64-linux-gnu Package: binutils-loongarch64-linux-gnu Version: 2.47-2 Priority: optional Section: devel Source: binutils Maintainer: Matthias Klose <doko@debian.org> Installed-Size: 4,696 kB Depends: binutils-common (= 2.47-2), libbinutils (= 2.47-2), libc6 (>= 2.38), libctf-nobfd0 (>= 2.36), libctf0 (>= 2.36), libjansson4 (>= 2.14), libsframe3 (>= 2.45.50), libzstd1 (>= 1.5.5), zlib1g (>= 1:1.1.4) Suggests: binutils-doc (= 2.47-2) Breaks: binutils (<< 2.29-6), binutils-dev (<< 2.38.50.20220609-2) Replaces: binutils (<< 2.29-6), binutils-dev (<< 2.38.50.20220609-2) Homepage: https://www.gnu.org/software/binutils/ Download-Size: 830 kB APT-Manual-Installed: yes ``` Thank you all! Regards, larryw3i