This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
linkonce directive
- From: "K. Ahmed Feroz" <feroz at acmet dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Fri, 28 May 2004 21:02:09 +0530
- Subject: linkonce directive
Hi all,
Following is piece of descriptions that I have found from GNU document
(as.html) for the assembler .linkonce [<type>].
"Mark the current section so that the linker only includes a single copy
of it. This may be used to include the same section in several different
object files. But ensure that the linker will only include it once in
the final output file".
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.
Is my understanding correct?. Please correct me if I am wrong...I am
also not clear how this directive will impact the linker behaviour..
I am using ELF format, Does this directive valid?
Regards
K.Feroz