bug-binutils
[Top][All Lists]
Advanced

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

Re: Missing symbol name in directive


From: Alan Modra
Subject: Re: Missing symbol name in directive
Date: Fri, 26 Oct 2012 20:46:57 +1030
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Oct 25, 2012 at 10:27:32PM +0200, Pieter De Mil wrote:
>  On 10/25/2012 01:28 AM, Alan Modra wrote:
> >On Wed, Oct 24, 2012 at 02:05:49PM +0200, Pieter De Mil wrote:
> >>/tmp/cc22PMWw.s: Assembler messages:
> >>/tmp/cc22PMWw.s:10902: Error: Missing symbol name in directive
> >>/tmp/cc22PMWw.s:10902: Error: junk at end of line, first
> >>unrecognized character is `x'
> >>/tmp/cc22PMWw.s:10903: Error: expected comma after name `' in .size
> >>directive
> >>/tmp/cc22PMWw.s:10904: Error: junk at end of line, first
> >>unrecognized character is `0'
> >Your source contains syntax errors.  Fix it.  Older versions of gas
> >accepted bad .size directives and silently generated bad code.
> >
> Thanks for your reply.
> 
> I found the error, it was in my makefile:
> I removed CFLAGS += -fdata-sections
> http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Optimize-Options.html#index-ffunction_002dsections-895
> 
> Now it compiles (I also removed -ffunction-sections)
> 
> PFLAGS += --verbose
> CFLAGS += -mmcu=msp430f5437
> #CFLAGS += -ffunction-sections
> #CFLAGS += -fdata-sections
> CFLAGS += -mmemory-model=medium
> OPTFLAGS += -Os

Hmm, I may have jumped to the wrong conclusion.  I was thinking that
your problem was user asm, but this does look like a gcc or gas bug.
If you put -ffunction-section and -fdata-sections back into CFLAGS,
and also add -save-temps, then gcc should keep the source files passed
to the assembler so you can have a look at them.  What do the lines
with errors look like?

-- 
Alan Modra
Australia Development Lab, IBM



reply via email to

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