aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-z80.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-12-11 16:49:38 +0000
committerNick Clifton <nickc@redhat.com>2020-12-11 16:49:38 +0000
commit14a772212b8e8e19b45a23e2dacb61ceff0d4979 (patch)
tree92f39382bd232d4c19ca1392f7412c82b5754652 /gas/config/tc-z80.c
parent07d9937a201b2ff66b4ca98eac70581fd17c1aa0 (diff)
downloadgdb-14a772212b8e8e19b45a23e2dacb61ceff0d4979.zip
gdb-14a772212b8e8e19b45a23e2dacb61ceff0d4979.tar.gz
gdb-14a772212b8e8e19b45a23e2dacb61ceff0d4979.tar.bz2
Add support for the .bss pseudo-op to the Z80 assembler.
PR 27047 * config/tc-z80.c (s_bss): New function. (md_pseudo_table): Add bss entry.
Diffstat (limited to 'gas/config/tc-z80.c')
-rw-r--r--gas/config/tc-z80.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/config/tc-z80.c b/gas/config/tc-z80.c
index e5dc877..9c88a44 100644
--- a/gas/config/tc-z80.c
+++ b/gas/config/tc-z80.c
@@ -3445,6 +3445,15 @@ area (int arg)
psect (arg);
}
+/* Handle the .bss pseudo-op. */
+
+static void
+s_bss (int ignore ATTRIBUTE_UNUSED)
+{
+ subseg_set (bss_section, 0);
+ demand_empty_rest_of_line ();
+}
+
/* Port specific pseudo ops. */
const pseudo_typeS md_pseudo_table[] =
{
@@ -3460,6 +3469,7 @@ const pseudo_typeS md_pseudo_table[] =
{ ".hd64", set_inss, INS_Z180},
{ ".z80", set_inss, INS_Z80},
{ ".z80n", set_inss, INS_Z80N},
+ { "bss", s_bss, 0},
{ "db" , emit_data, 1},
{ "d24", z80_cons, 3},
{ "d32", z80_cons, 4},