summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools/binutils/binutils/0011-Patch-Microblaze-Compiler-will-give-error-messages-i.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-microblaze/recipes-devtools/binutils/binutils/0011-Patch-Microblaze-Compiler-will-give-error-messages-i.patch')
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0011-Patch-Microblaze-Compiler-will-give-error-messages-i.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0011-Patch-Microblaze-Compiler-will-give-error-messages-i.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0011-Patch-Microblaze-Compiler-will-give-error-messages-i.patch
deleted file mode 100644
index 4228d3a2..00000000
--- a/meta-microblaze/recipes-devtools/binutils/binutils/0011-Patch-Microblaze-Compiler-will-give-error-messages-i.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From 3efcb580af783ace64a9485af6bfee6dc18499ba Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 21 Feb 2018 12:32:02 +0530
4Subject: [PATCH 11/34] [Patch,Microblaze]: Compiler will give error messages
5 in more detail for mxl-gp-opt flag..
6
7Upstream-Status: Pending
8
9Signed-off-by: Mark Hatle <mark.hatle@amd.com>
10
11---
12 ld/ldmain.c | 12 ++++++++++++
13 1 file changed, 12 insertions(+)
14
15diff --git a/ld/ldmain.c b/ld/ldmain.c
16index ea72b14a301..4e63b8fdf3b 100644
17--- a/ld/ldmain.c
18+++ b/ld/ldmain.c
19@@ -1564,6 +1564,18 @@ reloc_overflow (struct bfd_link_info *info,
20 break;
21 case bfd_link_hash_defined:
22 case bfd_link_hash_defweak:
23+
24+ if((strcmp(reloc_name,"R_MICROBLAZE_SRW32") == 0) && entry->type == bfd_link_hash_defined)
25+ {
26+ einfo (_(" relocation truncated to fit: don't enable small data pointer optimizations[mxl-gp-opt] if extern or multiple declarations used: "
27+ "%s against symbol `%T' defined in %A section in %B"),
28+ reloc_name, entry->root.string,
29+ entry->u.def.section,
30+ entry->u.def.section == bfd_abs_section_ptr
31+ ? info->output_bfd : entry->u.def.section->owner);
32+ break;
33+ }
34+
35 einfo (_(" relocation truncated to fit: "
36 "%s against symbol `%pT' defined in %pA section in %pB"),
37 reloc_name, entry->root.string,
38--
392.37.1 (Apple Git-137.1)
40