]>
Commit | Line | Data |
---|---|---|
2fd32231 ILT |
1 | 2008-03-28 Ian Lance Taylor <[email protected]> |
2 | ||
3 | * layout.cc (Layout::layout): If we see an input section with a | |
4 | name that needs sorting, set the must_sort flag for the output | |
5 | section. | |
6 | (Layout::make_output_section): If the name of the output section | |
7 | indicates that it might require sorting, set the may_sort flag. | |
8 | * output.h (Output_section::may_sort_attached_input_sections): New | |
9 | function. | |
10 | (Output_section::set_may_sort_attached_input_sections): New | |
11 | function. | |
12 | (Output_section::must_sort_attached_input_sections): New | |
13 | function. | |
14 | (Output_section::set_must_sort_attached_input_sections): New | |
15 | function. | |
16 | (class Output_section): Declare Input_section_sort_entry. Define | |
17 | Input_section_sort_compare. Declare | |
18 | sort_attached_input_sections. Add new fields: | |
19 | may_sort_attached_input_sections_, | |
20 | must_sort_attached_input_sections_, | |
21 | attached_input_sections_are_sorted_. | |
22 | * output.cc (Output_section::Output_section): Initialize new | |
23 | fields. | |
24 | (Output_section::add_input_section): Add an entry to | |
25 | input_sections_ if may_sort or must_sort are true. | |
26 | (Output_section::set_final_data_size): Call | |
27 | sort_attached_input_sections if necessary. | |
28 | (Output_section::Input_section_sort_entry): Define new class. | |
29 | (Output_section::Input_section_sort_compare::operator()): New | |
30 | function. | |
31 | (Output_section::sort_attached_input_sections): New function. | |
32 | * configure.ac: Check whether the compiler supports constructor | |
33 | priorities. Define a CONSTRUCTOR_PRIORITY automake conditional. | |
34 | * testsuite/initpri1.c: New file. | |
35 | * testsuite/Makefile.am (check_PROGRAMS): Add initpri1 if | |
36 | CONSTRUCTOR_PRIORITY. | |
37 | (initpri1_SOURCES, initpri1_DEPENDENCIES): New variables. | |
38 | (initpri1_LDFLAGS): New variable. | |
39 | * configure, Makefile.in, testsuite/Makefile.in: Rebuild. | |
40 | ||
18e6b24e ILT |
41 | 2008-03-27 Ian Lance Taylor <[email protected]> |
42 | ||
49bdd526 ILT |
43 | * common.cc (Sort_commons::operator): Correct sorting algorithm. |
44 | * testsuite/common_test_1.c: New file. | |
45 | * testsuite/Makefile.am (check_PROGRAMS): Add common_test_1. | |
46 | (common_test_1_SOURCES): New variable. | |
47 | (common_test_1_DEPENDENCIES): New variable. | |
48 | (common_test_1_LDFLAGS): New variable. | |
49 | ||
18e6b24e ILT |
50 | * symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_ |
51 | and commons_ correctly when NAME/VERSION does not override | |
52 | NAME/NULL. | |
53 | * testsuite/ver_test_6.c: New file. | |
54 | * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_6 | |
55 | (ver_test_6_SOURCES, ver_test_6_DEPENDENCIES): New variables. | |
56 | (ver_test_6_LDFLAGS, ver_test_6_LDADD): New variables. | |
57 | ||
04bf7072 ILT |
58 | 2008-03-26 Ian Lance Taylor <[email protected]> |
59 | ||
5871526f ILT |
60 | * symtab.cc (Symbol_table::add_from_relobj): Don't set the version |
61 | of an undefined symbol from a version script. | |
62 | * testsuite/Makefile.am (ver_test_5.so): New target. | |
63 | (ver_test_5.o): New target. | |
64 | (check_SCRIPTS): Add ver_test_5.sh. | |
65 | (check_DATA): Add ver_test_5.syms. | |
66 | (ver_test_5.syms): New target. | |
67 | * testsuite/ver_test_5.cc: New file. | |
68 | * testsuite/ver_test_5.script: New file. | |
69 | * testsuite/ver_test_5.sh: New file. | |
70 | * Makefile.in, testsuite/Makefile.in: Rebuild. | |
71 | ||
04bf7072 ILT |
72 | PR gold/5986 |
73 | Fix problems building gold with gcc 4.3.0. | |
74 | * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define. | |
75 | (gold_error_at_location, gold_warning_at_location): Use it. | |
76 | * configure.ac: Check whether we can compile and use a template | |
77 | function with a printf attribute. | |
78 | * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value | |
79 | when jumping over bytes. | |
80 | * object.cc: Instantiate Object::read_section_data. | |
81 | * debug.h: Include <cstring> | |
82 | * dwarf_reader.cc: Include <algorithm> | |
83 | * main.cc: Include <cstring>. | |
84 | * options.cc: Include <cstring>. | |
85 | * output.cc: Include <cstring>. | |
86 | * script.cc: Include <cstring>. | |
87 | * script.h: Include <string>. | |
88 | * symtab.cc: Include <cstring> and <algorithm>. | |
89 | * target-select.cc: Include <cstring>. | |
90 | * version.cc: Include <string>. | |
91 | * testsuite/testmain.cc: Include <cstdlib>. | |
92 | * configure, config.in: Rebuild. | |
93 | ||
874c5b28 ILT |
94 | 2008-03-25 Ian Lance Taylor <[email protected]> |
95 | ||
819d6c3a ILT |
96 | * options.cc: Include "../bfd/bfdver.h". |
97 | (options::help): Print bug reporting address. | |
98 | ||
f4b2c6f5 ILT |
99 | * version.cc (print_version): Adjust output for current value of |
100 | BFD_VERSION_STRING. | |
101 | ||
102 | * NEWS: New file. | |
103 | ||
e96caa79 ILT |
104 | * options.cc (options::help): Print list of supported targets. |
105 | * target-select.h: Include <vector>. | |
106 | (class Target_selector): Make machine_, size_, and is_big_endian_ | |
107 | fields const. Add bfd_name_ and instantiated_target_ fields. | |
108 | (Target_selector::Target_selector): Add bfd_name parameter. | |
109 | (Target_selector::recognize): Make non-virtual, call | |
110 | do_recognize. | |
111 | (Target_selector::recognize_by_name): Make non-virtual, call | |
112 | do_recognize_by_name. | |
113 | (Target_selector::supported_names): New function. | |
114 | (Target_selector::bfd_name): New function. | |
115 | (Target_selector::do_instantiate_target): New pure virtual | |
116 | function. | |
117 | (Target_selector::do_recognize): New virtual function. | |
118 | (Target_selector::do_recognize_by_name): New virtual function. | |
119 | (Target_selector::instantiate_target): New private function. | |
120 | (supported_target_names): Declare. | |
121 | * target-select.cc (Target_selector::Target_selector): Update for | |
122 | new parameter and fields. | |
123 | (select_target_by_name): Check that the name matches before | |
124 | calling recognize_by_name. | |
125 | (supported_target_names): New function. | |
126 | * i386.cc (class Target_selector_i386): Update Target_selector | |
127 | constructor call. Remove recognize and recognize_by_name. Add | |
128 | do_instantiate_target. | |
129 | * x86_64.cc (class Target_selector_x86_64): Likewise. | |
130 | * testsuite/testfile.cc (class Target_selector_test): Update for | |
131 | changes to Target_selector. | |
132 | ||
874c5b28 ILT |
133 | * README: Rewrite, with some notes on unsupported features. |
134 | ||
0a65a3a7 CC |
135 | 2008-03-24 Cary Coutant <[email protected]> |
136 | ||
137 | * i386.cc (Target_i386::Got_type): New enum declaration. | |
138 | (Target_i386::Scan::local): Updated callers of Output_data_got | |
139 | member functions. | |
140 | (Target_i386::Scan::global): Likewise. | |
141 | (Target_i386::Relocate::relocate): Likewise. | |
142 | (Target_i386::Relocate::relocate_tls): Likewise. | |
143 | * object.h (Got_offset_list): New class. | |
144 | (Sized_relobj::local_has_got_offset): Added got_type parameter. | |
145 | (Sized_relobj::local_got_offset): Likewise. | |
146 | (Sized_relobj::set_local_got_offset): Likewise. | |
147 | (Sized_relobj::local_has_tls_got_offset): Removed. | |
148 | (Sized_relobj::local_tls_got_offset): Removed. | |
149 | (Sized_relobj::set_local_tls_got_offset): Removed. | |
150 | (Sized_relobj::Local_got_offsets): Changed to store a list of offsets. | |
151 | * output.cc (Output_data_got::add_global): Added got_type parameter. | |
152 | (Output_data_got::add_global_with_rel): Likewise. | |
153 | (Output_data_got::add_global_with_rela): Likewise. | |
154 | (Output_data_got::add_global_pair_with_rel): New function. | |
155 | (Output_data_got::add_global_pair_with_rela): New function. | |
156 | (Output_data_got::add_local): Added got_type parameter. | |
157 | (Output_data_got::add_local_with_rel): Likewise. | |
158 | (Output_data_got::add_local_with_rela): Likewise. | |
159 | (Output_data_got::add_local_pair_with_rel): New function. | |
160 | (Output_data_got::add_local_pair_with_rela): New function. | |
161 | (Output_data_got::add_global_tls): Removed. | |
162 | (Output_data_got::add_global_tls_with_rel): Removed. | |
163 | (Output_data_got::add_global_tls_with_rela): Removed. | |
164 | (Output_data_got::add_local_tls): Removed. | |
165 | (Output_data_got::add_local_tls_with_rel): Removed. | |
166 | (Output_data_got::add_local_tls_with_rela): Removed. | |
167 | * output.h (Output_data_got::add_global): Added got_type parameter. | |
168 | (Output_data_got::add_global_with_rel): Likewise. | |
169 | (Output_data_got::add_global_with_rela): Likewise. | |
170 | (Output_data_got::add_global_pair_with_rel): New function. | |
171 | (Output_data_got::add_global_pair_with_rela): New function. | |
172 | (Output_data_got::add_local): Added got_type parameter. | |
173 | (Output_data_got::add_local_with_rel): Likewise. | |
174 | (Output_data_got::add_local_with_rela): Likewise. | |
175 | (Output_data_got::add_local_pair_with_rel): New function. | |
176 | (Output_data_got::add_local_pair_with_rela): New function. | |
177 | (Output_data_got::add_global_tls): Removed. | |
178 | (Output_data_got::add_global_tls_with_rel): Removed. | |
179 | (Output_data_got::add_global_tls_with_rela): Removed. | |
180 | (Output_data_got::add_local_tls): Removed. | |
181 | (Output_data_got::add_local_tls_with_rel): Removed. | |
182 | (Output_data_got::add_local_tls_with_rela): Removed. | |
183 | * resolve.cc (Symbol::override_base_with_special): Removed | |
184 | reference to has_got_offset_ field. | |
185 | * symtab.cc (Symbol::init_fields): Replaced initialization | |
186 | of got_offset_ with got_offsets_. Removed initialization | |
187 | of has_got_offset_ | |
53fcba31 | 188 | * symtab.h (Symbol::has_got_offset): Aded got_type parameter. |
0a65a3a7 CC |
189 | (Symbol::got_offset): Likewise. |
190 | (Symbol::set_got_offset): Likewise. | |
191 | (Symbol::has_tls_got_offset): Removed. | |
192 | (Symbol::tls_got_offset): Removed. | |
193 | (Symbol::set_tls_got_offset): Removed. | |
194 | (Symbol::got_offset_): Removed. | |
195 | (Symbol::tls_mod_got_offset_): Removed. | |
196 | (Symbol::tls_pair_got_offset_): Removed. | |
197 | (Symbol::got_offsets_): New field. | |
198 | (Symbol::has_got_offset): Removed. | |
199 | (Symbol::has_tls_mod_got_offset): Removed. | |
200 | (Symbol::has_tls_pair_got_offset): Removed. | |
201 | * x86_64.cc (Target_x86_64::Got_type): New enum declaration. | |
202 | (Target_x86_64::Scan::local): Updated callers of Output_data_got | |
203 | member functions. | |
204 | (Target_x86_64::Scan::global): Likewise. | |
205 | (Target_x86_64::Relocate::relocate): Likewise. | |
206 | (Target_x86_64::Relocate::relocate_tls): Likewise. | |
207 | ||
bd52eafb BE |
208 | 2008-03-25 Ben Elliston <[email protected]> |
209 | ||
210 | * yyscript.y: Fix spelling error in comment. | |
211 | ||
8b105e34 ILT |
212 | 2008-03-24 Ian Lance Taylor <[email protected]> |
213 | ||
8ed814a9 ILT |
214 | * options.h (class General_options): Define build_id option. |
215 | * layout.h (class Layout): Declare write_build_id, create_note, | |
216 | create_build_id. Add build_id_note_ member. | |
217 | * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>, | |
218 | "libiberty.h", "md5.h", "sha1.h". | |
219 | (Layout::Layout): Initialize eh_frame_data_, | |
220 | eh_frame_hdr_section_, and build_id_note_. | |
221 | (Layout::finalize): Call create_build_id. | |
222 | (Layout::create_note): New function, broken out of | |
223 | Layout::create_gold_note. | |
224 | (Layout::create_gold_note): Call create_note. | |
225 | (Layout::create_build_id): New function. | |
226 | (Layout::write_build_id): New function. | |
227 | (Close_task_runner::run): Call write_build_id. | |
228 | ||
8b105e34 ILT |
229 | * x86_64.cc: Correct license to GPLv3. |
230 | ||
086a1841 ILT |
231 | 2008-03-23 Ian Lance Taylor <[email protected]> |
232 | ||
233 | * options.cc: Include "demangle.h". | |
234 | (parse_optional_string): New function. | |
235 | (parse_long_option): Handle takes_optional_argument. | |
236 | (parse_short_option): Update dash_z initializer. Handle | |
237 | takes_optional_argument. | |
238 | (General_options::General_options): Initialize do_demangle_. | |
239 | (General_options::finalize): Set do_demangle_. Handle demangling | |
240 | style. | |
241 | * options.h (parse_optional_string): Declare. | |
242 | (struct One_option): Add optional_arg field. Update constructor. | |
243 | Update call constructor calls. Add takes_optional_argument | |
244 | function. | |
245 | (DEFINE_var): Add optional_arg__ parameter. Change all callers. | |
246 | (DEFINE_optional_string): Define. | |
247 | (General_options::demangle): Change from DEFINE_bool to | |
248 | DEFINE_optional_string. | |
249 | (General_options::no_demangle): New function. | |
250 | (General_options::do_demangle): New function. | |
251 | (General_options::set_do_demangle): New function. | |
252 | (General_options::execstack_status_): Move definition to end of | |
253 | class definition. | |
254 | (General_options::static_): Likewise. | |
255 | (General_options::do_demangle_): New field. | |
256 | * object.cc (big_endian>::get_symbol_location_info): Call | |
257 | Options::do_demangle, not Options::demangle. | |
258 | * symtab.cc (demangle): Likewise. | |
259 | ||
cbb93e63 ILT |
260 | 2008-03-22 Ian Lance Taylor <[email protected]> |
261 | ||
262 | * gold.h: Include <cstddef> and <sys/types.h> | |
263 | * options.h: Include <cstring>. | |
264 | ||
ec531623 ILT |
265 | 2008-03-21 Ian Lance Taylor <[email protected]> |
266 | ||
267 | * Added source code to GNU binutils. | |
268 |