summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2020-06-05 07:28:08 -0700
committerMark Hatle <mark.hatle@xilinx.com>2020-06-25 09:14:51 -0700
commit1d8c32f88238a13099e5bd2255356402fc5f6b01 (patch)
tree7997d9afb82be09d1e36fd9406e102fe63f64899
parentcdb92171e493a7054258391833e713e2899aef70 (diff)
downloadmeta-xilinx-1d8c32f88238a13099e5bd2255356402fc5f6b01.tar.gz
meta-xilinx-bsp: binutils: Fix microblaze compilation
In some situations the microblaze patches will be enabled for the binutils-native compilation. Fix a compilation issue related to a change in the way the md_pseudo_table structure definition has changed. | ../../gas/config/tc-i386.c:1155:20: error: conflicting types for ‘md_pseudo_table’ | const pseudo_typeS md_pseudo_table[] = | ^~~~~~~~~~~~~~~ | In file included from ../../gas/as.h:565:0, | from ../../gas/config/tc-i386.c:28: | ../../gas/tc.h:25:21: note: previous declaration of ‘md_pseudo_table’ was here| extern pseudo_typeS md_pseudo_table[]; | ^~~~~~~~~~~~~~~ To support binutils-native on other host types, such as aarch64 a similar patch is likely needed for those types as well. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-bsp/recipes-microblaze/binutils/binutils-microblaze.inc1
-rw-r--r--meta-xilinx-bsp/recipes-microblaze/binutils/binutils/0050-Fix-i386-md_pseudo_table.patch28
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-microblaze.inc b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-microblaze.inc
index a9fa18ce..ed6e75b2 100644
--- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-microblaze.inc
+++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-microblaze.inc
@@ -50,4 +50,5 @@ SRC_URI_append = " \
50 file://0047-Patch-MicroBlaze-commit-for-triggering-build-to-remo.patch \ 50 file://0047-Patch-MicroBlaze-commit-for-triggering-build-to-remo.patch \
51 file://0048-Patch-MicroBlaze-Adding-more-description-to-the-imml.patch \ 51 file://0048-Patch-MicroBlaze-Adding-more-description-to-the-imml.patch \
52 file://0049-Patch-MicroBlaze-improper-address-mapping-of-PROVIDE.patch \ 52 file://0049-Patch-MicroBlaze-improper-address-mapping-of-PROVIDE.patch \
53 file://0050-Fix-i386-md_pseudo_table.patch \
53 " 54 "
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils/0050-Fix-i386-md_pseudo_table.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils/0050-Fix-i386-md_pseudo_table.patch
new file mode 100644
index 00000000..9469732e
--- /dev/null
+++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils/0050-Fix-i386-md_pseudo_table.patch
@@ -0,0 +1,28 @@
1Fix a possible compilation issue on i386 when using microblaze patches
2
3Due to patch 0019, a later item may need to refer to this table.
4
5| ../../gas/config/tc-i386.c:1155:20: error: conflicting types for ‘md_pseudo_table’
6| const pseudo_typeS md_pseudo_table[] =
7| ^~~~~~~~~~~~~~~
8| In file included from ../../gas/as.h:565:0,
9| from ../../gas/config/tc-i386.c:28:
10| ../../gas/tc.h:25:21: note: previous declaration of ‘md_pseudo_table’ was here
11| extern pseudo_typeS md_pseudo_table[];
12| ^~~~~~~~~~~~~~~
13
14Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
15
16Index: git/gas/config/tc-i386.c
17===================================================================
18--- git.orig/gas/config/tc-i386.c
19+++ git/gas/config/tc-i386.c
20@@ -1152,7 +1152,7 @@ pe_lcomm (int needs_align)
21 }
22 #endif
23
24-const pseudo_typeS md_pseudo_table[] =
25+pseudo_typeS md_pseudo_table[] =
26 {
27 #if !defined(OBJ_AOUT) && !defined(USE_ALIGN_PTWO)
28 {"align", s_align_bytes, 0},