From: Andrew Haley <aph@redhat.com>
To: Erik Groeneveld <erik@cq2.nl>
Cc: java <java@gcc.gnu.org>
Subject: Re: GC symbols no longer exported (on Debian) from libgcj 8 and up
Date: Fri, 27 Nov 2009 09:25:00 -0000 [thread overview]
Message-ID: <4B0F9B15.60006@redhat.com> (raw)
In-Reply-To: <aaec99390911270106v16613578w5fa562b1ba50a151@mail.gmail.com>
Erik Groeneveld wrote:
> I have an application that uses libgcj (on Debian) and which needs to
> have access to the garbage collector to fine tune things. Up to
> libgcj 7, it was possible to create a extern/forward declaration for
> e.g. GC_free, and when the application is linked, the symbol would be
> resolved correctly.
>
> Starting with libgcj 8 and up, the symbols of libgcj are no longer
> exported it seems. On Linux, 'nm' reports that the symbols are of type
> 't', which means local, while up to libgcj 7, it reported them as 'T',
> which means global. Symbols of type 't' are not used for resolving
> external symbols, and hence my program does not link anymore.
>
> I dived into the package build for Debian (by Mattias Klose) and found
> that lot of things could have caused this behavior. However, what I
> can not find out is if this change was intentional or that is is
> caused by newer versions of the build tools.
>
> If it was intentional, my question is how I can get access to the GC?
The symbols exported are controlled by:
if ANONVERSCRIPT
extra_ldflags_libjava += -Wl,--version-script=$(srcdir)/libgcj.ver
endif
Which is:
# Anonymous GNU ld version script to hide boehm-gc, libffi and fdlibm
# symbols in libgcj.so.
{
global: Jv*; _Jv_*; __gcj_personality_v0; __gcj_personality_sj0; _Z*;
local: *;
};
Andrew.
next prev parent reply other threads:[~2009-11-27 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-27 9:06 Erik Groeneveld
2009-11-27 9:25 ` Andrew Haley [this message]
2009-12-09 12:39 ` Erik Groeneveld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0F9B15.60006@redhat.com \
--to=aph@redhat.com \
--cc=erik@cq2.nl \
--cc=java@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).