Bug 1731413 - Add wrappers for 32-bit arches
Summary: Add wrappers for 32-bit arches
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: cross-binutils
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Howells
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-19 11:08 UTC by Artur Iwicki
Modified: 2019-07-19 11:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Artur Iwicki 2019-07-19 11:08:28 UTC
cross-binutils doesn't build tools for 32-bit arches, since those can be served using the 64-bit tools. This is understandable, but unfortunately some external programs expect 32-bit utils to be present and don't really understand how to use the 64-bit tools.

I'd like to suggest adding wrappers that would pretend to be 32-bit tools, while actually just running the 64-bit tools with proper flags set. They could be shipped as e.g. a "binutils-i386-linux-gnu" package with a Requires: for "binutils-x86_64-linux-gnu".

Example wrappers for i386:

#!/bin/sh
x86_64-linux-gnu-as --32 $@

#!/bin/sh
x86_64-linux-gnu-ld -A elf32-i386 $@

#!/bin/sh
x86_64-linux-gnu-gcc -m32 $@


Note You need to log in before you can comment on or make changes to this bug.