[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-24 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #3 from H.J. Lu 2012-10-24 11:13:34 UTC --- (In reply to comment #2) > The version is: > gcc (GCC) 4.7.1 20120813 (Red Hat 4.7.1-7) > > That patch doesn't apply. I've tried also Please simply try hjl/lto/master branch. > > BTW

i686-unknown-elf-ld static-variable-related segfault

2012-10-24 Thread Mateusz Zalega
Hello, ld segfaults when i try to compile and link this: void printstr(const char* str) { static int boo=2; kmemcpy((char*)(pfb), str, kstrlen(str)); pfb+=80*boo; } but everything is alright after deleting the static variable line. You can download the code from here: htt

Missing symbol name in directive

2012-10-24 Thread Pieter De Mil
Hi, I want to compile a TinyOS program for the msp430f5437 I'm using msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120618) Copyright (C) 2012 Free Software Foundation, Inc. and GNU assembler (GNU Binutils) 2.22 (mspgcc dev 20120618) Copyright 2011 Free Software Foundation, Inc. This program i

[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-24 Thread polacek at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #4 from Marek Polacek 2012-10-24 13:44:19 UTC --- (In reply to comment #3) > Please simply try hjl/lto/master branch. Done. I'm still seeing the same failure (again, only i?86). > It works for me on x86-64 with -m32. Can you >

[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-24 Thread polacek at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #5 from Marek Polacek 2012-10-24 13:53:25 UTC --- To be more concrete, after building binutils, I put new ld/ld-new in ~/hbin, where I have ld script, which is just #!/bin/sh exec /root/hbin/ld-new "$@" and then I run PATH=/root/h

[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-24 Thread polacek at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #6 from Marek Polacek 2012-10-24 14:12:36 UTC --- Ah, but with g++ -m32 [...] I can now reproduce it even on x86_64. Sorry. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving t

[Bug gas/14758] ppc64 insns incorrectly assembled in 32-bit mode

2012-10-24 Thread bergner at vnet dot ibm.com
http://sourceware.org/bugzilla/show_bug.cgi?id=14758 Peter Bergner changed: What|Removed |Added CC||bergner at vnet dot ibm.com -- Config

[Bug gas/14758] ppc64 insns incorrectly assembled in 32-bit mode

2012-10-24 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14758 --- Comment #1 from Alan Modra 2012-10-24 15:37:47 UTC --- Created attachment 6697 --> http://sourceware.org/bugzilla/attachment.cgi?id=6697 fix patch under test -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

Re: Missing symbol name in directive

2012-10-24 Thread Alan Modra
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

[Bug ld/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-24 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747 --- Comment #7 from H.J. Lu 2012-10-24 23:35:49 UTC --- (In reply to comment #6) > Ah, but with g++ -m32 [...] I can now reproduce it even on x86_64. Sorry. "-m32 -flto -fuse-linker-plugin" doesn't work with i686 binutils on x86-64. I have n

[Bug gold/14763] New: exception_static_test crashes (with glibc-2.16?)

2012-10-24 Thread vapier at gentoo dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14763 Bug #: 14763 Summary: exception_static_test crashes (with glibc-2.16?) Product: binutils Version: 2.23 URL: http://sourceware.org/ml/binutils/2012-07/msg00156.htm l

[Bug gold/14763] exception_static_test crashes (with glibc-2.16?)

2012-10-24 Thread allan at archlinux dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14763 Allan McRae changed: What|Removed |Added CC||allan at archlinux dot org -- Configure