From: Andrew Jones Subject: [kvm-unit-tests PATCH v2 0/4] arm/powerpc: make argv[0] the program name Date: Fri, 22 Apr 2016 16:54:45 +0200 Message-ID: <1461336889-27472-1-git-send-email-drjones@redhat.com> Cc: thuth@redhat.com, lvivier@redhat.com, rkrcmar@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:34850 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754094AbcDVOyz (ORCPT ); Fri, 22 Apr 2016 10:54:55 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3FE36C05E16A for ; Fri, 22 Apr 2016 14:54:55 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: v2: - copy auxinfo.prognam into argv[0] [drew] It just came to my attention that x86 has the normal argv[0], the program name, thanks to seabios. That raised the priority of fixing one of my pet peeves - arm and powerpc starting arguments at argv[0], as that just ain't right. This series fixes that. A few temporary hacks are used to avoid one big patch fixing both arm and powerpc at the same time. The hacks are gone by the end of the series. Andrew Jones (4): arm/arm64: reserve argv[0] for prognam powerpc/ppc64: reserve argv[0] for prognam arm/arm64: populate argv[0] with prognam powerpc/ppc64: populate argv[0] with prognam arm/Makefile.common | 6 +++++- arm/selftest.c | 14 +++++++------- arm/spinlock-test.c | 2 +- lib/argv.c | 31 +++++++++++++++++++++++-------- lib/auxinfo.h | 7 +++++++ powerpc/Makefile.common | 6 +++++- powerpc/emulator.c | 2 +- powerpc/rtas.c | 12 ++++++------ powerpc/selftest.c | 8 ++++---- powerpc/spapr_hcall.c | 6 +++--- scripts/auxinfo.mak | 7 +++++++ 11 files changed, 69 insertions(+), 32 deletions(-) create mode 100644 lib/auxinfo.h create mode 100755 scripts/auxinfo.mak -- 2.4.11