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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to