]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Scripts/gcc4.9-ld-script
BaseTools: Add GCC49 toolchain; align data sections to 0x40
[mirror_edk2.git] / BaseTools / Scripts / gcc4.9-ld-script
1 /* OUTPUT_FORMAT(efi-bsdrv-x86_64) */
2 SECTIONS
3 {
4 /* . = 0 + SIZEOF_HEADERS; */
5 . = 0x280;
6 .text ALIGN(0x20) :
7 {
8 *(.text .stub .text.* .gnu.linkonce.t.*)
9 . = ALIGN(0x20);
10 } =0x90909090
11 .data ALIGN(0x40) :
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(0x20) :
22 {
23 KEEP (*(.eh_frame))
24 }
25 .got ALIGN(0x20) :
26 {
27 *(.got .got.*)
28 . = ALIGN(0x20);
29 }
30 .rela ALIGN(0x20) :
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