Skip to contentSkip to conversation

vmlinux.lds.S: remove duplicate _sdata symbol

PATCH Applied Tony Wu 2 participants 2 messages Dec 22, 2011 – Jan 16, 2012 MIPS

lore
Share & tools
lore

Tony Wu

author
#0 lore raw

PATCH 1/1 vmlinux.lds.S: remove duplicate _sdata symbol

_sdata is defined twice in vmlinux.lds.S. According to vmlinux.ld.h in asm-generic, _sdata should be marked at the beginning RO_DATA_SECTION.

 *      _sdata = .;
 *      RO_DATA_SECTION(PAGE_SIZE)
 *      RW_DATA_SECTION(...)
 *      _edata = .;

Remove the one that is marked at RW_DATA_SECTION.

---
 arch/mips/kernel/vmlinux.lds.S |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
arch/mips/kernel/vmlinux.lds.S +0 -1
index a81176f..924da5e 100644
@@ -69,7 +69,6 @@ SECTIONS
 	RODATA
 
 	/* writeable */
-	_sdata = .;				/* Start of data section */
 	.data : {	/* Data */
 		. = . + DATAOFFSET;		/* for CONFIG_MAPPED_KERNEL */
 
Signature · 1 line
1.7.4.4