* config/tc-mips.c: Undo part of last Friday's alignment changes.

(md_begin): Always align the text section to a four byte
	boundary.
	(append_insn): Remove call to record_align.
This commit is contained in:
Ian Lance Taylor
1996-12-18 01:01:56 +00:00
parent 5c8f1c0183
commit f5e38044df
2 changed files with 6 additions and 13 deletions

View File

@ -1,5 +1,10 @@
Tue Dec 17 10:59:32 1996 Ian Lance Taylor <ian@cygnus.com>
* config/tc-mips.c: Undo part of last Friday's alignment changes.
(md_begin): Always align the text section to a four byte
boundary.
(append_insn): Remove call to record_align.
* config/tc-mips.c (insn_label): Remove.
(struct insn_label_list): Define.
(insn_labels, free_insn_labels): New static variables.

View File

@ -923,8 +923,7 @@ md_begin ()
mips_cprmask[3] = 0;
/* set the default alignment for the text section (2**2) */
if (OUTPUT_FLAVOR != bfd_target_elf_flavour)
record_alignment (text_section, 2);
record_alignment (text_section, 2);
if (USE_GLOBAL_POINTER_OPT)
bfd_set_gp_size (stdoutput, g_switch_value);
@ -1182,17 +1181,6 @@ append_insn (place, ip, address_expr, reloc_type, unmatched_hi)
fixS *fixp;
int nops = 0;
/* Make sure the section will be aligned appropriately. Note that
we do not insert an alignment directive; it remains the user's
responsibility to align instructions if necessary. Here we only
ensure that the section will have the right default alignment, so
that the right thing will happen if no alignment directive is
used. */
if (mips16)
record_alignment (now_seg, 1);
else
record_alignment (now_seg, 2);
/* Mark instruction labels in mips16 mode. This permits the linker
to handle them specially, such as generating jalx instructions
when needed. We also make them odd for the duration of the