From patchwork Mon May 2 15:20:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12834303 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81C06C433F5 for ; Mon, 2 May 2022 15:20:58 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.318962.538984 (Exim 4.92) (envelope-from ) id 1nlXqs-0001wW-1E; Mon, 02 May 2022 15:20:42 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 318962.538984; Mon, 02 May 2022 15:20:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nlXqr-0001wP-Ta; Mon, 02 May 2022 15:20:41 +0000 Received: by outflank-mailman (input) for mailman id 318962; Mon, 02 May 2022 15:20:39 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nlXqp-0001wI-Qn for xen-devel@lists.xenproject.org; Mon, 02 May 2022 15:20:39 +0000 Received: from esa4.hc3370-68.iphmx.com (esa4.hc3370-68.iphmx.com [216.71.155.144]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 6a83b9e9-ca2b-11ec-a405-831a346695d4; Mon, 02 May 2022 17:20:37 +0200 (CEST) Received: from mail-bn7nam10lp2106.outbound.protection.outlook.com (HELO NAM10-BN7-obe.outbound.protection.outlook.com) ([104.47.70.106]) by ob1.hc3370-68.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 May 2022 11:20:34 -0400 Received: from DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) by BYAPR03MB4135.namprd03.prod.outlook.com (2603:10b6:a03:77::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Mon, 2 May 2022 15:20:31 +0000 Received: from DS7PR03MB5608.namprd03.prod.outlook.com ([fe80::5df3:95ce:4dfd:134e]) by DS7PR03MB5608.namprd03.prod.outlook.com ([fe80::5df3:95ce:4dfd:134e%5]) with mapi id 15.20.5206.024; Mon, 2 May 2022 15:20:31 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 6a83b9e9-ca2b-11ec-a405-831a346695d4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1651504837; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=9IHSZv3VrMJDLhDfEaoQ4Rss2y1EMmvsxsBMllo85c4=; b=SysvcZQTYF8mgjSx/4YjG1fkh8SoBXV1OtI28wRUtVMPp9vVOF6KBCMD BbsVF4/C05Hsj7GhoXwiEShgqJFz0xECUX0n4HiEmY4m0FdoLoGZUQa5V cGfuTbkAkx0sSJWuQdvzFbychX7V4k6OQFVheiH2Mwrn13J8ALR1r2HEt E=; X-IronPort-RemoteIP: 104.47.70.106 X-IronPort-MID: 72856731 X-IronPort-Reputation: None X-IronPort-Listener: OutboundMail X-IronPort-SenderGroup: RELAY_O365 X-IronPort-MailFlowPolicy: $RELAYED IronPort-Data: A9a23:Axbc2atX/3aXGsBvV/frEwwxpOfnVCJfMUV32f8akzHdYApBsoF/q tZmKW2FPPbfa2DzLYgnb4jl9BsEuZbdzt9lTFM9+Ho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1kHHjqcv2SHYREMxan79UdRPf9g4JoMx8+L gj5RPUi7NnSTf72Ajt7dnBUB9n0mCup2A5rOIVh3tDFaMDdb5qq5AF9k89KuZMIMvD0vFoLA BSNrCc2B4PGmnqL0wx/1MfiuBEZ05DUStvGSM5y4+oOzs/pgEK86JX/r1cop46zuNDd3B13Z W5Dk1WrsAxciZvV9MaOA4ge7rCNoWfe2O6DIqtSW6XZJ0vCjbql6PdxokTyaWDRKEopaFC66 gpFmko/lIPRw== X-IronPort-AV: E=Sophos;i="5.91,192,1647316800"; d="scan'208";a="72856731" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i/73PCc3lX/nqVDqmLzheK9xYTfsjxQh4UqVttEj3/XQjCtWBTBXa0DMeQ7v/YQNFtKiaFu7xGEpjQGC+Td4ZcMsh5ttorxd0C8RtiSIklXUVEgh0zcwm3v8dg+YT37P3Kv8ormwUkoIu8zkMWp0+uynI6v1NhXWG716KLYVLiDVpqmhRpWXOgkU67wo9+RN0qAMgQpumwaY2yrkTblVn+dnG+ayIEUOxso7PuW+bnDvvR9fd39qNIJhQifdfBLyatWHiYxq8hXU2RasL0ggukUHMzrHqt7awYHLUaDRUbPDrdINSTdvLxIxndypWhlATl7fJTFHVH7Ne6rqemQAqg== 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=vIWelanqbp4RinFXdsKwb8IPkD2GS6socD99HZAMs4Y=; b=DVICLoyN6fcarufQEsjokd6S5eeDJhkih/bHvz/JZLE2v+1ryDwMhA3M+7YtnJCGpKHqNNbMBeyJ0Fh9ZsNac6yfKD2iBkUMsT9WdlFo6csyUTflrGcL2ueisofbV/3WthEwhmKeW/yWoZrjT8LHjGdXiJMdKSGyMJgALGD02Rv+x8wHlDlR87stpATncPWnx7pZNHDCcV3qPlZIzDu+Ijn3QGkhSLoUD0P9nEm6BYIqrrsjjtsr7EbOJVE4BDkj/2jpC4e7/MRyEE1puPDjxZsed/rk+vNy4uAHm/RrZ7BVhYAGKchz2jsCSCUsRSGZMptQwsbJuRBwXxcvOvtTDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vIWelanqbp4RinFXdsKwb8IPkD2GS6socD99HZAMs4Y=; b=vaT1Gldezc9rTEZYEmHIA6+nRly2hv43oTsrRa7gPXLr8r0LRXHe1r8J2nb4Nb4OKr04oM4zgNu1stU6xFw0GDzrsuTT/UV4j+L3qBOKVBvX3OxOd0d5BcOpmixK4LxC7efCmMszRB1klR3263FlOVmgFFwpJ8Gule/kHkzrZ10= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com; From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Jan Beulich , Andrew Cooper , Wei Liu Subject: [PATCH RFC] x86/lld: fix symbol map generation Date: Mon, 2 May 2022 17:20:20 +0200 Message-Id: <20220502152020.19768-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: LO4P123CA0045.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:152::14) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f790ff0c-7028-4910-28c9-08da2c4f4b9c X-MS-TrafficTypeDiagnostic: BYAPR03MB4135:EE_ X-MS-Exchange-AtpMessageProperties: SA|SL X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N3Nj4kvoD7Of1JVSY8MiT3LvXTZiT68OfzT76GKWWcSkIP2WxQQiJQhRFYNmGB7yWUJR2FKmJOOoGnkKI0cdI/UeihMu04l8CtSdZoPTFby/pj8bfqbHXTly8iJTw2hTR6PNHR+/gJCMcDZNjjMWJsgL1MH5z7X+Wx62Ok5LoIK6G19xB7i0GqjWxjjPNg3eLJwNpzsYIKrZiCIyzwxt6yleTSrnJ31WSiTRYBcVimUa0BxQTMZOzFDpvpIbJJ4xuRu5fAu46PaSCZI7P/OgHjQA3schgx3/q5XE/YgpMQpd3PbZFlU4DqwhKX9sXo020ksCCMiVCzcetpl8KS/WbEF1hqijgtl3FJ79dXSyslJ+DrTexj3FnwrfC+v7G4LtX1JHyY25JRuZPiHw6lkFNkd+9lBbfIqO2bEutx6i/tyCdt47Q4Ohf/12aSwE/VGsogqJNwGICauOk9w8BhZA0u42gzh7w7rVvYDxT9i2r5xXkkq82wuMyyNWg768rm7VZQiTSOqTINz+cwVcVDPsXcCG2+Z0MjcqzNjBXQCJ2tDYF3G38I7vOtxYI4BF2uQCiuoE2+nBfxwhGRtudxC6RKCjHOOeZuZKwlzmTK4qKYPSAyuu7yNiCNRA6WVu2KEqtWqb5BA8q5f2aPwuZs8A/w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(8936002)(4326008)(66476007)(83380400001)(8676002)(66946007)(66556008)(508600001)(6486002)(186003)(6512007)(2616005)(1076003)(316002)(36756003)(86362001)(38100700002)(26005)(6666004)(5660300002)(54906003)(2906002)(6916009)(82960400001)(6506007);DIR:OUT;SFP:1101; X-MS-Exch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ginatorOrg: citrix.com X-MS-Exchange-CrossTenant-Network-Message-Id: f790ff0c-7028-4910-28c9-08da2c4f4b9c X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2022 15:20:31.0955 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Md+snsYtAkobTAs3y4RSBlhViRz3cengoc+2rAL1n/uAml0t7xO9g8z0+OwDqDtHcabmyaUqMLKqKGC0XrphOA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB4135 The symbol map generation (and thus the debug info attached to Xen) is partially broken when using LLVM LD. That's due to LLD converting almost all symbols from global to local in the last linking step, and thus confusing tools/symbols into adding a file prefix to all text symbols, the results looks like: Xen call trace: [] R xxhash64.c#__start_xen+0x3938/0x39c0 [] F __high_start+0x94/0xa0 In order to workaround this create a list of global symbols prior to the linking step, and use objcopy to convert the symbols in the final binary back to global before processing with tools/symbols. Signed-off-by: Roger Pau Monné --- I haven't found a way to prevent LLD from converting the symbols, so I've come up with this rather crappy workaround. Not applied to EFI, partially because I don't have an environment with LLD capable of generating the EFI binary. Obtaining the global symbol list could likely be a target on itself, if it is to be shared between the ELF and the EFI binary generation. --- xen/arch/x86/Makefile | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index 177a2ff742..f3817827bc 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -134,24 +134,34 @@ $(TARGET): $(TARGET)-syms $(efi-y) $(obj)/boot/mkelf32 CFLAGS-$(XEN_BUILD_EFI) += -DXEN_BUILD_EFI $(TARGET)-syms: $(objtree)/prelink.o $(obj)/xen.lds + # Dump global text symbols before the linking step + $(NM) -pa --format=bsd $< | awk '{ if($$2 == "T") print $$3}' \ + > $(@D)/.$(@F).global-syms $(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds -N $< $(build_id_linker) \ - $(objtree)/common/symbols-dummy.o -o $(@D)/.$(@F).0 + $(objtree)/common/symbols-dummy.o -o $(@D)/.$(@F).0.tmp + # LLVM LD has converted global symbols into local ones as part of the + # linking step, convert those back to global before using tools/symbols. + $(OBJCOPY) --globalize-symbols=$(@D)/.$(@F).global-syms \ + $(@D)/.$(@F).0.tmp $(@D)/.$(@F).0 $(NM) -pa --format=sysv $(@D)/.$(@F).0 \ | $(objtree)/tools/symbols $(all_symbols) --sysv --sort \ >$(@D)/.$(@F).0.S $(MAKE) $(build)=$(@D) $(@D)/.$(@F).0.o $(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds -N $< $(build_id_linker) \ - $(@D)/.$(@F).0.o -o $(@D)/.$(@F).1 + $(@D)/.$(@F).0.o -o $(@D)/.$(@F).1.tmp + $(OBJCOPY) --globalize-symbols=$(@D)/.$(@F).global-syms \ + $(@D)/.$(@F).1.tmp $(@D)/.$(@F).1 $(NM) -pa --format=sysv $(@D)/.$(@F).1 \ | $(objtree)/tools/symbols $(all_symbols) --sysv --sort $(syms-warn-dup-y) \ >$(@D)/.$(@F).1.S $(MAKE) $(build)=$(@D) $(@D)/.$(@F).1.o $(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds -N $< $(build_id_linker) \ - $(orphan-handling-y) $(@D)/.$(@F).1.o -o $@ + $(orphan-handling-y) $(@D)/.$(@F).1.o -o $@.tmp + $(OBJCOPY) --globalize-symbols=$(@D)/.$(@F).global-syms $@.tmp $@ $(NM) -pa --format=sysv $(@D)/$(@F) \ | $(objtree)/tools/symbols --all-symbols --xensyms --sysv --sort \ >$(@D)/$(@F).map - rm -f $(@D)/.$(@F).[0-9]* $(@D)/..$(@F).[0-9]* + rm -f $(@D)/.$(@F).[0-9]* $(@D)/..$(@F).[0-9]* $(@D)/.$(@F).global-syms ifeq ($(CONFIG_XEN_IBT),y) $(SHELL) $(srctree)/tools/check-endbr.sh $@ endif @@ -266,6 +276,7 @@ $(obj)/xen.lds $(obj)/efi.lds: $(src)/xen.lds.S FORCE clean-files := \ include/asm/asm-macros.* \ $(objtree)/.xen-syms.[0-9]* \ + $(objtree)/.xen-syms.global-syms \ $(objtree)/.xen.elf32 \ $(objtree)/.xen.efi.[0-9]* \ efi/*.efi