aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/elf32.ld
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/elf32.ld')
-rw-r--r--com32/lib/elf32.ld6
1 files changed, 4 insertions, 2 deletions
diff --git a/com32/lib/elf32.ld b/com32/lib/elf32.ld
index 20234c2c..3704ff10 100644
--- a/com32/lib/elf32.ld
+++ b/com32/lib/elf32.ld
@@ -70,6 +70,7 @@ SECTIONS
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
+ . = ALIGN(4);
.preinit_array :
{
KEEP (*(.preinit_array))
@@ -84,9 +85,10 @@ SECTIONS
KEEP (*(.fini_array))
KEEP (*(SORT(.fini_array.*)))
}
- __ctors_start = .;
+
.ctors :
{
+ __ctors_start = .;
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
__module_init_ptr = .;
@@ -94,9 +96,9 @@ SECTIONS
LONG(0x00000000)
}
- __dtors_start = .;
.dtors :
{
+ __dtors_start = .;
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
__module_exit_ptr = .;