Skip to content

Commit

Permalink
kbuild: replace abort() with exit(1)
Browse files Browse the repository at this point in the history
We have had no use of the coredump file for a long time.
So just exit(1) and avoid coredumping.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Sam Ravnborg committed Jun 24, 2006
1 parent 15fde67 commit 6803dc0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/genksyms/lex.c_shipped
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ repeat:
break;

default:
abort();
exit(1);
}
fini:

Expand Down
2 changes: 1 addition & 1 deletion scripts/genksyms/lex.l
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ repeat:
break;
default:
abort();
exit(1);
}
fini:
Expand Down
6 changes: 3 additions & 3 deletions scripts/mod/mk_elfconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ main(int argc, char **argv)
printf("#define KERNEL_ELFCLASS ELFCLASS64\n");
break;
default:
abort();
exit(1);
}
switch (ei[EI_DATA]) {
case ELFDATA2LSB:
Expand All @@ -38,7 +38,7 @@ main(int argc, char **argv)
printf("#define KERNEL_ELFDATA ELFDATA2MSB\n");
break;
default:
abort();
exit(1);
}

if (sizeof(unsigned long) == 4) {
Expand All @@ -53,7 +53,7 @@ main(int argc, char **argv)
else if (memcmp(endian_test.c, "\x02\x01", 2) == 0)
printf("#define HOST_ELFDATA ELFDATA2LSB\n");
else
abort();
exit(1);

if ((strcmp(argv[1], "v850") == 0) || (strcmp(argv[1], "h8300") == 0))
printf("#define MODULE_SYMBOL_PREFIX \"_\"\n");
Expand Down
2 changes: 1 addition & 1 deletion scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static void parse_elf(struct elf_info *info, const char *filename)
hdr = grab_file(filename, &info->size);
if (!hdr) {
perror(filename);
abort();
exit(1);
}
info->hdr = hdr;
if (info->size < sizeof(*hdr))
Expand Down

0 comments on commit 6803dc0

Please sign in to comment.