Skip to content

Commit

Permalink
scripts/link-vmlinux.sh: only filter kernel symbols for arm
Browse files Browse the repository at this point in the history
Actually CONFIG_PAGE_OFFSET isn't same with PAGE_OFFSET, so
it isn't easy to figue out PAGE_OFFSET defined in header
file from scripts.

Because CONFIG_PAGE_OFFSET may not be defined in some ARCHs(
64bit ARCH), or defined as bogus value in !MMU case, so
this patch only applys the filter on ARM when CONFIG_PAGE_OFFSET
is defined as the original problem is only on ARM.

Cc: <[email protected]>
Cc: Rusty Russell <[email protected]>
Fixes: f6537f2
Singed-off-by: Ming Lei <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
ming1 authored and rustyrussell committed Dec 10, 2013
1 parent 3459f11 commit 7122c3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/link-vmlinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ kallsyms()
kallsymopt="${kallsymopt} --all-symbols"
fi

kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET"
if [ -n "${CONFIG_ARM}" ] && [ -n "${CONFIG_PAGE_OFFSET}" ]; then
kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET"
fi

local aflags="${KBUILD_AFLAGS} ${KBUILD_AFLAGS_KERNEL} \
${NOSTDINC_FLAGS} ${LINUXINCLUDE} ${KBUILD_CPPFLAGS}"
Expand Down

0 comments on commit 7122c3e

Please sign in to comment.