summaryrefslogtreecommitdiff
path: root/p/link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'p/link.ld')
-rw-r--r--p/link.ld42
1 files changed, 5 insertions, 37 deletions
diff --git a/p/link.ld b/p/link.ld
index 694e906..0b2382e 100644
--- a/p/link.ld
+++ b/p/link.ld
@@ -1,44 +1,12 @@
-/*======================================================================*/
-/* 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 */
- . = 0;
- .text :
- {
- *(.text)
- }
-
- /* data: Initialized data segment */
- .data :
- {
- *(.data)
- }
-
- /* End of uninitalized data segement */
+ . = 0x100;
+ .text.init : { *(.text.init) }
+ .text : { *(.text) }
+ .data ALIGN(0x1000) : { *(.data) }
+ .bss : { *(.bss) }
_end = .;
}