Bläddra i källkod

* linker script: keep got and toc sections together; allows use of -Cg (PIC) in large programs (e.g. compiler) on powerpc64/linux

git-svn-id: trunk@8591 -
tom_at_work 18 år sedan
förälder
incheckning
c6d42528a2
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      compiler/systems/t_linux.pas

+ 2 - 2
compiler/systems/t_linux.pas

@@ -610,8 +610,8 @@ begin
        the same address within the page on the next page up.}
       add('  . = ALIGN (0x1000) - ((0x1000 - .) & (0x1000 - 1));');
       add('  .dynamic        : { *(.dynamic) }');
-      add('  .got            : { *(.got) }');
-      add('  .got.plt        : { *(.got.plt) }');
+      add('  .got            : { *(.got .toc) }');
+      add('  .got.plt        : { *(.got.plt .toc.plt) }');
       add('  .data           :');
       add('  {');
       add('    *(.data .data.* .gnu.linkonce.d.*)');