36e09b1bba7cb6fdd16c1e717d7663d1957ab076
[openwrt/openwrt.git] / toolchain / binutils / patches / 2.27 / 001-MIPS_BFD_Remove_EI_ABIVERSION_5.patch
1 From 4d4f40e041ce7c8c7c8e50f957e0440b64ab7e95 Mon Sep 17 00:00:00 2001
2 From: "Maciej W. Rozycki" <macro@imgtec.com>
3 Date: Fri, 23 Dec 2016 20:03:36 +0000
4 Subject: [PATCH] MIPS/BFD: Remove EI_ABIVERSION 5 allocation for PT_GNU_STACK
5 support
6
7 Revert commit 17733f5be961 ("Increment the ABIVERSION to 5 for MIPS
8 objects with non-executable stacks.") and remove EI_ABIVERSION 5
9 allocation for PT_GNU_STACK support, which has not made it to glibc
10 and will be reassigned.
11
12 bfd/
13 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Revert
14 2016-02-23 change and remove EI_ABIVERSION 5 support.
15 ---
16 bfd/ChangeLog | 5 +++++
17 bfd/elfxx-mips.c | 3 ---
18 2 files changed, 5 insertions(+), 3 deletions(-)
19
20 diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
21 index d649676..486607c 100644
22 --- a/bfd/elfxx-mips.c
23 +++ b/bfd/elfxx-mips.c
24 @@ -16358,9 +16358,6 @@ _bfd_mips_post_process_headers (bfd *abfd, struct bfd_link_info *link_info)
25 if (mips_elf_tdata (abfd)->abiflags.fp_abi == Val_GNU_MIPS_ABI_FP_64
26 || mips_elf_tdata (abfd)->abiflags.fp_abi == Val_GNU_MIPS_ABI_FP_64A)
27 i_ehdrp->e_ident[EI_ABIVERSION] = 3;
28 -
29 - if (elf_stack_flags (abfd) && !(elf_stack_flags (abfd) & PF_X))
30 - i_ehdrp->e_ident[EI_ABIVERSION] = 5;
31 }
32
33 int
34 --
35 2.9.3
36