diff options
author | Ian Lance Taylor <ian@airs.com> | 2008-07-29 22:58:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2008-07-29 22:58:03 +0000 |
commit | 7c07ececf49a7b57a84e50ca8f7040c11d1c8cfa (patch) | |
tree | 79a773c9f51c3aff56139226173900cc773bc0fd /gold/testsuite | |
parent | 1f70da6a3acba8bc6171565c0389aa1f165ca4c7 (diff) | |
download | gdb-7c07ececf49a7b57a84e50ca8f7040c11d1c8cfa.zip gdb-7c07ececf49a7b57a84e50ca8f7040c11d1c8cfa.tar.gz gdb-7c07ececf49a7b57a84e50ca8f7040c11d1c8cfa.tar.bz2 |
* script.cc (Script_options::finalize_symbols): Finalize SECTIONS
symbols before other symbols.
* testsuite/script_test_2.cc (test_addr): Declare.
(test_addr_alias): Declare.
(main): Check that test_addr and test_addr_alias have the right
values.
* testsuite/script_test_2.t: Define test_addr_alias and
test_addr.
Diffstat (limited to 'gold/testsuite')
-rw-r--r-- | gold/testsuite/script_test_2.cc | 5 | ||||
-rw-r--r-- | gold/testsuite/script_test_2.t | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gold/testsuite/script_test_2.cc b/gold/testsuite/script_test_2.cc index 9ba3aad..7104551 100644 --- a/gold/testsuite/script_test_2.cc +++ b/gold/testsuite/script_test_2.cc @@ -35,6 +35,8 @@ extern char end_data[]; extern char start_fill[]; extern char end_fill[]; extern char end_test_area[]; +extern char test_addr[]; +extern char test_addr_alias[]; int main(int, char**) @@ -66,4 +68,7 @@ main(int, char**) assert(end_fill == start_fill + 8); assert(end_test_area == end_fill); + + assert(test_addr == start_test_area_1); + assert(test_addr_alias == test_addr); } diff --git a/gold/testsuite/script_test_2.t b/gold/testsuite/script_test_2.t index 41a8721..73d39df 100644 --- a/gold/testsuite/script_test_2.t +++ b/gold/testsuite/script_test_2.t @@ -20,6 +20,8 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ +test_addr_alias = test_addr; + SECTIONS { /* With luck this will work everywhere. */ @@ -62,4 +64,5 @@ SECTIONS end_fill = .; } end_test_area = .; + test_addr = ADDR(.gold_test); } |