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