From 1e55f0cf5e575af912479cd26a6675e09018e86d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 18 Dec 2017 14:10:20 -0600 Subject: moxiesim: Simplify bsp_specs Updates #3520. --- c/src/lib/libbsp/moxie/moxiesim/bsp_specs | 6 +----- c/src/lib/libbsp/moxie/moxiesim/startup/linkcmds | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/c/src/lib/libbsp/moxie/moxiesim/bsp_specs b/c/src/lib/libbsp/moxie/moxiesim/bsp_specs index d3e0ec0085..afa9f6badb 100644 --- a/c/src/lib/libbsp/moxie/moxiesim/bsp_specs +++ b/c/src/lib/libbsp/moxie/moxiesim/bsp_specs @@ -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 -e _start crtbegin.o%s}} - -*link: -%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N} +%{!nostdlib: %{qrtems: crtbegin.o%s}} *endfile: %{!qrtems: %(old_endfile)} %{!nostdlib: %{qrtems: crtend.o%s}} diff --git a/c/src/lib/libbsp/moxie/moxiesim/startup/linkcmds b/c/src/lib/libbsp/moxie/moxiesim/startup/linkcmds index e1e489c1fc..a4d9edac11 100644 --- a/c/src/lib/libbsp/moxie/moxiesim/startup/linkcmds +++ b/c/src/lib/libbsp/moxie/moxiesim/startup/linkcmds @@ -18,6 +18,7 @@ OUTPUT_FORMAT("elf32-bigmoxie") OUTPUT_ARCH(moxie) ENTRY(_start) +STARTUP(start.o) RamBase = DEFINED(RamBase) ? RamBase : 0x00000000; RamSize = DEFINED(RamSize) ? RamSize : 16M; -- cgit v1.2.3