mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-12 12:16:04 +08:00
25 lines
342 B
Plaintext
25 lines
342 B
Plaintext
|
/* text: over the 32-bit address range.
|
||
|
data: far away from text, and nearly-zero. */
|
||
|
|
||
|
ENTRY(_start)
|
||
|
MEMORY
|
||
|
{
|
||
|
rom (rx) : ORIGIN = 0x800000000, LENGTH = 0x1000
|
||
|
ram (!rx) : ORIGIN = 0x10, LENGTH = 0x1000
|
||
|
}
|
||
|
SECTIONS {
|
||
|
.text : {
|
||
|
*(.text*)
|
||
|
} >rom
|
||
|
|
||
|
.data : {
|
||
|
*(.data*)
|
||
|
} >ram
|
||
|
|
||
|
__global_pointer$ = .;
|
||
|
|
||
|
.got : {
|
||
|
*(.got*)
|
||
|
} > ram
|
||
|
}
|