Received: from list by lists.gnu.org with archive (Exim 4.71) id 1egvEP-0006ij-G4 for mharc-grub-devel@gnu.org; Wed, 31 Jan 2018 11:27:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egvEI-0006cF-3a for grub-devel@gnu.org; Wed, 31 Jan 2018 11:27:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egvEH-00055N-De for grub-devel@gnu.org; Wed, 31 Jan 2018 11:27:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54090) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1egvEH-00054w-7A for grub-devel@gnu.org; Wed, 31 Jan 2018 11:27:21 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 81416C05FEC2 for ; Wed, 31 Jan 2018 16:27:20 +0000 (UTC) Received: from trillian.uncooperative.org.com (dhcp-10-20-1-221.bss.redhat.com [10.20.1.221]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6590260BF4; Wed, 31 Jan 2018 16:27:16 +0000 (UTC) From: Peter Jones To: grub-devel@gnu.org Subject: [PATCH 2/2] .mod files: Strip annobin annotations and .eh_frame, and their relocations Date: Wed, 31 Jan 2018 11:27:00 -0500 Message-Id: <20180131162700.21473-2-pjones@redhat.com> In-Reply-To: <20180131162700.21473-1-pjones@redhat.com> References: <20180131162700.21473-1-pjones@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 31 Jan 2018 16:27:20 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2018 16:27:28 -0000 This way debuginfo built from the .module will still include this information, but the final result won't have the data we don't actually need in the modules, either on-disk, loaded at runtime, or in prebuilt images. Signed-off-by: Peter Jones --- grub-core/genmod.sh.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in index 3de06ee018f..1250589b3f5 100644 --- a/grub-core/genmod.sh.in +++ b/grub-core/genmod.sh.in @@ -58,6 +58,10 @@ if test x@TARGET_APPLE_LINKER@ != x1; then -K grub_mod_init -K grub_mod_fini \ -K _grub_mod_init -K _grub_mod_fini \ -R .note.gnu.gold-version -R .note.GNU-stack \ + -R .gnu.build.attributes \ + -R .rel.gnu.build.attributes \ + -R .rela.gnu.build.attributes \ + -R .eh_frame -R .rela.eh_frame -R .rel.eh_frame \ -R .note -R .comment -R .ARM.exidx $tmpfile || exit 1 fi if ! test -z "${TARGET_OBJ2ELF}"; then -- 2.15.0