]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - scripts/module.lds.S
modules: Ensure natural alignment for .altinstructions and __bug_table sections
[mirror_ubuntu-jammy-kernel.git] / scripts / module.lds.S
index 1d0e1e4dc3d2a627de5dc644caf92580f1e11b16..3a3aa2354ed86749d5399fcd3a7c718fe973a043 100644 (file)
@@ -27,6 +27,8 @@ SECTIONS {
        .ctors                  0 : ALIGN(8) { *(SORT(.ctors.*)) *(.ctors) }
        .init_array             0 : ALIGN(8) { *(SORT(.init_array.*)) *(.init_array) }
 
+       .altinstructions        0 : ALIGN(8) { KEEP(*(.altinstructions)) }
+       __bug_table             0 : ALIGN(8) { KEEP(*(__bug_table)) }
        __jump_table            0 : ALIGN(8) { KEEP(*(__jump_table)) }
 
        __patchable_function_entries : { *(__patchable_function_entries) }