You copied the Doc URL to your clipboard.

Default ld script when building a partially linked object

The linker has a default ld script it can use when building a partially linked object.

The default ld script used by armlink when building a partially linked object with --ldpartial is:

SECTIONS
{
  .interp       0  : { *(.interp) }
  .note.ABI-tag 0  : { *(.note.ABI-tag) }
  .hash         0  : { *(.hash) }
  .dynsym       0  : { *(.dynsym) }
  .dynstr       0  : { *(.dynstr) }
  .version      0  : { *(.version) }
  .version_d    0  : { *(.version_d) }
  .version_r    0  : { *(.version_r) }
  .rel.dyn      0  : { *(.rel.dyn) }
  .rel.plt      0  : { *(.rel.plt) }
  .init         0  : { KEEP (*(.init)) }
  .plt          0  : { *(.plt) }
  .text         0  : { *(.text) }
  .fini         0  : { KEEP (*(.fini)) }
  .rodata       0  : { *(.rodata) }
  .ARM.exidx    0  : { *(.ARM.exidx*) }
  .tdata        0  : { *(.tdata) }
  .tbss         0  : { *(.tbss) }
  .preinit_array   0  :
  {
     KEEP (*(.preinit_array))
  }
  .dynamic      0  : { *(.dynamic) }
  .got          0  : { *(.got.plt) *(.got) }
  .data         0  :
  {
    *(.data)
  }
  .bss          0  :
  {
   *(.bss)
  }
}
Related concepts
Related reference