vmlinux.lds.h: Remove a reference to no longer used sections .text..refcount
authorPetr Pavlu <petr.pavlu@suse.com>
Tue, 11 Jul 2023 12:50:54 +0000 (14:50 +0200)
committerKees Cook <keescook@chromium.org>
Tue, 11 Jul 2023 21:29:43 +0000 (14:29 -0700)
commit5fc52248559802f0f1ac10b3c8729a1568216715
tree8b56e48cbb0c8354b09d73e7620246e7f567e9b6
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
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 7a46ec0e2f48
("locking/refcounts, x86/asm: Implement fast refcount overflow
protection") and commit 564c9cc84e2a ("locking/refcounts, x86/asm: Use
unique .text section for refcount exceptions").

The code was replaced and removed in commit fb041bb7c0a9
("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>
include/asm-generic/vmlinux.lds.h