Commit 1260866a authored by Catalin Marinas's avatar Catalin Marinas Committed by Ingo Molnar

x86: Provide _sdata in the vmlinux.lds.S file

_sdata is a common symbol defined by many architectures and made
available to the kernel via asm-generic/sections.h. Kmemleak uses this
symbol when scanning the data sections.

[ Impact: add new global symbol ]
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
LKML-Reference: <20090511122105.26556.96593.stgit@pc1117.cambridge.arm.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8c5dd8f4
...@@ -108,6 +108,8 @@ SECTIONS ...@@ -108,6 +108,8 @@ SECTIONS
/* Data */ /* Data */
. = ALIGN(PAGE_SIZE); . = ALIGN(PAGE_SIZE);
.data : AT(ADDR(.data) - LOAD_OFFSET) { .data : AT(ADDR(.data) - LOAD_OFFSET) {
/* Start of data section */
_sdata = .;
DATA_DATA DATA_DATA
CONSTRUCTORS CONSTRUCTORS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment