[PATCH 3/8] virtex4: Simplify bsp_specs

Joel Sherrill joel at rtems.org
Wed Dec 20 21:20:43 UTC 2017


Updates #3520.
---
 c/src/lib/libbsp/powerpc/virtex4/bsp_specs        | 8 +-------
 c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds | 2 ++
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/virtex4/bsp_specs b/c/src/lib/libbsp/powerpc/virtex4/bsp_specs
index 98864c9..ccbea26 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/bsp_specs
+++ b/c/src/lib/libbsp/powerpc/virtex4/bsp_specs
@@ -1,15 +1,9 @@
 %rename startfile old_startfile
-%rename link      old_link
 %rename endfile   old_endfile
 
-
 *startfile:
 %{!qrtems: %(old_startfile)} \
-%{!nostdlib: %{qrtems:  ecrti%O%s rtems_crti%O%s crtbegin.o%s }}
-
-*link:
-%{!qrtems: %(old_link)} \
-%{qrtems: -dc -dp -Bstatic -u __vectors -u download_entry -N }
+%{!nostdlib: %{qrtems: ecrti%O%s rtems_crti%O%s crtbegin.o%s}}
 
 *endfile:
 %{!qrtems: %(old_endfile)} \
diff --git a/c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds b/c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds
index 66dd828..50d3a3f 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds
+++ b/c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds
@@ -9,6 +9,8 @@ OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc")
 OUTPUT_ARCH(powerpc)
 
 ENTRY(download_entry)
+EXTERN(download_entry)
+EXTERN(__vectors)
 
 MsgAreaSize       = DEFINED(MsgAreaSize)   ? MsgAreaSize   : 1M;
 RamBase           = DEFINED(RamBase)       ? RamBase       : 0x0;
-- 
1.8.3.1




More information about the devel mailing list