aboutsummaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/libstub/randomalloc.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2022-05-06 14:14:36 +0200
committerBorislav Petkov <[email protected]>2022-05-06 15:59:39 +0200
commit3ff5f7840979aa36d47a6a00694826c78d63bf3c (patch)
tree5fa6d9ab1e79243abdf0b4d6e115ff82f59907c2 /drivers/firmware/efi/libstub/randomalloc.c
parent1b331eeea7b8676fc5dbdf80d0a07e41be226177 (diff)
linkage: Fix issue with missing symbol size
Occasionally, typically when a function doesn't end with 'ret', an alias on that function will have 0 size. The difference between what GCC generates and our linkage magic, is that GCC doesn't appear to provide .size for the alias'ed symbol at all. And indeed, removing this directive cures the issue. Additionally, GCC also doesn't emit .type for alias symbols either, so also omit that. Fixes: e0891269a8c2 ("linkage: add SYM_FUNC_ALIAS{,_LOCAL,_WEAK}()") Suggested-by: Mark Rutland <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Mark Rutland <[email protected]> Acked-by: Josh Poimboeuf <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/firmware/efi/libstub/randomalloc.c')
0 files changed, 0 insertions, 0 deletions