projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[CMAKE] Ensure the INIT section is placed at the end of a module. CORE-14683
[reactos.git]
/
sdk
/
cmake
/
init-section.lds
diff --git a/sdk/cmake/init-section.lds
b/sdk/cmake/init-section.lds
new file mode 100644
(file)
index 0000000..
2b81515
--- /dev/null
+++ b/
sdk/cmake/init-section.lds
@@ -0,0
+1,11
@@
+/* Make sure the INIT section is at the end of the module so we can reclaim the space */
+SECTIONS
+{
+ INIT BLOCK(__section_alignment__) :
+ {
+ __init_start__ = . ;
+ *(INIT)
+ __init_end__ = . ;
+ }
+}
+INSERT AFTER .reloc;