Revert "ANDROID: kbuild: merge more sections with LTO"

This reverts commit f31cfc8907.

This is a preparation change for merging android-5.4-stable.50 into
msm-5.4 branch. Merging the sections into compound literal has side
effects in the clock_regulator driver. Device is failing to boot with
NULL PTR dereference. This affects only modules. Reverting this change
for now until fix is available.

Change-Id: Icc089014ead99d7eace9eac4f97ad322d363cfb2
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
This commit is contained in:
Jeevan Shriram 2020-07-17 14:40:31 -07:00 • committed by Blagovest Kolenichev
commit 75e1e42e98

View file

@ -15,20 +15,12 @@ SECTIONS {
*(.eh_frame)
}
.bss : {
*(.bss .bss.[0-9a-zA-Z_]*)
*(.bss..L* .bss..compoundliteral*)
}
.data : {
*(.data .data.[0-9a-zA-Z_]*)
*(.data..L* .data..compoundliteral*)
}
.rodata : {
*(.rodata .rodata.[0-9a-zA-Z_]*)
*(.rodata..L* .rodata..compoundliteral*)
}
.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_]*) }
/*
* With CFI_CLANG, ensure __cfi_check is at the beginning of the
@ -38,4 +30,5 @@ SECTIONS {
*(.text.__cfi_check)
*(.text .text.[0-9a-zA-Z_]* .text..L.cfi*)
}
}