mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
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.
This commit is contained in:
@ -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>
|
2020-12-10 Nelson Chu <nelson.chu@sifive.com>
|
||||||
|
|
||||||
* config/tc-riscv.c (riscv_ext): New function. Use md_assemblef
|
* config/tc-riscv.c (riscv_ext): New function. Use md_assemblef
|
||||||
|
@ -3445,6 +3445,15 @@ area (int arg)
|
|||||||
psect (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. */
|
/* Port specific pseudo ops. */
|
||||||
const pseudo_typeS md_pseudo_table[] =
|
const pseudo_typeS md_pseudo_table[] =
|
||||||
{
|
{
|
||||||
@ -3460,6 +3469,7 @@ const pseudo_typeS md_pseudo_table[] =
|
|||||||
{ ".hd64", set_inss, INS_Z180},
|
{ ".hd64", set_inss, INS_Z180},
|
||||||
{ ".z80", set_inss, INS_Z80},
|
{ ".z80", set_inss, INS_Z80},
|
||||||
{ ".z80n", set_inss, INS_Z80N},
|
{ ".z80n", set_inss, INS_Z80N},
|
||||||
|
{ "bss", s_bss, 0},
|
||||||
{ "db" , emit_data, 1},
|
{ "db" , emit_data, 1},
|
||||||
{ "d24", z80_cons, 3},
|
{ "d24", z80_cons, 3},
|
||||||
{ "d32", z80_cons, 4},
|
{ "d32", z80_cons, 4},
|
||||||
|
Reference in New Issue
Block a user