Skip to content

Commit

Permalink
arm: Provide _sdata and __bss_stop in the vmlinux.lds.S file
Browse files Browse the repository at this point in the history
_sdata and __bss_stop are common symbols defined by many architectures
and made available to the kernel via asm-generic/sections.h. Kmemleak
uses these symbols when scanning the data sections.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Catalin Marinas committed May 30, 2009
1 parent 23d1c51 commit 8c7e657
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ SECTIONS

.data : AT(__data_loc) {
_data = .; /* address in memory */
_sdata = .;

/*
* first, the init task union, aligned
Expand Down Expand Up @@ -192,6 +193,7 @@ SECTIONS
__bss_start = .; /* BSS */
*(.bss)
*(COMMON)
__bss_stop = .;
_end = .;
}
/* Stabs debugging sections. */
Expand Down

0 comments on commit 8c7e657

Please sign in to comment.