From: LaMont Jones Date: Fri, 21 Sep 2007 16:20:51 +0000 (-0600) Subject: sparc-utils 'sparc64' binary sets ADDR_LIMIT_32BIT. Closes: LP#141524 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fa0d41ae68cbd2f997fb685af0b4b328516d4c3;p=util-linux sparc-utils 'sparc64' binary sets ADDR_LIMIT_32BIT. Closes: LP#141524 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 --- diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 6eba24ae..413ce030 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -196,6 +196,10 @@ int main(int argc, char *argv[]) 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")) {