Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,10 @@ archprepare: outputmakefile archheaders archscripts scripts include/config/kerne
include/generated/rustc_cfg remove-stale-files

prepare0: archprepare
# The WebAssembly image does not use ELF modpost.
ifneq ($(CONFIG_LD_IS_WASMLD),y)
$(Q)$(MAKE) $(build)=scripts/mod
endif
$(Q)$(MAKE) $(build)=. prepare

# All the preparing..
Expand Down
6 changes: 0 additions & 6 deletions scripts/mod/mk_elfconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ main(int argc, char **argv)
fprintf(stderr, "Error: input truncated\n");
return 1;
}
if (memcmp(ei, "\0asm", 4) == 0) {
// TODO(wasm): make mk_elfconfig not run at all
// printf("#pragma once\n"
// "#pragma message \"WebAssembly, not ELF\"\n");
return 0;
}
if (memcmp(ei, ELFMAG, SELFMAG) != 0) {
fprintf(stderr, "Error: not ELF\n");
return 1;
Expand Down
Loading