https://sourceware.org/bugzilla/show_bug.cgi?id=25380
Bug ID: 25380 Summary: Support section linkage 'unique' (multiple sections with the same name) Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Clang's integrated assembler supports multiple section with the same name. % cat a.s .section .text,"ax",@progbits,unique,1 nop .section .text,"ax",@progbits,unique,2 nop This is useful with -fno-unique-section-names -ffunction-sections. -ffunction-sections by default generates .text.foo, .text.bar, etc. Using the same string can save lots of space in .strtab % cat a.c void foo(){} void bar(){} % clang -fno-unique-section-names -ffunction-sections -no-integrated-as -c a.c /tmp/a-d736bc.s: Assembler messages: /tmp/a-d736bc.s:3: Error: junk at end of line, first unrecognized character is `,' /tmp/a-d736bc.s:22: Error: junk at end of line, first unrecognized character is `,' clang-10: error: assembler command failed with exit code 1 (use -v to see invocation) -- You are receiving this mail because: You are on the CC list for the bug.