[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/25380] New: Support section linkage 'unique' (multiple sections
From: |
i at maskray dot me |
Subject: |
[Bug gas/25380] New: Support section linkage 'unique' (multiple sections with the same name) |
Date: |
Tue, 14 Jan 2020 01:22:18 +0000 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/25380] New: Support section linkage 'unique' (multiple sections with the same name),
i at maskray dot me <=