linux-mips
[Top] [All Lists]

[PATCH] vmlinux.lds.S: remove duplicate _sdata symbol

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] vmlinux.lds.S: remove duplicate _sdata symbol
From: Tony Wu <tung7970@gmail.com>
Date: Thu, 22 Dec 2011 22:53:17 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=nVEMytF4T5xa8cZgu7bS6imq8oQ70QM6UHAUGignoCQ=; b=sf0dW0uL8JswhST7/A8gWUsSPk5TWtSXQAZFtoXJSZWGPsqE34lsk0VvkDMXy88XMI FOyQ6+61vzg4ODMUtcxKQUi33/jk/2v4VVkRwiX+zOjNPjWM946CPh3RkR+fJVydg+w3 T12K+e22+AxFf7eRf4yIOctvmM+OZn1gdqkB4=
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
_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.

Signed-off-by: Tony Wu <tung7970@gmail.com>
---
 arch/mips/kernel/vmlinux.lds.S |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index a81176f..924da5e 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -69,7 +69,6 @@ SECTIONS
        RODATA
 
        /* writeable */
-       _sdata = .;                             /* Start of data section */
        .data : {       /* Data */
                . = . + DATAOFFSET;             /* for CONFIG_MAPPED_KERNEL */
 
-- 
1.7.4.4


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] vmlinux.lds.S: remove duplicate _sdata symbol, Tony Wu <=