diff --git a/scripts/module-lto.lds b/scripts/module-lto.lds new file mode 100644 index 000000000000..d0699ae19e0d --- /dev/null +++ b/scripts/module-lto.lds @@ -0,0 +1,22 @@ + +SECTIONS { + /DISCARD/ : { + *(.eh_frame) + } + .bss : { + *(.bss .bss.[0-9a-zA-Z_]*) + *(.bss..L*) + } + .data : { + *(.data .data.[0-9a-zA-Z_]*) + *(.data..L*) + } + .rodata : { + *(.rodata .rodata.[0-9a-zA-Z_]*) + *(.rodata..L*) + } + .text : ALIGN((1 << 12)) { + *(.text.__cfi_check) + *(.text .text.[0-9a-zA-Z_]* .text..L.cfi*) + } +}