This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj, shared libraries, and -Bsymbolic


What you actually want is (at least for -findirect-dispatch) is to 
not export any symbols whatsoever.  And to do so as simply as not
marking the symbols TREE_PUBLIC in the front end.

Without -findirect-dispatch, mixing with C++ code causes problems,
marking .hidden doesn't work for java libraries referencing other
libraries.  Marking .protected would work, but implies enough extra
overhead so as to not make it worthwhile (since we have no way to
indicate to the dynamic linker that we do not need function pointer
equality semantics).

I was actually looking at -findirect-dispatch the other day, but
got distracted...



r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]