Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2021 14:26:58 -0400 (EDT)
From:      Thomas David Rivers <rivers@dignus.com>
To:        marklmi@yahoo.com, rivers@dignus.com
Cc:        freebsd-arm@freebsd.org
Subject:   Re: 32-bit executables on aarch64?
Message-ID:  <202103311826.12VIQwxD038077@office.dignus.com>
In-Reply-To: <3C61C02F-3402-4C96-819D-856ED65F9CDE@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
marklmi@yahoo.com  wrote:
> armv7# file `which uname`
> /usr/bin/uname: ELF 32-bit LSB executable, ARM, EABI5 version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, FreeBSD-style, for FreeBSD 14.0 (1400005), not stripped
> 
> armv7# uname -apKU
> FreeBSD RPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT mm-src-n245445-def0058cc690 GENERIC-NODBG  arm armv7 1400005 1400005
> 
> (I did both buildworld builds from the same source.)
> 
> There is no lib32 implementation for aarch64.
> So, direct execution of code for armv7 FreeBSD
> without being in such a chroot is not available.
> (I ignore qemu and the like here.)
> 
> ===
> Mark Millard

 Ah!

 So, the kernel _can_ run a 32-bit executable... but we just can't
 build one on an aarch64 machine...

 I wonder if I can "cross-build" an LLVM/dcc for armv7 and just
 cross-compile to get a 32-bit executable that executes on 
 a 64-bit kernel.. perhaps with -static to avoid any runtime problems?

	- Dave R. -

--
rivers@dignus.com                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103311826.12VIQwxD038077>