Skip to content

Commit

Permalink
sparc64: Support kmemleak.
Browse files Browse the repository at this point in the history
Only missing thing was an _sdata marker in vmlinux.lds.S

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
davem330 committed Apr 13, 2010
1 parent 9960e9e commit 8b8d8e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions arch/sparc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ SECTIONS
_etext = .;

RO_DATA(PAGE_SIZE)

/* Start of data section */
_sdata = .;

.data1 : {
*(.data1)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ config SLUB_STATS
config DEBUG_KMEMLEAK
bool "Kernel memory leak detector"
depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
(X86 || ARM || PPC || S390 || SUPERH)
(X86 || ARM || PPC || S390 || SPARC64 || SUPERH)

select DEBUG_FS if SYSFS
select STACKTRACE if STACKTRACE_SUPPORT
Expand Down

0 comments on commit 8b8d8e2

Please sign in to comment.