Skip to content

Commit

Permalink
Remove unique attribute from section.
Browse files Browse the repository at this point in the history
A non-zero constant initialized thread_local does not emit this with Clang
(https://godbolt.org/z/PjddWeb57) and it is not understood by older assemblers.
Fixes #222.

PiperOrigin-RevId: 672542340
Change-Id: I7cd54a2252b1b5d8830ba574277c6ac8e4f1a626
  • Loading branch information
ckennelly authored and copybara-github committed Sep 9, 2024
1 parent 1176382 commit d266b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcmalloc/internal/percpu_rseq_asm.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
.type tcmalloc_cached_vcpu, @object
.type tcmalloc_slabs, @object
.type __rseq_abi, @object
.section .tdata, "awT", @progbits, unique, 1
.section .tdata, "awT", @progbits
.globl tcmalloc_sampler
.globl tcmalloc_cached_vcpu
.globl tcmalloc_slabs
Expand Down

0 comments on commit d266b23

Please sign in to comment.