]> git.proxmox.com Git - efi-boot-shim.git/blame - elf_x86_64_efi.lds
New upstream version 15.7
[efi-boot-shim.git] / elf_x86_64_efi.lds
CommitLineData
c682b514
PJ
1/* Same as elf_x86_64_fbsd_efi.lds, except for OUTPUT_FORMAT below - KEEP IN SYNC */
2OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
3OUTPUT_ARCH(i386:x86-64)
4ENTRY(_start)
5SECTIONS
6{
7 . = 0;
8 ImageBase = .;
9 .hash : { *(.hash) } /* this MUST come first! */
10 . = ALIGN(4096);
031e5cce
SM
11 .eh_frame :
12 {
c682b514
PJ
13 *(.eh_frame)
14 }
15 . = ALIGN(4096);
16 .text :
17 {
d3819813 18 _text = .;
c682b514 19 *(.text)
031e5cce
SM
20 *(.text.*)
21 *(.gnu.linkonce.t.*)
d3819813 22 _etext = .;
c682b514
PJ
23 }
24 . = ALIGN(4096);
25 .reloc :
26 {
27 *(.reloc)
28 }
f4173af1
MTL
29 . = ALIGN(4096);
30 .note.gnu.build-id : {
31 *(.note.gnu.build-id)
32 }
33
34 . = ALIGN(4096);
35 .data.ident : {
36 *(.data.ident)
37 }
2dd2f760
SM
38 . = ALIGN(4096);
39 .sbatlevel : {
40 *(.sbatlevel)
41 }
f4173af1 42
c682b514
PJ
43 . = ALIGN(4096);
44 .data :
45 {
d3819813 46 _data = .;
c682b514
PJ
47 *(.rodata*)
48 *(.got.plt)
49 *(.got)
50 *(.data*)
51 *(.sdata)
52 /* the EFI loader doesn't seem to like a .bss section, so we stick
53 it all into .data: */
54 *(.sbss)
55 *(.scommon)
56 *(.dynbss)
57 *(.bss)
58 *(COMMON)
59 *(.rel.local)
60 }
f4173af1 61
c682b514
PJ
62 . = ALIGN(4096);
63 .vendor_cert :
64 {
65 *(.vendor_cert)
66 }
67 . = ALIGN(4096);
68 .dynamic : { *(.dynamic) }
69 . = ALIGN(4096);
70 .rela :
71 {
72 *(.rela.data*)
f4173af1
MTL
73 *(.rela.got*)
74 *(.rela.stab*)
c682b514 75 }
d3819813
MTL
76 _edata = .;
77 _data_size = . - _data;
031e5cce
SM
78 . = ALIGN(4096);
79 .sbat :
80 {
81 _sbat = .;
82 *(.sbat)
83 *(.sbat.*)
84 }
85 _esbat = .;
86 _sbat_size = . - _sbat;
d3819813 87
c682b514
PJ
88 . = ALIGN(4096);
89 .dynsym : { *(.dynsym) }
90 . = ALIGN(4096);
91 .dynstr : { *(.dynstr) }
92 . = ALIGN(4096);
93 .ignored.reloc :
94 {
95 *(.rela.reloc)
96 *(.eh_frame)
97 *(.note.GNU-stack)
98 }
99 .comment 0 : { *(.comment) }
d3819813 100 .note.gnu.build-id : { *(.note.gnu.build-id) }
c682b514 101}