This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: linkonce directive
- From: DJ Delorie <dj at redhat dot com>
- To: feroz at acmet dot com
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 28 May 2004 13:37:21 -0400
- Subject: Re: linkonce directive
- References: <001a01c444c8$f19c8050$7200a8c0@FEROZ>
> If this directive is specified then we cannot have redundant sections.
> (i.e)If the section name and sections contents are same then that
> section will be deleted from the '.o' file.
Almost. If you have MORE THAN ONE section with that name and those
contents, there will be ONE copy in the output, shared amongst
everyone that needs it.
Think of it as a simple compression scheme.