diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-07-30 00:53:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-06 15:12:39 +0100 |
commit | 56b201df77a45ccd0f51d16095dc90c150950034 (patch) | |
tree | 5a85d6273acc6db0a14606b11655ab9f33fbd4a3 /meta/recipes-devtools/binutils/binutils/0017-Do-not-emit-R_RISCV_NONE-reloc-in-the-extra-unused-r.patch | |
parent | 4a832bc5d57d73354fe3eb369bd8108dec9c9523 (diff) | |
download | poky-56b201df77a45ccd0f51d16095dc90c150950034.tar.gz |
binutils: Upgrade to 2.35 release
assembler supports dwarf-5 format line numbers
linker has -M -MP gcc-like option
for detailed release notes see [1]
[1] https://lists.gnu.org/archive/html/info-gnu/2020-07/msg00008.html
(From OE-Core rev: 7a7667127625244aae2b1ff179e431fc9ad25737)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0017-Do-not-emit-R_RISCV_NONE-reloc-in-the-extra-unused-r.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0017-Do-not-emit-R_RISCV_NONE-reloc-in-the-extra-unused-r.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0017-Do-not-emit-R_RISCV_NONE-reloc-in-the-extra-unused-r.patch b/meta/recipes-devtools/binutils/binutils/0017-Do-not-emit-R_RISCV_NONE-reloc-in-the-extra-unused-r.patch new file mode 100644 index 0000000000..99bb38eb67 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/0017-Do-not-emit-R_RISCV_NONE-reloc-in-the-extra-unused-r.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 5b61c40c34c3db699de723c3128ba704501ccdac Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 20 Apr 2020 14:23:57 -0700 | ||
4 | Subject: [PATCH 17/17] Do not emit R_RISCV_NONE reloc in the extra unused | ||
5 | reloc space. | ||
6 | |||
7 | Redundant R_RISCV_DTPMOD* R_RISCV_DTPREL* results from Global Dynamic -> Local Exec relaxation | ||
8 | which generates | ||
9 | |||
10 | Patch from https://sourceware.org/bugzilla/show_bug.cgi?id=24673 | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | bfd/elfnn-riscv.c | 5 +++-- | ||
17 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c | ||
20 | index a5fa415309a..1e582052aa9 100644 | ||
21 | --- a/bfd/elfnn-riscv.c | ||
22 | +++ b/bfd/elfnn-riscv.c | ||
23 | @@ -2090,13 +2090,14 @@ riscv_elf_relocate_section (bfd *output_bfd, | ||
24 | pic = bfd_link_pic (info); | ||
25 | |||
26 | if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, pic, h) | ||
27 | - && (!pic || !SYMBOL_REFERENCES_LOCAL (info, h))) | ||
28 | + && (bfd_link_dll (info) | ||
29 | + || !SYMBOL_REFERENCES_LOCAL (info, h))) | ||
30 | indx = h->dynindx; | ||
31 | } | ||
32 | |||
33 | /* The GOT entries have not been initialized yet. Do it | ||
34 | now, and emit any relocations. */ | ||
35 | - if ((bfd_link_pic (info) || indx != 0) | ||
36 | + if ((bfd_link_dll (info) || indx != 0) | ||
37 | && (h == NULL | ||
38 | || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT | ||
39 | || h->root.type != bfd_link_hash_undefweak)) | ||
40 | -- | ||
41 | 2.28.0 | ||
42 | |||