Re: CBL issue #431: lld: x86_64: sysfs: cannot create duplicate filename $module/.rodata.cst{16,32}

From: Denys Vlasenko
Date: Mon Apr 08 2019 - 09:58:32 EST


On 4/8/19 3:56 PM, Denys Vlasenko wrote:
I propose to change section name, append _module_ name and optionally
a comment why this is done:

Â/* NB: section is mergeable, all elements must be aligned 16-byte blocks */
+/* There is more than one object in this section, let's use module name
+ÂÂ as unique suffix */

Probably not clear enough... maybe this is better:

+/* There is more than one object in this section, let's use module name
+ instead of object name as unique suffix */
-.sectionÂÂÂÂÂÂÂ .rodata.cst16, "aM", @progbits, 16

and do not use '-' in the name, replace with '_':

+.sectionÂÂÂÂÂÂÂ .rodata.cst16.cast6_avx_x86_64_asm_64, "aM", @progbits, 16