What is .jcr and .gnu.linkonce.s*?

Daniel Jacobowitz drow@mvista.com
Tue May 7 11:29:00 GMT 2002


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



More information about the Binutils mailing list