aboutsummaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools/binutils/binutils/0032-ld-emulparams-elf64microblaze-Fix-emulation-generati.patch
blob: 8891a77fb7365b30d5170b88fee0991e6e528ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 7b285c827edbc34cf79d4ed0f46cdfd4916b687c Mon Sep 17 00:00:00 2001
From: Mark Hatle <mark.hatle@xilinx.com>
Date: Mon, 30 Nov 2020 16:17:36 -0800
Subject: [PATCH 32/52] ld/emulparams/elf64microblaze: Fix emulation generation

Compilation fails when building ld-new with:

ldemul.o:(.data.rel+0x820): undefined reference to `ld_elf64microblazeel_emulation'
ldemul.o:(.data.rel+0x828): undefined reference to `ld_elf64microblaze_emulation'

The error appears to be that the elf64 files were referencing the elf32 emulation.

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
---
 ld/emulparams/elf64microblaze.sh   | 2 +-
 ld/emulparams/elf64microblazeel.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ld/emulparams/elf64microblaze.sh b/ld/emulparams/elf64microblaze.sh
index 9c7b0eb708..7b4c7c411b 100644
--- a/ld/emulparams/elf64microblaze.sh
+++ b/ld/emulparams/elf64microblaze.sh
@@ -19,5 +19,5 @@ NOP=0x80000000
 #$@{RELOCATING+ PROVIDE (__stack = 0x7000);@}
 #OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = _end + 0x1000);'
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 #GENERATE_SHLIB_SCRIPT=yes
diff --git a/ld/emulparams/elf64microblazeel.sh b/ld/emulparams/elf64microblazeel.sh
index 9c7b0eb708..7b4c7c411b 100644
--- a/ld/emulparams/elf64microblazeel.sh
+++ b/ld/emulparams/elf64microblazeel.sh
@@ -19,5 +19,5 @@ NOP=0x80000000
 #$@{RELOCATING+ PROVIDE (__stack = 0x7000);@}
 #OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = _end + 0x1000);'
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 #GENERATE_SHLIB_SCRIPT=yes
-- 
2.17.1