From patchwork Tue May 12 10:14:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 1288353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=RHesxccd; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=RHesxccd; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Ltx61QMPz9sRf for ; Tue, 12 May 2020 20:15:54 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D5EF73955C09; Tue, 12 May 2020 10:15:14 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) by sourceware.org (Postfix) with ESMTPS id 24B1B383F84C for ; Tue, 12 May 2020 10:15:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 24B1B383F84C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Szabolcs.Nagy@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/RIGMtxsDpKOTr9yxoXR/Q+10dmSZhO1X3SRriRh/H4=; b=RHesxccdVVSVK5eyo62qcNCioiO1ulRgLYkX1CVbtvFRQ6ehJRzWXwLgJKpO7AbZNmX9bKwcbNy6Bx7EXmKfA0iN3ZtqjT2R2bLsgTka77X5O83JZzIV/TOLCZ5jbcEPpkGLWGMPh8pDjm+12v0D/6bS+2iLo4Kb7u3PYuqOzl4= Received: from AM6P195CA0033.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::46) by AM4PR08MB2899.eurprd08.prod.outlook.com (2603:10a6:205:c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.33; Tue, 12 May 2020 10:15:04 +0000 Received: from AM5EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:81:cafe::33) by AM6P195CA0033.outlook.office365.com (2603:10a6:209:81::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28 via Frontend Transport; Tue, 12 May 2020 10:15:04 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; sourceware.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT003.mail.protection.outlook.com (10.152.16.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Tue, 12 May 2020 10:15:03 +0000 Received: ("Tessian outbound ff098c684b24:v54"); Tue, 12 May 2020 10:15:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 97551ec548221194 X-CR-MTA-TID: 64aa7808 Received: from 1581aa4f4e91.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 69DB855F-C9BB-49A5-B119-BB468EA0FA1D.1; Tue, 12 May 2020 10:14:58 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 1581aa4f4e91.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 12 May 2020 10:14:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iCDIfEVaxIvQbMvDTqxAfQROuGLHYUjhr/x19Sirq8reRQcvhs+AVsY1yY2uqjVxvsun2LckjyesJ08+eQTPY/QAxKDbc2iXIhSqQzIE/wAfl1KIIAD929s71fcuzor8ilXgku2qXSVVCPD1yJwb3g9u1znOvby46ESBB07XUjdQL9NPJYk3KZmJrSFq5lEIODe25H2WGJM4XMdjRZz3Kaijm/0BcVPOXXWGVxdF4zC1miYerMn4nmqpV4pyP04SdypwYx5ETeb8uSXlkZXBVhG6t6H4m12AH4EengROmDYfoUHRbPKWJwUlUXDwOskCBszEcaTGo4tt6PcFstakZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/RIGMtxsDpKOTr9yxoXR/Q+10dmSZhO1X3SRriRh/H4=; b=eSuvrb5W3U/lo8dRyz36VDZdYz4c+E4wZ/00SmwUUaPU3PcayDcxORKZCjVBnoAf/QMcfA5bStF+WZxB5sGbPbc6hvfvlfSvA7uyjwpTycxs/v72vf906GXt0eO3JA/PUlLAMXb/Oz7Enmj5YUUQyK5mDtN1580EJcuu+OkkjdqV7ZOnDT/zUH8nqjTCfWMne5+UHLnT9m2L7ItyMeYjXDHvRT4Jorx5a5khvfhjIvlehgwSu6/KH97160TElj/q/Ub7wX4DjvJ7SIXutg2ebXN8WKsynn+v4sbE033kk924Pcv5kUUgfCyTqqSSwYRfLhmeiSOZHfzL8MNrUkvsvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/RIGMtxsDpKOTr9yxoXR/Q+10dmSZhO1X3SRriRh/H4=; b=RHesxccdVVSVK5eyo62qcNCioiO1ulRgLYkX1CVbtvFRQ6ehJRzWXwLgJKpO7AbZNmX9bKwcbNy6Bx7EXmKfA0iN3ZtqjT2R2bLsgTka77X5O83JZzIV/TOLCZ5jbcEPpkGLWGMPh8pDjm+12v0D/6bS+2iLo4Kb7u3PYuqOzl4= Authentication-Results-Original: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=arm.com; Received: from AM6PR08MB3047.eurprd08.prod.outlook.com (2603:10a6:209:4c::23) by AM6PR08MB2949.eurprd08.prod.outlook.com (2603:10a6:209:4d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27; Tue, 12 May 2020 10:14:56 +0000 Received: from AM6PR08MB3047.eurprd08.prod.outlook.com ([fe80::49fd:6ded:4da7:8862]) by AM6PR08MB3047.eurprd08.prod.outlook.com ([fe80::49fd:6ded:4da7:8862%7]) with mapi id 15.20.2979.033; Tue, 12 May 2020 10:14:56 +0000 From: Szabolcs Nagy To: libc-alpha@sourceware.org Subject: [PATCH v2 00/13] aarch64: branch protection support Date: Tue, 12 May 2020 11:14:36 +0100 Message-Id: X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: CWLP123CA0056.GBRP123.PROD.OUTLOOK.COM (2603:10a6:401:59::20) To AM6PR08MB3047.eurprd08.prod.outlook.com (2603:10a6:209:4c::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (217.140.106.55) by CWLP123CA0056.GBRP123.PROD.OUTLOOK.COM (2603:10a6:401:59::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Tue, 12 May 2020 10:14:55 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [217.140.106.55] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 74f17d50-6b86-46b7-a83a-08d7f65d5687 X-MS-TrafficTypeDiagnostic: AM6PR08MB2949:|AM4PR08MB2899: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-Forefront-PRVS: 0401647B7F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: dWBKzRujovY/CBRQkGbTNDSkwaWO2ilPqsVh7rUb2XqODmvm+0mv21gArDj+hsNgxknXcdIeMeJrro1mE096RxXTy0R5EwmcxoRoxuzRo/p1eUMxXkZRhR6JRBsBGjgf4PJNZR4X+cUbpqyVMwePGAA6kEDi0EHVlo6zuRxt0s/XwLrzL8dfxy/vqFUkBoHori1QRMJTHIeA4E0UgTxF5zhDtB3RSVI29CHI30TaCerU7YyvNz5omud3aZ4dh2/u8U0dh0XUYZ932WTa2SdTnYEA6PaPJEw5jSJcSGfdDKuDzRUDR4+l0e9KfuCAWbgzM8MRlifOuNHYjMrCfKqBVuNNiqidmbmby6u8e06kv7WcBY6FNiWWKhxyXIhdEt8pBmuL3TA52NLBC+V9uK9ixCY0KzXIB1peHA4VXN8L1rxLx6z/vYG+oXDIBbcBPiffH3Tao2dKm4goiPO8HW9cYg1YxVk4f45z5Axi2KSLqA5q8DHVFG8MHxv34r/qQr0mjKU60lVzW/HslfZ1LzqyKCKyi6p+OxzwVHizt31GHTKUVLb6AplETQmj50lMQRbXaC9fexFGDaT42DkJ0IVO97NEOcDgnOQaSlMz+5MGygGdsYSD5WboXEFmgMRlMyYPGCuXVhXIaUix+CjFTLCHliDx6oKFPBYzEViy414mx7Y= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR08MB3047.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(366004)(396003)(39860400002)(136003)(376002)(33430700001)(5660300002)(66946007)(956004)(66476007)(52116002)(44832011)(33440700001)(36756003)(966005)(66556008)(6486002)(478600001)(2616005)(26005)(6506007)(6512007)(2906002)(6916009)(8676002)(186003)(8936002)(16526019)(6666004)(316002)(69590400007)(86362001)(136400200001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: RwgwUtYxDqP5oN7JGmjefFFhrtWu5N25S+tcQmF9Ifr9PIcaI9eGsyQ1NKfgbtMd04+KTX+tgYv8nHH0+hs+eBcHnMWH/rSNb1wxfs8eOg4AP3tgz7nssp6ldeuL5MMsS6FqFgjoNNnwnKpNldszBr4JdqE7COTEgDigaS+IobiT8+Zd8UsA844NV7ca07xf7Sc9LZwzimNvVTBBJVY3qX7Ws8+cozlxbzSsXkYMSLKtCMMpdaFg8CRS6GdOS7unrvZGlzqIDcoDdclU9mIKYQOSzttmnUsPwUcwlKzvp6VzhF58BVCcMZ7W/1kh3wNvk+qIvZfO/800+hacjN66uhzIW6L+1pZS+lL9onr+OWEMtJS9+HHx4uPrTSY5n1ee9oehdQh1PPsukRQJWCva11Nn0MP+zx5TMfIAkGaP6DWAUVty7whYipXwf4sAYWElByRHcAEspNFdSumBbuMNNO+obPtmamKW4j6mIq3aK9Qu10RUqvxQ5ktDcHc9u1qf X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB2949 Original-Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none; sourceware.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT003.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(136003)(39860400002)(346002)(396003)(376002)(46966005)(33430700001)(2616005)(36906005)(6916009)(316002)(966005)(86362001)(6666004)(6506007)(186003)(8676002)(26005)(70586007)(16526019)(5660300002)(70206006)(69590400007)(36756003)(47076004)(82740400003)(2906002)(44832011)(81166007)(82310400002)(956004)(6512007)(33440700001)(336012)(356005)(6486002)(478600001)(8936002)(136400200001); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 022440b9-c240-4ec2-c5cc-08d7f65d5187 X-Forefront-PRVS: 0401647B7F X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6870jo/0BlhYc86MU/0m+3GQcuGtQ+ye67bOcVtjnM5S9woCfvM0rHXTGcd/Wg4tGPQ2/yBh19uQsET2lna0rCuO7iQmDq3eKWxdgU/1+U1oivs0FinJB1b1xwvraiaPYry9zoKSYPsbIvGva7JonFNaNw/aJIoxDJ77s/3a2dkdj9OrSMcbYs7A3veYIs+VJDynUNyDRd1dSFmB2x1W18P3OveJbtR0/qUwzrlpRBENkIJQzx1aCwOIWwv/T3iqehlrrBvKUDZmLOop+wUfLNJyV4JWoZlZc636/+J4kfn3PrUqq4vEPYJNr/AGPRXkSunvBfLtDcaEBHdS/43RfXUsW4TnBAHrfJGV2oOzCBawAwOi0Z07azba6rAcPrstRbdTvCnFaakaNNB3JaIo83CZsB4UBS4EwkoYCpRU1AJm8csOZgPzfUsB6w1DM3XUAk3SqogHbgyRDJ/ggHxJN4vSwqd+deFCGQhvlyiDx7Bf6GJWFU0d2T0CvohtBYoxOAwkXdx0AW+4oB72nk2/y4v12GqHuxXunD4OXsZ74so5ItYx9FLK1VwtkOI8Oj7ooNIklb76q4YsQZo8jDyuOGejiutamWlkeGo3Qa5RVTqG4hsFdcWV/1tRCWEhZgm3RtCUG3618sV+LnkoYXLgVSMRDEuKMLVNcB8vRKmHgOptKhwt2einmR9iEd5riCYIueXIqYkmim5VZinvnJsK/kvDsnh2mqmT8cd08qCS86U= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2020 10:15:03.9507 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74f17d50-6b86-46b7-a83a-08d7f65d5687 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2899 X-Spam-Status: No, score=-15.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, KAM_SHORT, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Indirect branch target identification (BTI, armv8.5-a) and return address signing using pointer authentication (PAC-RET, armv8.3-a) can be used for security hardening against some control flow hijack attacks. In gcc these are exposed via -mbranch-protection=bti+pac-ret which is the same as -mbranch-protection=standard and gcc can be configured via --enable-standard-branch-protection to use them by default. BTI requires libc support: it is an opt-in feature per ELF module via a GNU property NOTE that the dynamic linker has to check and mprotect the executable pages with PROT_BTI. And libc objects that are statically linked into user binaries must be BTI compatible for the GNU property NOTE to be present. (The property NOTE is handled by linux for static linked executables and for the ld.so.) PAC-RET does not require libc runtime support, but, just like BTI, it can be used in libc binaries. v2: - removed --enable-branch-protection-standard configure option, branch protection in glibc is enabled based on the compiler default. - GNU property notes are disabled if compiler/linker has no support. - pac-ret is enabled based on compiler defaults. - PATCH 03: cleaner csu/abi-note.c and fix arm/abi-note.S. - PATCH 04: new (bti config check). - PATCH 09: drop the umount2 change. - PATCH 10: use bool instead of int. - PATCH 10: fix code style and comments. - PATCH 10: add linux version requirement to description. - PATCH 11: new (pac-ret config check). - PATCH 12: only use pac-ret if HAVE_AARCH64_PAC_RET. - PATCH 12: fix pac-ret use in dl-trampoline.S. - PATCH 13: use static inline instead of macro, update description. - addressed some of the reviews from Adhemerval, the remaining ones are marked as TODO in the descriptions and will require another test run or agreement on the design. Ran cross tests in qemu using the linux for-next/bti-user branch of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git FAIL: elf/tst-audit14 FAIL: elf/tst-audit15 FAIL: elf/tst-audit16 cross test issues. (/dev/stdout is not a regular file, but pipe created by sshd) FAIL: elf/tst-ldconfig-ld_so_conf-update cross test issue. (seems to be the lack of etc/ld.so.cache which is not installed when cross building glibc) XPASS: elf/tst-protected1a XPASS: elf/tst-protected1b FAIL: gmon/tst-gmon-gprof FAIL: gmon/tst-gmon-pie-gprof FAIL: gmon/tst-gmon-static-gprof -pg abi (_mcount does not drop pac but receives address with it) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94791 UNSUPPORTED: iconv/tst-gconv-init-failure FAIL: io/ftwtest FAIL: libio/tst-wfile-sync cross test issues. UNSUPPORTED: math/test-fesetexcept-traps UNSUPPORTED: math/test-fexcept-traps UNSUPPORTED: math/test-nearbyint-except-2 UNSUPPORTED: misc/tst-pkey FAIL: nptl/test-cond-printers FAIL: nptl/test-condattr-printers FAIL: nptl/test-mutex-printers FAIL: nptl/test-mutexattr-printers FAIL: nptl/test-rwlock-printers FAIL: nptl/test-rwlockattr-printers cross test issues. FAIL: nptl/tst-cancel7 FAIL: nptl/tst-cancelx7 bug 14232 UNSUPPORTED: posix/tst-spawn4-compat UNSUPPORTED: resolv/tst-resolv-ai_idn UNSUPPORTED: resolv/tst-resolv-ai_idn-latin1 Summary of test results: 17 FAIL 4123 PASS 8 UNSUPPORTED 17 XFAIL 2 XPASS Sudakshina Das (2): aarch64: Add BTI landing pads to assembly code aarch64: enable BTI at runtime Szabolcs Nagy (11): elf.h: Add PT_GNU_PROPERTY elf.h: add aarch64 property definitions Rewrite abi-note.S in C. aarch64: configure test for BTI support aarch64: Rename place holder .S files to .c aarch64: fix swapcontext for BTI aarch64: fix RTLD_START for BTI aarch64: fix syscalls for BTI aarch64: configure check for pac-ret code generation aarch64: Add pac-ret support to asm files aarch64: redefine RETURN_ADDRESS to strip PAC config.h.in | 6 + csu/{abi-note.S => abi-note.c} | 28 +-- elf/dl-load.c | 2 + elf/elf.h | 7 + elf/rtld.c | 2 + sysdeps/aarch64/Makefile | 4 + sysdeps/aarch64/__longjmp.S | 1 + .../aarch64/{bsd-_setjmp.S => bsd-_setjmp.c} | 0 .../aarch64/{bsd-setjmp.S => bsd-setjmp.c} | 0 sysdeps/aarch64/configure | 81 +++++++++ sysdeps/aarch64/configure.ac | 40 +++++ sysdeps/aarch64/crti.S | 12 ++ sysdeps/aarch64/crtn.S | 10 ++ sysdeps/aarch64/dl-bti.c | 54 ++++++ sysdeps/aarch64/dl-machine.h | 5 +- sysdeps/aarch64/dl-prop.h | 170 ++++++++++++++++++ sysdeps/aarch64/dl-tlsdesc.S | 13 ++ sysdeps/aarch64/dl-trampoline.S | 22 +++ sysdeps/aarch64/linkmap.h | 3 + sysdeps/aarch64/memchr.S | 1 + sysdeps/aarch64/memcmp.S | 1 + sysdeps/aarch64/memcpy.S | 1 + sysdeps/aarch64/{memmove.S => memmove.c} | 0 sysdeps/aarch64/memrchr.S | 1 + sysdeps/aarch64/memset.S | 1 + sysdeps/aarch64/multiarch/memchr_nosimd.S | 1 + sysdeps/aarch64/multiarch/memcpy_falkor.S | 1 + sysdeps/aarch64/multiarch/memcpy_thunderx.S | 1 + sysdeps/aarch64/multiarch/memcpy_thunderx2.S | 1 + sysdeps/aarch64/multiarch/memmove_falkor.S | 1 + sysdeps/aarch64/multiarch/memset_base64.S | 1 + sysdeps/aarch64/multiarch/memset_kunpeng.S | 1 + sysdeps/aarch64/multiarch/strlen_asimd.S | 1 + sysdeps/aarch64/rawmemchr.S | 1 + sysdeps/aarch64/setjmp.S | 1 + sysdeps/aarch64/start.S | 2 + sysdeps/aarch64/strchr.S | 1 + sysdeps/aarch64/strchrnul.S | 1 + sysdeps/aarch64/strcmp.S | 1 + sysdeps/aarch64/strcpy.S | 1 + sysdeps/aarch64/strlen.S | 1 + sysdeps/aarch64/strncmp.S | 1 + sysdeps/aarch64/strnlen.S | 1 + sysdeps/aarch64/strrchr.S | 1 + sysdeps/aarch64/sysdep.h | 55 +++++- sysdeps/arm/abi-note.S | 8 - sysdeps/unix/sysv/linux/aarch64/__read_tp.S | 1 + sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 1 + sysdeps/unix/sysv/linux/aarch64/bits/mman.h | 31 ++++ sysdeps/unix/sysv/linux/aarch64/clone.S | 1 + .../unix/sysv/linux/aarch64/cpu-features.c | 3 + .../unix/sysv/linux/aarch64/cpu-features.h | 2 + sysdeps/unix/sysv/linux/aarch64/getcontext.S | 1 + sysdeps/unix/sysv/linux/aarch64/ioctl.S | 1 + .../unix/sysv/linux/aarch64/libc-__read_tp.S | 1 + sysdeps/unix/sysv/linux/aarch64/setcontext.S | 1 + sysdeps/unix/sysv/linux/aarch64/swapcontext.S | 15 +- .../sysv/linux/aarch64/syscall-template.S | 20 +++ sysdeps/unix/sysv/linux/aarch64/syscall.S | 1 + sysdeps/unix/sysv/linux/aarch64/vfork.S | 1 + 60 files changed, 606 insertions(+), 22 deletions(-) rename csu/{abi-note.S => abi-note.c} (88%) rename sysdeps/aarch64/{bsd-_setjmp.S => bsd-_setjmp.c} (100%) rename sysdeps/aarch64/{bsd-setjmp.S => bsd-setjmp.c} (100%) create mode 100644 sysdeps/aarch64/dl-bti.c create mode 100644 sysdeps/aarch64/dl-prop.h rename sysdeps/aarch64/{memmove.S => memmove.c} (100%) delete mode 100644 sysdeps/arm/abi-note.S create mode 100644 sysdeps/unix/sysv/linux/aarch64/bits/mman.h create mode 100644 sysdeps/unix/sysv/linux/aarch64/syscall-template.S