assertion failure with gas and broken syntax

2008-09-10 Thread Per Øyvind Karlsen
Short and right to the point: $ echo 'cmp (%ax)-1, %ax'|as as: BFD (Linux/GNU Binutils) 2.18.50.0.9.20080822 assertion fail ../../bfd/elf.c:6492 as: BFD (Linux/GNU Binutils) 2.18.50.0.9.20080822 internal error, aborting at ../../bfd/elfcode.h line 227 in bfd_elf64_swap_symbol_out as: Please repor

[Bug ld/6877] Inconsistent treatment of common and text

2008-09-10 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-09-11 01:08 --- A patch is posted at http://sourceware.org/ml/binutils/2008-09/msg00086.html -- http://sourceware.org/bugzilla/show_bug.cgi?id=6877 --- You are receiving this mail because: --- You are on the C

[Bug ld/6877] New: Inconsistent treatment of common and text

2008-09-10 Thread hjl dot tools at gmail dot com
[EMAIL PROTECTED] common2]$ cat foo.c void foo (void) { } [EMAIL PROTECTED] common2]$ cat main.c #include #ifdef FOO int foo = FOO; #else int foo; #endif int main () { printf ("foo: %d\n", foo); foo = 200; printf ("foo: %d\n", foo); return 0; } [EMAIL PROTECTED] common2]$ make gcc -g -f