]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - include/asm-generic/vmlinux.lds.h
static_call: Add inline static call infrastructure
[mirror_ubuntu-jammy-kernel.git] / include / asm-generic / vmlinux.lds.h
index 5430febd34beecea9e6c50126b78c9fb7a965758..0088a5cd6a40c98681104b6e4c683f7f943a6618 100644 (file)
        KEEP(*(__jump_table))                                           \
        __stop___jump_table = .;
 
+#define STATIC_CALL_DATA                                               \
+       . = ALIGN(8);                                                   \
+       __start_static_call_sites = .;                                  \
+       KEEP(*(.static_call_sites))                                     \
+       __stop_static_call_sites = .;
+
 /*
  * Allow architectures to handle ro_after_init data on their
  * own by defining an empty RO_AFTER_INIT_DATA.
        __start_ro_after_init = .;                                      \
        *(.data..ro_after_init)                                         \
        JUMP_TABLE_DATA                                                 \
+       STATIC_CALL_DATA                                                \
        __end_ro_after_init = .;
 #endif