[rtems commit] haleakala: Simplify bsp_specs

Joel Sherrill joel at rtems.org
Fri Dec 22 16:02:29 UTC 2017


Module:    rtems
Branch:    master
Commit:    be7ee6587ac8009c6e89194233c19babecc302e3
Changeset: http://git.rtems.org/rtems/commit/?id=be7ee6587ac8009c6e89194233c19babecc302e3

Author:    Joel Sherrill <joel at rtems.org>
Date:      Wed Dec 20 14:14:45 2017 -0600

haleakala: Simplify bsp_specs

Updates #3520.

---

 c/src/lib/libbsp/powerpc/haleakala/bsp_specs        | 7 ++-----
 c/src/lib/libbsp/powerpc/haleakala/startup/linkcmds | 1 +
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/haleakala/bsp_specs b/c/src/lib/libbsp/powerpc/haleakala/bsp_specs
index 23b58cd..5752caa 100644
--- a/c/src/lib/libbsp/powerpc/haleakala/bsp_specs
+++ b/c/src/lib/libbsp/powerpc/haleakala/bsp_specs
@@ -1,13 +1,10 @@
 %rename endfile old_endfile
 %rename startfile old_startfile
-%rename link old_link
 
 *startfile:
-%{!qrtems: %(old_startfile)} %{!nostdlib: %{qrtems: ecrti%O%s rtems_crti%O%s crtbegin.o%s}}
+%{!qrtems: %(old_startfile)} \
+%{!nostdlib: %{qrtems: ecrti%O%s rtems_crti%O%s crtbegin.o%s}}
 
 *endfile:
 %{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s ecrtn.o%s}
 
-*link:
-%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -u __vectors -u download_entry}
-
diff --git a/c/src/lib/libbsp/powerpc/haleakala/startup/linkcmds b/c/src/lib/libbsp/powerpc/haleakala/startup/linkcmds
index 2be2432..8c06a51 100644
--- a/c/src/lib/libbsp/powerpc/haleakala/startup/linkcmds
+++ b/c/src/lib/libbsp/powerpc/haleakala/startup/linkcmds
@@ -12,6 +12,7 @@
 OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc")
 OUTPUT_ARCH(powerpc)
 ENTRY(download_entry)
+EXTERN(__vectors)
 
 kIntrStackSize = 16K;
 kMainStackSize = 64K;




More information about the vc mailing list