PowerPC notoc call stub tests
[deliverable/binutils-gdb.git] / ld / testsuite / ld-shared / elf-offset.ld
index dfe429309a7486dac8aa666e4f660b917c831f0b..ee587f9fdd1a38f5ba19626db58c99abf125c35a 100644 (file)
@@ -58,6 +58,8 @@ SECTIONS
   .rela.bss      : { *(.rela.bss)              }
   .rel.plt       : { *(.rel.plt)               }
   .rela.plt      : { *(.rela.plt)              }
+  .rel.eh_frame  : { *(.rel.eh_frame)          }
+  .rela.eh_frame : { *(.rela.eh_frame)         }
   .init          : { KEEP (*(.init))   }
   .plt      : { *(.plt)        }
   .text      :
@@ -108,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
@@ -126,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.023117 seconds and 4 git commands to generate.