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.patch36
1 files changed, 36 insertions, 0 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
new file mode 100644
index 00000000..81949e66
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0011-Patch-Microblaze-Compiler-will-give-error-messages-i.patch
@@ -0,0 +1,36 @@
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
7---
8 ld/ldmain.c | 12 ++++++++++++
9 1 file changed, 12 insertions(+)
10
11diff --git a/ld/ldmain.c b/ld/ldmain.c
12index ea72b14a301..4e63b8fdf3b 100644
13--- a/ld/ldmain.c
14+++ b/ld/ldmain.c
15@@ -1564,6 +1564,18 @@ reloc_overflow (struct bfd_link_info *info,
16 break;
17 case bfd_link_hash_defined:
18 case bfd_link_hash_defweak:
19+
20+ if((strcmp(reloc_name,"R_MICROBLAZE_SRW32") == 0) && entry->type == bfd_link_hash_defined)
21+ {
22+ einfo (_(" relocation truncated to fit: don't enable small data pointer optimizations[mxl-gp-opt] if extern or multiple declarations used: "
23+ "%s against symbol `%T' defined in %A section in %B"),
24+ reloc_name, entry->root.string,
25+ entry->u.def.section,
26+ entry->u.def.section == bfd_abs_section_ptr
27+ ? info->output_bfd : entry->u.def.section->owner);
28+ break;
29+ }
30+
31 einfo (_(" relocation truncated to fit: "
32 "%s against symbol `%pT' defined in %pA section in %pB"),
33 reloc_name, entry->root.string,
34--
352.37.1 (Apple Git-137.1)
36