From 33a3a153165ddb30daeeb6d3e116911e9a7ad612 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 12 Feb 2008 00:15:40 +0000 Subject: [PATCH] Force different sections to different pages for better results on x86_64 Linux. --- gold/testsuite/script_test_2.t | 2 ++ gold/testsuite/script_test_3.t | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gold/testsuite/script_test_2.t b/gold/testsuite/script_test_2.t index e02b7a9777..41a8721376 100644 --- a/gold/testsuite/script_test_2.t +++ b/gold/testsuite/script_test_2.t @@ -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) } diff --git a/gold/testsuite/script_test_3.t b/gold/testsuite/script_test_3.t index 1dbbfa33e5..9910349288 100644 --- a/gold/testsuite/script_test_3.t +++ b/gold/testsuite/script_test_3.t @@ -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 } -- 2.34.1