diff options
author | Catalin Marinas <[email protected]> | 2009-07-14 10:52:55 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-07-18 13:59:20 +0200 |
commit | 8bcdbe427924a1e4b4e4cf68020e92e9f93fe011 (patch) | |
tree | b5989ee28a61d5cf9454eb2e6a4c87a36ecf963f | |
parent | 6aa542a694dc9ea4344a8a590d2628c33d1b9431 (diff) |
x86: Include all of .data.* sections in _edata on 64-bit
The .data.read_mostly and .data.cacheline_aligned sections
aren't covered by the _sdata .. _edata range on x86-64. This
affects kmemleak reporting leading to possible false
positives by not scanning the whole data section.
Signed-off-by: Catalin Marinas <[email protected]>
Tested-by: Alexey Fisher <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Cc: Pekka Enberg <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Sam Ravnborg <[email protected]>
-rw-r--r-- | arch/x86/kernel/vmlinux.lds.S | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index 367e87882041..59f31d2dd435 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S @@ -112,11 +112,6 @@ SECTIONS _sdata = .; DATA_DATA CONSTRUCTORS - -#ifdef CONFIG_X86_64 - /* End of data section */ - _edata = .; -#endif } :data #ifdef CONFIG_X86_32 @@ -156,10 +151,8 @@ SECTIONS .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { *(.data.read_mostly) -#ifdef CONFIG_X86_32 /* End of data section */ _edata = .; -#endif } #ifdef CONFIG_X86_64 |