From nobody Thu Nov 23 22:59:13 2023 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 4Sbtpj4Pd0z52LvL for ; Thu, 23 Nov 2023 22:59:25 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from outgoing-exchange-3.mit.edu (outgoing-exchange-3.mit.edu [18.9.28.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.outgoing-exchange.mit.edu", Issuer "InCommon RSA Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sbtpj3xH6z4fGV for ; Thu, 23 Nov 2023 22:59:25 +0000 (UTC) (envelope-from jfc@mit.edu) Authentication-Results: mx1.freebsd.org; none Received: from w92exedge4.exchange.mit.edu (W92EXEDGE4.EXCHANGE.MIT.EDU [18.7.73.16]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 3ANMxGVJ013764; Thu, 23 Nov 2023 17:59:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1700780363; bh=Qfiewk2gQ2iNK81yH2PVfrAmXe73DjzgZRE5cCcH+9g=; h=From:Subject:Date:Message-ID:Content-Type:MIME-Version; b=JcVMEnJQR/M+Ia6qgFLZMcssmnCKcBwdqyiVdI6UQ7+sThacqjynzZLiKI560LZUA RuidzsljAyQbys1uz/FWdZmCNpTamfHkcvjxnXSVRzuUepYziH9acQX2EQs6j/O5se kQxnmjj5OOVfccdR7fWYoaZjp/H1QrPvOLsNn0CJ93KxA3rz4NcB7yrwul/dDfHKbD veamGqFWP6/cPB5IpuNHOBdg7h29s5PHT4MGCW/wVWhBfb1Zox+KxzlJsrqbFa4UNc BAgYh7z57l/0kkuX7nxNwtPCvlx0/SeVTMNMVLW1NKFPcXkweIb6gmgG07jenrpDFt WmFlwknU+EhFA== Received: from oc11exhyb4.exchange.mit.edu (18.9.1.100) by w92exedge4.exchange.mit.edu (18.7.73.16) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 23 Nov 2023 17:58:58 -0500 Received: from oc11exhyb5.exchange.mit.edu (18.9.1.110) by oc11exhyb4.exchange.mit.edu (18.9.1.100) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 23 Nov 2023 17:59:16 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by oc11exhyb5.exchange.mit.edu (18.9.1.110) with Microsoft SMTP Server (TLS) id 15.0.1497.48 via Frontend Transport; Thu, 23 Nov 2023 17:59:16 -0500 Received: from SA3PR01MB8450.prod.exchangelabs.com (2603:10b6:806:382::17) by LV2PR01MB7837.prod.exchangelabs.com (2603:10b6:408:171::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Thu, 23 Nov 2023 22:59:14 +0000 Received: from SA3PR01MB8450.prod.exchangelabs.com ([fe80::79a2:b3b5:bcdf:bdf0]) by SA3PR01MB8450.prod.exchangelabs.com ([fe80::79a2:b3b5:bcdf:bdf0%7]) with mapi id 15.20.7025.020; Thu, 23 Nov 2023 22:59:14 +0000 From: "John F Carr" To: Robert Clausecker CC: FreeBSD ARM List Subject: Re: Undefined __aeabi_uidivmod in 14.0 armv7 Thread-Topic: Undefined __aeabi_uidivmod in 14.0 armv7 Thread-Index: AQHaHgbQOZZaQlbMD0SVShQUbRvzu7CIOGAAgABM4IA= Date: Thu, 23 Nov 2023 22:59:13 +0000 Message-ID: <314390AE-09B7-49FD-AB0C-256A8786F043@mit.edu> References: <0EBEB2B6-198D-47C5-8715-02F19EF5ED06@mit.edu> In-Reply-To: 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_|LV2PR01MB7837:EE_ x-ms-office365-filtering-correlation-id: 58255411-8374-4bad-b40d-08dbec77d007 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fha5h8ecOuC7IkIHo+9PEXXXhNNdo1Cz9Ns7s8B9y3+4bz+KruI6+LHw5dOWdVTw0ICtk4ZIrAIRjYsKj8gk/pa86EKLU7KOC54LY6y10+XuaQJMdLwzLe9FyC3o0iD53sja/LZo6FB5E+JdaZKsP+5ryp1t5Dq5P8mezSg/FjIKi5osA7H8SvDTPKX2rjj0S0aiEEJR7/PueE8P+dQ/M0q/pFJg/Humc4V4dSqxSn/GVAdNdLlz3PrcLwJIpnDaKA9Nhz2t7fSSIjVNKfnycwvhAyjOHqZfe4mb0kV60O5cHjjRmbvHTxjUIJrN9eJCaf9JvhVcIZIV9loIbBYZWrtfIQy/aa6NAU6Knu9i5SPt3tITm19x7QgFdQKJmWO8ArpN6S+Zti3JgvEarhEin0YLmFfqx6wf6L8obznetjtFO8k9MeQOnIoscpeIOk1iWQ2Jo99yLYcWBF4gFDxxYsq+r0XX28Few/6zF1Bv0Dj3buM73jbDOHvlJQwEW3JPbEijh8Wib8JViVfH2TyiP69WYrGewt5FMHkua2mS8mXGuAqaVcuSWks+rUJXNxL2FheH5v28H8dPj7qDd7Jf1QZ/RjoZC/03zgog7y8oJldibebYRQLt+dqSf4NXCUx1 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)(39860400002)(376002)(366004)(136003)(396003)(346002)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(6512007)(2616005)(478600001)(71200400001)(6506007)(53546011)(5660300002)(2906002)(76116006)(91956017)(6486002)(41300700001)(8936002)(6916009)(64756008)(8676002)(316002)(786003)(450100002)(66946007)(4326008)(66446008)(66476007)(66556008)(75432002)(122000001)(38100700002)(33656002)(38070700009)(36756003)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gOa5pzrfciRYX39/+NhUMwVFyUIgttI6l51AXlRLR4BmBxPRViaYVQ9CD8A/?= =?us-ascii?Q?ZQxnbmaUI8nxxhcjXS4kmao5AuJt3sALF8gxdK/Z7Mk68KbxgZl9btYUu4UG?= =?us-ascii?Q?PWAiBwRBHbBak855vBL8XPEb0cwkQq3yiNlYsb00UB+XV0e1Wu7Z6qBeQF/c?= =?us-ascii?Q?kuFjQqhKnBl0bUGRBaF5edFXFS/vMJIV/Q4cWn+XOz5etE2mCGXxfOmgkarZ?= =?us-ascii?Q?6WvRRTdBWrF6dlPowzkiCG6Gzu7sjUtOHqrsIRBilZwyM6dlEz7iZlSc7XvZ?= =?us-ascii?Q?pA+fA/PVANKhU9MK/Dzwu+G7eHMAjdoFircVQFZwRw32vGtbgcriqBdiI0YC?= =?us-ascii?Q?TFARi6+cNNcYunCYEY/nBNOViY4bEC3YnR41zYzzmauTX/sWerUBnawP4dYQ?= =?us-ascii?Q?qERvGjprd+vH1fCBDz/A8L0kRAoA1ixvb7VBgdpWziv1xJBP4AdN2btFwxNc?= =?us-ascii?Q?eVQymZ+KDjNhvcMPc19Ykizp0bk6wlgkdvgLoMgr1XK2ULdbYiUGM5d69vsu?= =?us-ascii?Q?1+k1h+UFlgB/qeTw5f6hNlv1rT6XW797jj/WVaDm+cKD3YOctOOw99aRVpPk?= =?us-ascii?Q?zjO4PjnbRxgvSNjGIfegIQfg0hCmemYFY/7UYEzt99dT+0NCkzWqoTpQobU/?= =?us-ascii?Q?t9L55juQsr8M2BYUJXyFJ0U1T3GQan7HtFFUeBBilrgmMk84+x5IR6gQRTfu?= =?us-ascii?Q?heSAWR5NQgvK4hwQHD/OuRXENvV5T5f8OlNa6lraqAhX0ILSgZ12Mev1sz/n?= =?us-ascii?Q?RoGIewafCkwnDpURT22RfkQBPLxhTixxzJ6Uy6IGEG2ogkm5KJqrqR1xvD4Y?= =?us-ascii?Q?mWVqNEIcMvb5V9zrB7DjMnXFba0+GRECxvXx97cj12Z1IfZgdiQD/KjXXf2a?= =?us-ascii?Q?hm1HCaS9HPtCthRNMSMmq5r/sR1ve2KCqdNshjg6X6INcI5ia/oBcuPOzsmy?= =?us-ascii?Q?NVDo5zv0X6iV9/kWfoMCHEudkQB+qnRmaxzJuTw28d/2vTaqyyX7ZU2S4FXC?= =?us-ascii?Q?eea11LYRG5vgMwpsWZgZXEazZhxsKShyzjMPPu5F4FlXT6YXO67kp6VE/JMO?= =?us-ascii?Q?foPh57cpv2kQJydypvXiAibFnYXepjUhVLeJTf488OeudTi8Zf/cqdCmAODp?= =?us-ascii?Q?4QIcH26K1X9XticSZQSnkznpRwZO/sOTkqJKnXWRWp/KL/Hmve3ouRBxfnFx?= =?us-ascii?Q?P19y3PguB8daUMv+evCVOuZIFwou2GurPA6g+JPU7CnSVzDIzZtsWCZ66WKS?= =?us-ascii?Q?gMILAThOzWTV5svspE4wrcTXxSnfHOtqyLyebmHhZpdUlvKNIMd8PiGXfo7b?= =?us-ascii?Q?4aWpSz7mmfrsfn7ea9zzHBNKIUi4lO6PrNWMoBXt6lSB9vCvcEY1bCmq8CZW?= =?us-ascii?Q?8btAAwhzbpqegMUercd5IC+IowWIqNzMbBfFBvb6pcErLjFucpBVMpZQAbzD?= =?us-ascii?Q?wFeCP55+xG6xpLlC80udTLdldcdZKMFAgdXOXfsbBjZFXrikjs6DR702A51x?= =?us-ascii?Q?v0uW8AO6OaDrGz2FwmZlcE9utrm6nPtvwkNCWI8V4HMHWqa7UnIAI2GX5Sz6?= =?us-ascii?Q?o2/aGxbC5n4KYjzCmlz7gu7LSr9nczR97+lj/TGOUcJ07utxJG+vC/jDjRJo?= =?us-ascii?Q?z8t3i0E+edkqW/E6ad48flfirDBzfJLHFEf2pWfCBVkW?= Content-Type: text/plain; charset="us-ascii" Content-ID: <86DA7CC404B19442A0546E3E6FCBF580@prod.exchangelabs.com> 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-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA3PR01MB8450.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58255411-8374-4bad-b40d-08dbec77d007 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2023 22:59:13.7981 (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: quSWf1vpUuQ7om+QXzXevOLwOkt2kaF6WrLioDKSQnqRXXQ1uIIFTQlVrVY1IAJJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR01MB7837 X-OriginatorOrg: mit.edu X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3, ipnet:18.9.0.0/16, country:US] X-Rspamd-Queue-Id: 4Sbtpj3xH6z4fGV On Nov 23, 2023, at 13:23, Robert Clausecker wrote: >=20 > Hi John, >=20 > This is a long standing open issue in base. These __aeabi symbols are > shims used by the ARM EABI to implement functionality missing in the > instruction set. Back when this was implemented, whoever did the port > hacked something up and only added those symbols that were initially > needed. However, turns out a bunch more will be used by gcc/clang > under certain circumstances. >=20 > While we actually have code for all of these symbols in clang's runtime, > the version scripts were never fixed and the symbols remain unexposed. > I have previously raised this issue with a bunch of people involved in > the ARM bits of FreeBSD but never managed to get anybody to fix it. >=20 > Maybe it'll be different this time. >=20 > If you want to give it a try yourself, check the ARM EABI document. It > has a list of all __aeabi symbols that should be present. You could try > and add the missing ones to the appropriate libraries. >=20 > Yours, > Robert Clausecker This solves my build problem. I made up a version string and assumed all the __aeabi_ symbols in libgcc.a were to be exported. I omitted the string functions as suggested in bug 271087. diff --git a/lib/libgcc_s/Versions.def b/lib/libgcc_s/Versions.def index d28e9042f744..b90bc705e3de 100644 --- a/lib/libgcc_s/Versions.def +++ b/lib/libgcc_s/Versions.def @@ -31,3 +31,6 @@ GCC_4.3.0 { =20 GCC_4.6.0 { } GCC_4.3.0; + +EABI_1 { +}; diff --git a/lib/libgcc_s/arm/Symbol.map b/lib/libgcc_s/arm/Symbol.map index 92b54761d810..49b0820b2a73 100644 --- a/lib/libgcc_s/arm/Symbol.map +++ b/lib/libgcc_s/arm/Symbol.map @@ -15,3 +15,30 @@ GCC_3.5 { GCC_4.3.0 { _Unwind_Backtrace; }; + +EABI_1 { + __aeabi_llsl; + __aeabi_lasr; + __aeabi_lcmp; + __aeabi_idiv; + __aeabi_h2f; + __aeabi_d2lz; + __aeabi_f2lz; + __aeabi_d2ulz; + __aeabi_f2ulz; + __aeabi_ui2d; + __aeabi_ui2f; + __aeabi_llsr; + __aeabi_lmul; + __aeabi_d2h; + __aeabi_f2h; + __aeabi_ulcmp; + __aeabi_uidiv; + __aeabi_l2d; + __aeabi_l2f; + __aeabi_ul2d; + __aeabi_ul2f; + __aeabi_idiv0; + __aeabi_ldivmod; + __aeabi_uidivmod; +};