提交 6803dc0e 编写于 作者: S Sam Ravnborg

kbuild: replace abort() with exit(1)

We have had no use of the coredump file for a long time.
So just exit(1) and avoid coredumping.
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 15fde675
...@@ -2023,7 +2023,7 @@ repeat: ...@@ -2023,7 +2023,7 @@ repeat:
break; break;
default: default:
abort(); exit(1);
} }
fini: fini:
......
...@@ -392,7 +392,7 @@ repeat: ...@@ -392,7 +392,7 @@ repeat:
break; break;
default: default:
abort(); exit(1);
} }
fini: fini:
......
...@@ -28,7 +28,7 @@ main(int argc, char **argv) ...@@ -28,7 +28,7 @@ main(int argc, char **argv)
printf("#define KERNEL_ELFCLASS ELFCLASS64\n"); printf("#define KERNEL_ELFCLASS ELFCLASS64\n");
break; break;
default: default:
abort(); exit(1);
} }
switch (ei[EI_DATA]) { switch (ei[EI_DATA]) {
case ELFDATA2LSB: case ELFDATA2LSB:
...@@ -38,7 +38,7 @@ main(int argc, char **argv) ...@@ -38,7 +38,7 @@ main(int argc, char **argv)
printf("#define KERNEL_ELFDATA ELFDATA2MSB\n"); printf("#define KERNEL_ELFDATA ELFDATA2MSB\n");
break; break;
default: default:
abort(); exit(1);
} }
if (sizeof(unsigned long) == 4) { if (sizeof(unsigned long) == 4) {
...@@ -53,7 +53,7 @@ main(int argc, char **argv) ...@@ -53,7 +53,7 @@ main(int argc, char **argv)
else if (memcmp(endian_test.c, "\x02\x01", 2) == 0) else if (memcmp(endian_test.c, "\x02\x01", 2) == 0)
printf("#define HOST_ELFDATA ELFDATA2LSB\n"); printf("#define HOST_ELFDATA ELFDATA2LSB\n");
else else
abort(); exit(1);
if ((strcmp(argv[1], "v850") == 0) || (strcmp(argv[1], "h8300") == 0)) if ((strcmp(argv[1], "v850") == 0) || (strcmp(argv[1], "h8300") == 0))
printf("#define MODULE_SYMBOL_PREFIX \"_\"\n"); printf("#define MODULE_SYMBOL_PREFIX \"_\"\n");
......
...@@ -330,7 +330,7 @@ static void parse_elf(struct elf_info *info, const char *filename) ...@@ -330,7 +330,7 @@ static void parse_elf(struct elf_info *info, const char *filename)
hdr = grab_file(filename, &info->size); hdr = grab_file(filename, &info->size);
if (!hdr) { if (!hdr) {
perror(filename); perror(filename);
abort(); exit(1);
} }
info->hdr = hdr; info->hdr = hdr;
if (info->size < sizeof(*hdr)) if (info->size < sizeof(*hdr))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册