Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp597901pxu; Fri, 23 Oct 2020 08:40:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNx6P3vIxEXqmgKNB4rWFN971eiFTxmqbRWNkNIWC85o6QDUnHSTuQFQxqrAYhCRWNhsaQ X-Received: by 2002:adf:e650:: with SMTP id b16mr3345132wrn.350.1603467655794; Fri, 23 Oct 2020 08:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603467655; cv=none; d=google.com; s=arc-20160816; b=0uV468WE7aKzjWCPWQGUb2rwZTGHu41V5d30E41CXcxO/X920j4FTn5dNXpdjRwN/R XxyLniVjbTOIjoCON2qt32C96bSVc1ibkUnaUjc7080HIH9Wn5NxL7nrGTJ5D/XD5Xs1 EXoHZxdvD20LtKAbBLBv0LlvbHR2QUMmatuYWIzZpMOxMGi8HNJzZoR0eqngoEtLcF01 62yLalxEaxGk1eIKP1Ry2stbjhQUSjw4K80AwlizFwM+UNj3pjXd0AE0DUeqw5W8sC2n fG7/Jp4a9GTJhT2FofA+gXSJ1kBK+iL9eHQLNhIclsJ0UbNr0tNGkpupa3oAWnFGwnZU HnZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=n4tnJxvfTW0oJFfhDlOKMXdZwKcOKgxdp3PFV/BHuCw=; b=OnuCGQTEhveHjirtX2FPh1vguYTPolIEYLXWFlji1NUrsR2pEVakb5Jfq42FlGKr3n JPaVM68NrIVToYkLaatCGTBU0sZE4/AcOcvxr9zchDYr6Qv0kyrWQFAD5HKLeXq9cnhW bKD/lA1DFKIW3vQjReKyRgITTvMIhZr8tEtk2yXUoe7iQqZ7s9FzUJqqBgopeEH5PseA 1s95ZofRZKP3SlsU30riSIz+M+iG6s+mKxVp2PM50uDsXvOtvrfIGp3RW4JNCQAWR8Kt HSn7M6bP2whMtcY9FlldHsli5SToy9ORsMZ/5qwVx8aDZqzy8YgdhJ4Uj34AHQFQwavi 8zNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=h66UMP+m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h23si907838edv.153.2020.10.23.08.40.31; Fri, 23 Oct 2020 08:40:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=h66UMP+m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S463283AbgJWL6F (ORCPT + 99 others); Fri, 23 Oct 2020 07:58:05 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:43448 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S463255AbgJWL5y (ORCPT ); Fri, 23 Oct 2020 07:57:54 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09NBXL5L143516; Fri, 23 Oct 2020 07:57:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : mime-version : content-type; s=pp1; bh=n4tnJxvfTW0oJFfhDlOKMXdZwKcOKgxdp3PFV/BHuCw=; b=h66UMP+mM6etFu/peg8BpF9/mIuqlKw2dFkEKu38tYsHbXQFCV3vGCdBtjOgnpu/iICm 2I/TRATZNcD0OUfuK2IA6+z6Ph/N0FioRurpsmyLh2ulw3F6q7Ly5119f3IByLqeTdWo Qd2Jo0g1fwNCcslpEYicmYJzCvJUB2OT503x+rvP0o5hS28/jrSHp53xZ+l3pP3b0KSK M6//AQwWY3BMYMi9JBjFXMusuwzvNL3KLJWrPyCg6TblBzHCCmI5UJEAMva6VcSKFF18 9O573sSlxGN3tMxnqDukHVIEus21w5ZKjMG7ynTmW5qzj/HRMeKkkTH6uQJqDS1U/LvA cA== Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 34bcaprcwh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Oct 2020 07:57:41 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 09NBvejX008099; Fri, 23 Oct 2020 11:57:40 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma03fra.de.ibm.com with ESMTP id 347r87udf8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Oct 2020 11:57:39 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 09NBvbMa27263452 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 23 Oct 2020 11:57:37 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5F0A852051; Fri, 23 Oct 2020 11:57:37 +0000 (GMT) Received: from localhost (unknown [9.145.183.202]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id EDA8152052; Fri, 23 Oct 2020 11:57:36 +0000 (GMT) Date: Fri, 23 Oct 2020 13:57:35 +0200 From: Vasily Gorbik To: Masahiro Yamada Cc: Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 0/2] add option to save vmlinux link map Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Patchwork-Bot: notify X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.737 definitions=2020-10-23_04:2020-10-23,2020-10-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=2 mlxlogscore=967 adultscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010230082 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linker -Map option allows to save detailed link map which provides far more information then the objdump tool might extract. Discarded input sections .text.__s390_indirect_jump_r14 0x0000000000000000 0xc arch/s390/kernel/process.o Detailed information on sections, objects and symbols. .init.data 0x0000000001276000 0x671f0 *(SORT_BY_NAME(___kentry+*)) *(.init.data init.data.*) .init.data 0x0000000001276000 0x31b8 init/main.o 0x0000000001276128 late_time_init 0x00000000012781b8 boot_command_line .init.data 0x00000000012791b8 0x60 init/do_mounts.o .init.data 0x0000000001279218 0x4 init/do_mounts_rd.o 0x0000000001279218 rd_image_start *fill* 0x000000000127921c 0x4 .init.data 0x0000000001279220 0x18 init/do_mounts_initrd.o 0x0000000001279228 phys_initrd_start 0x0000000001279230 phys_initrd_size It helps to bring the light on linker decisions and debug linker scripts. FILL mask 0xff 0x000000000082f000 . = ALIGN (0x1000) *fill* 0x000000000082e3fa 0xc06 ff 0x000000000082f000 _end = . Resulting vmlinux.map is currently 8.8M for s390. And 48K for the decompressor's arch/s390/boot/compressed/vmlinux.map - First patch introduces CONFIG_SAVE_LINK_MAP option, which enables link map and is arch independent. - Second patch is s390 specific and additionally enables decompressor's link map saving if CONFIG_SAVE_LINK_MAP is enabled. It is probably better if both changes would go via kbuild tree. Vasily Gorbik (2): kbuild: add config option to save link map file(s) s390/decompressor: support link map saving .gitignore | 1 + Makefile | 6 +++++- arch/s390/boot/compressed/Makefile | 4 +++- lib/Kconfig.debug | 13 +++++++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) -- 2.25.4