This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: What is .jcr and .gnu.linkonce.s*?


On Tue, May 07, 2002 at 01:35:44PM -0400, DJ Delorie wrote:
> 
> > > It's for java.
> > 
> > What is it comparable to and where should it appear in the linker
> > script? 
> 
> I don't know.  I had to add it to an internal port, and that's what I
> was told it was for.

I recommend comparing existing linker scripts.

It's for Java ConstRuctors, I believe.  You just need something like:

  .jcr            : { KEEP (*(.jcr)) }

Each .gnu.linkonce.* goes in a particular section; again, reference
existing scripts:

  .text
  { 
    *(.text .stub .text.* .gnu.linkonce.t.*)

  .data           :
  {
    *(.data .data.* .gnu.linkonce.d.*)

etc.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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