diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/binutils/binutils/0021-Revert-ld-Remove-unused-expression-state.patch')
-rw-r--r-- | meta-microblaze/recipes-devtools/binutils/binutils/0021-Revert-ld-Remove-unused-expression-state.patch | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0021-Revert-ld-Remove-unused-expression-state.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0021-Revert-ld-Remove-unused-expression-state.patch deleted file mode 100644 index 3d877b69..00000000 --- a/meta-microblaze/recipes-devtools/binutils/binutils/0021-Revert-ld-Remove-unused-expression-state.patch +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | From 6238123cdc680941f3b3a253cca5be06d5c81492 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | ||
3 | Date: Wed, 27 Feb 2019 15:12:32 +0530 | ||
4 | Subject: [PATCH 21/34] Revert "ld: Remove unused expression state" --defsym | ||
5 | symbol=expression Create a global symbol in the output file, containing the | ||
6 | absolute address given by expression. | ||
7 | |||
8 | This reverts commit 65f14869fd3fbee8ed4c4ca49de8aaa86dbc66cb. | ||
9 | |||
10 | Conflicts: | ||
11 | ld/ChangeLog | ||
12 | |||
13 | Conflicts: | ||
14 | ld/ldexp.c | ||
15 | ld/ldexp.h | ||
16 | Upstream-Status: Pending | ||
17 | |||
18 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> | ||
19 | |||
20 | --- | ||
21 | ld/ldexp.c | 8 +++++--- | ||
22 | ld/ldexp.h | 1 + | ||
23 | 2 files changed, 6 insertions(+), 3 deletions(-) | ||
24 | |||
25 | diff --git a/ld/ldexp.c b/ld/ldexp.c | ||
26 | index d4d8706968d..b7f4361129f 100644 | ||
27 | --- a/ld/ldexp.c | ||
28 | +++ b/ld/ldexp.c | ||
29 | @@ -1380,6 +1380,7 @@ static etree_type * | ||
30 | exp_assop (const char *dst, | ||
31 | etree_type *src, | ||
32 | enum node_tree_enum class, | ||
33 | + bool defsym, | ||
34 | bool hidden) | ||
35 | { | ||
36 | etree_type *n; | ||
37 | @@ -1391,6 +1392,7 @@ exp_assop (const char *dst, | ||
38 | n->assign.type.node_class = class; | ||
39 | n->assign.src = src; | ||
40 | n->assign.dst = dst; | ||
41 | + n->assign.defsym = defsym; | ||
42 | n->assign.hidden = hidden; | ||
43 | return n; | ||
44 | } | ||
45 | @@ -1400,7 +1402,7 @@ exp_assop (const char *dst, | ||
46 | etree_type * | ||
47 | exp_assign (const char *dst, etree_type *src, bool hidden) | ||
48 | { | ||
49 | - return exp_assop (dst, src, etree_assign, hidden); | ||
50 | + return exp_assop (dst, src, etree_assign, false, hidden); | ||
51 | } | ||
52 | |||
53 | /* Handle --defsym command-line option. */ | ||
54 | @@ -1408,7 +1410,7 @@ exp_assign (const char *dst, etree_type *src, bool hidden) | ||
55 | etree_type * | ||
56 | exp_defsym (const char *dst, etree_type *src) | ||
57 | { | ||
58 | - return exp_assop (dst, src, etree_assign, false); | ||
59 | + return exp_assop (dst, src, etree_assign, true, false); | ||
60 | } | ||
61 | |||
62 | /* Handle PROVIDE. */ | ||
63 | @@ -1416,7 +1418,7 @@ exp_defsym (const char *dst, etree_type *src) | ||
64 | etree_type * | ||
65 | exp_provide (const char *dst, etree_type *src, bool hidden) | ||
66 | { | ||
67 | - return exp_assop (dst, src, etree_provide, hidden); | ||
68 | + return exp_assop (dst, src, etree_provide, false, hidden); | ||
69 | } | ||
70 | |||
71 | /* Handle ASSERT. */ | ||
72 | diff --git a/ld/ldexp.h b/ld/ldexp.h | ||
73 | index ed6fb8be715..e838b736306 100644 | ||
74 | --- a/ld/ldexp.h | ||
75 | +++ b/ld/ldexp.h | ||
76 | @@ -66,6 +66,7 @@ typedef union etree_union { | ||
77 | node_type type; | ||
78 | const char *dst; | ||
79 | union etree_union *src; | ||
80 | + bool defsym; | ||
81 | bool hidden; | ||
82 | } assign; | ||
83 | struct { | ||
84 | -- | ||
85 | 2.37.1 (Apple Git-137.1) | ||
86 | |||