Force different sections to different pages for better results on
authorIan Lance Taylor <iant@google.com>
Tue, 12 Feb 2008 00:15:40 +0000 (00:15 +0000)
committerIan Lance Taylor <iant@google.com>
Tue, 12 Feb 2008 00:15:40 +0000 (00:15 +0000)
x86_64 Linux.

gold/testsuite/script_test_2.t
gold/testsuite/script_test_3.t

index e02b7a9..41a8721 100644 (file)
@@ -27,6 +27,8 @@ SECTIONS
 
   /* With luck this will be enough to get the program working.  */
   .text : { *(.text) }
+  . += 0x100000;
+  . = ALIGN(0x100);
   .data : { *(.data) }
   .bss : { *(.bss) }
 
index 1dbbfa3..9910349 100644 (file)
@@ -28,8 +28,12 @@ SECTIONS
   /* With luck this will be enough to get the program working.  */
   .interp : { *(.interp) } :text :interp
   .text : { *(.text) } :text
-  .dynamic : { *(.dynamic) } :text :dynamic
+  . += 0x100000;
+  . = ALIGN(0x100);
+  .dynamic : { *(.dynamic) } :data :dynamic
   .data : { *(.data) } :data
+  . += 0x100000;
+  . = ALIGN(0x100);
   .bss : { *(.bss) } :bss
 }