diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/gdb/gdb/0048-bfd-elf-microblaze.c-Remove-obsolete-entries.patch')
-rw-r--r-- | meta-microblaze/recipes-devtools/gdb/gdb/0048-bfd-elf-microblaze.c-Remove-obsolete-entries.patch | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gdb/gdb/0048-bfd-elf-microblaze.c-Remove-obsolete-entries.patch b/meta-microblaze/recipes-devtools/gdb/gdb/0048-bfd-elf-microblaze.c-Remove-obsolete-entries.patch new file mode 100644 index 00000000..bee50edf --- /dev/null +++ b/meta-microblaze/recipes-devtools/gdb/gdb/0048-bfd-elf-microblaze.c-Remove-obsolete-entries.patch | |||
@@ -0,0 +1,72 @@ | |||
1 | From 359ee1650d98372a2f2cd360a7ea9877077f6ece Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Hatle <mark.hatle@xilinx.com> | ||
3 | Date: Thu, 3 Dec 2020 11:23:26 -0800 | ||
4 | Subject: [PATCH 48/52] bfd/elf*-microblaze.c: Remove obsolete entries | ||
5 | |||
6 | Replace microblaze_elf_merge_private_bfd_data with a direct call to | ||
7 | _bfd_generic_verify_endian_match, this simplifies the implementation. | ||
8 | |||
9 | Remove microblaze_elf_gc_sweep_hook, removed in 2017. | ||
10 | |||
11 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> | ||
12 | --- | ||
13 | bfd/elf64-microblaze.c | 29 +---------------------------- | ||
14 | 1 file changed, 1 insertion(+), 28 deletions(-) | ||
15 | |||
16 | Index: gdb-9.2/bfd/elf64-microblaze.c | ||
17 | =================================================================== | ||
18 | --- gdb-9.2.orig/bfd/elf64-microblaze.c | ||
19 | +++ gdb-9.2/bfd/elf64-microblaze.c | ||
20 | @@ -1690,21 +1690,6 @@ microblaze_elf_relocate_section (bfd *ou | ||
21 | return ret; | ||
22 | } | ||
23 | |||
24 | -/* Merge backend specific data from an object file to the output | ||
25 | - object file when linking. | ||
26 | - | ||
27 | - Note: We only use this hook to catch endian mismatches. */ | ||
28 | -static bfd_boolean | ||
29 | -microblaze_elf_merge_private_bfd_data (bfd * ibfd, bfd * obfd) | ||
30 | -{ | ||
31 | - /* Check if we have the same endianess. */ | ||
32 | - if (! _bfd_generic_verify_endian_match (ibfd, obfd)) | ||
33 | - return FALSE; | ||
34 | - | ||
35 | - return TRUE; | ||
36 | -} | ||
37 | - | ||
38 | - | ||
39 | /* Calculate fixup value for reference. */ | ||
40 | |||
41 | static int | ||
42 | @@ -2427,17 +2412,6 @@ microblaze_elf_gc_mark_hook (asection *s | ||
43 | return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym); | ||
44 | } | ||
45 | |||
46 | -/* Update the got entry reference counts for the section being removed. */ | ||
47 | - | ||
48 | -static bfd_boolean | ||
49 | -microblaze_elf_gc_sweep_hook (bfd * abfd ATTRIBUTE_UNUSED, | ||
50 | - struct bfd_link_info * info ATTRIBUTE_UNUSED, | ||
51 | - asection * sec ATTRIBUTE_UNUSED, | ||
52 | - const Elf_Internal_Rela * relocs ATTRIBUTE_UNUSED) | ||
53 | -{ | ||
54 | - return TRUE; | ||
55 | -} | ||
56 | - | ||
57 | /* PIC support. */ | ||
58 | |||
59 | #define PLT_ENTRY_SIZE 16 | ||
60 | @@ -3704,11 +3678,10 @@ microblaze_elf_add_symbol_hook (bfd *abf | ||
61 | #define bfd_elf64_bfd_is_local_label_name microblaze_elf_is_local_label_name | ||
62 | #define elf_backend_relocate_section microblaze_elf_relocate_section | ||
63 | #define bfd_elf64_bfd_relax_section microblaze_elf_relax_section | ||
64 | -#define bfd_elf64_bfd_merge_private_bfd_data microblaze_elf_merge_private_bfd_data | ||
65 | +#define bfd_elf64_bfd_merge_private_bfd_data _bfd_generic_verify_endian_match | ||
66 | #define bfd_elf64_bfd_reloc_name_lookup microblaze_elf_reloc_name_lookup | ||
67 | |||
68 | #define elf_backend_gc_mark_hook microblaze_elf_gc_mark_hook | ||
69 | -#define elf_backend_gc_sweep_hook microblaze_elf_gc_sweep_hook | ||
70 | #define elf_backend_check_relocs microblaze_elf_check_relocs | ||
71 | #define elf_backend_copy_indirect_symbol microblaze_elf_copy_indirect_symbol | ||
72 | #define bfd_elf64_bfd_link_hash_table_create microblaze_elf_link_hash_table_create | ||