Put entry point at start of text segment / binary

Fixes #881.
This commit is contained in:
Christian Helmuth 2013-09-17 14:42:17 +02:00 committed by Norman Feske
parent 0553490c9c
commit 9f3c4c227e
2 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,7 @@
.endr
.endm
.section .text
.section ".text.crt0"
/* ELF entry symbol */
.global _start

View File

@ -25,6 +25,9 @@ SECTIONS
/* begin of program image (link address) */
_prog_img_beg = .;
/* put entry code at the start of the text segment / raw binary */
*(.text.crt0)
*(.init)
*(.text .text.* .gnu.linkonce.t.*)
*(.fini)