+2008-04-11 David S. Miller <davem@davemloft.net>
+
+ * 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 <iant@google.com>
PR gold/5996
{
// The linker script should arrange for this symbol to be exactly at
// address 0x10000.
- assert(reinterpret_cast<uintptr_t>(justsyms_string) == 0x10000);
+ assert(reinterpret_cast<uintptr_t>(justsyms_string) == 0x100);
// However, since the file was linked with --just-symbols, we should
// not be able to actually access the symbol.
// 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)
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);