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