aboutsummaryrefslogtreecommitdiff
path: root/gold/gold.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-06-24 19:48:51 +0000
committerIan Lance Taylor <ian@airs.com>2009-06-24 19:48:51 +0000
commit9c547ec3ac2440e1d81af5d465e1db1d5e28e43e (patch)
tree7bf396b5e00ba6c0276aa6deff32566652b38809 /gold/gold.cc
parent554585003d351dea8db3181866b89ebc9bf2f66c (diff)
downloadgdb-9c547ec3ac2440e1d81af5d465e1db1d5e28e43e.zip
gdb-9c547ec3ac2440e1d81af5d465e1db1d5e28e43e.tar.gz
gdb-9c547ec3ac2440e1d81af5d465e1db1d5e28e43e.tar.bz2
PR 10156
* layout.cc (Layout::choose_output_section): If we find an existing section, update the flags. (Layout::create_notes): New function, broken out of Layout::finalize. (Layout::finalize): Don't create note sections. (Layout::create_note): Don't crash if linker script discards section. (Layout::create_gold_note): Likewise. (Layout::create_build_id): Likewise. Don't set after_input_sections on the section. (Layout::create_executable_stack_info): Remove target parameter. Change caller. * layout.h (class Layout): Declare create_notes. Update declaration of create_executable_stack_info. * gold.cc (queue_middle_tasks): Call create_notes. * output.cc (Output_section::update_flags_for_input_section): Move here from output.h. If SHF_ALLOC flag is newly set, mark address invalid. * output.h (Output_data::mark_address_invalid): New function. (class Output_section): Only declare, not define, update_flags_for_input_section. Remove set_flags.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r--gold/gold.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/gold.cc b/gold/gold.cc
index ae4b8b8..c65ba29 100644
--- a/gold/gold.cc
+++ b/gold/gold.cc
@@ -386,6 +386,9 @@ queue_middle_tasks(const General_options& options,
// TODO: if this is too slow, do this as a task, rather than inline.
symtab->detect_odr_violations(task, options.output_file_name());
+ // Create any automatic note sections.
+ layout->create_notes();
+
// Create any output sections required by any linker script.
layout->create_script_sections();