PowerPC PIC vs. DLL TLS issues
[deliverable/binutils-gdb.git] / ld / testsuite / ld-scripts / empty-aligned.t
index 4deb240f7bcc60a89e32c531c771633c5545539c..0073f13fa6f9a41d32ec20121d50a3e5e8c7940f 100644 (file)
@@ -1,19 +1,20 @@
 SECTIONS
 {
+  . = SIZEOF_HEADERS;
   .text : { *(.text) }
   /* Alignment at beginning shouldn't result in empty section being kept.  */
   .text1 ALIGN (4096) :
   {
     *(.text1)
   }
-  /* Same for alignment at beginning and end.  */
+  /* Same for alignment at beginning and end, although we need to be
+     careful in the expression used to align.  */
   .text2 ALIGN (4096) :
   {
     *(.text2)
-    . = ALIGN (4096);
+    . = ALIGN (. != 0 ? 4096 : 1);
   }
-  /* Same for alignment just at end, although we need to be careful in
-     the expression used to align.  */
+  /* Same for alignment just at end.  */
   .text3 :
   {
     *(.text3)
@@ -25,6 +26,5 @@ SECTIONS
   {
     *(.text4)
   }
-  .data : { *(.data) }
-  .bss : { *(.bss) }
+  /DISCARD/ : { *(*) }
 }
This page took 0.024179 seconds and 4 git commands to generate.