From nobody Mon Apr 29 03:13:42 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VST1k4lLbz5J4YZ for ; Mon, 29 Apr 2024 03:13:46 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2100.outbound.protection.outlook.com [40.107.100.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VST1j3BqTz4sNl for ; Mon, 29 Apr 2024 03:13:45 +0000 (UTC) (envelope-from jfc@mit.edu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mit.edu header.s=selector2 header.b=ti4KlHp5; dmarc=pass (policy=none) header.from=mit.edu; spf=pass (mx1.freebsd.org: domain of jfc@mit.edu designates 40.107.100.100 as permitted sender) smtp.mailfrom=jfc@mit.edu; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZqvzoHszkbR3/5r1pdcj+WFPPIQElNzxUWlFAKz362/gwpxrnt/FBf5G1tbzCFn4UZV0WkWh18bNRAdKKz3v8Ap3soPY+KoI5Suv+8FbmYIctQ/r6IWr587rLZxhp3T+VSqZitPiMJ70DMZu3iK1p7Lka86CPQig086BqssJ6F+gw7ZStgER+jwJnrirvaEIA8sQQgexmWKOtdw7EpfNA/7tbplX6EfXbIoLFPseSVVkUb9hvYIZM6U8/zoq6eLWEsVTCmTF4fNX+ebiIDubenRpHX1TQCfsYOWKZN8uMMdzNRwVC7uwh6NAxc0Z21TmNWRDBgTemizvlZkDQCZSJQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mr7CTPqhhGFrCzOEv1bDtGK++FVk0mJEChELlJuZC2U=; b=TP56Ws6h0N0h+yRzGvkE9UPJ9oaNlQqQfvSPIDMoKC+6EvdvLRITtuD5ijCExSMh4jE+EifWDCJS8QBBADogCPAZJylZiK7i3wJ7gnth1dxA54ZCF3TcoSZvBrf+rbsIQ53d3FJgXHCoX55iEKrjIGXv4f7FckAqHvBpF2YLIywQJS0Ye9g6gE1cFw9GhPmvQSxDob9ToIO+KStxIi9BCapkDg6QpHSddbFIJTK4d2wUJjw66LxXDdJdTnrgyNRBHd2eYGjRJjjCHrNzMmqh9Gi+h3GQwdYHHIPrO1gA3ftuxIOW9HPLizstaNEvGE9nJBh6BJXuOv9m5O96AIParw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mit.edu; dmarc=pass action=none header.from=mit.edu; dkim=pass header.d=mit.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mr7CTPqhhGFrCzOEv1bDtGK++FVk0mJEChELlJuZC2U=; b=ti4KlHp5mEiw9JlC+Vs7rcSMsteLdH3ppvAqe4ZnHBFEtc/DeS1jihBEeR4IOH+pCioUpW8Tkw5NLJe41FF+hG7aoz68TQuoOW1jnGqGndDY3OYcNeOJF2ZPf4S+jriQXIbeZ+dXufSTxhXfH5NSO8Weif2IMzsvdDzTIG+OR+o= Received: from SA3PR01MB8450.prod.exchangelabs.com (2603:10b6:806:382::17) by CH0PR01MB7122.prod.exchangelabs.com (2603:10b6:610:ff::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Mon, 29 Apr 2024 03:13:43 +0000 Received: from SA3PR01MB8450.prod.exchangelabs.com ([fe80::bb39:d8c:f575:6b9d]) by SA3PR01MB8450.prod.exchangelabs.com ([fe80::bb39:d8c:f575:6b9d%6]) with mapi id 15.20.7519.031; Mon, 29 Apr 2024 03:13:43 +0000 From: John F Carr To: freebsd-arm Subject: Relocation error loading 32 bit ARM kernel modules built by devel/llvm18 Thread-Topic: Relocation error loading 32 bit ARM kernel modules built by devel/llvm18 Thread-Index: AQHameM9g9Qxh3vusk2DSHDCoP0Ftg== Date: Mon, 29 Apr 2024 03:13:42 +0000 Message-ID: <17406241-3810-4FA3-A601-0989C34975D5@mit.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA3PR01MB8450:EE_|CH0PR01MB7122:EE_ x-ms-office365-filtering-correlation-id: 463e1005-8d3c-46af-2f54-08dc67fa600e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|376005|1800799015|366007|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?NvvQDT3AsOPQxc+hs01jz90OD3nLogFInZReuzwhCW4MzpAOBzBvCykr/WVP?= =?us-ascii?Q?HynZD0lQ3G8roLppK9iUaT7+cj4GBQjD7HPW78jJxTNQKe/Ai633Dq6eqXpV?= =?us-ascii?Q?MXNafVCpvbuET+YOO8d44LyYZ0ZYPpCFSmnp9UqbHD1/Ejit/Y9YJe5MYaM5?= =?us-ascii?Q?zxZP+r+cvznsnab5VZIr4bejF0+cpoM1y8o6CcLJxmmXVPDsOM3+B2vFZ0s8?= =?us-ascii?Q?wemrqmWV0g0xtUEt1TNXZmHg7u3zNpsPZv+zppAygCFWyo7MfL94TsbVRR/R?= =?us-ascii?Q?npIxelgfv4PnUpfzaW0S6NI9ntGUq0Ry57OZt63bYIHXMs6rNjxZjared7N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lyGnu7VQWBdy+n12MnepaVQnV1o1BCUrrh?= =?us-ascii?Q?EFDwglWLMC1cUoz8npE51nTwl+EGAYrlVYjTWObSJnlm/ajT8+os0a1jF8AC?= =?us-ascii?Q?wkMqE4UkygdYse0YxaWVaY/XPd8g6rWaJ6yk7W2FvnMDdQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA3PR01MB8450.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HYImaY2qJX6h/MyQ85ZfbBtZv13dGyDdWBnTp17RhLEQZo1h+kqr8z/1fyaS?= =?us-ascii?Q?T6vZP4RC+/YlODIsa6T/KHNFFLTDxjCEpsz57jPKXsL/Rv39zs2OY2c+Zu9v?= =?us-ascii?Q?N1xyvtOTWWKS+EkEJbhXqMZp+dMrco8yejcZMs3hPdNlfdxkvzVkdGUL9snJ?= =?us-ascii?Q?GqZL5CZ0QQolz4q6F4AfHNrDFkj58XhcYLPksA68VB50KuJtZCu14n/kDQ5h?= =?us-ascii?Q?kchjE/XrUWHdv/txC6uGqRzq8FsAlhTvuYJwvgBP6lK78SG6UDSukDDeRdEC?= =?us-ascii?Q?8PVz8n6HbPYLuHKnynJQIx19dQ5G0Gwc46b6BVMuU/CIv1Vg29+3XtP9jLvi?= =?us-ascii?Q?Or4BshkV9uxMjzXqhX8Z27bQnGBX9NCtM3gaucMkfn/hckDjdQTKvwPt4WSv?= =?us-ascii?Q?IlPz12ZdumBvYUyp3jTsZU00fYY5symkErLms815UAlOOeLrC+N3+hXk4eB9?= =?us-ascii?Q?9h14XAYAbaaFzUERqbTqKx/wOoI+MOoWgBnPZQS9SCN5vvWGnhJ8Gno2RQSh?= =?us-ascii?Q?M192Vjb5cqWGIKVq/f+g2uT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q?PYu5UkAYgcsoAFKFZ4LgEjopd53CTBLMM4OFHFRXeiFGkNaYNnk75Paclo+4?= =?us-ascii?Q?oNpqtaQC+0Z4dJhsISykaApYlZvOaVe65x/sx7jfdhFCFMi1K8FuEy6t0mhR?= =?us-ascii?Q?iapL5x7peGlMSJzskuqZ/hdBXdBt8VKCpY10D/N0LuRndvySU6J1zt7pS7rD?= =?us-ascii?Q?W7hXcSA9/AMAShP01T2SNZXA6svzFT/lB0MtnO2fl1+h?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 X-OriginatorOrg: mit.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA3PR01MB8450.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 463e1005-8d3c-46af-2f54-08dc67fa600e X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2024 03:13:43.0164 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mdRcFxREgIc9UiT4t3hbNUyF/pC9fvJeXvubYr4uafALgiwcLTpHUCZlK5fxGGQQ X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR01MB7122 X-Spamd-Bar: ----- X-Spamd-Result: default: False [-6.00 / 15.00]; DWL_DNSWL_LOW(-1.00)[mit.edu:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[mit.edu,none]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; R_DKIM_ALLOW(-0.20)[mit.edu:s=selector2]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.100.100:from]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[mit.edu:+] X-Rspamd-Queue-Id: 4VST1j3BqTz4sNl The ports version of llvm 18 generates 32 bit ARM kernel modules that can't= be loaded due to an unsupported relocation type. The system llvm 18 works= . The ports version of llvm 17 works. Running "make buildkernel CROSS_TOOLCHAIN=3Dllvm18" changed the relocation = type for __stack_chk_guard in umodem.ko from R_ARM_ABS32 to R_ARM_GLOB_DAT,= resulting in an error: kldload: unexpected relocation type 21, symbol index 22 link_elf: symbol __stack_chk_guard undefined Two compilers based on the same llvm-project git hash give different result= s: FreeBSD clang version 18.1.3 (https://github.com/llvm/llvm-project.git llvm= org-18.1.3-0-gc13b7485b879) clang version 18.1.3 (https://github.com/llvm/llvm-project c13b7485b87909fc= f739f62cfa382b55407433c0) The FreeBSD version works. The version I compiled from source generates th= e bad relocation. What is different about the FreeBSD system compiler? Does a fix need to go= into devel/llvm18? Should sys/arm/arm/elf_machdep.c handle a new relocati= on type? John Carr