[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 07:12:24 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=982

--- Comment #175 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Dmitry Selyutin from comment #174)
> > > > python3 -c 'import sysconfig;
> > > > print(sysconfig.get_config_var("HOST_GNU_TYPE"))'

> Yes I know. You have to check both arch and some Python executable
> information simultaneously. That's why you need to check not only
> platform.platform() but also sys.maxsize (as a cheap way).

but checking platform.platform() just uses uname (see source code), and
combining that with sys.maxsize can't distinguish between armhf/armel or
i686/x32 afaict...i know i686 and x32 have different syscall ABIs and maybe
armhf/armel too, so it is information you need to know to get it right.

the method I suggested using python's sysconfig module gets its info from
autotools (config.guess/config.sub) via python's config.h and makefiles, so
should contain enough to know the exact ABI.

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


More information about the libre-soc-bugs mailing list