[CMAKE:GCC] Enforce file alignment on driver & kernel images

This commit is contained in:
Jérôme Gardou 2021-04-12 19:59:52 +02:00 committed by Jérôme Gardou
parent 382426f02e
commit 97a8953538

View file

@ -1,13 +1,13 @@
/* Make sure the INIT & .rsrc sections are at the end of the module so we can reclaim the space */
SECTIONS
{
INIT BLOCK(__section_alignment__) :
INIT BLOCK(__section_alignment__) : ALIGN(__file_alignment__)
{
__init_start__ = . ;
*(INIT)
__init_end__ = . ;
}
.rsrc BLOCK(__section_alignment__) :
.rsrc BLOCK(__section_alignment__) : ALIGN(__file_alignment__)
{
__rsrc_start__ = . ;
*(.rsrc)