summaryrefslogtreecommitdiff
path: root/v/link.ld
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2013-11-13 18:03:30 -0800
committerYunsup Lee <yunsup@cs.berkeley.edu>2013-11-13 18:03:30 -0800
commitf3545105d54ab746efac58b96e998a252cafd16b (patch)
treeda4932d63a025a7f12cac970c588e9eb5465847e /v/link.ld
downloadenv-f3545105d54ab746efac58b96e998a252cafd16b.zip
env-f3545105d54ab746efac58b96e998a252cafd16b.tar.gz
env-f3545105d54ab746efac58b96e998a252cafd16b.tar.bz2
split out envs from riscv-tests
Diffstat (limited to 'v/link.ld')
-rw-r--r--v/link.ld50
1 files changed, 50 insertions, 0 deletions
diff --git a/v/link.ld b/v/link.ld
new file mode 100644
index 0000000..4efeaaa
--- /dev/null
+++ b/v/link.ld
@@ -0,0 +1,50 @@
+/*======================================================================*/
+/* Proxy kernel linker script */
+/*======================================================================*/
+/* This is the linker script used when building the proxy kernel. */
+
+/*----------------------------------------------------------------------*/
+/* Setup */
+/*----------------------------------------------------------------------*/
+
+/* The OUTPUT_ARCH command specifies the machine architecture where the
+ argument is one of the names used in the BFD library. More
+ specifically one of the entires in bfd/cpu-mips.c */
+
+OUTPUT_ARCH( "riscv" )
+
+/* The ENTRY command specifies the entry point (ie. first instruction
+ to execute). The symbol _start should be defined in each test. */
+
+ENTRY( _start )
+
+/*----------------------------------------------------------------------*/
+/* Sections */
+/*----------------------------------------------------------------------*/
+
+SECTIONS
+{
+
+ /* text: test code section */
+ . = 0x00002000;
+ .text :
+ {
+ *(.text)
+ }
+
+ /* data: Initialized data segment */
+ .data ALIGN(0x2000):
+ {
+ *(.data)
+ }
+
+ /* bss: Initialized bss segment */
+ .bss ALIGN(0x2000):
+ {
+ *(.bss)
+ }
+
+ /* End of uninitalized bss segement */
+ _end = .;
+}
+