Unfortunately, that's not what I want.
In digging deeper, I guess what I'm interested in is .gnu.linkonce, as described here:
http://sourceware.org/binutils/docs-2.20/as/Section.html#SectionIf you compile any C++ inlined code with gcc (on Linux), like the following:
struct foo { static void bar() {} };
int main() { foo::bar(); }
its (gas) listing will include the following:
.section .text._ZN3foo3barEv,"axG",@progbits,_ZN3foo3barEv,comdat
that is, a section named ".text._ZN3foo3barEv" that's part of a group that's marked as "comdat" or "linkonce".
I need to reproduce the same thing with nasm.
Thanks.