Skip to content

Commit 1844b8e

Browse files
committed
linuxkm/Makefile: fix bash cleanup in recipe for libwolfssl.ko -- new trap for an event replaces previous trap rather than adding to it.
1 parent 0d44018 commit 1844b8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linuxkm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ ifeq "$(ENABLED_LINUXKM_PIE)" "yes"
290290
# if the above make didn't build a fresh libwolfssl.ko, then the module is already up to date and we leave it untouched, assuring stability for purposes of module-update-fips-hash.
291291
@if [[ ! "$@" -nt "$$RELOC_TMP" ]]; then echo ' Module already up-to-date.'; exit 0; fi
292292
@SECTION_MAP=$$(mktemp)
293-
@trap 'rm "$$SECTION_MAP"' EXIT
293+
@trap 'rm "$$RELOC_TMP" "$$SECTION_MAP"' EXIT
294294
@export SECTION_MAP
295295
@$(READELF) --wide --sections --symbols "$@" | $(GENERATE_SECTION_MAP)
296296
@$(READELF) --wide --relocs "$@" | $(GENERATE_RELOC_TAB) >| '$(MODULE_TOP)/linuxkm/wc_linuxkm_pie_reloc_tab.c'

0 commit comments

Comments
 (0)