mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* read.c (abs_section_offset): New global variable.
(potable): Add offset, struct. (do_org): New static function; handle changing the origin in the absolute section. (s_org): Use do_org. (s_set): Likewise. (equals): Likewise. (s_space): In absolute_section, just increase abs_section_offset. (s_struct): New function. (emit_expr): Handle absolute_section specially. * read.h (abs_section_offset): Declare. (s_struct): Declare. * read.c (potable): Add ifeq, ifge, ifgt, ifle, iflt, ifne. Change if to pass O_ne to s_if. (read_a_source_file): Don't define an label without a colon if ignore_input returns true. * read.c (potable): Add dcb, dcb.b, dcb.d, dcb.l, dcb.s, dcb.w, dcb.x, ds.d, ds.p, ds.s, ds.x, elsec, endc, fail, format, llen, noformat. (read_a_source_file): If pseudo-op handler is s_end, quit immediately. (s_end): New function. (s_fail): New function. (s_float_space): New function. (hex_float): New static function. (float_cons): Use hex_float. * read.h (s_fail): Declare. (s_float_space): Declare.
This commit is contained in:
@ -60,6 +60,9 @@ extern const char line_separator_chars[];
|
||||
/* This flag whether to generate line info for asm file */
|
||||
extern int generate_asm_lineno;
|
||||
|
||||
/* The offset in the absolute section. */
|
||||
extern addressT abs_section_offset;
|
||||
|
||||
/* This is used to support MRI common sections. */
|
||||
extern symbolS *mri_common_symbol;
|
||||
|
||||
@ -86,13 +89,14 @@ 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));
|
||||
void s_end PARAMS ((int arg));
|
||||
void s_endif PARAMS ((int arg));
|
||||
void s_fail PARAMS ((int));
|
||||
void s_fill PARAMS ((int));
|
||||
void s_float_space PARAMS ((int mult));
|
||||
void s_globl PARAMS ((int arg));
|
||||
void s_if PARAMS ((int arg));
|
||||
void s_ifdef PARAMS ((int arg));
|
||||
@ -101,10 +105,12 @@ void s_ignore PARAMS ((int arg));
|
||||
void s_include PARAMS ((int arg));
|
||||
void s_lcomm PARAMS ((int needs_align));
|
||||
void s_lsym PARAMS ((int));
|
||||
void s_mri_common PARAMS ((int));
|
||||
void s_org PARAMS ((int));
|
||||
void s_set PARAMS ((int));
|
||||
void s_space PARAMS ((int mult));
|
||||
void s_stab PARAMS ((int what));
|
||||
void s_struct PARAMS ((int));
|
||||
void s_text PARAMS ((int));
|
||||
void stringer PARAMS ((int append_zero));
|
||||
void s_xstab PARAMS ((int what));
|
||||
|
Reference in New Issue
Block a user