]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add support for the .bss pseudo-op to the Z80 assembler.
authorNick Clifton <nickc@redhat.com>
Fri, 11 Dec 2020 16:49:38 +0000 (16:49 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 11 Dec 2020 16:49:38 +0000 (16:49 +0000)
PR 27047
* config/tc-z80.c (s_bss): New function.
(md_pseudo_table): Add bss entry.

gas/ChangeLog
gas/config/tc-z80.c

index 6672da456cb1128ddd58af78567e09d9b73dbac7..71644af918bcb0c26d85ca7ef0b1f6f68bda2999 100644 (file)
@@ -1,3 +1,10 @@
+2020-12-11  Sergey Belyashov  <sergey.belyashov@gmail.com>
+           Nick Clifton  <nickc@redhat.com>
+
+       PR 27047
+       * config/tc-z80.c (s_bss): New function.
+       (md_pseudo_table): Add bss entry.
+
 2020-12-10  Nelson Chu  <nelson.chu@sifive.com>
 
        * config/tc-riscv.c (riscv_ext): New function.  Use md_assemblef
index e5dc877674264f59fec72dac2c9a1f3ce82defde..9c88a44aef438747b7bab6444897dae6c567b772 100644 (file)
@@ -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},