From e597fa086665187c4d0dea1c45d5c044e297af66 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 3 Nov 2010 17:18:23 +0000 Subject: PR ld/12001 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list of symbols defined via the --defsym command line option and currently waiting assignment. (insert_defined): Add a defined symbol to the symbol table. (ldlang_add_def): Add a entry to the ldlang_def_chain_list. (lang_place_defineds): Walk ldlang_def_chain_list defining the symbols. (lang_process): Call lang_place_defineds. (lang_add_assignment): If the assignment has come from a --defsym command line option then call lang_add_def. * ld-script/default-script2.d: Fix expected address for text section. PR gold/12001 * script.h (class Symbol_assignment: name): New member. Returns the name of the symbol. * scrfipt.cc (Script_options::is_pending_assignment): New member. Returns true if the given symbol name is on the list of assignments wating to be processed. * archive.cc (should_incldue_member): If the symbol is undefined, check to see if it is on the list of symbols pending assignment. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-scripts/default-script2.d | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 8d49e4a..1bbde62 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-11-03 Nick Clifton + + PR ld/12001 + * ld-script/default-script2.d: Fix expected address for text + section. + 2010-11-02 Joseph Myers * ld-tic6x/attr-array-16-16.d, ld-tic6x/attr-array-16-4.d, diff --git a/ld/testsuite/ld-scripts/default-script2.d b/ld/testsuite/ld-scripts/default-script2.d index 68ce2aa..829718d 100644 --- a/ld/testsuite/ld-scripts/default-script2.d +++ b/ld/testsuite/ld-scripts/default-script2.d @@ -5,5 +5,5 @@ #... 0*8000000 . _START #... -0*9000000 T text +0*8000000 T text #pass -- cgit v1.1