summaryrefslogtreecommitdiff
path: root/target/linux/patches/4.14.142/alpha-remove-coff.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-09-12 12:13:47 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2019-09-12 13:23:49 +0200
commitc8fb7cd7f6b46b42d588eed80abd1fe6422b1896 (patch)
tree4be894b84e7d9513dc4ce84cc11ac9c48f23f7d1 /target/linux/patches/4.14.142/alpha-remove-coff.patch
parent364bdfb6058e001024617c6e335e5f3cd41538bf (diff)
move kernel patches
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'target/linux/patches/4.14.142/alpha-remove-coff.patch')
-rw-r--r--target/linux/patches/4.14.142/alpha-remove-coff.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/target/linux/patches/4.14.142/alpha-remove-coff.patch b/target/linux/patches/4.14.142/alpha-remove-coff.patch
new file mode 100644
index 000000000..51b7bcc14
--- /dev/null
+++ b/target/linux/patches/4.14.142/alpha-remove-coff.patch
@@ -0,0 +1,43 @@
+diff -Nur linux-4.14.39.orig/arch/alpha/boot/tools/objstrip.c linux-4.14.39/arch/alpha/boot/tools/objstrip.c
+--- linux-4.14.39.orig/arch/alpha/boot/tools/objstrip.c 2018-05-01 21:58:27.000000000 +0200
++++ linux-4.14.39/arch/alpha/boot/tools/objstrip.c 2018-05-22 12:36:55.166124565 +0200
+@@ -192,38 +192,8 @@
+ prog_name, (long) elf_phdr->p_vaddr,
+ elf_phdr->p_vaddr + fil_size, offset);
+ }
+- } else
+-#endif
+- {
+- aout = (struct exec *) buf;
+-
+- if (!(aout->fh.f_flags & COFF_F_EXEC)) {
+- fprintf(stderr, "%s: %s is not in executable format\n",
+- prog_name, inname);
+- exit(1);
+- }
+-
+- if (aout->fh.f_opthdr != sizeof(aout->ah)) {
+- fprintf(stderr, "%s: %s has unexpected optional header size\n",
+- prog_name, inname);
+- exit(1);
+- }
+-
+- if (N_MAGIC(*aout) != OMAGIC) {
+- fprintf(stderr, "%s: %s is not an OMAGIC file\n",
+- prog_name, inname);
+- exit(1);
+- }
+- offset = N_TXTOFF(*aout);
+- fil_size = aout->ah.tsize + aout->ah.dsize;
+- mem_size = fil_size + aout->ah.bsize;
+-
+- if (verbose) {
+- fprintf(stderr, "%s: extracting %#016lx-%#016lx (at %lx)\n",
+- prog_name, aout->ah.text_start,
+- aout->ah.text_start + fil_size, offset);
+- }
+ }
++#endif
+
+ if (lseek(fd, offset, SEEK_SET) != offset) {
+ perror("lseek");