diff options
author | David S. Miller <davem@redhat.com> | 2008-04-11 18:49:40 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2008-04-11 18:49:40 +0000 |
commit | 7c98e6bbc9817ad159b84603c66e1ab7df1e8309 (patch) | |
tree | 6e54f8ed70ff953977954f87e4f18891ebc2b66e /gold/testsuite/script_test_2.cc | |
parent | 24f4d50fc1884b1e3ae516de97d51fe1cfd1fb64 (diff) | |
download | binutils-7c98e6bbc9817ad159b84603c66e1ab7df1e8309.zip binutils-7c98e6bbc9817ad159b84603c66e1ab7df1e8309.tar.gz binutils-7c98e6bbc9817ad159b84603c66e1ab7df1e8309.tar.bz2 |
* 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.
Diffstat (limited to 'gold/testsuite/script_test_2.cc')
-rw-r--r-- | gold/testsuite/script_test_2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/testsuite/script_test_2.cc b/gold/testsuite/script_test_2.cc index 24771aa..6e7e000 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<uintptr_t>(start_test_area_1 + 48 + 7 + 4) + assert(reinterpret_cast<uintptr_t>(start_test_area_1 + 48 + 8 + 4) == reinterpret_cast<uintptr_t>(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); |