mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 03:13:15 +01:00
37 lines
573 B
Plaintext
37 lines
573 B
Plaintext
/*
|
|
* Simple linker script for userspace or svc tasks.
|
|
*
|
|
* Copyright (C) 2007 Bahadir Balban
|
|
*/
|
|
|
|
virtual_base = %s;
|
|
|
|
/* First page before the env/args */
|
|
|
|
OUTPUT_ARCH(arm)
|
|
ENTRY(_start)
|
|
|
|
PHDRS
|
|
{
|
|
rx PT_LOAD;
|
|
rw PT_LOAD;
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
. = virtual_base;
|
|
|
|
/* RX, RO sections */
|
|
.text : { *(.text.head) *(.text) } : rx =0x90909090
|
|
.rodata : { *(.rodata) } : rx =0x90909090
|
|
.rodata1 : { *(.rodata1) } : rx =0x90909090
|
|
|
|
. = ALIGN(4K);
|
|
|
|
/* RW sections */
|
|
.data : { *(.data) } : rw
|
|
.got : { *(.got) } : rw
|
|
.got.plt : { *(.got.plt) } :rw
|
|
.bss : { *(.bss) } : rw
|
|
}
|