Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Sep 2019 05:35:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 240432] Linuxulator: uname (function) reports i686 machine to 32-bit executables on amd64
Message-ID:  <bug-240432-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240432

            Bug ID: 240432
           Summary: Linuxulator: uname (function) reports i686 machine to
                    32-bit executables on amd64
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: iwtcex@gmail.com

Consider the following program compiled with -m32 flag:

#include <stdio.h>
#include <sys/utsname.h>

int main() {
  struct utsname name;
  uname(&name);
  printf("machine: %s\n", name.machine);=20=20
  return 0;
}

This prints "machine: i686" under Linuxulator, while Ubuntu 18.04 gives me
"machine: x86_64".

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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