aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/examples/gccx
diff options
context:
space:
mode:
Diffstat (limited to 'sim/erc32/examples/gccx')
-rwxr-xr-xsim/erc32/examples/gccx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/erc32/examples/gccx b/sim/erc32/examples/gccx
new file mode 100755
index 0000000..5fec6ec
--- /dev/null
+++ b/sim/erc32/examples/gccx
@@ -0,0 +1,7 @@
+#
+sparclite-aout-gcc -g \
+-Xlinker -Bstatic -Xlinker -N -Xlinker -Ttext -Xlinker 0 \
+-Xlinker -Tdata -Xlinker 02000000 -Xlinker -e -Xlinker _trap_table -Xlinker -X \
+-o $1:r -nostartfiles -nostdlib \
+srt0.S __main.c $*
+size $1:r