PowerPC notoc call stub tests
[deliverable/binutils-gdb.git] / ld / testsuite / ld-shared / elf-offset.ld
index 5e6611a234a4f4d549904620023111f0a077587d..ee587f9fdd1a38f5ba19626db58c99abf125c35a 100644 (file)
@@ -110,7 +110,7 @@ SECTIONS
     KEEP (*(SORT(.dtors.*)))
     KEEP (*(.dtors))
   }
-  .got           : { *(.got.plt) *(.got) }
+  .got           : ALIGN(8) { *(.got.plt) *(.got .toc) }
   .dynamic       : { *(.dynamic) }
   /* We want the small data sections together, so single-instruction offsets
      can access them all, and initialized data all before uninitialized, so
@@ -128,7 +128,7 @@ SECTIONS
    /* Align here to ensure that the .bss section occupies space up to
       _end.  Align after .bss to ensure correct alignment even if the
       .bss section disappears because there are no input sections.  */
-   . = ALIGN(32 / 8);
+   . = ALIGN(. != 0 ? 32 / 8 : 1);
   }
   . = ALIGN(32 / 8);
   _end = . ;
This page took 0.023883 seconds and 4 git commands to generate.