Home | History | Annotate | Download | only in ld-scripts
      1 SECTIONS
      2 {
      3   .text : { *(.text) }
      4   /* Alignment at beginning shouldn't result in empty section being kept.  */
      5   .text1 ALIGN (4096) :
      6   {
      7     *(.text1)
      8   }
      9   /* Same for alignment at beginning and end, although we need to be
     10      careful in the expression used to align.  */
     11   .text2 ALIGN (4096) :
     12   {
     13     *(.text2)
     14     . = ALIGN (. != 0 ? 4096 : 1);
     15   }
     16   /* Same for alignment just at end.  */
     17   .text3 :
     18   {
     19     *(.text3)
     20     . = ALIGN (. != 0 ? 4096 : 1);
     21   }
     22   /* Same when setting vma and lma.  This also shouldn't result in
     23      .text3 being kept.  */
     24   .text4 ADDR (.text3) + SIZEOF (.text3) + 8192 : AT (LOADADDR (.text3))
     25   {
     26     *(.text4)
     27   }
     28   /DISCARD/ : { *(*) }
     29 }
     30