https://sourceware.org/bugzilla/show_bug.cgi?id=25380
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2020-02-01
Ever confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Fangrui Song from comment #0)
> 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
How does it work together with comdat group like
.section .text.bar,"axG",@progbits,bar,comdat
.globl bar
.type bar, @function
bar:
ret
Section name is used to specify sections in assembly codes. Will
.section .text,N,"axG",@progbits,bar,comdat
.globl bar
.type bar, @function
bar:
ret
and
.section .text,N,"ax",@progbits
.globl bar
.type bar, @function
bar:
ret
work better? .section .text,N can be used to identify the Nth .text
section, which may or may not belong to a comdat group.
--
You are receiving this mail because:
You are on the CC list for the bug.