GDB 6.8 released.
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
18e6b24e
ILT
12008-03-27 Ian Lance Taylor <iant@google.com>
2
3 * symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_
4 and commons_ correctly when NAME/VERSION does not override
5 NAME/NULL.
6 * testsuite/ver_test_6.c: New file.
7 * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_6
8 (ver_test_6_SOURCES, ver_test_6_DEPENDENCIES): New variables.
9 (ver_test_6_LDFLAGS, ver_test_6_LDADD): New variables.
10
04bf7072
ILT
112008-03-26 Ian Lance Taylor <iant@google.com>
12
5871526f
ILT
13 * symtab.cc (Symbol_table::add_from_relobj): Don't set the version
14 of an undefined symbol from a version script.
15 * testsuite/Makefile.am (ver_test_5.so): New target.
16 (ver_test_5.o): New target.
17 (check_SCRIPTS): Add ver_test_5.sh.
18 (check_DATA): Add ver_test_5.syms.
19 (ver_test_5.syms): New target.
20 * testsuite/ver_test_5.cc: New file.
21 * testsuite/ver_test_5.script: New file.
22 * testsuite/ver_test_5.sh: New file.
23 * Makefile.in, testsuite/Makefile.in: Rebuild.
24
04bf7072
ILT
25 PR gold/5986
26 Fix problems building gold with gcc 4.3.0.
27 * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define.
28 (gold_error_at_location, gold_warning_at_location): Use it.
29 * configure.ac: Check whether we can compile and use a template
30 function with a printf attribute.
31 * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value
32 when jumping over bytes.
33 * object.cc: Instantiate Object::read_section_data.
34 * debug.h: Include <cstring>
35 * dwarf_reader.cc: Include <algorithm>
36 * main.cc: Include <cstring>.
37 * options.cc: Include <cstring>.
38 * output.cc: Include <cstring>.
39 * script.cc: Include <cstring>.
40 * script.h: Include <string>.
41 * symtab.cc: Include <cstring> and <algorithm>.
42 * target-select.cc: Include <cstring>.
43 * version.cc: Include <string>.
44 * testsuite/testmain.cc: Include <cstdlib>.
45 * configure, config.in: Rebuild.
46
874c5b28
ILT
472008-03-25 Ian Lance Taylor <iant@google.com>
48
819d6c3a
ILT
49 * options.cc: Include "../bfd/bfdver.h".
50 (options::help): Print bug reporting address.
51
f4b2c6f5
ILT
52 * version.cc (print_version): Adjust output for current value of
53 BFD_VERSION_STRING.
54
55 * NEWS: New file.
56
e96caa79
ILT
57 * options.cc (options::help): Print list of supported targets.
58 * target-select.h: Include <vector>.
59 (class Target_selector): Make machine_, size_, and is_big_endian_
60 fields const. Add bfd_name_ and instantiated_target_ fields.
61 (Target_selector::Target_selector): Add bfd_name parameter.
62 (Target_selector::recognize): Make non-virtual, call
63 do_recognize.
64 (Target_selector::recognize_by_name): Make non-virtual, call
65 do_recognize_by_name.
66 (Target_selector::supported_names): New function.
67 (Target_selector::bfd_name): New function.
68 (Target_selector::do_instantiate_target): New pure virtual
69 function.
70 (Target_selector::do_recognize): New virtual function.
71 (Target_selector::do_recognize_by_name): New virtual function.
72 (Target_selector::instantiate_target): New private function.
73 (supported_target_names): Declare.
74 * target-select.cc (Target_selector::Target_selector): Update for
75 new parameter and fields.
76 (select_target_by_name): Check that the name matches before
77 calling recognize_by_name.
78 (supported_target_names): New function.
79 * i386.cc (class Target_selector_i386): Update Target_selector
80 constructor call. Remove recognize and recognize_by_name. Add
81 do_instantiate_target.
82 * x86_64.cc (class Target_selector_x86_64): Likewise.
83 * testsuite/testfile.cc (class Target_selector_test): Update for
84 changes to Target_selector.
85
874c5b28
ILT
86 * README: Rewrite, with some notes on unsupported features.
87
0a65a3a7
CC
882008-03-24 Cary Coutant <ccoutant@google.com>
89
90 * i386.cc (Target_i386::Got_type): New enum declaration.
91 (Target_i386::Scan::local): Updated callers of Output_data_got
92 member functions.
93 (Target_i386::Scan::global): Likewise.
94 (Target_i386::Relocate::relocate): Likewise.
95 (Target_i386::Relocate::relocate_tls): Likewise.
96 * object.h (Got_offset_list): New class.
97 (Sized_relobj::local_has_got_offset): Added got_type parameter.
98 (Sized_relobj::local_got_offset): Likewise.
99 (Sized_relobj::set_local_got_offset): Likewise.
100 (Sized_relobj::local_has_tls_got_offset): Removed.
101 (Sized_relobj::local_tls_got_offset): Removed.
102 (Sized_relobj::set_local_tls_got_offset): Removed.
103 (Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
104 * output.cc (Output_data_got::add_global): Added got_type parameter.
105 (Output_data_got::add_global_with_rel): Likewise.
106 (Output_data_got::add_global_with_rela): Likewise.
107 (Output_data_got::add_global_pair_with_rel): New function.
108 (Output_data_got::add_global_pair_with_rela): New function.
109 (Output_data_got::add_local): Added got_type parameter.
110 (Output_data_got::add_local_with_rel): Likewise.
111 (Output_data_got::add_local_with_rela): Likewise.
112 (Output_data_got::add_local_pair_with_rel): New function.
113 (Output_data_got::add_local_pair_with_rela): New function.
114 (Output_data_got::add_global_tls): Removed.
115 (Output_data_got::add_global_tls_with_rel): Removed.
116 (Output_data_got::add_global_tls_with_rela): Removed.
117 (Output_data_got::add_local_tls): Removed.
118 (Output_data_got::add_local_tls_with_rel): Removed.
119 (Output_data_got::add_local_tls_with_rela): Removed.
120 * output.h (Output_data_got::add_global): Added got_type parameter.
121 (Output_data_got::add_global_with_rel): Likewise.
122 (Output_data_got::add_global_with_rela): Likewise.
123 (Output_data_got::add_global_pair_with_rel): New function.
124 (Output_data_got::add_global_pair_with_rela): New function.
125 (Output_data_got::add_local): Added got_type parameter.
126 (Output_data_got::add_local_with_rel): Likewise.
127 (Output_data_got::add_local_with_rela): Likewise.
128 (Output_data_got::add_local_pair_with_rel): New function.
129 (Output_data_got::add_local_pair_with_rela): New function.
130 (Output_data_got::add_global_tls): Removed.
131 (Output_data_got::add_global_tls_with_rel): Removed.
132 (Output_data_got::add_global_tls_with_rela): Removed.
133 (Output_data_got::add_local_tls): Removed.
134 (Output_data_got::add_local_tls_with_rel): Removed.
135 (Output_data_got::add_local_tls_with_rela): Removed.
136 * resolve.cc (Symbol::override_base_with_special): Removed
137 reference to has_got_offset_ field.
138 * symtab.cc (Symbol::init_fields): Replaced initialization
139 of got_offset_ with got_offsets_. Removed initialization
140 of has_got_offset_
53fcba31 141 * symtab.h (Symbol::has_got_offset): Aded got_type parameter.
0a65a3a7
CC
142 (Symbol::got_offset): Likewise.
143 (Symbol::set_got_offset): Likewise.
144 (Symbol::has_tls_got_offset): Removed.
145 (Symbol::tls_got_offset): Removed.
146 (Symbol::set_tls_got_offset): Removed.
147 (Symbol::got_offset_): Removed.
148 (Symbol::tls_mod_got_offset_): Removed.
149 (Symbol::tls_pair_got_offset_): Removed.
150 (Symbol::got_offsets_): New field.
151 (Symbol::has_got_offset): Removed.
152 (Symbol::has_tls_mod_got_offset): Removed.
153 (Symbol::has_tls_pair_got_offset): Removed.
154 * x86_64.cc (Target_x86_64::Got_type): New enum declaration.
155 (Target_x86_64::Scan::local): Updated callers of Output_data_got
156 member functions.
157 (Target_x86_64::Scan::global): Likewise.
158 (Target_x86_64::Relocate::relocate): Likewise.
159 (Target_x86_64::Relocate::relocate_tls): Likewise.
160
bd52eafb
BE
1612008-03-25 Ben Elliston <bje@au.ibm.com>
162
163 * yyscript.y: Fix spelling error in comment.
164
8b105e34
ILT
1652008-03-24 Ian Lance Taylor <iant@google.com>
166
8ed814a9
ILT
167 * options.h (class General_options): Define build_id option.
168 * layout.h (class Layout): Declare write_build_id, create_note,
169 create_build_id. Add build_id_note_ member.
170 * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
171 "libiberty.h", "md5.h", "sha1.h".
172 (Layout::Layout): Initialize eh_frame_data_,
173 eh_frame_hdr_section_, and build_id_note_.
174 (Layout::finalize): Call create_build_id.
175 (Layout::create_note): New function, broken out of
176 Layout::create_gold_note.
177 (Layout::create_gold_note): Call create_note.
178 (Layout::create_build_id): New function.
179 (Layout::write_build_id): New function.
180 (Close_task_runner::run): Call write_build_id.
181
8b105e34
ILT
182 * x86_64.cc: Correct license to GPLv3.
183
086a1841
ILT
1842008-03-23 Ian Lance Taylor <iant@google.com>
185
186 * options.cc: Include "demangle.h".
187 (parse_optional_string): New function.
188 (parse_long_option): Handle takes_optional_argument.
189 (parse_short_option): Update dash_z initializer. Handle
190 takes_optional_argument.
191 (General_options::General_options): Initialize do_demangle_.
192 (General_options::finalize): Set do_demangle_. Handle demangling
193 style.
194 * options.h (parse_optional_string): Declare.
195 (struct One_option): Add optional_arg field. Update constructor.
196 Update call constructor calls. Add takes_optional_argument
197 function.
198 (DEFINE_var): Add optional_arg__ parameter. Change all callers.
199 (DEFINE_optional_string): Define.
200 (General_options::demangle): Change from DEFINE_bool to
201 DEFINE_optional_string.
202 (General_options::no_demangle): New function.
203 (General_options::do_demangle): New function.
204 (General_options::set_do_demangle): New function.
205 (General_options::execstack_status_): Move definition to end of
206 class definition.
207 (General_options::static_): Likewise.
208 (General_options::do_demangle_): New field.
209 * object.cc (big_endian>::get_symbol_location_info): Call
210 Options::do_demangle, not Options::demangle.
211 * symtab.cc (demangle): Likewise.
212
cbb93e63
ILT
2132008-03-22 Ian Lance Taylor <iant@google.com>
214
215 * gold.h: Include <cstddef> and <sys/types.h>
216 * options.h: Include <cstring>.
217
ec531623
ILT
2182008-03-21 Ian Lance Taylor <iant@google.com>
219
220 * Added source code to GNU binutils.
221
This page took 0.034642 seconds and 4 git commands to generate.