> [comp.os.linux.development.system - Wed, 28 Jul 1999 16:31:17 +0900] * Lim, wrote *
> > Hi, I installed binutils-2.9.1.0.19a as 'arm-aout' targetted.
> > When I assemble a simple example with arm-aout-asm, it
> > complains that
> > Error : Unknown pseudo-op '.section'
> > Error : Unknown pseudo-op '.previous'
> > When I look into the GAS manual, there exists the directive
> > '.section'. I can't figure out why this happens. Can anyone
> > explain this or advise?
> GAS only supports the .section pseudo-op when the target object format
> supports sections. I don't think a.out supports sectioning, though.
Nope, a.out has exactly three sections, .text, .data, and .bss. Given the
above messages, I assume you used -g and the compiler is now emitting dwarf
instead of stabs. You might try it with -gstabs+, since dwarf only works on
object files that support random sections, or as suggested use arm-elf.
--
Michael Meissner, Cygnus Solutions
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886