0
0
Fork 0
forked from lix-project/lix

Also set the PER_LINUX32 personality flag on armv5tel-linux

This commit is contained in:
Zhaofeng Li 2023-06-02 03:04:13 -06:00
parent 27f82ef4a8
commit 48632e6139

View file

@ -21,7 +21,8 @@ void setPersonality(std::string_view system)
&& (std::string_view(SYSTEM) == "x86_64-linux"
|| (!strcmp(utsbuf.sysname, "Linux") && !strcmp(utsbuf.machine, "x86_64"))))
|| system == "armv7l-linux"
|| system == "armv6l-linux")
|| system == "armv6l-linux"
|| system == "armv5tel-linux")
{
if (personality(PER_LINUX32) == -1)
throw SysError("cannot set 32-bit personality");