[CMAKE] Put .rsrc section after the INIT section on drivers, like link.exe does

This commit is contained in:
Jérôme Gardou 2021-03-18 09:48:22 +01:00 committed by Jérôme Gardou
parent 173cdcae8f
commit 5c21460680

View file

@ -1,4 +1,4 @@
/* Make sure the INIT section is at the end of the module so we can reclaim the space */
/* Make sure the INIT & .rsrc sections are at the end of the module so we can reclaim the space */
SECTIONS
{
INIT BLOCK(__section_alignment__) :
@ -7,5 +7,11 @@ SECTIONS
*(INIT)
__init_end__ = . ;
}
.rsrc BLOCK(__section_alignment__) :
{
__rsrc_start__ = . ;
*(.rsrc)
__rsrc_end__ = . ;
}
}
INSERT BEFORE .reloc; /* .reloc is always at the end */