diff options
author | Stefan Bucur <stefanb@zytor.com> | 2008-07-28 20:16:08 -0700 |
---|---|---|
committer | Stefan Bucur <stefan@stefan-ubumac.(none)> | 2009-03-15 10:10:49 +0200 |
commit | af4b1f6b2b5b19f5e622d51917fc334dd784c0d8 (patch) | |
tree | 088a497b5a8a8d906b110ba045ae5c511fcee820 | |
parent | 81f53774fd8d140ff4bdd05c32dfc69a09f707de (diff) | |
download | syslinux-elf-af4b1f6b2b5b19f5e622d51917fc334dd784c0d8.tar.gz syslinux-elf-af4b1f6b2b5b19f5e622d51917fc334dd784c0d8.tar.xz syslinux-elf-af4b1f6b2b5b19f5e622d51917fc334dd784c0d8.zip |
Minor fixes for the ELF ld script.
-rw-r--r-- | com32/lib/elf32.ld | 6 |
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 = .; |