xref: /DragonStub/gnuefi/elf_arm_efi.lds (revision cc4ef911ee2ccd47411df410dc161a35b8b35d01)
1OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
2OUTPUT_ARCH(arm)
3ENTRY(_start)
4SECTIONS
5{
6  .text 0x0 : {
7    _text = .;
8    *(.text.head)
9    *(.text)
10    *(.text.*)
11    *(.gnu.linkonce.t.*)
12    *(.srodata)
13    *(.rodata*)
14    . = ALIGN(16);
15  }
16  _etext = .;
17  _text_size = . - _text;
18  . = ALIGN(4096);
19  .dynamic  : { *(.dynamic) }
20  . = ALIGN(4096);
21  .data :
22  {
23   _data = .;
24   *(.sdata)
25   *(.data)
26   *(.data1)
27   *(.data.*)
28   *(.got.plt)
29   *(.got)
30
31   /* the EFI loader doesn't seem to like a .bss section, so we stick
32      it all into .data: */
33   . = ALIGN(16);
34   _bss = .;
35   *(.sbss)
36   *(.scommon)
37   *(.dynbss)
38   *(.bss)
39   *(.bss.*)
40   *(COMMON)
41   . = ALIGN(16);
42   _bss_end = .;
43  }
44
45  . = ALIGN(4096);
46  .rel :
47  {
48    *(.rel.text*)
49    *(.rel.data*)
50    *(.rel.got)
51    *(.rel.dyn)
52    *(.rel.stab)
53  }
54  . = ALIGN(4096);
55  .rel.plt : { *(.rel.plt) }
56  _edata = .;
57  _data_size = . - _etext;
58
59  . = ALIGN(4096);
60  .dynsym   : { *(.dynsym) }
61  . = ALIGN(4096);
62  .dynstr   : { *(.dynstr) }
63  . = ALIGN(4096);
64  .note.gnu.build-id : { *(.note.gnu.build-id) }
65  /DISCARD/ :
66  {
67    *(.rel.reloc)
68    *(.eh_frame)
69    *(.note.GNU-stack)
70  }
71  .comment 0 : { *(.comment) }
72}
73