From 6fa0d41ae68cbd2f997fb685af0b4b328516d4c3 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Fri, 21 Sep 2007 10:20:51 -0600 Subject: [PATCH] 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 --- sys-utils/setarch.c | 4 ++++ 1 file changed, 4 insertions(+) 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")) { -- 2.39.5