
Sections with double dots, e.g. .data..percpu are named intentionally to avoid matching rules that apply to .section.*. Change module section merging rules to skip these. Bug: 151981957 Change-Id: I23787aa40d69da1c6ca622a5f111704d2459e163 Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
23 lines
711 B
Plaintext
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_]*) }
|
|
}
|