script.ld 430 B

12345678
  1. SECTIONS {
  2. /* By default, in LLD 16, .lrodata is placed immediately after .rodata.
  3. * However, .lrodata can be very large in our compiled models, which leads to
  4. * relocation out-of-range errors for relative relocations. So we place it
  5. * after other the sections that are referenced from .text using relative
  6. * relocations. This is the default behavior in GNU ld. */
  7. .lrodata : { *(.lrodata) }
  8. } INSERT AFTER .bss;