* symbols.c (resolve_symbol_value): If a symbol is equated to an
authorIan Lance Taylor <ian@airs.com>
Mon, 22 Jan 1996 18:00:01 +0000 (18:00 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 22 Jan 1996 18:00:01 +0000 (18:00 +0000)
commit16ce20d4d7521572e66008b814ba86ed5be59e4f
treefd52cc5b3c002570497b5ede1f6ef09e92317fe0
parent6df07e7f7e7a5e01a9c17b439334f99f51723af6
* symbols.c (resolve_symbol_value): If a symbol is equated to an
undefined symbol, preserve the X_op of O_symbol.
(S_GET_VALUE): Fix check to permit this case.
* write.c (write_relocs): If a reloc is against an undefined
symbol equated to another symbol, change the reloc to be against
the latter symbol.
* config/obj-coff.c (do_relocs_for): Likewise.
If the MRI assembler sees
foo EQU bar
call foo
where bar is not defined, it generates a reloc against bar rather than
against foo.  Since the gas documentation does not define this case,
this change makes gas compatible.
gas/ChangeLog