[Bug 2134326] Re: objcopy fails to recognize x86-64 libraries
Heinrich Schuchardt
2134326 at bugs.launchpad.net
Mon Dec 8 20:11:59 UTC 2025
The change seems to be with the arguments of objcopy.
Old objcopy interpreted --target in
objcopy -j .header -j .text -j .sdata -j .data -j .dynamic -j .dynstr -j
.dynsym -j .rel* -j .reloc --target=efi-app-x86_64
lib/efi_loader/helloworld_efi.so lib/efi_loader/helloworld.efi
as specifying the output target only.
New objcopy applies the --target value both to the --input-target as
well as to the --output--target. So now we need a command like:
objcopy -j .header -j .text -j .sdata -j .data -j .dynamic -j .dynstr
-j .dynsym -j .rel* -j .reloc --output-target=efi-app-x86_64
lib/efi_loader/helloworld_efi.so lib/efi_loader/helloworld.efi
We need to fix upstream u-boot. For binutils this bug report is invalid.
** Changed in: binutils (Ubuntu)
Status: Confirmed => Invalid
** Changed in: binutils (Ubuntu)
Milestone: ubuntu-26.04 => None
** Changed in: binutils (Ubuntu)
Importance: High => Undecided
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/2134326
Title:
objcopy fails to recognize x86-64 libraries
Status in binutils package in Ubuntu:
Invalid
Bug description:
I am running amd64 Ubuntu 26.04 with binutils
2.45.50.20251125-1ubuntu1
When building upstream U-Boot
(https://source.denx.de/u-boot/u-boot.git) with
make sandbox_defconfig
make V=1
I get an error
objcopy -j .header -j .text -j .sdata -j .data -j .dynamic -j .dynstr -j .dynsym -j .rel* -j .reloc --target=efi-app-x86_64 lib/efi_loader/helloworld_efi.so lib/efi_loader/helloworld.efi
objcopy: lib/efi_loader/helloworld_efi.so: file format not recognized
$ file lib/efi_loader/helloworld_efi.so
lib/efi_loader/helloworld_efi.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
When reverting to bintuils 2.45-7ubuntu1.1 the error disappears.
---
ProblemType: Bug
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
DistroRelease: Ubuntu 26.04
InstallationDate: Installed on 2025-07-10 (150 days ago)
InstallationMedia: Kubuntu 25.10 "Questing Quokka" - Daily amd64 (20250710)
Package: binutils 2.45.50.20251125-1ubuntu1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 6.17.0-6.6-generic 6.17.1
Tags: resolute
Uname: Linux 6.17.0-6-generic x86_64
UpgradeStatus: Upgraded to resolute on 2025-11-24 (13 days ago)
UserGroups: N/A
_MarkForUpload: True
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/2134326/+subscriptions
More information about the foundations-bugs
mailing list