Skip to contentSkip to conversation

c6x-normalize-global-variables-exported-by-vmlinuxlds.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [merged] c6x-normalize-global-variables-exported-by-vmlinuxlds.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:26:38 -0700

The patch titled
Subject: c6x: normalize global variables exported by vmlinux.lds
has been removed from the -mm tree. Its filename was
c6x-normalize-global-variables-exported-by-vmlinuxlds.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jiang Liu <[email protected]>
Subject: c6x: normalize global variables exported by vmlinux.lds

Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h.

Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section.

This patch also fixes possible bugs due to current address layout that [__init_begin, __init_end] is a sub-range of [_stext, _etext] and pages within range [__init_begin, __init_end] will be freed by free_initmem().

Cc Mark Salter <[email protected]>
Cc Aurelien Jacquiot <[email protected]>

---

 arch/c6x/kernel/vmlinux.lds.S |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/c6x/kernel/vmlinux.lds.S renamed from arch/c6x/kernel/vmlinux.lds.S~c6x-normalize-global-variables-exported-by-vmlinuxlds +2 -2
diff -puN arch/c6x/kernel/vmlinux.lds.S~c6x-normalize-global-variables-exported-by-vmlinuxlds arch/c6x/kernel/vmlinux.lds.S
@@ -54,16 +54,15 @@ SECTIONS
 	}
 
 	. = ALIGN(PAGE_SIZE);
+	__init_begin = .;
 	.init :
 	{
-		_stext = .;
 		_sinittext = .;
 		HEAD_TEXT
 		INIT_TEXT
 		_einittext = .;
 	}
 
-	__init_begin = _stext;
 	INIT_DATA_SECTION(16)
 
 	PERCPU_SECTION(128)
@@ -74,6 +73,7 @@ SECTIONS
 	.text :
 	{
 		_text = .;
+		_stext = .;
 		TEXT_TEXT
 		SCHED_TEXT
 		LOCK_TEXT

_

Patches currently in -mm which might be from [email protected] are

origin.patch
linux-next.patch