Merge pull request #8438 from zhaofengli/armv5tel-linux32

Also set the PER_LINUX32 personality flag on armv5tel-linux
This commit is contained in:
Eelco Dolstra 2023-06-06 12:47:16 +02:00 committed by GitHub
commit 864ab1a7ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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");