summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen83xx
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-12-20 11:36:13 -0600
committerJoel Sherrill <joel@rtems.org>2017-12-20 11:36:13 -0600
commitf33d3b4db5f46fa37787e7c5bc5d2358573954f6 (patch)
treeecf40ae8e6ceade8ffd1195e6b8abf0ac7bd0e13 /c/src/lib/libbsp/powerpc/gen83xx
parentuC5282: Simplify bsp_specs (diff)
downloadrtems-f33d3b4db5f46fa37787e7c5bc5d2358573954f6.tar.bz2
gen5200, gen83xx, gen83x, mpc55xxevb, psim, qoriq, t32mppc, tqm8xx, virtex: Simplify bsp_specs
These BSPs all use shared/startup/linkcmds.base and thus needed to be modified at the same time. Variations in the arguments were reflected into the BSP specific portions of the linkcmds. Updates #3520.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen83xx')
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/bsp_specs7
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds2
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc83xx2
3 files changed, 5 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/bsp_specs b/c/src/lib/libbsp/powerpc/gen83xx/bsp_specs
index a105a01260..a37ec281c8 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/bsp_specs
+++ b/c/src/lib/libbsp/powerpc/gen83xx/bsp_specs
@@ -1,14 +1,9 @@
%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 start.o%s}}
+%{!nostdlib: %{qrtems: ecrti%O%s rtems_crti%O%s crtbegin.o%s -u __vectors}}
*endfile:
%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s ecrtn.o%s}
-
-*link:
-%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -u __vectors}
-
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds b/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds
index 9d7c4a8d36..094fdf51af 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds
@@ -8,6 +8,8 @@
* be able to compile against this BSP.
*/
+EXTERN (__vectors)
+
MEMORY {
RAM : ORIGIN = 0x0, LENGTH = 128M
ROM : ORIGIN = 0xfe000000, LENGTH = 8M
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc83xx b/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc83xx
index 66430a8e61..4ddbcd6f76 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc83xx
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc83xx
@@ -9,6 +9,8 @@ bsp_rom_end = bsp_rom_start + bsp_rom_size;
IMMRBAR = 0xe0000000;
mpc83xx = IMMRBAR;
+EXTERN (__vectors)
+
MEMORY {
EMPTY : ORIGIN = 0x0, LENGTH = 0
}