Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38072142rwd; Wed, 12 Jul 2023 02:35:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBLakrP5IrdGNf+jl1OKu0jz/clrO3puwwaez/xPjKC2ZNfXR0Ef4DjqYhd1ra3/LofPVL X-Received: by 2002:a17:902:b944:b0:1ba:1704:8a12 with SMTP id h4-20020a170902b94400b001ba17048a12mr714286pls.45.1689154532897; Wed, 12 Jul 2023 02:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689154532; cv=none; d=google.com; s=arc-20160816; b=OEX/m7hKOpXwILfMVt35kC8LGubjhNxTOghE4to7rSgh+Vun8BubkKosC1NaxQ0VSb vCvTPtzqJkJk4nuipjra8OPjODUcLVDrA1HJgWtI6iGsl4LjwYKSIWzl8hnto+Zbg0yV 0/nyg2qocN2NIpHQE69xVXZFWStNpUdGNOfNEi2DhRIP0e3B7WH0oIjZ607M4ejYSHov uv3iQzg3lFjp/xWmO3q8ZS15rlETxJj+N/F9zWg77N68vjbPJQDwhuVHvtx3Obht1N7I 1vC9ihIJ5ub1aEHxPHhPg8jnOHSKCFgXYtahOQugO/owz0EU1d3JE4A7oQYdIc6A8U5/ Nbzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=Y7ljYZcfTMxbnE5KfICWYGicvTD1Qlh0dRL3xAX5P+U=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=yNL4tmq3tT1KaPdq/tbLzLhSrUkAZYTQZOCIg3m8a274Q+PIcMGQW1Sf4aCNghmNAb qb0fEcMByzP5O34qDK7xKen0fRUlRtVaP0DGlpEWC4r+l0v2iDFUnWr9721/W6q+5l+l d00YhQt1vI/MJDuNsiFaD/eIvPTyuwQ1hYNwYYMhLblcbGT0Fs/hmYJy3dOsb+d6LiSv KscxFPcHh45EdskiNwsNgrs89fumf5YrhZb9qDPc29T1bRVmmW4QvU5upcBQUY4OXYnv oVo++D8nhOlrDLSCNwy9D8yd8d9lyVXh8pyrn//R8+u+2ipau0Ty2Ziq+gROGVU8qNCI HjRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a170902e84900b001b89bab468esi3096927plg.107.2023.07.12.02.35.21; Wed, 12 Jul 2023 02:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231753AbjGLJPp (ORCPT + 99 others); Wed, 12 Jul 2023 05:15:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbjGLJPn (ORCPT ); Wed, 12 Jul 2023 05:15:43 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 770A8FB; Wed, 12 Jul 2023 02:15:40 -0700 (PDT) X-QQ-mid: bizesmtp78t1689153330t5p9jpia Received: from linux-lab-host.localdomain ( [116.30.126.249]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 12 Jul 2023 17:15:29 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: aBJFcW+uBGY71Xw51Pe1VJBZqwvWdfJudhp8fr67SS8yC+nzmZ3yNaYAkBZ9Z 0KoDdePXRy7AD5YTUUYWPlEGt0VlVeybPyqOLrF+nHwjvp19vX3qfpAvqqqCpBtkNORNZ+h ZraN06Z40Y5k6J2sO9vWuI/osGFxCfKwNl689WfAHzTQLmEk7lJvB2A1GturBchy+jglFv1 XxO5lZF7F1eVW8vzZpuKUBbyivMpwDUYZQIGSQ8Q/fcZhu8nBboLJaYGSG88JdLh9E5tpE5 SkQto6Apu9lK+jztXYtXZckKklQsc3FACntjPRZMoBhyDkc5vZSs6s4jGB+ZBUfd7X+BfMJ Tnvz0qYVsSIwUfs05aQd0GgX+1olLfhjcxz9ieW8mRVK3MJu6mEkUd9gL8aNDxLPJt67A2h X-QQ-GoodBg: 0 X-BIZMAIL-ID: 3322903985340973383 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: [PATCH v3 00/11] tools/nolibc: shrink arch support Date: Wed, 12 Jul 2023 17:15:28 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Willy, Thomas Here is the revision of the v2 arch support shrink patchset [1], it mainly applies suggestions from you. It is based on the 20230710-nolibc-ser2-tom-syscall-configv4-report branch of nolibc repo. Tested for all of the supported archs: arch/board | result ------------|------------ arm/versatilepb | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. arm/vexpress-a9 | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. arm/virt | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. aarch64/virt | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. i386/pc | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. x86_64/pc | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. mipsel/malta | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. loongarch64/virt | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. riscv64/virt | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. riscv32/virt | 151 test(s): 122 passed, 7 skipped, 22 failed => status: failure. s390x/s390-ccw-virtio | 151 test(s): 144 passed, 7 skipped, 0 failed => status: warning. Changes from v2 --> v3: * tools/nolibc: remove the old sys_stat support Revert the reorg operation, basically the same as v1 * tools/nolibc: add new crt.h with _start_c Revert the reorg operation Add crt.h in Makefile Add _nolibc_main alias for main to silence the compile warning about * tools/nolibc: arm: shrink _start with _start_c tools/nolibc: aarch64: shrink _start with _start_c tools/nolibc: i386: shrink _start with _start_c tools/nolibc: x86_64: shrink _start with _start_c tools/nolibc: mips: shrink _start with _start_c tools/nolibc: loongarch: shrink _start with _start_c tools/nolibc: riscv: shrink _start with _start_c tools/nolibc: s390: shrink _start with _start_c Revert the reorg operation, but still use post-whitespaces instead of post-tab. Include "crt.h" in arch-.h * tools/nolibc: arch-*.h: add missing space after ',' Fix up the errors reported by scripts/checkpatch.pl Best regards, Zhangjin --- [1]: https://lore.kernel.org/lkml/cover.1688828139.git.falcon@tinylab.org/ Zhangjin Wu (11): tools/nolibc: remove the old sys_stat support tools/nolibc: add new crt.h with _start_c tools/nolibc: arm: shrink _start with _start_c tools/nolibc: aarch64: shrink _start with _start_c tools/nolibc: i386: shrink _start with _start_c tools/nolibc: x86_64: shrink _start with _start_c tools/nolibc: mips: shrink _start with _start_c tools/nolibc: loongarch: shrink _start with _start_c tools/nolibc: riscv: shrink _start with _start_c tools/nolibc: s390: shrink _start with _start_c tools/nolibc: arch-*.h: add missing space after ',' tools/include/nolibc/Makefile | 1 + tools/include/nolibc/arch-aarch64.h | 56 ++---------------- tools/include/nolibc/arch-arm.h | 82 +++------------------------ tools/include/nolibc/arch-i386.h | 61 +++----------------- tools/include/nolibc/arch-loongarch.h | 45 ++------------- tools/include/nolibc/arch-mips.h | 76 ++++--------------------- tools/include/nolibc/arch-riscv.h | 68 +++------------------- tools/include/nolibc/arch-s390.h | 63 ++------------------ tools/include/nolibc/arch-x86_64.h | 57 +++---------------- tools/include/nolibc/crt.h | 59 +++++++++++++++++++ tools/include/nolibc/sys.h | 63 ++++---------------- tools/include/nolibc/types.h | 4 +- 12 files changed, 133 insertions(+), 502 deletions(-) create mode 100644 tools/include/nolibc/crt.h -- 2.25.1