mirror of
https://github.com/dynup/kpatch
synced 2025-02-12 07:27:04 +00:00
kpatch-build: fix find_special_section_data with blank AWK_OPTIONS
If $AWK_OPTIONS are blank gawk would treat "" as a blank script
resulting in none of the special struct being detected.
Fixes: 1330dcc
"create-diff-object: add ORC section support"
Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
63582367f4
commit
fda7c87a70
@ -262,8 +262,10 @@ find_special_section_data() {
|
||||
[[ "$CONFIG_PARAVIRT" -eq 0 ]] && AWK_OPTIONS="-vskip_p=1"
|
||||
[[ "$CONFIG_UNWINDER_ORC" -eq 0 ]] && AWK_OPTIONS="$AWK_OPTIONS -vskip_o=1"
|
||||
|
||||
# If $AWK_OPTIONS are blank gawk would treat "" as a blank script
|
||||
# shellcheck disable=SC2086
|
||||
SPECIAL_VARS="$(readelf -wi "$VMLINUX" |
|
||||
gawk --non-decimal-data "$AWK_OPTIONS" '
|
||||
gawk --non-decimal-data $AWK_OPTIONS '
|
||||
BEGIN { a = b = p = e = o = 0 }
|
||||
|
||||
# Set state if name matches
|
||||
|
Loading…
Reference in New Issue
Block a user