From af4b1f6b2b5b19f5e622d51917fc334dd784c0d8 Mon Sep 17 00:00:00 2001 From: Stefan Bucur Date: Mon, 28 Jul 2008 20:16:08 -0700 Subject: Minor fixes for the ELF ld script. --- com32/lib/elf32.ld | 6 ++++-- 1 file 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 = .; -- cgit