-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathld.script
32 lines (29 loc) · 848 Bytes
/
ld.script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Script for -z combreloc: combine and sort reloc sections */
/* Copyright (C) 2014-2017 Free Software Foundation, Inc.
Copying and distribution of this script, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. */
OUTPUT_FORMAT("elf64-littleaarch64")
OUTPUT_ARCH(aarch64)
ENTRY(_start)
SECTIONS
{
. = 0x0;
at_ro_start = .;
.init : { *(.init) }
.text : { *(.text) }
.rodata : { *(.rodata) }
.rel.ro : { *(.data.rel.ro*) }
. = ALIGN (4096);
at_rw_start = .;
.data : { *(.data) }
.rel.rw : { *(.data.rel.*) }
.bss : { *(.bss) }
. = ALIGN (4096);
at_rw_end = .;
.data_driver : { *(.data_driver) }
. = ALIGN (4096);
initial_first_free_page = .;
pad_to_here = .; /* Needed for build.sh */
/* /DISCARD/ : { *(.*) ; } */
}