OSDN Git Service

arm64: Support running gen_vdso_offsets.sh with BSD userland.
authorJohn Millikin <john@john-millikin.com>
Wed, 23 Dec 2020 05:10:56 +0000 (14:10 +0900)
committerWill Deacon <will@kernel.org>
Wed, 20 Jan 2021 12:23:27 +0000 (12:23 +0000)
commitf3cb097ad8888019e6d8777cb17bcee18ac6c2f6
tree8021bff9f4a780636b82b8a9e11363708726d615
parenta5b8ca97fbf8300a5e21c393df25ce6f521e7939
arm64: Support running gen_vdso_offsets.sh with BSD userland.

BSD sed ignores whitespace character escape sequences such as '\t' in
the replacement string, causing this script to produce the following
incorrect output:

  #define vdso_offset_sigtrampt0x089c

Changing the hard tab to ' ' causes both BSD and GNU dialects of sed
to produce equivalent output.

Signed-off-by: John Millikin <john@john-millikin.com>
Link: https://lore.kernel.org/r/15147ffb-7e67-b607-266d-f56599ecafd1@john-millikin.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/vdso/gen_vdso_offsets.sh