From: Andreas Schwab Date: Mon, 7 Jun 1999 02:28:54 +0000 (+0000) Subject: * config/obj-elf.c (obj_elf_common): In MRI mode if called as X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9be1cda6a54951969daad324d65c56244795b313;p=binutils-gdb.git * 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'. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 494bf45703b..f147f57aab1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 7 11:25:16 1999 Andreas Schwab + + * 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'. + 1999-06-06 Richard Henderson * config/obj-elf.c (obj_elf_section): Don't free the return diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index c20c3d459c5..f204376b7d9 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' */