mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 00:54:18 +00:00
[CMAKE] Put .rsrc section after the INIT section on drivers, like link.exe does
This commit is contained in:
parent
173cdcae8f
commit
5c21460680
1 changed files with 7 additions and 1 deletions
|
@ -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
|
SECTIONS
|
||||||
{
|
{
|
||||||
INIT BLOCK(__section_alignment__) :
|
INIT BLOCK(__section_alignment__) :
|
||||||
|
@ -7,5 +7,11 @@ SECTIONS
|
||||||
*(INIT)
|
*(INIT)
|
||||||
__init_end__ = . ;
|
__init_end__ = . ;
|
||||||
}
|
}
|
||||||
|
.rsrc BLOCK(__section_alignment__) :
|
||||||
|
{
|
||||||
|
__rsrc_start__ = . ;
|
||||||
|
*(.rsrc)
|
||||||
|
__rsrc_end__ = . ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
INSERT BEFORE .reloc; /* .reloc is always at the end */
|
INSERT BEFORE .reloc; /* .reloc is always at the end */
|
||||||
|
|
Loading…
Reference in a new issue