Skip to content

Commit b6c4ea4

Browse files
rmurphy-armwilldeacon
authored andcommitted
arm64: Add assembly annotations for weak-PI-alias madness
Add yet another set of assembly symbol annotations, this time for the borderline-absurd situation of a function aliasing to a weak symbol which itself also wants a position-independent alias. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/75545b3c4129b20b887474bb58a9cf302bf2132b.1622128527.git.robin.murphy@arm.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 020b199 commit b6c4ea4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

arch/arm64/include/asm/linkage.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,16 @@
5656
SYM_FUNC_START_ALIAS(__pi_##x); \
5757
SYM_FUNC_START_WEAK(x)
5858

59+
#define SYM_FUNC_START_WEAK_ALIAS_PI(x) \
60+
SYM_FUNC_START_ALIAS(__pi_##x); \
61+
SYM_START(x, SYM_L_WEAK, SYM_A_ALIGN)
62+
5963
#define SYM_FUNC_END_PI(x) \
6064
SYM_FUNC_END(x); \
6165
SYM_FUNC_END_ALIAS(__pi_##x)
6266

67+
#define SYM_FUNC_END_ALIAS_PI(x) \
68+
SYM_FUNC_END_ALIAS(x); \
69+
SYM_FUNC_END_ALIAS(__pi_##x)
70+
6371
#endif

0 commit comments

Comments
 (0)