lkml.org 
[lkml]   [2022]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH v2 02/39] static_call: Avoid building empty .static_call_sites
    Without CONFIG_HAVE_STATIC_CALL_INLINE there's no point in creating
    the .static_call_sites section and it's related symbols.

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    ---
    include/asm-generic/vmlinux.lds.h | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/include/asm-generic/vmlinux.lds.h
    +++ b/include/asm-generic/vmlinux.lds.h
    @@ -398,6 +398,7 @@
    KEEP(*(__jump_table)) \
    __stop___jump_table = .;

    +#ifdef CONFIG_HAVE_STATIC_CALL_INLINE
    #define STATIC_CALL_DATA \
    . = ALIGN(8); \
    __start_static_call_sites = .; \
    @@ -406,6 +407,9 @@
    __start_static_call_tramp_key = .; \
    KEEP(*(.static_call_tramp_key)) \
    __stop_static_call_tramp_key = .;
    +#else
    +#define STATIC_CALL_DATA
    +#endif

    /*
    * Allow architectures to handle ro_after_init data on their

    \
     
     \ /
      Last update: 2022-02-24 16:19    [W:5.234 / U:0.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site