* config/tc-i386.c (md_convert_frag): Don't die on local symbols
that have been finalized.
2001-05-25 Alan Modra <amodra@one.net.au>
+ From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
+ * config/tc-i386.c (md_convert_frag): Don't die on local symbols
+ that have been finalized.
+
* symbols.c (resolve_symbol_value): Clear sy_resolving before
taking exit_dont_set_value.
target_address = S_GET_VALUE (fragP->fr_symbol) + fragP->fr_offset;
#ifdef BFD_ASSEMBLER
/* Not needed otherwise? */
- target_address += symbol_get_frag (fragP->fr_symbol)->fr_address;
+ {
+ /* Local symbols which have already been resolved have a NULL frag. */
+ fragS *sym_frag = symbol_get_frag (fragP->fr_symbol);
+ if (sym_frag)
+ target_address += sym_frag->fr_address;
+ }
#endif
/* Address opcode resides at in file space. */