public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
@ 2007-06-22 17:43 gcc-bugzilla at gcc dot gnu dot org
2007-06-22 18:26 ` [Bug libgcj/32465] " hjl at lucon dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2007-06-22 17:43 UTC (permalink / raw)
To: gcc-bugs
A mainline bootstrap as of 20070618 on Solaris 10/x86 with the bundled gas
2.15 and my patch to support boehm-gc for x86-64
http://gcc.gnu.org/ml/java-patches/2007-q2/msg00330.html
fails when linking the 64-bit libgcj:
[ca. 6800 lines omitted]
gnu::gcj::runtime::FinalizerThread::finalizer_ready 0x602
gnu/gcj/.libs/runtime.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
I've checked for some of the affected object files that they have been
built with -fPIC, nonetheless text relocations remain, thus breaking the
link.
Environment:
System: SunOS erebus 5.11 snv_60 i86pc i386 i86pc
Architecture: i86pc
host: i386-pc-solaris2.10
build: i386-pc-solaris2.10
target: i386-pc-solaris2.10
configured with: /vol/gcc/src/gcc/configure --prefix=/vol/gcc
--with-local-prefix=/vol/gcc --disable-nls --with-gnu-as
--with-as=/usr/sfw/bin/gas --with-gmp=/vol/gcc --with-mpfr=/vol/gcc
--enable-languages=c,c++,fortran,java,objc,ada --disable-libmudflap
How-To-Repeat:
Bootstrap mainline as described above.
------- Comment #1 from ro at techfak dot uni-bielefeld dot de 2007-06-22 17:42 -------
Fix:
It is possible to link with -mimpure-text as a workaround.
--
Summary: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-
PIC code despite -fPIC
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at techfak dot uni-bielefeld dot de
GCC build triplet: i386-pc-solaris2.10
GCC host triplet: i386-pc-solaris2.10
GCC target triplet: i386-pc-solaris2.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
@ 2007-06-22 18:26 ` hjl at lucon dot org
2007-06-25 17:39 ` ro at techfak dot uni-bielefeld dot de
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2007-06-22 18:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl at lucon dot org 2007-06-22 18:26 -------
On Linux, I got
0000000002e1b960 1 OBJECT LOCAL HIDDEN 25
gnu::gcj::runtime::FinalizerThread::finalizer_ready
It looks like assembler/linker on Solaris don't have proper visibility
support.
BTW, the last symbol visibility bug in GNU binutils was fixed on
2006-12-12.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
2007-06-22 18:26 ` [Bug libgcj/32465] " hjl at lucon dot org
@ 2007-06-25 17:39 ` ro at techfak dot uni-bielefeld dot de
2007-07-03 18:10 ` ro at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2007-06-25 17:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ro at techfak dot uni-bielefeld dot de 2007-06-25 17:38 -------
Subject: Re: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code
despite -fPIC
hjl at lucon dot org writes:
> ------- Comment #2 from hjl at lucon dot org 2007-06-22 18:26 -------
> On Linux, I got
>
> 0000000002e1b960 1 OBJECT LOCAL HIDDEN 25
> gnu::gcj::runtime::FinalizerThread::finalizer_ready
This is
221554: 0000000003024d80 1 OBJECT GLOBAL DEFAULT 256
gnu::gcj::runtime::FinalizerThread::finalizer_ready
on Solaris 10.
> It looks like assembler/linker on Solaris don't have proper visibility
> support.
The assembler (gas 2.15 bundled with Solaris) does, but since I'm using the
native linker, gcc/configure.ac disables hidden support. It should work in
Solaris 10, though. Due to PR libgcj/32462 (which happens with GNU ld,
too), I haven't tried gas and gld yet.
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
2007-06-22 18:26 ` [Bug libgcj/32465] " hjl at lucon dot org
2007-06-25 17:39 ` ro at techfak dot uni-bielefeld dot de
@ 2007-07-03 18:10 ` ro at gcc dot gnu dot org
2007-07-03 18:11 ` [Bug libgcj/32465] [4.3 Regression] " ro at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2007-07-03 18:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ro at gcc dot gnu dot org 2007-07-03 18:10 -------
Created an attachment (id=13839)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13839&action=view)
runtime.s built with gcj 4.2.1 20070611
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-07-03 18:11 ` [Bug libgcj/32465] [4.3 Regression] " ro at gcc dot gnu dot org
@ 2007-07-03 18:11 ` ro at gcc dot gnu dot org
2007-07-12 10:20 ` [Bug libgcj/32465] [4.3 Regression] " ro at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2007-07-03 18:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ro at gcc dot gnu dot org 2007-07-03 18:11 -------
Created an attachment (id=13840)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13840&action=view)
runtime.s built with gcj 4.3.0 20070618
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] [4.3 Regression] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-07-03 18:10 ` ro at gcc dot gnu dot org
@ 2007-07-03 18:11 ` ro at gcc dot gnu dot org
2007-07-03 18:11 ` [Bug libgcj/32465] " ro at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2007-07-03 18:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ro at gcc dot gnu dot org 2007-07-03 18:11 -------
This is a regression from 4.2.1.
I'm uploading the assembler files corresponding to gnu/gcj/.libs/runtime.o and
built with gcj 4.2.1 20070611 and 4.3.0 20070618 for comparison.
--
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Linking 64-bit libgcj.so |[4.3 Regression] Linking 64-
|fails on Solaris 10/x86: |bit libgcj.so fails on
|non-PIC code despite -fPIC |Solaris 10/x86: non-PIC code
| |despite -fPIC
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] [4.3 Regression] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-07-03 18:11 ` [Bug libgcj/32465] " ro at gcc dot gnu dot org
@ 2007-07-12 10:20 ` ro at gcc dot gnu dot org
2007-07-12 14:28 ` ro at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2007-07-12 10:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ro at gcc dot gnu dot org 2007-07-12 10:20 -------
Like PR libgcj/32462, this is also caused by this patch:
2007-04-03 Andrew Haley <aph@redhat.com>
* jvgenmain.c (main): Change main to use class$, not class$$.
(do_mangle_classname): Likewise.
* class.c (hide): New function.
(add_field): Hide everything that shouldn't be visible outside a
DSO.
(build_static_class_ref): Likewise.
(build_classdollar_field): Likewise.
(make_class_data): Likewise.
(layout_class_method): Likewise.
* expr.c (special_method_p): New function.
* class.c (push_class): Don't bogusly guess the source filename.
* jcf-parse.c (give_name_to_class): Don't set input_location from
DECL_ARTIFICIAL decls.
Again, the missing visibility support in this configuration causes the problem.
Rainer
--
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aph at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] [4.3 Regression] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-07-12 10:20 ` [Bug libgcj/32465] [4.3 Regression] " ro at gcc dot gnu dot org
@ 2007-07-12 14:28 ` ro at gcc dot gnu dot org
2007-07-16 17:08 ` ro at gcc dot gnu dot org
2007-07-16 17:10 ` ro at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2007-07-12 14:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from ro at gcc dot gnu dot org 2007-07-12 14:27 -------
Mine. Patch here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32462#c10
--
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ro at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-07-12 14:27:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] [4.3 Regression] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-07-12 14:28 ` ro at gcc dot gnu dot org
@ 2007-07-16 17:08 ` ro at gcc dot gnu dot org
2007-07-16 17:10 ` ro at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2007-07-16 17:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from ro at gcc dot gnu dot org 2007-07-16 17:07 -------
Subject: Bug 32465
Author: ro
Date: Mon Jul 16 17:07:25 2007
New Revision: 126684
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126684
Log:
PR target/32462
PR libgcj/32465
* class.c (hide): Wrap in HAVE_GAS_HIDDEN.
Modified:
trunk/gcc/java/ChangeLog
trunk/gcc/java/class.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/32465] [4.3 Regression] Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-07-16 17:08 ` ro at gcc dot gnu dot org
@ 2007-07-16 17:10 ` ro at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu dot org @ 2007-07-16 17:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from ro at gcc dot gnu dot org 2007-07-16 17:10 -------
Fixed for 4.3.
--
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32465
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-07-16 17:10 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-22 17:43 [Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC gcc-bugzilla at gcc dot gnu dot org
2007-06-22 18:26 ` [Bug libgcj/32465] " hjl at lucon dot org
2007-06-25 17:39 ` ro at techfak dot uni-bielefeld dot de
2007-07-03 18:10 ` ro at gcc dot gnu dot org
2007-07-03 18:11 ` [Bug libgcj/32465] [4.3 Regression] " ro at gcc dot gnu dot org
2007-07-03 18:11 ` [Bug libgcj/32465] " ro at gcc dot gnu dot org
2007-07-12 10:20 ` [Bug libgcj/32465] [4.3 Regression] " ro at gcc dot gnu dot org
2007-07-12 14:28 ` ro at gcc dot gnu dot org
2007-07-16 17:08 ` ro at gcc dot gnu dot org
2007-07-16 17:10 ` ro at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).