author | Rich Burridge <rich.burridge@oracle.com> |
Fri, 07 Apr 2017 10:04:47 -0700 | |
changeset 7848 | 75d3cd4c779b |
parent 6510 | d00d3d1fc778 |
permissions | -rw-r--r-- |
6510
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
1 |
/* Same as elf_x86_64_fbsd_efi.lds, except for OUTPUT_FORMAT below - KEEP IN SYNC */ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
2 |
OUTPUT_FORMAT("elf64-x86-64-sol2", "elf64-x86-64-sol2", "elf64-x86-64-sol2") |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
3 |
OUTPUT_ARCH(i386:x86-64) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
4 |
ENTRY(_start) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
5 |
SECTIONS |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
6 |
{ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
7 |
. = 0; |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
8 |
ImageBase = .; |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
9 |
.hash : { *(.hash) } /* this MUST come first! */ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
10 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
11 |
.eh_frame : |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
12 |
{ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
13 |
*(.eh_frame) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
14 |
} |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
15 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
16 |
.text : |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
17 |
{ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
18 |
*(.text) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
19 |
} |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
20 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
21 |
.reloc : |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
22 |
{ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
23 |
*(.reloc) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
24 |
} |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
25 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
26 |
.data : |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
27 |
{ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
28 |
*(.rodata*) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
29 |
*(.got.plt) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
30 |
*(.got) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
31 |
*(.data*) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
32 |
*(.sdata) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
33 |
/* the EFI loader doesn't seem to like a .bss section, so we stick |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
34 |
it all into .data: */ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
35 |
*(.sbss) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
36 |
*(.scommon) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
37 |
*(.dynbss) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
38 |
*(.bss) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
39 |
*(COMMON) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
40 |
*(.rel.local) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
41 |
} |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
42 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
43 |
.dynamic : { *(.dynamic) } |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
44 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
45 |
.rela : |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
46 |
{ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
47 |
*(.rela.data*) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
48 |
*(.rela.got) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
49 |
*(.rela.stab) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
50 |
} |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
51 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
52 |
.dynsym : { *(.dynsym) } |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
53 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
54 |
.dynstr : { *(.dynstr) } |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
55 |
. = ALIGN(4096); |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
56 |
.ignored.reloc : |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
57 |
{ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
58 |
*(.rela.reloc) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
59 |
} |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
60 |
} |