This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Linking libgcj, and Java security


> -----Original Message-----
> From: Andrew Haley [mailto:aph@redhat.com]
> 
> Jeff Sturm writes:
>  > On Tue, 3 Dec 2002, Andrew Haley wrote:
>  > > Before I submit a patch, is there any good reason _not_ to use
>  > > -Bsymbolic?
>  > 
>  > Back when Bryce and I tried it, it didn't quite work.  
> IIRC the GC relies
>  > on global symbol relocations to resolve DATASTART, 
> DATAEND.  There may be
>  > other problems.  There should be some discussion in the archives.
> 
> Okay.  I would have thought that the best bet was to fix 
> whatever issues
> prevent -Bsymbolic from being used.  Hans?
Unfortunately, I neither recall issues related to this, nor can I find them in the archives.  The collector needs __data_start resolved to the start of the main (not libgcj) data segment, and analogously for _end.  If -Bsymbolic causes it to refer to something else, then we have a problem.  Under Linux, this can probably be worked around with /proc/self/maps, though that's not ideal.  There may be other solutions.

> I confess that linker magic is not my strongest subject.
> 
> Andrew.
> 
Unfortunately, it isn't mine either.

Hans


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