From 7c98e6bbc9817ad159b84603c66e1ab7df1e8309 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Fri, 11 Apr 2008 18:49:40 +0000 Subject: [PATCH] * testsuite/justsyms.t: Start at 0x100. * testsuite/justsyms_1.cc: Adjust justsyms_string assertion. * script_test_2b.cc (script_test_string_b): Make 8 bytes long. * script_test_2.cc: Adjust string and section length checks. --- gold/ChangeLog | 7 +++++++ gold/testsuite/justsyms.t | 2 +- gold/testsuite/justsyms_1.cc | 2 +- gold/testsuite/script_test_2.cc | 4 ++-- gold/testsuite/script_test_2b.cc | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 001760f7404..907ea2717f3 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,10 @@ +2008-04-11 David S. Miller + + * testsuite/justsyms.t: Start at 0x100. + * testsuite/justsyms_1.cc: Adjust justsyms_string assertion. + * script_test_2b.cc (script_test_string_b): Make 8 bytes long. + * script_test_2.cc: Adjust string and section length checks. + 2008-04-09 Ian Lance Taylor PR gold/5996 diff --git a/gold/testsuite/justsyms.t b/gold/testsuite/justsyms.t index 4d68893d0b7..45418be83cb 100644 --- a/gold/testsuite/justsyms.t +++ b/gold/testsuite/justsyms.t @@ -23,7 +23,7 @@ SECTIONS { /* This script is only used for a .o file. */ - . = 0x10000; + . = 0x100; .gold_test : { *(.gold_test) } .text : { *(.text) } .data : { *(.data) } diff --git a/gold/testsuite/justsyms_1.cc b/gold/testsuite/justsyms_1.cc index 599d8c9be07..50716b069d7 100644 --- a/gold/testsuite/justsyms_1.cc +++ b/gold/testsuite/justsyms_1.cc @@ -44,7 +44,7 @@ main(int, char**) { // The linker script should arrange for this symbol to be exactly at // address 0x10000. - assert(reinterpret_cast(justsyms_string) == 0x10000); + assert(reinterpret_cast(justsyms_string) == 0x100); // However, since the file was linked with --just-symbols, we should // not be able to actually access the symbol. diff --git a/gold/testsuite/script_test_2.cc b/gold/testsuite/script_test_2.cc index 24771aafcfe..6e7e000067a 100644 --- a/gold/testsuite/script_test_2.cc +++ b/gold/testsuite/script_test_2.cc @@ -46,7 +46,7 @@ main(int, char**) // subalign should move it up to 0x20000020. for (int i = 0; i < 16; ++i) assert(start_test_area_1[i] == 0); - assert(strcmp(start_test_area_1 + 16, "test b") == 0); + assert(strcmp(start_test_area_1 + 16, "test bb") == 0); // Next the string from script_test_2a.o, after the subalign. for (int i = 16 + 7; i < 48; ++i) @@ -54,7 +54,7 @@ main(int, char**) assert(strcmp(start_test_area_1 + 48, "test a") == 0); // Move four bytes forward to start_data. - assert(reinterpret_cast(start_test_area_1 + 48 + 7 + 4) + assert(reinterpret_cast(start_test_area_1 + 48 + 8 + 4) == reinterpret_cast(start_data)); assert(memcmp(start_data, "\1\2\0\4\0\0\0\010\0\0\0\0\0\0\0", 15) == 0 || memcmp(start_data, "\1\0\2\0\0\0\4\0\0\0\0\0\0\0\010", 15) == 0); diff --git a/gold/testsuite/script_test_2b.cc b/gold/testsuite/script_test_2b.cc index 5b6100bfdd0..9b19eb022c6 100644 --- a/gold/testsuite/script_test_2b.cc +++ b/gold/testsuite/script_test_2b.cc @@ -21,4 +21,4 @@ // MA 02110-1301, USA. char script_test_string_b[] __attribute__ ((section(".gold_test"))) = - "test b"; + "test bb"; -- 2.30.2