[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Oct 24 06:53:25 BST 2023


--- Comment #172 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Dmitry Selyutin from comment #171)
> > I would guess the issue is that uname is being used, but what you actually
> > need is the arch of the user-space executable, not the kernel, since Luke
> > seems to have a armhf user-space and aarch64 kernel. after some
> > experimentation, it looks like you can use:
> > python3 -c 'import sysconfig;
> > print(sysconfig.get_config_var("HOST_GNU_TYPE"))'
> I'd take a look at this:
> platform.architecture()[0]
> sys.maxsize > 2**32

platform.architecture() on my phone returns:
('64bit', 'ELF')
which has no mention of arm. so imo not very useful.

presumably aarch64 systems can have both armhf and armel multiarch. x86_64
likewise can have both i686 and x32.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list