Commit graph

3 commits

Author SHA1 Message Date
Sami Tolvanen
e9cd5b2daa ANDROID: kbuild: don't merge .*..compoundliteral in modules
Bug: 160394326
Change-Id: Ieac583c1b6a6ef312afb0cdd34748a28debe0b8b
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2020-07-23 21:26:11 +00:00
Sami Tolvanen
23cbf245be ANDROID: kbuild: merge more sections with LTO
Merge the following new data sections generated by current
LLVM versions:

  .bss..L* .bss..compoundliteral*
  .data..L* .data..compoundliteral*
  .rodata..L* .rodata..compoundliteral*

Also drop the unnecessary rules to merge .rela sections.

Bug: 158605670
Change-Id: I098212bc74dfb6b54d4fd60d90957fea29122a6c
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2020-06-15 15:49:45 +00:00
Sami Tolvanen
166a538d15 ANDROID: kbuild: ensure __cfi_check is correctly aligned
On modules with no executable code, LLVM generates a __cfi_check stub,
but won't align it to page size as expected. This change ensures the
function is at the beginning of the .text section and correctly aligned
for the CFI shadow.

Bug: 148458318
Change-Id: I85ea31fa851bc23988f649b021b3ac7e9d9dcb38
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2020-04-06 20:34:01 +00:00
Renamed from scripts/module-lto.lds (Browse further)