pc386: Simplify bsp_specs

If this has any issues, check that the change in linking the
16-bit startup code in Makefile.am generates the same code.
This was odd code and didn't need the RTEMS linkcmds anyway.

Updates #3520.
This commit is contained in:
Joel Sherrill
2017-12-18 13:54:08 -06:00
parent daa24ef372
commit d386bce90d
3 changed files with 4 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ start16.$(OBJEXT): start/start16.S
$(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
start16-elf32.$(OBJEXT): start16.$(OBJEXT)
$(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \
$(LD) -N -Ttext $(START16ADDR) -e start16 -nostdlib \
--oformat=elf32-i386 \
-o $@ $<

View File

@@ -1,13 +1,9 @@
%rename endfile old_endfile
%rename startfile old_startfile
%rename link old_link
*startfile:
%{!qrtems: %(old_startfile)} \
%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e start}}
*link:
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
%{!nostdlib: %{qrtems: crti.o%s crtbegin.o%s}}
*endfile:
%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s crtn.o%s}

View File

@@ -13,8 +13,9 @@
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
"elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
*/
STARTUP(start.o)
ENTRY(start)
HeapSize = DEFINED(HeapSize) ? HeapSize :
DEFINED(_HeapSize) ? _HeapSize : 0x0;
RamSize = DEFINED(RamSize) ? RamSize :