summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/0052-gas.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0052-gas.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/0052-gas.patch83
1 files changed, 83 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0052-gas.patch b/meta/recipes-devtools/binutils/binutils/0052-gas.patch
new file mode 100644
index 0000000000..a9bb3ac0e4
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/0052-gas.patch
@@ -0,0 +1,83 @@
1Upstream-Status: Backport
2
3From e45a3a5695408d472e8f0ca6c21eb03e5fd42817 Mon Sep 17 00:00:00 2001
4From: Richard Sandiford <rsandifo@nildram.co.uk>
5Date: Sun, 8 Jan 2012 12:34:30 +0000
6Subject: [PATCH 052/262] gas/ * config/tc-mips.c (s_tls_rel_directive):
7 Call mips_clear_insn_labels.
8
9gas/testsuite/
10 * gas/mips/tls-relw.s, gas/mips/tls-relw.d: New test.
11 * gas/mips/mips.exp: Run it.
12---
13 gas/ChangeLog | 4 ++++
14 gas/config/tc-mips.c | 1 +
15 gas/testsuite/ChangeLog | 5 +++++
16 gas/testsuite/gas/mips/mips.exp | 1 +
17 gas/testsuite/gas/mips/tls-relw.d | 8 ++++++++
18 gas/testsuite/gas/mips/tls-relw.s | 12 ++++++++++++
19 6 files changed, 31 insertions(+)
20 create mode 100644 gas/testsuite/gas/mips/tls-relw.d
21 create mode 100644 gas/testsuite/gas/mips/tls-relw.s
22
232012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
24
25 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
26
27diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
28index 0fb3a6e..5324450 100644
29--- a/gas/config/tc-mips.c
30+++ b/gas/config/tc-mips.c
31@@ -16591,6 +16591,7 @@ s_tls_rel_directive (const size_t bytes, const char *dirstr,
32 md_number_to_chars (p, 0, bytes);
33 fix_new_exp (frag_now, p - frag_now->fr_literal, bytes, &ex, FALSE, rtype);
34 demand_empty_rest_of_line ();
35+ mips_clear_insn_labels ();
36 }
37
38 /* Handle .dtprelword. */
39--- a/gas/testsuite/gas/mips/mips.exp
40+++ b/gas/testsuite/gas/mips/mips.exp
41@@ -878,6 +878,7 @@ if { [istarget mips*-*-vxworks*] } {
42
43 run_list_test "tls-ill" "-32"
44 run_dump_test "tls-o32"
45+ run_dump_test "tls-relw"
46 run_dump_test "jalr2"
47
48 run_dump_test_arches "aent" [mips_arch_list_matching mips1]
49diff --git a/gas/testsuite/gas/mips/tls-relw.d b/gas/testsuite/gas/mips/tls-relw.d
50new file mode 100644
51index 0000000..bc13b43
52--- /dev/null
53+++ b/gas/testsuite/gas/mips/tls-relw.d
54@@ -0,0 +1,8 @@
55+# as: -EB
56+# objdump: -sj.data
57+
58+.*
59+
60+Contents of section \.data:
61+ 0000 00000001 00000000 00000002 00000004 ................
62+ 0010 00000000 00000003 00000010 00000000 ................
63diff --git a/gas/testsuite/gas/mips/tls-relw.s b/gas/testsuite/gas/mips/tls-relw.s
64new file mode 100644
65index 0000000..6890685
66--- /dev/null
67+++ b/gas/testsuite/gas/mips/tls-relw.s
68@@ -0,0 +1,12 @@
69+ .data
70+start:
71+ .word 1
72+a:
73+ .tprelword t1
74+ .word 2
75+ .word a-start
76+b:
77+ .dtprelword t2
78+ .word 3
79+ .word b-start
80+ .word 0
81--
821.7.9.5
83