* 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'.
This commit is contained in:
Andreas Schwab 1999-06-07 02:28:54 +00:00
parent 7f7e7b689c
commit 9be1cda6a5
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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' */