aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>1999-06-07 02:28:54 +0000
committerAndreas Schwab <schwab@linux-m68k.org>1999-06-07 02:28:54 +0000
commit9be1cda6a54951969daad324d65c56244795b313 (patch)
tree4877aba4d5b20a35ab76e9aa57bae6dea14549a1
parent7f7e7b689cb6893dd7adbb88d7aba5d4a60f39d4 (diff)
downloadgdb-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'.
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/obj-elf.c12
2 files changed, 15 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 494bf45..f147f57 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jun 7 11:25:16 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
+
+ * 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 <rth@cygnus.com>
* 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 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' */