This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can this be right?


Can this be right (from src/binutils/src/gas/config/tc-m68k.c):

void
md_begin ()
{
[ ... ]
#ifdef OBJ_ELF
  record_alignment (text_section, 2);
  record_alignment (data_section, 2);
  record_alignment (bss_section, 2);
#endif
}

?

Surely this is required for a.out also?  I expected ELF to be smarter
about alignments making the above unnecessary?  A quick check of other
files indicates that elf systems often do this, well, ok, and a quick
check of what seem to be aout systems seem to do this as well.

If one has:

.balign 1
.byte 1

in 3 files, and then a:
.balign 4
.byte 2

then on an aout m68k system, the `2' comes out on the wrong address.

Can we make this unconditional?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]