FreeBSD 3.0-REL pseudo-op .section problem

FreeBSD 3.0-REL pseudo-op .section problem

Post by Nicholas Theriaul » Tue, 20 Oct 1998 04:00:00



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:

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

Quote:>>> Rebuilding bootstrap libraries

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

[...]
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)

 
 
 

FreeBSD 3.0-REL pseudo-op .section problem

Post by Dougal Campbel » Wed, 21 Oct 1998 04:00:00



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

> --------------------------------------------------------------
>>>> Rebuilding bootstrap libraries
> --------------------------------------------------------------

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

Did you update the files in /etc/mtree from /usr/src/etc/mtree? I don't
know if this could be the problem or not, but it's always good to check
the files in /usr/src/etc to see what's changed....

The only other thing I could think of to try offhand would be to do a
"make most" first, then try the aout-to-elf update again. (I'm guessing
that the make command might need updating)

--
Dougal Campbell, Systems Manager, ADViCOM   http://www.advicom.net/

   See my homepage for anti-spam information and pgp public key!
Lumber Cartel Unit #1654 (tinlc): http://come.to/the.lumber.cartel/
QUOTE OF THE MOMENT:
Mitchell's Law of Committees:
        Any simple problem can be made insoluble if enough meetings are
held to discuss it.

 
 
 

1. assembler message, Unknown pseudo-op : .section

 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/

2. Getting the broadcast address...

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

4. 3D Prophet 4000 XT

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

6. pdmenu 1.0.0 - simple text mode menu system

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

8. Solaris 2.4 and XmNshowValue

9. make dep error- unknown pseudo-op?

10. PPP and ifconfig tun0 problems w/3.1-REL vs 3.0-REL

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

12. Keyboard shortcuts for WM ops in KDE 3.0

13. Moving of existing SCO Unix OS Rel 3.0 Version 2 to a new hard disk