diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 1999-06-07 02:28:54 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 1999-06-07 02:28:54 +0000 |
commit | 9be1cda6a54951969daad324d65c56244795b313 (patch) | |
tree | 4877aba4d5b20a35ab76e9aa57bae6dea14549a1 /gas/config/obj-elf.c | |
parent | 7f7e7b689cb6893dd7adbb88d7aba5d4a60f39d4 (diff) | |
download | gdb-9be1cda6a54951969daad324d65c56244795b313.zip gdb-9be1cda6a54951969daad324d65c56244795b313.tar.gz gdb-9be1cda6a54951969daad324d65c56244795b313.tar.bz2 |
* config/obj-elf.c (obj_elf_common): In MRI mode if called as
`common' pass on to s_mri_common.
(elf_pseudo_table): Pass 1 to obj_elf_common for `common'.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r-- | gas/config/obj-elf.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index c20c3d4..f204376 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -77,7 +77,7 @@ static void obj_elf_popsection PARAMS ((int)); static const pseudo_typeS elf_pseudo_table[] = { {"comm", obj_elf_common, 0}, - {"common", obj_elf_common, 0}, + {"common", obj_elf_common, 1}, {"ident", obj_elf_ident, 0}, {"local", obj_elf_local, 0}, {"previous", obj_elf_previous, 0}, @@ -257,8 +257,8 @@ elf_file_symbol (s) } static void -obj_elf_common (ignore) - int ignore; +obj_elf_common (is_common) + int is_common; { char *name; char c; @@ -267,6 +267,12 @@ obj_elf_common (ignore) symbolS *symbolP; int have_align; + if (flag_mri && is_common) + { + s_mri_common (0); + return; + } + name = input_line_pointer; c = get_symbol_end (); /* just after name is now '\0' */ |