xref: /haiku/src/system/ldscripts/arm/boot_loader_efi.ld (revision adcf5b05a8ca9e17407aa4640675c3873c9f0a6c)
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  .dynamic  : { *(.dynamic) }
19  .data :
20  {
21   __ctor_list = .;
22   *(.ctors)
23   __ctor_end = .;
24   _data = .;
25   *(.sdata)
26   *(.data)
27   *(.data1)
28   *(.data.*)
29   *(.got.plt)
30   *(.got)
31
32   /* the EFI loader doesn't seem to like a .bss section, so we stick
33      it all into .data: */
34   . = ALIGN(16);
35   _bss = .;
36   *(.sbss)
37   *(.scommon)
38   *(.dynbss)
39   *(.bss)
40   *(.bss.*)
41   *(COMMON)
42   . = ALIGN(16);
43   _bss_end = .;
44  }
45
46  .rel.dyn : { *(.rel.dyn) }
47  .rel.plt : { *(.rel.plt) }
48  .rel.got : { *(.rel.got) }
49  .rel.data : { *(.rel.data) *(.rel.data*) }
50  _edata = .;
51  _data_size = . - _etext;
52
53  . = ALIGN(4096);
54  .dynsym   : { *(.dynsym) }
55  . = ALIGN(4096);
56  .dynstr   : { *(.dynstr) }
57  . = ALIGN(4096);
58
59  _end = . ;
60  .note.gnu.build-id : { *(.note.gnu.build-id) }
61  /DISCARD/ :
62  {
63    *(.rel.reloc)
64    *(.eh_frame)
65    *(.note.GNU-stack)
66  }
67  .comment 0 : { *(.comment) }
68}
69