Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4318C04A68 for ; Wed, 27 Jul 2022 15:59:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8707183FFF; Wed, 27 Jul 2022 17:59:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="JvGlxxn8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D75D583FA5; Wed, 27 Jul 2022 17:59:29 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2050.outbound.protection.outlook.com [40.107.223.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E45F283FFF for ; Wed, 27 Jul 2022 17:59:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=michal.simek@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IpAshahkP2yIS1Sn370Gd3271Tzh47CUG8mElC7BzPZbBdjGho93FFJIOrl09ycCjZpIb4S5UBaDnGD/UjpnDAFoP+OAJpA7gNjDm3QcyqydHv4tmYfZ4vlYCdlmatDXlfJtP0Rm2kBDwmTcNwmQyI+LnkKMEXyRDlmWOccykL3BRak0yoIb56M8241weJXoB7UQWGwZdE0uZf9dgu9HU96iAJepzPCZN90SpMFYPl3+qPZNGei9HAt+6Ta/Fi0ec2aww+y08UtXcyqlTlZCP5QzPrEmZv11auIe57N/nFdFuOsqdPNr/cwkd9ilsNT/gHjvBiqlVdU6tJ1fBg5H2g== 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=lC6wXvs25ExFZ/9y00y9B1RWZWgQ263bnqC2AZkXeKA=; b=RlORb08Yx88kNVN+h1lDB3E/RGDC5KSQ+Et92MMHNoyq9tO3DgZHNhxtm+dKG3nZMGO1bOxihVS2QzByF2R9JsobjU9xbJUfkP7tp3I8/RrOfLNQMczwLDiGEC7VU+WhwxR/WOCbkW31A5ooO3HFM1pQnqcZKfhdeiKzl6rhFuLBnYdomnsF14IZaJgHfSl6xs78DQQLC6zKAEZWG5XVT00jsYIAHjp0/5qEEhlegy3yW/jqPCIF0NXALqNlyReSnJhH55bTsS5pUQjT6gPuVvZeIwPWGw73kw7xn2jnH4tsAk3t5+y/8JGoban84c+wvkhl9gk00oosBOZJzG6DKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=openbsd.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lC6wXvs25ExFZ/9y00y9B1RWZWgQ263bnqC2AZkXeKA=; b=JvGlxxn8y26BiG5McC5ZEbKXdc+Olx0xqJzon/S8uxb+6nF86u8RRmlzs2wfeFN6Sa+Lg1vT+GxbVOfVrvNCi0u6k1Y7rIIxTBrnvcyH8wsMG9KdFTaFzFDkKsJ8t3aOoDxkdZbuX4DkwqK/xPwij0HSfUPvZrS0YcmqvP6Trzo= Received: from DM6PR02CA0078.namprd02.prod.outlook.com (2603:10b6:5:1f4::19) by MN0PR12MB5737.namprd12.prod.outlook.com (2603:10b6:208:370::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.6; Wed, 27 Jul 2022 15:59:22 +0000 Received: from DM6NAM11FT033.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1f4:cafe::aa) by DM6PR02CA0078.outlook.office365.com (2603:10b6:5:1f4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19 via Frontend Transport; Wed, 27 Jul 2022 15:59:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT033.mail.protection.outlook.com (10.13.172.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5482.10 via Frontend Transport; Wed, 27 Jul 2022 15:59:22 +0000 Received: from [10.254.241.52] (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 27 Jul 2022 10:59:04 -0500 Message-ID: Date: Wed, 27 Jul 2022 17:59:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] tools: relocate-rela: Don't assume defines Microblaze stuff Content-Language: en-US To: Mark Kettenis , CC: Tom Rini References: <20220727143405.52368-1-kettenis@openbsd.org> From: Michal Simek In-Reply-To: <20220727143405.52368-1-kettenis@openbsd.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dd6f2b59-1b4b-42b8-deae-08da6fe8f8e5 X-MS-TrafficTypeDiagnostic: MN0PR12MB5737:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ukNYpdFPyKT4tWO/ryCJg0lbnbEXsg6wnbEjvJV5Uh82w5roQMp7WOViuJTIg1MF742KXvsdncNln8hcuKFVdTgRksypFfLvoeDavZSVvoKr/SQA3EyyqpHTpliCiOEm0LUF8mmTpHk3ftyon5BbLDkII8iclB2PsHrYwxwS3i9n7mLpBB67xH2qzNYlyJ+1da0evYkaOhKdLpdTt9ElJp3Opebq6TAPISHYFIcy8XhCvzYYE8nnOCLoZDKQjEvLZ3JsZ5+CSSyj+jOUdzCQLcWpO3LIDz20qGbN2oxJPWGn8Vv8muFxNAIfGcsbXR8Yjo4pxiqnUpYWlZPh+PasrO0ynCwGVqJrjz8yADwx8ELOJOcJD8OADa+4S2SeawmfPB8kDlpxTl4exNppMTThOPbmqN+36YU6F3xTWT8gnuUpvFxO7Rg4e2xvslPcTjbBCUWjr+JV+jmvfBnjrKkxoA9lyLRq8jC/44ocbf4sh03RXkg17b9CaFxLJY0rGC6DBi61UR47+PEAQVohLQeMHI2WFTxjdBCioYPKl4+kG+RJNJd9dbBsgTTkv8WqwUXHWl6v94eXwY6Hi4v23pxRki2WpGTBRVfgyn9WBKAvvY0ifdvn5VWe34L5CGJ5KzFoqN35BD9gbSRWJXLw8wq3/iglBHJrq5nYfZLdt6IngsqfG8j7yHPqKsYQUz9EnDe0oUrREdOGOwoL/EXEwkiybDC908tUeqXu7Al3v+osAzeP0tusxO9rFVPZwDCrrNz/vj3/YCjR878V/NQFs0cgCOA3FzyVFHrDE94rZFwEdETwDBh+UZg5hx1175XsepEiay5Q2+iLwtyP7/PicObbgUBejV4Q0bFKEmLglblLFqgucAaw63V1z9IF+gZyQ3Aa X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(396003)(376002)(346002)(136003)(36840700001)(46966006)(40470700004)(16526019)(40480700001)(186003)(26005)(478600001)(2616005)(53546011)(41300700001)(336012)(31696002)(40460700003)(86362001)(81166007)(356005)(82740400003)(82310400005)(426003)(36860700001)(47076005)(5660300002)(70586007)(8936002)(70206006)(8676002)(4326008)(16576012)(316002)(2906002)(31686004)(36756003)(44832011)(110136005)(36900700001)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2022 15:59:22.4319 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd6f2b59-1b4b-42b8-deae-08da6fe8f8e5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT033.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5737 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 7/27/22 16:34, Mark Kettenis wrote: > The contents of differ between OSes. It may only define > the relocation types for the host architecture, and may not contain > machine-specific defines for more obscure architectures (such as > Microblaze) at all. > > Define the relevant constants for Microblaze locally if they are > not provided by . > > Fixes: 034944b33bc8 ("tools: relocate-rela: Add support for 32bit Microblaze relocation") > Signed-off-by: Mark Kettenis > --- > tools/relocate-rela.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c > index 090fb1acb2..c57c3cfade 100644 > --- a/tools/relocate-rela.c > +++ b/tools/relocate-rela.c > @@ -20,6 +20,26 @@ > #define R_AARCH64_RELATIVE 1027 > #endif > > +#ifndef EM_MICROBLAZE > +#define EM_MICROBLAZE 189 > +#endif > + > +#ifndef R_MICROBLAZE_NONE > +#define R_MICROBLAZE_NONE 0 > +#endif > + > +#ifndef R_MICROBLAZE_32 > +#define R_MICROBLAZE_32 1 > +#endif > + > +#ifndef R_MICROBLAZE_REL > +#define R_MICROBLAZE_REL 16 > +#endif > + > +#ifndef R_MICROBLAZE_GLOB_DAT > +#define R_MICROBLAZE_GLOB_DAT 18 > +#endif > + > static int ei_class; > > static uint64_t rela_start, rela_end, text_base, dyn_start; It is fixed already in the latest master branch. Tom merged it yesterday. Please take a look. Thanks, Michal