• Peter Zijlstra's avatar
    objtool: Allow STT_NOTYPE -> STT_FUNC+0 sibling-calls · 5a9c361a
    Peter Zijlstra authored
    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>
    5a9c361a
check.c 103 KB