Bug 2404830
| Summary: | objcopy from binutils-2.45.50-5.fc44 can't handle btrfs-efi's libbtrfs.so | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michel Lind <michel> | ||||
| Component: | binutils | Assignee: | Nick Clifton <nickc> | ||||
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | dvlasenk, fweimer, jakub, josmyers, ngompa13, nickc, sipoyare, suraj.ghimire7 | ||||
| Target Milestone: | --- | Keywords: | Regression | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | --- | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | Type: | --- | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 2384486 | ||||||
| Attachments: |
|
||||||
|
Description
Michel Lind
2025-10-17 20:46:45 UTC
Created attachment 2110112 [details]
libbtrfs.so
The objcopy input file, in case it's relevant.
I have been unable to reproduce this problem locally, but I suspect that I know the cause of the issue: A bug has been fixed in the objcopy program, where its "--target=<FOO>" command line option was supposed to affect the format of both the input file and the output file. Instead however it was only selecting the format of the output file. Now that this bug has been fixed (in the 2.45.50 binutils) --target does what it is supposed to do. Unfortunately this causes problems for packages that use "objcopy --target..." to change the file format of a binary file. The change means that the objcopy will fail because the input file is not in the same format as the output file, and --target has said that they are the same. Fortunately there is a simple fix for this problem: Use objcopy's --output-target=<FOO> command line option instead of --target=<FOO>. This will set the format of the output file only, and leave objcopy to automatically determine the format of the input file. In addition this change is backwards compatible. ie the --output-target option is supported by all versions of objcopy, even very old ones. I hope that this helps. |