2.35.50 breaks ld -no-pie
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Undecided
|
Unassigned | ||
binutils |
Fix Released
|
Medium
|
|||
binutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
qemu (Ubuntu) |
Fix Released
|
High
|
Christian Ehrhardt | ||
s390-tools (Ubuntu) |
Fix Released
|
Undecided
|
Lukas Märdian |
Bug Description
The qemu build reaches (and always did) a step where it tries to link some
img files. That is done via the command:
$ ld -m elf_i386 -T /<<PKGBUILDDIR>
Recently that still works in Debian [1] but no more in Ubuntu [2].
I think that the new binutils broke me.
In hirsute proposed those are at 2.35.50.
The issue is easily isolated, and by copying the two files around I found the following:
Hirsute: 2.35.50.
Hirsute: 2.35.50.
Sid: 2.35.1-4 - good
Groovy: 2.35.1-1ubuntu1 - good
Focal: 2.34-6ubuntu1 - good
I'll attach these two files to the bug, just thro them into a directory and
run the command:
$ ld -m elf_i386 -T ./flat.lds -no-pie -s -o linuxboot.img linuxboot.o
If that is an intentional change please guide how this is now supposed to work.
[1]: https:/
[2]: https:/
Related branches
- Lucas Kanashiro (community): Approve
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 6465 lines (+5793/-30)17 files modifieddebian/changelog (+4288/-4)
debian/control (+88/-17)
debian/control-in (+59/-8)
debian/patches/series (+7/-0)
debian/patches/ubuntu/define-ubuntu-machine-types.patch (+784/-0)
debian/patches/ubuntu/enable-svm-by-default.patch (+34/-0)
debian/patches/ubuntu/lp-1907789-build-no-pie-is-no-functional-liker-flag.patch (+76/-0)
debian/patches/ubuntu/lp-1916230-hw-s390x-fix-build-for-virtio-9p-ccw.patch (+56/-0)
debian/patches/ubuntu/pre-bionic-256k-ipxe-efi-roms.patch (+62/-0)
debian/qemu-kvm-init (+89/-0)
debian/qemu-system-common.install (+1/-0)
debian/qemu-system-common.qemu-kvm.default (+8/-0)
debian/qemu-system-common.qemu-kvm.service (+16/-0)
debian/qemu-system-gui.prerm (+42/-0)
debian/qemu-system-x86.NEWS (+80/-0)
debian/qemu-system-x86.README.Debian (+47/-0)
debian/rules (+56/-1)
- Paride Legovini (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 6336 lines (+5677/-30)16 files modifieddebian/changelog (+4229/-4)
debian/control (+88/-17)
debian/control-in (+59/-8)
debian/patches/series (+6/-0)
debian/patches/ubuntu/define-ubuntu-machine-types.patch (+784/-0)
debian/patches/ubuntu/enable-svm-by-default.patch (+34/-0)
debian/patches/ubuntu/lp-1907789-build-no-pie-is-no-functional-liker-flag.patch (+76/-0)
debian/patches/ubuntu/pre-bionic-256k-ipxe-efi-roms.patch (+62/-0)
debian/qemu-kvm-init (+89/-0)
debian/qemu-system-common.install (+1/-0)
debian/qemu-system-common.qemu-kvm.default (+8/-0)
debian/qemu-system-common.qemu-kvm.service (+16/-0)
debian/qemu-system-gui.prerm (+42/-0)
debian/qemu-system-x86.NEWS (+80/-0)
debian/qemu-system-x86.README.Debian (+47/-0)
debian/rules (+56/-1)
Changed in binutils (Ubuntu): | |
status: | New → Fix Committed |
Changed in qemu (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Christian Ehrhardt (paelzer) |
importance: | Undecided → High |
Changed in binutils: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Changed in s390-tools (Ubuntu): | |
assignee: | nobody → Lukas Märdian (slyon) |
status: | New → In Progress |
Changed in ubuntu-z-systems: | |
status: | New → Fix Released |
works with the 2.35 branch, fails with the trunk:
$ ld.gold -pie
ld.gold: fatal error: no input files
$ ld.gold -no-pie
ld.gold: fatal error: no input files
$ ld.bfd -pie
ld.bfd: no input files
$ ld.bfd -no-pie
ld.bfd: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)