Kyungwoo Lee 77e204c7b0
[lld-macho][arm64] implement -objc_stubs_small (#78665)
This patch implements `-objc_stubs_small` targeting arm64, aiming to
align with ld64's behavior.
1. `-objc_stubs_fast`: As previously implemented, this always uses the
Global Offset Table (GOT) to invoke `objc_msgSend`. The alignment of the
objc stub is 32 bytes.
2. `-objc_stubs_small`: This behavior depends on whether `objc_msgSend`
is defined. If it is, it directly jumps to `objc_msgSend`. If not, it
creates another stub to indirectly jump to `objc_msgSend`, minimizing
the size. The alignment of the objc stub in this case is 4 bytes.
2024-01-23 07:31:34 -08:00
..
2022-01-19 13:12:18 -08:00
2022-09-20 10:16:45 -04:00
2024-01-23 09:08:43 -05:00
2022-07-26 01:41:51 +02:00
2023-02-15 17:34:35 +00:00
2022-02-01 11:57:04 +00:00
2021-05-11 13:31:32 -04:00
t.s
2021-05-10 15:45:54 -04:00
2023-07-19 16:39:31 -07:00
2021-05-10 15:45:54 -04:00