bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error: unknown pseudo-op: `.section'


From: Robert Millan
Subject: Re: Error: unknown pseudo-op: `.section'
Date: Wed, 11 Jun 2003 15:08:27 +0200
User-agent: Mutt/1.5.4i

On Wed, Jun 11, 2003 at 08:47:52AM -0400, Nick Clifton wrote:
> Hi Robert,

Hi Nick!

> > /var/tmp//ccd9VWeZ.s: Assembler messages:
> > /var/tmp//ccd9VWeZ.s:2: Error: unknown pseudo-op: `.section'
> Can you post a copy of this assembler source for us to look at please ?
> (If it is large, please try to find a smaller test case, or just post a
> fragment containing the erroneous .section directive.
> Also please could you run gcc with the -v switch and post the command
> line that it is using to invoke the assembler.

I could sort much of it out (not all), and found a very small test case:

$ cat test.c
int f (char *); main () {f ("a");}
$ gcc -S test.c && i386-netbsd-gnu-as test.s -o /dev/null
[.section errors]

ok, what i could find out is:

 - GCC is not in fault here (i'm dropping the CC to gcc-help). I compiled
   the test case (gcc -S test.c) using three different versions of GCC
   (2.95 on GNU/Linux, 3.0 on GNU/Linux and 3.2 on NetBSD) and all bring
   errors when assembling the code for netbsd-gnu.
 - the problem only happens when using the i386-netbsd-gnu cross-assembler
   with Momchil Velikov's patch [1] to support (Glibc-based) GNU/NetBSD
 - a binutils CVS snapshot from November 24th 2002 (the time when Momchil's
   patch was differed) _does_ work.

If the solution is not trivial, what i could do is testing CVS snapshots
from different dates between 11/24/2002 and current date untill i find
the commit that broke it.

[1] http://www.geocities.com/velcok/binutils.diff.gz

-- 
Robert Millan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]