The sparc64 binary in the existing sparc-utils package sets ADDR_LIMIT_32BIT.
Cause setarch to behave likewise when invoked as 'sparc64'.
Signed-off-by: LaMont Jones <lamont@debian.org>
p = argv[0];
if (!strcmp(p, "-h") || !strcmp(p, "--help"))
show_help();
+ #if defined(__sparc64__) || defined(__sparc__)
+ } else if (!strcmp(p,"sparc64")) {
+ options |= ADDR_LIMIT_32BIT;
+ #endif
}
#if defined(__sparc64__) || defined(__sparc__)
if (!strcmp(p, "sparc32bash")) {