mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* expr.c (expr): Move code setting "retval" to the end of the loop,
and rearrange for efficiency. For "PIC code" subtraction, use "rightseg" rather than recalculating. For "symbol OP symbol" subtract, set "retval" to absolute_section if symbols in same section. * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an O_symbol. Simplify a +/- b code. Allow equality and non-equality comparisons on symbols from any section. Allow other comparison operators as for subtraction. (symbol_equated_reloc_p): New predicate function. * symbols.h (symbol_equated_reloc_p): Declare. * write.c (adjust_reloc_syms): Use symbol_equated_reloc_p. (write_relocs): Likewise. (write_object_file): Likewise. (relax_segment <rs_machine_dependent>): Ensure segment for expression syms is set correctly. * config/tc-mips.c (md_estimate_size_before_relax): Likewise. * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part of a complex expression when setting up frag_var.
This commit is contained in:
@ -185,6 +185,7 @@ extern void symbol_mark_resolved PARAMS ((symbolS *));
|
||||
extern int symbol_resolved_p PARAMS ((symbolS *));
|
||||
extern int symbol_section_p PARAMS ((symbolS *));
|
||||
extern int symbol_equated_p PARAMS ((symbolS *));
|
||||
extern int symbol_equated_reloc_p PARAMS ((symbolS *));
|
||||
extern int symbol_constant_p PARAMS ((symbolS *));
|
||||
|
||||
#ifdef BFD_ASSEMBLER
|
||||
|
Reference in New Issue
Block a user