Skip to content
Commit 5a9c361a authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

objtool: Allow STT_NOTYPE -> STT_FUNC+0 sibling-calls



Teach objtool about STT_NOTYPE -> STT_FUNC+0 sibling calls. Doing do
allows slightly simpler .S files.

There is a slight complication in that we specifically do not want to
allow sibling calls from symbol holes (previously covered by STT_WEAK
symbols) -- such things exist where a weak function has a .cold
subfunction for example.

Additionally, STT_NOTYPE tail-calls are allowed to happen with a
modified stack frame, they don't need to obey the normal rules after
all.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
parent dbcdbdfd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment