Commit Graph

4 Commits

Author SHA1 Message Date
Ian Lance Taylor 262b22cd10 Changed relocs to be based on subsegments (when BFD_ASSEMBLER).
* subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields
	fix_root and fix_tail.
	(segment_info_type): If BFD_ASSEMBLER, don't define fix_tail
	field.
	* write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and
	fix_tailP based on frchain_now, not seg_info (now_seg).
	(chain_frchains_together_1): Chain the subsegment relocs together.
	* subsegs.c (subseg_change): Don't clear fix_tail field.
	(subseg_get): Likewise.
	* literal.c (add_to_literal_pool): Look through the relocs via
	frchain_now, not seginfo.

	* write.c (write_object_file): Simplified usage of obj_frob_symbol
	and tc_frob_symbol.  Always call both if the symbol is going to be
	output.

	* write.c (relax_segment): Use %ld rather than %d when printing
	fragP->fr_var, and cast it to long.
1994-02-05 05:29:42 +00:00
Ken Raeburn d5bd8e851d Comment change: Soften recommendations against supplying sym+addend operands,
since it works, and gas does it.  It's merely wasteful of space.
1994-01-28 01:40:22 +00:00
Ken Raeburn 19302e449a * literal.c (add_to_literal_pool): Handle duplicates of values already written
to literal pool.
1994-01-19 00:08:50 +00:00
Ken Raeburn acf6404e0b (add_to_literal_pool): Take symbol and addend as arguments, instead of
expression, for now.  Fix calculation of offset to return.
1994-01-13 21:31:50 +00:00