Skip to content

Commit 5fc5224

Browse files
petrpavlukees
authored andcommitted
vmlinux.lds.h: Remove a reference to no longer used sections .text..refcount
Sections .text..refcount were previously used to hold an error path code for fast refcount overflow protection on x86, see commit 7a46ec0 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection") and commit 564c9cc ("locking/refcounts, x86/asm: Use unique .text section for refcount exceptions"). The code was replaced and removed in commit fb041bb ("locking/refcount: Consolidate implementations of refcount_t") and no sections .text..refcount are present since then. Remove then a relic referencing these sections from TEXT_TEXT to avoid confusing people, like me. This is a non-functional change. Signed-off-by: Petr Pavlu <petr.pavlu@suse.com> Link: https://lore.kernel.org/r/20230711125054.9000-1-petr.pavlu@suse.com Signed-off-by: Kees Cook <keescook@chromium.org>
1 parent 06c2afb commit 5fc5224

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/asm-generic/vmlinux.lds.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,6 @@
578578
*(.text.unlikely .text.unlikely.*) \
579579
*(.text.unknown .text.unknown.*) \
580580
NOINSTR_TEXT \
581-
*(.text..refcount) \
582581
*(.ref.text) \
583582
*(.text.asan.* .text.tsan.*) \
584583
MEM_KEEP(init.text*) \

0 commit comments

Comments
 (0)