linkonce directive

DJ Delorie dj@redhat.com
Fri May 28 18:20:00 GMT 2004


> 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.



More information about the Binutils mailing list