]> git.proxmox.com Git - efi-boot-shim.git/blame - elf_ia32_efi.lds
Tweak building with pesign changes
[efi-boot-shim.git] / elf_ia32_efi.lds
CommitLineData
c682b514
PJ
1OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
2OUTPUT_ARCH(i386)
3ENTRY(_start)
4SECTIONS
5{
6 . = 0;
7 ImageBase = .;
8 .hash : { *(.hash) } /* this MUST come first! */
9 . = ALIGN(4096);
10 .text :
11 {
d3819813 12 _text = .;
c682b514
PJ
13 *(.text)
14 *(.text.*)
15 *(.gnu.linkonce.t.*)
d3819813 16 _etext = .;
c682b514 17 }
8529e0f7 18 . = ALIGN(4096);
c682b514
PJ
19 .reloc :
20 {
21 *(.reloc)
22 }
f4173af1
MTL
23 . = ALIGN(4096);
24 .note.gnu.build-id : {
25 *(.note.gnu.build-id)
26 }
27 . = ALIGN(4096);
28 .data.ident : {
29 *(.data.ident)
30 }
2dd2f760
SM
31 . = ALIGN(4096);
32 .sbatlevel : {
33 *(.sbatlevel)
34 }
f4173af1 35
c682b514
PJ
36 . = ALIGN(4096);
37 .data :
38 {
d3819813 39 _data = .;
c682b514
PJ
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 }
f4173af1 55
c682b514
PJ
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 }
d3819813
MTL
75 _edata = .;
76 _data_size = . - _data;
031e5cce
SM
77 . = ALIGN(4096);
78 .sbat :
79 {
80 _sbat = .;
81 *(.sbat)
82 *(.sbat.*)
83 }
84 _esbat = .;
85 _sbat_size = . - _sbat;
86
c682b514
PJ
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}