assembler message, Unknown pseudo-op : .section

assembler message, Unknown pseudo-op : .section

Post by Lim, Sung-tae » Thu, 29 Jul 1999 04:00:00



 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?

Thank you for any kind or help or advice.

--
Lim, Sung-taek

http://poppy.snu.ac.kr/~totohero/

 
 
 

assembler message, Unknown pseudo-op : .section

Post by Chris Butl » Fri, 06 Aug 1999 04:00:00


[comp.os.linux.development.system - Wed, 28 Jul 1999 16:31:17 +0900] * Lim, wrote *

Quote:>  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.

JOOI - why are you trying to compile for arm-aout? The ARM port of Linux
supports ELF nowadays..

--
Chris Butler


 
 
 

assembler message, Unknown pseudo-op : .section

Post by Michael Meissne » Tue, 10 Aug 1999 04:00:00



> [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

 
 
 

1. FreeBSD 3.0-REL pseudo-op .section problem

I am running FreeBSD-2.2.7-RELEASE and I sup'ed the 3.0-RELEASE.

When I run make aout-to-elf-build  I get this error:

--------------------------------------------------------------
--------------------------------------------------------------

[...]
cc -O -pipe -elf -Wall -Wno-unused -I/usr/obj/aout/usr/src/tmp/usr/include
-c /usr/src/lib/csu/i386-elf/crt1.c -o crt1.o
cc -O -pipe -elf -Wall -Wno-unused -I/usr/obj/aout/usr/src/tmp/usr/include
-c /usr/src/lib/csu/i386-elf/crtbegin.c -o crtbegin.o
/usr/src/lib/csu/i386-elf/crtbegin.c:30: section attributes are not
supported for this target
/usr/src/lib/csu/i386-elf/crtbegin.c:31: section attributes are not
supported for this target
{standard input}: Assembler messages:
{standard input}:73: Error: Unknown pseudo-op:  `.section'
*** Error code 1
[...]

If I do only a make buildworld,  there is no problem. So the ELF
transition seem to be the problem. What is this pseudo-op  .section ?  and
why section attributes are not supported?
I saw other posts about the same problem, but no good answers were given.

Thanks
 Nicholas Theriault
 Ecole De Technologie Superieure (http://www.etsmtl.ca)

2. Experience with Adaptec 2100S RAID Controller

3. .rept/.endr - Error: unknown pseudo-op

4. How do I enable EXT3 security logging?

5. kernel 2.1.11 build error-> asm unknown pseudo-op?

6. DEBIAN + Netatalk

7. make dep error- unknown pseudo-op?

8. Multi-Port Serial boards

9. doc for hp9ks300 assembler pseudo-ops for cdb ...

10. Problems compiling linux-2.1.16 -- pseudo-op ".rept"?

11. STREAMS message from pseudo-device to pseudo-device

12. Assembler section

13. unknown message in /va/radm/messages