diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/binutils/binutils/0030-ld-emulparams-elf64microblaze-Fix-emulation-generati.patch')
-rw-r--r-- | meta-microblaze/recipes-devtools/binutils/binutils/0030-ld-emulparams-elf64microblaze-Fix-emulation-generati.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0030-ld-emulparams-elf64microblaze-Fix-emulation-generati.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0030-ld-emulparams-elf64microblaze-Fix-emulation-generati.patch new file mode 100644 index 00000000..bfb65224 --- /dev/null +++ b/meta-microblaze/recipes-devtools/binutils/binutils/0030-ld-emulparams-elf64microblaze-Fix-emulation-generati.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 62107ba949fe70e5ae0573147d82cbb52bd1fc08 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | ||
3 | Date: Mon, 8 Nov 2021 22:01:23 +0530 | ||
4 | Subject: [PATCH 30/34] ld/emulparams/elf64microblaze: Fix emulation generation | ||
5 | |||
6 | Compilation fails when building ld-new with: | ||
7 | |||
8 | ldemul.o:(.data.rel+0x820): undefined reference to `ld_elf64microblazeel_emulation' | ||
9 | ldemul.o:(.data.rel+0x828): undefined reference to `ld_elf64microblaze_emulation' | ||
10 | |||
11 | The error appears to be that the elf64 files were referencing the elf32 emulation. | ||
12 | |||
13 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> | ||
14 | --- | ||
15 | ld/emulparams/elf64microblaze.sh | 2 +- | ||
16 | ld/emulparams/elf64microblazeel.sh | 2 +- | ||
17 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/ld/emulparams/elf64microblaze.sh b/ld/emulparams/elf64microblaze.sh | ||
20 | index 9c7b0eb7080..7b4c7c411bd 100644 | ||
21 | --- a/ld/emulparams/elf64microblaze.sh | ||
22 | +++ b/ld/emulparams/elf64microblaze.sh | ||
23 | @@ -19,5 +19,5 @@ NOP=0x80000000 | ||
24 | #$@{RELOCATING+ PROVIDE (__stack = 0x7000);@} | ||
25 | #OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = _end + 0x1000);' | ||
26 | |||
27 | -TEMPLATE_NAME=elf32 | ||
28 | +TEMPLATE_NAME=elf | ||
29 | #GENERATE_SHLIB_SCRIPT=yes | ||
30 | diff --git a/ld/emulparams/elf64microblazeel.sh b/ld/emulparams/elf64microblazeel.sh | ||
31 | index 9c7b0eb7080..7b4c7c411bd 100644 | ||
32 | --- a/ld/emulparams/elf64microblazeel.sh | ||
33 | +++ b/ld/emulparams/elf64microblazeel.sh | ||
34 | @@ -19,5 +19,5 @@ NOP=0x80000000 | ||
35 | #$@{RELOCATING+ PROVIDE (__stack = 0x7000);@} | ||
36 | #OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = _end + 0x1000);' | ||
37 | |||
38 | -TEMPLATE_NAME=elf32 | ||
39 | +TEMPLATE_NAME=elf | ||
40 | #GENERATE_SHLIB_SCRIPT=yes | ||
41 | -- | ||
42 | 2.37.1 (Apple Git-137.1) | ||
43 | |||