aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-aarch64.c
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2022-12-27 22:16:04 +0000
committerMark Harmstone <mark@harmstone.com>2023-01-10 23:30:52 +0000
commit7697bc652347ec5009c2225d0abd3aff41477917 (patch)
treebc8cb35d2be9e417d57a0230ed7283a1c333003d /gas/config/tc-aarch64.c
parent16fea92ccd993fce6b5b0efebe059d542cad9932 (diff)
downloadgdb-7697bc652347ec5009c2225d0abd3aff41477917.zip
gdb-7697bc652347ec5009c2225d0abd3aff41477917.tar.gz
gdb-7697bc652347ec5009c2225d0abd3aff41477917.tar.bz2
gas: Restore tc_pe_dwarf2_emit_offset for pe-aarch64
Restores tc_pe_dwarf2_emit_offset in tc-aarch64.c, which is needed to make sure that DWARF offsets are encoded correctly (they're secrels in COFF). There were remnants of this there before, but they were removed by Jedidiah's original patch - presumably because we didn't yet have .secrel32.
Diffstat (limited to 'gas/config/tc-aarch64.c')
-rw-r--r--gas/config/tc-aarch64.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index ad070cd..2b74db2 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -2116,6 +2116,17 @@ s_secrel (int dummy ATTRIBUTE_UNUSED)
input_line_pointer--;
demand_empty_rest_of_line ();
}
+
+void
+tc_pe_dwarf2_emit_offset (symbolS *symbol, unsigned int size)
+{
+ expressionS exp;
+
+ exp.X_op = O_secrel;
+ exp.X_add_symbol = symbol;
+ exp.X_add_number = 0;
+ emit_expr (&exp, size);
+}
#endif /* TE_PE */
static void s_aarch64_arch (int);