Skip to content

Commit

Permalink
core: fix asan build error
Browse files Browse the repository at this point in the history
Fixes the build error:
kern.ld:153: undefined symbol `__asan_shadow_start' referenced in expression

Tested-by: Jerome Forissier <[email protected]> (HiKey960, GP)
Acked-by: Jerome Forissier <[email protected]>
Reviewed-by: Etienne Carriere <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
  • Loading branch information
jenswi-linaro authored and jforissier committed Nov 14, 2017
1 parent 6d9e638 commit 11a9c2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/arch/arm/kernel/kern.ld.S
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,10 @@ PROVIDE(__vcore_init_ro_size = 0);
#endif /* CFG_CORE_RODATA_NOEXEC */
#endif /* CFG_WITH_PAGER */

#ifdef CFG_CORE_SANITIZE_KADDRESS
PROVIDE(__asan_map_start = (__asan_shadow_start / SMALL_PAGE_SIZE) *
SMALL_PAGE_SIZE);
PROVIDE(__asan_map_end = ((__asan_shadow_end - 1) / SMALL_PAGE_SIZE) *
SMALL_PAGE_SIZE + SMALL_PAGE_SIZE);
PROVIDE(__asan_map_size = __asan_map_end - __asan_map_start);
#endif /*CFG_CORE_SANITIZE_KADDRESS*/

0 comments on commit 11a9c2b

Please sign in to comment.