Files
kernel_google_msm-4.14/scripts/module-lto.lds
JohnnLee b01c988689 Revert module-lto related patches
This reverts commits:
26af34fab4 ANDROID: kbuild: don't merge .*..compoundliteral in modules
052327acd0 ANDROID: kbuild: merge more sections with LTO
bf3b3bbdfc ANDROID: kbuild: ensure __cfi_check is correctly aligned

These change causes the issue of b/232784417

Bug: 232784417
Test: Device can boot-up, basic function test

Signed-off-by: JohnnLee <johnnlee@google.com>
Change-Id: I1dd97be49842fe23da8df05694dbb94771965c72
2022-06-10 01:07:14 +00:00

23 lines
711 B
Plaintext

/*
* With CONFIG_LTO_CLANG, LLD always enables -fdata-sections and
* -ffunction-sections, which increases the size of the final module.
* Merge the split sections in the final binary.
*/
SECTIONS {
/*
* LLVM may emit .eh_frame with CONFIG_CFI_CLANG despite
* -fno-asynchronous-unwind-tables. Discard the section.
*/
/DISCARD/ : {
*(.eh_frame)
}
.bss : { *(.bss .bss.[0-9a-zA-Z_]*) }
.data : { *(.data .data.[0-9a-zA-Z_]*) }
.rela.data : { *(.rela.data .rela.data.[0-9a-zA-Z_]*) }
.rela.rodata : { *(.rela.rodata .rela.rodata.[0-9a-zA-Z_]*) }
.rela.text : { *(.rela.text .rela.text.[0-9a-zA-Z_]*) }
.rodata : { *(.rodata .rodata.[0-9a-zA-Z_]*) }
.text : { *(.text .text.[0-9a-zA-Z_]*) }
}