All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4ACC6D74.7010001@tuffmail.co.uk>

diff --git a/a/1.txt b/N1/1.txt
index f68a632..ec37b05 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -3,3 +3,72 @@ part of a larger series ("module: Speed up symbol resolution during module
 loading") which would not go through the ARM tree.
 
 ------------------------------------------------------------------->
+>From 52c4a00b22fecf3ecb352618356bb61f7f4b261b Mon Sep 17 00:00:00 2001
+From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
+Date: Wed, 7 Oct 2009 11:08:34 +0100
+Subject: [PATCH] arm: use unified discard definition in linker script
+
+Commit 023bf6f "linker script: unify usage of discard definition"
+changed the linker scripts for all architectures except for ARM.
+I can find no discussion about this exception, so here are the changes
+for ARM.
+
+These changes are exactly parallel to the ia64 case.
+
+"ia64 is notable because it first throws away some ia64 specific
+ subsections and then include the rest of the sections into the final
+ image, so those sections must be discarded before the inclusion."
+
+Not boot-tested.  In build testing, the modified linker script generated
+an identical vmlinux file.
+
+
+[I would like to be able to rely on this unified discard definition.
+ I want to sort the kernel symbol tables to allow faster symbol
+ resolution during module loading. The simplest way appears to be
+ to generate sorted versions from vmlinux.o, link them in to vmlinux,
+ _and discard the original unsorted tables_.
+
+ This work is driven by my x86 netbook, but it is implemented at a
+ generic level. It is possible it will benefit some ARM systems also.]
+
+
+Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
+CC: Tejun Heo <tj@kernel.org>
+---
+ arch/arm/kernel/vmlinux.lds.S |   13 ++++++++-----
+ 1 files changed, 8 insertions(+), 5 deletions(-)
+
+diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
+index aecf87d..ec511d4 100644
+--- a/arch/arm/kernel/vmlinux.lds.S
++++ b/arch/arm/kernel/vmlinux.lds.S
+@@ -79,11 +79,11 @@ SECTIONS
+ #endif
+ 	}
+ 
+-	/DISCARD/ : {			/* Exit code and data		*/
+-		EXIT_TEXT
+-		EXIT_DATA
+-		*(.exitcall.exit)
+-		*(.discard)
++	/*
++	 * unwind exit sections must be discarded before the rest of the
++	 * unwind sections get included.
++	 */
++	/DISCARD/ : {
+ 		*(.ARM.exidx.exit.text)
+ 		*(.ARM.extab.exit.text)
+ #ifndef CONFIG_HOTPLUG_CPU
+@@ -271,6 +271,9 @@ SECTIONS
+ 	.stab.index 0 : { *(.stab.index) }
+ 	.stab.indexstr 0 : { *(.stab.indexstr) }
+ 	.comment 0 : { *(.comment) }
++
++	/* Default discards */
++	DISCARDS
+ }
+ 
+ /*
+-- 
+1.6.3.2
diff --git a/a/content_digest b/N1/content_digest
index e80e12d..c04d890 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,13 +1,86 @@
- "From\0alan-jenkins@tuffmail.co.uk (Alan Jenkins)\0"
+ "From\0Alan Jenkins <alan-jenkins@tuffmail.co.uk>\0"
  "Subject\0[PATCH] arm: use unified discard definition in linker script\0"
  "Date\0Wed, 07 Oct 2009 11:29:08 +0100\0"
- "To\0linux-arm-kernel@lists.infradead.org\0"
+ "To\0Russell King <rmk+kernel@arm.linux.org.uk>\0"
+ "Cc\0linux-arm-kernel@lists.infradead.org"
+  linux-kernel <linux-kernel@vger.kernel.org>
+  Tejun Heo <htejun@gmail.com>
+ " Sam Ravnborg <sam@ravnborg.org>\0"
  "\00:1\0"
  "b\0"
  "I selfishly request an Acked-by for the following. My aim is to submit it as\n"
  "part of a larger series (\"module: Speed up symbol resolution during module\n"
  "loading\") which would not go through the ARM tree.\n"
  "\n"
- ------------------------------------------------------------------->
+ "------------------------------------------------------------------->\n"
+ ">From 52c4a00b22fecf3ecb352618356bb61f7f4b261b Mon Sep 17 00:00:00 2001\n"
+ "From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>\n"
+ "Date: Wed, 7 Oct 2009 11:08:34 +0100\n"
+ "Subject: [PATCH] arm: use unified discard definition in linker script\n"
+ "\n"
+ "Commit 023bf6f \"linker script: unify usage of discard definition\"\n"
+ "changed the linker scripts for all architectures except for ARM.\n"
+ "I can find no discussion about this exception, so here are the changes\n"
+ "for ARM.\n"
+ "\n"
+ "These changes are exactly parallel to the ia64 case.\n"
+ "\n"
+ "\"ia64 is notable because it first throws away some ia64 specific\n"
+ " subsections and then include the rest of the sections into the final\n"
+ " image, so those sections must be discarded before the inclusion.\"\n"
+ "\n"
+ "Not boot-tested.  In build testing, the modified linker script generated\n"
+ "an identical vmlinux file.\n"
+ "\n"
+ "\n"
+ "[I would like to be able to rely on this unified discard definition.\n"
+ " I want to sort the kernel symbol tables to allow faster symbol\n"
+ " resolution during module loading. The simplest way appears to be\n"
+ " to generate sorted versions from vmlinux.o, link them in to vmlinux,\n"
+ " _and discard the original unsorted tables_.\n"
+ "\n"
+ " This work is driven by my x86 netbook, but it is implemented at a\n"
+ " generic level. It is possible it will benefit some ARM systems also.]\n"
+ "\n"
+ "\n"
+ "Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>\n"
+ "CC: Tejun Heo <tj@kernel.org>\n"
+ "---\n"
+ " arch/arm/kernel/vmlinux.lds.S |   13 ++++++++-----\n"
+ " 1 files changed, 8 insertions(+), 5 deletions(-)\n"
+ "\n"
+ "diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S\n"
+ "index aecf87d..ec511d4 100644\n"
+ "--- a/arch/arm/kernel/vmlinux.lds.S\n"
+ "+++ b/arch/arm/kernel/vmlinux.lds.S\n"
+ "@@ -79,11 +79,11 @@ SECTIONS\n"
+ " #endif\n"
+ " \t}\n"
+ " \n"
+ "-\t/DISCARD/ : {\t\t\t/* Exit code and data\t\t*/\n"
+ "-\t\tEXIT_TEXT\n"
+ "-\t\tEXIT_DATA\n"
+ "-\t\t*(.exitcall.exit)\n"
+ "-\t\t*(.discard)\n"
+ "+\t/*\n"
+ "+\t * unwind exit sections must be discarded before the rest of the\n"
+ "+\t * unwind sections get included.\n"
+ "+\t */\n"
+ "+\t/DISCARD/ : {\n"
+ " \t\t*(.ARM.exidx.exit.text)\n"
+ " \t\t*(.ARM.extab.exit.text)\n"
+ " #ifndef CONFIG_HOTPLUG_CPU\n"
+ "@@ -271,6 +271,9 @@ SECTIONS\n"
+ " \t.stab.index 0 : { *(.stab.index) }\n"
+ " \t.stab.indexstr 0 : { *(.stab.indexstr) }\n"
+ " \t.comment 0 : { *(.comment) }\n"
+ "+\n"
+ "+\t/* Default discards */\n"
+ "+\tDISCARDS\n"
+ " }\n"
+ " \n"
+ " /*\n"
+ "-- \n"
+ 1.6.3.2
 
-94b2d6bb4e41b4fb9851810a697e7db5c68c05199d1baa70228d9f9d4d4d4458
+45c92dab7d807a51d16d22fbf2b1895c5f88fd1c836d771474e84d513d0114fe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.