From 903743854043b4cd26dfea95657f19bf4c1905e0 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 23 Jun 2023 15:51:47 +0300 Subject: [PATCH] Update patch Signed-off-by: David Abdurachmanov --- 20ef84ed2abb990da08d90e1c978f96d29f40606.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/20ef84ed2abb990da08d90e1c978f96d29f40606.patch b/20ef84ed2abb990da08d90e1c978f96d29f40606.patch index 461a8a5..1dfacd8 100644 --- a/20ef84ed2abb990da08d90e1c978f96d29f40606.patch +++ b/20ef84ed2abb990da08d90e1c978f96d29f40606.patch @@ -27,12 +27,12 @@ bfd/ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c -index 762ea231c0b..30d2faa405d 100644 +index ee2d19f7..d02c4a29 100644 --- a/bfd/elfnn-riscv.c +++ b/bfd/elfnn-riscv.c -@@ -111,6 +111,25 @@ - || (bfd_link_pic (INFO) \ - && SYMBOL_REFERENCES_LOCAL ((INFO), (H)))) +@@ -38,6 +38,25 @@ + #define CHAR_BIT 8 + #endif +/* Set NEED_RELOC to true if TLS GD/IE needs dynamic relocations, and INDX will + be the dynamic index. PR22263, use the same check in allocate_dynrelocs and @@ -56,7 +56,7 @@ index 762ea231c0b..30d2faa405d 100644 /* Internal relocations used exclusively by the relaxation pass. */ #define R_RISCV_DELETE (R_RISCV_max + 1) -@@ -1297,18 +1316,24 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) +@@ -1186,18 +1205,24 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) dyn = htab->elf.dynamic_sections_created; if (tls_type & (GOT_TLS_GD | GOT_TLS_IE)) { @@ -83,7 +83,7 @@ index 762ea231c0b..30d2faa405d 100644 } } else -@@ -2882,20 +2907,10 @@ riscv_elf_relocate_section (bfd *output_bfd, +@@ -2691,20 +2716,10 @@ riscv_elf_relocate_section (bfd *output_bfd, abort (); bool dyn = elf_hash_table (info)->dynamic_sections_created;