public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/41372]  New: Symbols in shared library compiled from jar/classes should not be local with -findirect-dispatch
@ 2009-09-16  9:39 yuri at tsoft dot com
  2009-10-19  8:55 ` [Bug java/41372] " aph at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: yuri at tsoft dot com @ 2009-09-16  9:39 UTC (permalink / raw)
  To: java-prs

When I compile jar into shared library all symbols become local when
-findirect-dispatch is specified. Local symbols can't be found by dlsym.

-findirect-dispatch options shouldn't change symbols from global to local since
external callers may choose to import them regardless of this option.


-- 
           Summary: Symbols in shared library compiled from jar/classes
                    should not be local with -findirect-dispatch
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yuri at tsoft dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41372


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug java/41372] Symbols in shared library compiled from jar/classes should not be local with -findirect-dispatch
  2009-09-16  9:39 [Bug java/41372] New: Symbols in shared library compiled from jar/classes should not be local with -findirect-dispatch yuri at tsoft dot com
@ 2009-10-19  8:55 ` aph at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-10-19  8:55 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from aph at gcc dot gnu dot org  2009-10-19 08:55 -------
This is a deliberate design decision.

If you really need to refer to classes with dlsym, use -fno-indirect-classes.
However, this has a number of restrictions: in particular it fixes the ABI
to the specific libgcj that was used at compile time, thus requiring
recompilation every time libgcj is updated.


-- 

aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41372


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-19  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-16  9:39 [Bug java/41372] New: Symbols in shared library compiled from jar/classes should not be local with -findirect-dispatch yuri at tsoft dot com
2009-10-19  8:55 ` [Bug java/41372] " aph 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).