Re: Missing symbol name in directive
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 ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/14528] Assertion failed while linking clang's object files under ARM
http://sourceware.org/bugzilla/show_bug.cgi?id=14528 Nick Clifton nickc at redhat dot com changed: What|Removed |Added Status|NEW |UNCONFIRMED CC||nickc at redhat dot com Ever Confirmed|1 |0 --- Comment #1 from Nick Clifton nickc at redhat dot com 2012-10-26 14:38:19 UTC --- Hi Robert, Have you tried: a) using a newer linker than version 2.22 b) checking that all of the object files and libraries that you are linking together have the same requirements with regard to hardware floating point support (or lack thereof). If so, then please can you put together a small test case (preferably consisting of just object files and a linker command line) so that I can try to reproduce the problem. Cheers Nick -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14541] Wrong entry point computation using cross binutils linux amd64-arm-linux-gnueabihf
http://sourceware.org/bugzilla/show_bug.cgi?id=14541 Nick Clifton nickc at redhat dot com changed: What|Removed |Added Status|NEW |WAITING CC||nickc at redhat dot com --- Comment #3 from Nick Clifton nickc at redhat dot com 2012-10-26 14:51:28 UTC --- Hi Eric, The usual reason for the bottom bit of a function-like symbol being set is because it is a THUMB mode function entry point. Could this be what is happening here. Ie, are you linking against a thumb encoded version of _start ? If you disassemble the code at _start, what does it look like ? Cheers Nick -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc.
http://sourceware.org/bugzilla/show_bug.cgi?id=14663 --- Comment #3 from dje at google dot com 2012-10-26 15:55:37 UTC --- Testcase: gcc -g hello.c strip --only-keep-debug a.out (objdump -h a.out | grep text) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14768] Checklist: Binutils Migration To Git
http://sourceware.org/bugzilla/show_bug.cgi?id=14768 Tom Tromey tromey at redhat dot com changed: What|Removed |Added CC||tromey at redhat dot com -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14541] Wrong entry point computation using cross binutils linux amd64-arm-linux-gnueabihf
http://sourceware.org/bugzilla/show_bug.cgi?id=14541 --- Comment #5 from Nick Clifton nickc at redhat dot com 2012-10-26 16:31:05 UTC --- Hi Eric, Those are Thumb instructions. Which explains why the bottom bit is set. I am not familiar with the ARM processor on the PI. Maybe it is incapable of executing these instructions ? Perhaps you should specify the ARM processor type when you compile your program ? Cheers Nick -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc.
http://sourceware.org/bugzilla/show_bug.cgi?id=14663 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Comment #4 from Alan Modra amodra at gmail dot com 2012-10-26 21:49:16 UTC --- Your grep misses the relevant line. Add -w to objdump or -2 to grep options. gcc -g hello.c (objdump -w -h a.out | grep text) 11 .text 0430 1490 1490 0490 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE gcc -g hello.c strip --only-keep-debug a.out (objdump -w -h a.out | grep text) 11 .text 0430 1490 1490 0258 2**4 ALLOC, READONLY, CODE Notice lack of CONTENTS after stripping. Keeping the section headers like this gives a user confidence that a debug file matches his binary.. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc.
http://sourceware.org/bugzilla/show_bug.cgi?id=14663 dje at google dot com changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID | --- Comment #5 from dje at google dot com 2012-10-26 21:53:26 UTC --- Clarification in the documentation required then. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc.
http://sourceware.org/bugzilla/show_bug.cgi?id=14663 --- Comment #6 from Andreas Schwab sch...@linux-m68k.org 2012-10-26 22:30:05 UTC --- It already says it: `--only-keep-debug' Strip a file, removing contents of any sections that would not be ^ stripped by `--strip-debug' and leaving the debugging sections intact. In ELF files, this preserves all note sections in the output. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc.
http://sourceware.org/bugzilla/show_bug.cgi?id=14663 --- Comment #7 from dje at google dot com 2012-10-26 22:37:54 UTC --- I think a few extra words, noting that the contents are gone, but the section headers remain, would go a long way. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/14768] Checklist: Binutils Migration To Git
http://sourceware.org/bugzilla/show_bug.cgi?id=14768 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added CC||ian at airs dot com -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils