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: Pieter De Mil
Subject: Re: Missing symbol name in directive
Date: Thu, 25 Oct 2012 22:27:32 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11pre) Gecko/20100916 Lightning/1.0b2 Shredder/3.1.5pre

 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


kind regards,
Pieter




reply via email to

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