]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Scripts/gcc-4K-align-ld-script
1f23079023a6dd6e13bc6d68b1eccb9b42619de5
[mirror_edk2.git] / BaseTools / Scripts / gcc-4K-align-ld-script
1 /* OUTPUT_FORMAT(efi-bsdrv-x86_64) */
2 SECTIONS
3 {
4 /* . = 0 + SIZEOF_HEADERS; */
5 . = 0x280;
6 .text: ALIGN(0x1000)
7 {
8 *(.text .stub .text.* .gnu.linkonce.t.*)
9 . = ALIGN(0x20);
10 }
11 .data: ALIGN(0x1000)
12 {
13 *(
14 .rodata .rodata.* .gnu.linkonce.r.*
15 .data .data.* .gnu.linkonce.d.*
16 .bss .bss.*
17 *COM*
18 )
19 . = ALIGN(0x20);
20 }
21 .eh_frame: ALIGN(0x1000)
22 {
23 KEEP (*(.eh_frame))
24 }
25 .got: ALIGN(0x1000)
26 {
27 *(.got .got.*)
28 . = ALIGN(0x20);
29 }
30 .rela: ALIGN(0x1000)
31 {
32 *(.rela .rela.*)
33 }
34 /DISCARD/ : {
35 *(.note.GNU-stack) *(.gnu_debuglink)
36 *(.interp)
37 *(.dynsym)
38 *(.dynstr)
39 *(.dynamic)
40 *(.hash)
41 *(.comment)
42 }
43 }
44