xref: /reactos/sdk/cmake/init-section.lds (revision 3adf4508)
1/* Make sure the INIT & .rsrc sections are at the end of the module so we can reclaim the space */
2SECTIONS
3{
4  INIT BLOCK(__section_alignment__) : ALIGN(__file_alignment__)
5  {
6    __init_start__ = . ;
7    *(INIT)
8    __init_end__ = . ;
9  }
10  .rsrc BLOCK(__section_alignment__) : ALIGN(__file_alignment__)
11  {
12    __rsrc_start__ = . ;
13    *(.rsrc)
14    __rsrc_end__ = . ;
15  }
16}
17INSERT BEFORE .reloc; /* .reloc is always at the end */
18