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
5 prog_name, (long) elf_phdr->p_vaddr,
6 elf_phdr->p_vaddr + fil_size, offset);
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",
19 - if (aout->fh.f_opthdr != sizeof(aout->ah)) {
20 - fprintf(stderr, "%s: %s has unexpected optional header size\n",
25 - if (N_MAGIC(*aout) != OMAGIC) {
26 - fprintf(stderr, "%s: %s is not an OMAGIC file\n",
30 - offset = N_TXTOFF(*aout);
31 - fil_size = aout->ah.tsize + aout->ah.dsize;
32 - mem_size = fil_size + aout->ah.bsize;
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);
42 if (lseek(fd, offset, SEEK_SET) != offset) {