Currently, mold only supports -z rewrite-endbr on x86_64 (the ENDBR64 landing pad), but aarch64 has something similar called BTI. It would be nice if mold could support this.
I gave a try at implementing it, based on 17f0d85, but for some reasons the main function keeps getting its landing pad removed, and I can't figure out why.
Currently, mold only supports
-z rewrite-endbron x86_64 (theENDBR64landing pad), but aarch64 has something similar called BTI. It would be nice if mold could support this.I gave a try at implementing it, based on 17f0d85, but for some reasons the
mainfunction keeps getting its landing pad removed, and I can't figure out why.