[Bug ld/12578] Alignment of a common symbol overridden by a definition

2011-03-14 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12578

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID

--- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2011-03-14 13:48:29 
UTC ---
Linker can change alignment of a common symbol. But
it can't change alignment of a definition.

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12565] NOLOAD sections empty

2011-03-14 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12565

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|NEW |WAITING

--- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2011-03-14 13:52:35 
UTC ---
Please provide a testcase.

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12565] NOLOAD sections empty

2011-03-14 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12565

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 CC||hjl.tools at gmail 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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12557] gcc Firefox fail to build with -flto and --as-needed LDFLAGS

2011-03-14 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12557

--- Comment #27 from H.J. Lu hjl.tools at gmail dot com 2011-03-14 15:53:24 
UTC ---
I have no problems with gcc bootstrap using

.../configure --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld  
--prefix=/usr/gcc-4.7.0 --with-local-prefix=/usr/local
--enable-gnu-indirect-function
--with-boot-ldflags=-Wl,-O1,--hash-style=gnu,--as-needed
--with-build-config=bootstrap-lto --enable-cloog-backend=isl
--with-ppl-include=/opt/gnu/include --with-ppl-lib=/opt/gnu/lib64
--with-cloog-include=/opt/gnu/include --with-cloog-lib=/opt/gnu/lib64
--with-fpmath=sse

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/11395] gas creates 64bit add-instruction in 32bit mode for hppa2.0

2011-03-14 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=11395

--- Comment #8 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2011-03-14 16:28:14 UTC ---
CVSROOT:/cvs/src
Module name:src
Branch: binutils-2_21-branch
Changes by:dang...@sourceware.org2011-03-14 16:28:09

Modified files:
gas: ChangeLog 
gas/config : tc-hppa.c 

Log message:
Backport from mainline:
2010-12-26  John David Anglin  dave.ang...@nrc-cnrc.gc.ca

PR gas/11395
* config/tc-hppa.c (pa_ip): Set doubleword carry/borrow bit when a
doubleword completer or doubleword condition is found in an add/sub
instruction.  Reject match for 'A'/'S' only if there is no condition
and d bit is not set.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.4320.2.18r2=1.4320.2.19
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-hppa.c.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.149r2=1.149.2.1

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12557] gcc Firefox fail to build with -flto and --as-needed LDFLAGS

2011-03-14 Thread cryptooctoploid at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12557

--- Comment #28 from Octoploid cryptooctoploid at gmail dot com 2011-03-14 
16:39:13 UTC ---
(In reply to comment #27)
 I have no problems with gcc bootstrap using
 
 .../configure --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld  
 --prefix=/usr/gcc-4.7.0 --with-local-prefix=/usr/local
 --enable-gnu-indirect-function
 --with-boot-ldflags=-Wl,-O1,--hash-style=gnu,--as-needed
 --with-build-config=bootstrap-lto --enable-cloog-backend=isl
 --with-ppl-include=/opt/gnu/include --with-ppl-lib=/opt/gnu/lib64
 --with-cloog-include=/opt/gnu/include --with-cloog-lib=/opt/gnu/lib64
 --with-fpmath=sse

Yes, the problem only occurs when you configure gcc without
--with-boot-ldflags=-Wl,-O1,--hash-style=gnu,--as-needed.

I've tested this a little further:

/var/tmp/gcc_build_dir/./prev-gcc/g++ -B/lib
-B/var/tmp/gcc_build_dir/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/
-nostdinc++
-B/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -pipe
-flto -frandom-seed=1 -DIN_GCC -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc
gcov.o intl.o version.o errors.o ../libiberty/libiberty.a -o gcov
/lib64/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `__tls_get_addr@GLIBC_2.3'
/lib64/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE'
/lib64/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE'
collect2: ld returned 1 exit status

Without -static-libstdc++ it compiles fine.
Without -flto it also compiles fine.
When I use xgcc instead of g++ there aren't any problems.
When I use gold as linker there aren't any problems either.

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12525] gold SEGV linking libgcc_s.so.1 on Solaris 11/x86

2011-03-14 Thread ro at CeBiTec dot Uni-Bielefeld.DE
http://sourceware.org/bugzilla/show_bug.cgi?id=12525

--- Comment #24 from Rainer Orth ro at CeBiTec dot Uni-Bielefeld.DE 
2011-03-14 19:40:31 UTC ---
I've had a look at the two remaining errors (apart from not having
static system libs on newer Solaris releases):

gcctestdir/ld: internal error in override_version, at
/vol/gnu/src/binutils/binutils-hg/gold/resolve.cc:61
collect2: ld returned 1 exit status
make[3]: *** [weak_test] Error 1

This can be reproduced with

gold-2.21.51 -o weak_test /usr/lib/crt1.o weak_test.o -lc 
gold-2.21.51: internal error in override_version, at
/vol/gnu/src/binutils/binutils-hg/gold/resolve.cc:61

In override_version, I find:

  this-name_ = _iob
  this-version_ = SUNW_0.7
  version = SYSVABI_1.3

With pvs -dsvo /lib/libc.so.1, I find the following version info in libc:

/lib/libc.so.1 -SUNW_0.7: _iob (960);
/lib/libc.so.1 -SYSVABI_1.3: __iob (960);

and elfdump reveals a bit more about those symbols:

$ elfdump -s /lib/libc.so.1|grep _iob   
  [60]  0x00151818 0x03c0  OBJT GLOB  D   40 .data  _iob
 [299]  0x00151818 0x03c0  OBJT WEAK  D   41 .data  __iob

The other failure is

gcctestdir/ld: error: read-only segment has dynamic relocations
collect2: ld returned 1 exit status
make[3]: *** [two_file_shared_1_nonpic.so] Error 1

Can be reproduced with

gold-2.21.51 -G -z text -o two_file_shared_1_nonpic.so two_file_test_1.o
two_file_test_1b.o 
gold-2.21.51: error: read-only segment has dynamic relocations

I suspect this happens because (32-bit) Solaris 2/x86 creates non-PIC
code without -fpic/-fPIC.

If so, the FN_PTRS_IN_SO_WITHOUT_PIC test in gold/configure.ac would
have to be updated, perhaps with a real test instead of a hardcoded
target list?

Strangely, gld 2.21 can link those objects, while ld can not.

I'm attaching them for inspection.

Rainer

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12525] gold SEGV linking libgcc_s.so.1 on Solaris 11/x86

2011-03-14 Thread ro at TechFak dot Uni-Bielefeld.DE
http://sourceware.org/bugzilla/show_bug.cgi?id=12525

--- Comment #25 from Rainer Orth ro at TechFak dot Uni-Bielefeld.DE 
2011-03-14 19:42:47 UTC ---
Created attachment 5306
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5306
object files for failing two_file_shared_1_nonpic.so test

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12569] Assertion failure in get_known_segmented_expression (ARM)

2011-03-14 Thread pdox at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12569

pdox at google dot com changed:

   What|Removed |Added

 CC||ma...@linux-mips.org, pdox
   ||at google 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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12569] Assertion failure in get_known_segmented_expression (ARM)

2011-03-14 Thread pdox at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12569

pdox at google dot com changed:

   What|Removed |Added

 CC|ma...@linux-mips.org|

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12569] Assertion failure in get_known_segmented_expression (ARM)

2011-03-14 Thread pdox at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12569

pdox at google dot com changed:

   What|Removed |Added

 CC||amodra at gmail 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
http://lists.gnu.org/mailman/listinfo/bug-binutils