History

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.

Sam Ravnborg committed 20 years ago

Commit 6803dc01 parent 15fde674 files · +6 −6Browse files

Showing the changes to scripts (4 of 4 files). Show all

Unified · Split

4 files
  1. scripts/genksyms/lex.c_shipped +1 −1
  2. scripts/genksyms/lex.l +1 −1
  3. scripts/mod/mk_elfconfig.c +3 −3
  4. scripts/mod/modpost.c +1 −1
scripts/genksyms/lex.c_shipped+1−1
@@ -2023,7 +2023,7 @@ repeat: · 2022 unmodified lines
20232023 break;
20242024
20252025 default:
2026− abort();
2026+ exit(1);
20272027 }
20282028 fini:
20292029
scripts/genksyms/lex.l+1−1
@@ -392,7 +392,7 @@ repeat: · 391 unmodified lines
392392 break;
393393
394394 default:
395− abort();
395+ exit(1);
396396 }
397397 fini:
398398
scripts/mod/mk_elfconfig.c+3−3
@@ -28,7 +28,7 @@ main(int argc, char **argv) · 27 unmodified lines
2828 printf("#define KERNEL_ELFCLASS ELFCLASS64\n");
2929 break;
3030 default:
31− abort();
31+ exit(1);
3232 }
3333 switch (ei[EI_DATA]) {
3434 case ELFDATA2LSB:
@@ -38,7 +38,7 @@ main(int argc, char **argv) · 3 unmodified lines
3838 printf("#define KERNEL_ELFDATA ELFDATA2MSB\n");
3939 break;
4040 default:
41− abort();
41+ exit(1);
4242 }
4343
4444 if (sizeof(unsigned long) == 4) {
@@ -53,7 +53,7 @@ main(int argc, char **argv) · 8 unmodified lines
5353 else if (memcmp(endian_test.c, "\x02\x01", 2) == 0)
5454 printf("#define HOST_ELFDATA ELFDATA2LSB\n");
5555 else
56− abort();
56+ exit(1);
5757
5858 if ((strcmp(argv[1], "v850") == 0) || (strcmp(argv[1], "h8300") == 0))
5959 printf("#define MODULE_SYMBOL_PREFIX \"_\"\n");
scripts/mod/modpost.c+1−1
@@ -330,7 +330,7 @@ static void parse_elf(struct elf_info *info, const char *filename) · 329 unmodified lines
330330 hdr = grab_file(filename, &info->size);
331331 if (!hdr) {
332332 perror(filename);
333− abort();
333+ exit(1);
334334 }
335335 info->hdr = hdr;
336336 if (info->size < sizeof(*hdr))