2008-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>

* bsp_specs, start/start.S: Move -e start from *link to *startfile to
	avoid warning for undefined entry symbol when linking relocatables
	with binutils 2.19. Also rename entry from _init to _start to avoid
	conflict with C++ constructor method name on other architectures.
This commit is contained in:
Joel Sherrill
2008-12-04 20:33:50 +00:00
parent 087dd259c3
commit 212f7b0734
3 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
2008-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* bsp_specs, start/start.S: Move -e start from *link to *startfile to
avoid warning for undefined entry symbol when linking relocatables
with binutils 2.19. Also rename entry from _init to _start to avoid
conflict with C++ constructor method name on other architectures.
2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, ChangeLog, Makefile.am, README, bsp_specs, configure.ac,

View File

@@ -4,12 +4,12 @@
*startfile:
%{!qrtems: %(old_startfile)} \
%{!nostdlib: %{qrtems: start.o%s}}
%{!nostdlib: %{qrtems: start.o%s -e __start}}
*endfile:
%{!qrtems: %(old_endfile)} \
%{!nostdlib: %{qrtems:}}
*link:
%(old_link) %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e _start}
%(old_link) %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}

View File

@@ -20,13 +20,13 @@
.func __vectors
__vectors:
__reset:
jmp __init
jmp __start
.endfunc
.section .init0,"ax",@progbits
.weak __init
; .func __init
__init:
.weak __start
; .func __start
__start:
.section .init2,"ax",@progbits
clr r1