[ELF] Fix split-stack caller with hidden non-split-stack callee
authorFangrui Song <i@maskray.me>
Wed, 19 Jan 2022 20:25:01 +0000 (12:25 -0800)
committerFangrui Song <i@maskray.me>
Wed, 19 Jan 2022 20:25:01 +0000 (12:25 -0800)
commit5bd38a2826b1360ff41c293bcc6cdec8b596810b
tree15793b680386fbe8f0f52a200470fd8ef96e321e
parent438f805145212a67d15b5950c4628298d65f7903
[ELF] Fix split-stack caller with hidden non-split-stack callee

Fix a regression after aabe901d57d6df4cd2786163359a7b2a7aae8c32 (`[ELF] Remove
one redundant computeBinding`): isLocal() does not indicate that the symbol is
originally local. For simplicity, just drop this optimization.
lld/ELF/InputSection.cpp
lld/test/ELF/Inputs/x86-64-split-stack-main.s
lld/test/ELF/x86-64-split-stack-prologue-adjust-success.s