forked from Imagelibrary/binutils-gdb
* struc-symbol.h (struct symbol): Add sy_mri_common bit.
* read.h (mri_comon_symbol): Declare. (s_mri_common): Declare. * read.c (mri_line_label): New static variable. (mri_common_symbol): New global variable. (potable): Add "common" and "common.s". (read_a_source_file): In MRI mode, set mri_line_label for a label at the start of a line. (s_mri_common): New function. (s_space): Handle mri_common_symbol. * symbols.c (colon): Change return value from void to symbolS *, and return new symbol. If mri_common_symbol is set, attach the new symbol to it. (resolve_symbol_value): Handle an sy_mri_common symbol. * symbols.h (colon): Change return value in declaration. * subsegs.c (subseg_set_rest): Clear mri_common_symbol. (subseg_set (both versions)): Likewise. * frags.c (frag_more): Warn if mri_common_symbol is not NULL. * write.c (adjust_reloc_syms): Skip sy_mri_common symbols. (write_object_file): Discard sy_mri_common symbols. (fixup_segment): Change relocations against sy_mri_common symbols to be against the common symbol itself. * config/obj-coff.c (yank_symbols): Discard sy_mri_common symbols. (fixup_segment): Change relocations against sy_mri_common symbols to be against the common symbol itself. * config/obj-aout.c (obj_crawl_symbol_chain): Discard sy_mri_common symbols.
This commit is contained in:
10
gas/read.h
10
gas/read.h
@@ -16,7 +16,7 @@
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GAS; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
extern char *input_line_pointer;/* -> char we are parsing now. */
|
||||
|
||||
@@ -47,9 +47,11 @@ extern char *input_line_pointer;/* -> char we are parsing now. */
|
||||
#define is_a_char(c) (((unsigned)(c)) <= CHAR_MASK)
|
||||
#endif /* is_a_char() */
|
||||
|
||||
extern const char lex_type[];
|
||||
extern char lex_type[];
|
||||
extern char is_end_of_line[];
|
||||
|
||||
extern int target_big_endian;
|
||||
|
||||
/* These are initialized by the CPU specific target files (tc-*.c). */
|
||||
extern const char comment_chars[];
|
||||
extern const char line_comment_chars[];
|
||||
@@ -58,6 +60,9 @@ extern const char line_separator_chars[];
|
||||
/* This flag whether to generate line info for asm file */
|
||||
extern int generate_asm_lineno;
|
||||
|
||||
/* This is used to support MRI common sections. */
|
||||
extern symbolS *mri_common_symbol;
|
||||
|
||||
unsigned int get_stab_string_offset PARAMS ((const char *string,
|
||||
const char *stabstr_secname));
|
||||
|
||||
@@ -81,6 +86,7 @@ void s_align_ptwo PARAMS ((int));
|
||||
void s_app_file PARAMS ((int));
|
||||
void s_app_line PARAMS ((int));
|
||||
void s_comm PARAMS ((int));
|
||||
void s_mri_common PARAMS ((int));
|
||||
void s_data PARAMS ((int));
|
||||
void s_desc PARAMS ((int));
|
||||
void s_else PARAMS ((int arg));
|
||||
|
||||
Reference in New Issue
Block a user