imgtec-ci20: genimage config/ u-boot env
[openadk.git] / target / linux / patches / 4.9.287 / alpha-remove-coff.patch
blob176db3c889f0282e232946a5dd047b9127f3f6df
1 diff -Nur linux-4.9.71.orig/arch/alpha/boot/tools/objstrip.c linux-4.9.71/arch/alpha/boot/tools/objstrip.c
2 --- linux-4.9.71.orig/arch/alpha/boot/tools/objstrip.c 2017-12-20 10:07:34.000000000 +0100
3 +++ linux-4.9.71/arch/alpha/boot/tools/objstrip.c 2017-12-30 21:23:09.114510547 +0100
4 @@ -191,38 +191,8 @@
5 prog_name, (long) elf_phdr->p_vaddr,
6 elf_phdr->p_vaddr + fil_size, offset);
8 - } else
9 -#endif
10 - {
11 - aout = (struct exec *) buf;
13 - if (!(aout->fh.f_flags & COFF_F_EXEC)) {
14 - fprintf(stderr, "%s: %s is not in executable format\n",
15 - prog_name, inname);
16 - exit(1);
17 - }
19 - if (aout->fh.f_opthdr != sizeof(aout->ah)) {
20 - fprintf(stderr, "%s: %s has unexpected optional header size\n",
21 - prog_name, inname);
22 - exit(1);
23 - }
25 - if (N_MAGIC(*aout) != OMAGIC) {
26 - fprintf(stderr, "%s: %s is not an OMAGIC file\n",
27 - prog_name, inname);
28 - exit(1);
29 - }
30 - offset = N_TXTOFF(*aout);
31 - fil_size = aout->ah.tsize + aout->ah.dsize;
32 - mem_size = fil_size + aout->ah.bsize;
34 - if (verbose) {
35 - fprintf(stderr, "%s: extracting %#016lx-%#016lx (at %lx)\n",
36 - prog_name, aout->ah.text_start,
37 - aout->ah.text_start + fil_size, offset);
38 - }
40 +#endif
42 if (lseek(fd, offset, SEEK_SET) != offset) {
43 perror("lseek");