Commit | Line | Data |
---|---|---|
bdeb4032 KT |
1 | 2009-06-25 Kai Tietz <kai.tietz@onevision.com> |
2 | ||
3 | * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and | |
4 | give .debug and .reloc data characteristics. | |
5 | (DOT_RELOC): New define for .reloc section string. | |
6 | (coff_write_object_contents): Use DOT_RELOC instead of string. | |
7 | ||
b32e07d7 TG |
8 | 2009-06-25 Tristan Gingold <gingold@adacore.com> |
9 | ||
10 | * mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound) | |
11 | (bfd_mach_o_canonicalize_dynamic_symtab) | |
12 | (bfd_mach_o_get_synthetic_symtab): Defines. | |
13 | (TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry. | |
14 | (TARGET_NAME): Use Mach-O specific functions for dynamic. | |
15 | ||
16 | * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes | |
17 | for scattered relocations. | |
18 | (bfd_mach_o_i386_print_thread): New function. | |
19 | (bfd_mach_o_print_thread): Define. | |
20 | ||
21 | * mach-o.c (text_section_names_xlat): Add an entry for __const. | |
22 | (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs): | |
23 | New functions extracted from ... | |
24 | (bfd_mach_o_canonicalize_reloc): ... This. Simplified. | |
25 | (bfd_mach_o_get_dynamic_reloc_upper_bound): New function. | |
26 | (bfd_mach_o_canonicalize_dynamic_reloc): New function. | |
27 | (bfd_mach_o_i386_flavour_string): Adjusted after enum renaming. | |
28 | (bfd_mach_o_ppc_flavour_string): Reindentation. Add 64 bits cases. | |
29 | (bfd_mach_o_scan_read_dylinker): Do not create a section anymore. | |
30 | Set name_str field. | |
31 | (bfd_mach_o_scan_read_dylib): Ditto. | |
32 | (bfd_mach_o_scan_read_thread): Set mdata at declaration. Add comments, | |
33 | reindent. | |
34 | (bfd_mach_o_scan_read_dysymtab): Set mdata at declaration. Correctly | |
35 | decode isym and flags on little endian targets. Set dysymtab field. | |
36 | (bfd_mach_o_scan_start_address): Adjust for enum names. | |
37 | (bfd_mach_o_lookup_section): Do not look for segments anymore. | |
38 | (bfd_mach_o_print_section): Display bfd section name. | |
39 | (bfd_mach_o_print_segment): Display none if no name. | |
40 | (bfd_mach_o_print_dysymtab): Display next index for local, external | |
41 | and undefined symbols. | |
42 | (bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str. | |
43 | Display dylinker name. Display thread and unixthread commands content. | |
44 | (bfd_mach_o_print_thread): New macro. | |
45 | ||
46 | * mach-o.h (bfd_mach_o_mach_header_magic): Align numbers. | |
47 | (bfd_mach_o_ppc_thread_flavour): Ditto. | |
48 | (bfd_mach_o_i386_thread_flavour): Ditto. | |
49 | (BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum. | |
50 | (BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces | |
51 | BFD_MACH_O_THREAD_STATE_NONE. | |
52 | (bfd_mach_o_segment_command): Remove segment field. | |
53 | (bfd_mach_o_thread_flavour): Field offset is now unsigned long. | |
54 | (bfd_mach_o_dylinker_command): Remove section field, add name_str. | |
55 | (bfd_mach_o_prebound_dylib_command): Ditto. | |
56 | (bfd_mach_o_dylib_command): Ditto. | |
57 | (bfd_mach_o_prebound_dylib_command): Remove section field. | |
58 | (mach_o_data_struct): Add dysymtab field. | |
59 | (bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field. | |
60 | (bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc) | |
61 | (bfd_mach_o_build_commands): Remove parameter names and attributes. | |
62 | (bfd_mach_o_get_dynamic_reloc_upper_bound) | |
63 | (bfd_mach_o_canonicalize_dynamic_reloc): New prototypes. | |
64 | ||
c41ba836 DK |
65 | 2009-06-25 Rafael Avila de Espindola <espindola@google.com> |
66 | ||
67 | * plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type | |
68 | field of struct dirent. | |
69 | ||
3188b070 TG |
70 | 2009-06-23 Tristan Gingold <gingold@adacore.com> |
71 | ||
72 | * vms.c (vms_get_synthetic_symtab): Remove duplicate definition | |
73 | of this macro. Fix indentation. | |
74 | ||
022f8312 CL |
75 | 2009-06-22 Christophe Lyon <christophe.lyon@st.com> |
76 | ||
77 | * elf32-arm.c (elf32_arm_size_stubs): Use PLT address as | |
78 | destination for defined dynamic symbols when deciding whether to | |
79 | insert a stub or not. | |
80 | (allocate_dynrelocs): Make sure functions are not marked as Thumb | |
81 | when actually accessed through a PLT, even when generating a | |
82 | shared lib. | |
83 | ||
d297e807 TG |
84 | 2009-06-22 Tristan Gingold <gingold@adacore.com> |
85 | ||
86 | * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to | |
87 | the relocs array. | |
88 | ||
ceaf50a2 AM |
89 | 2009-06-22 Alan Modra <amodra@bigpond.net.au> |
90 | ||
91 | * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch. | |
92 | * elf32-v850.c (v850_elf_relocate_section): Warning fix. | |
93 | ||
983bddc8 AM |
94 | 2009-06-22 Alan Modra <amodra@bigpond.net.au> |
95 | ||
96 | * elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning. | |
97 | ||
f8703194 L |
98 | 2009-06-19 H.J. Lu <hongjiu.lu@intel.com> |
99 | ||
100 | * elflink.c (elf_link_add_object_symbols): Avoid warning | |
101 | from -Wjump-misses-init in gcc 4.5.0. | |
102 | ||
09a24cbf L |
103 | 2009-06-19 H.J. Lu <hongjiu.lu@intel.com> |
104 | ||
105 | * elf32-i386.c (elf_i386_check_relocs): Properly check local | |
106 | symbol on error. | |
107 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
108 | ||
4c544807 L |
109 | 2009-06-19 H.J. Lu <hongjiu.lu@intel.com> |
110 | ||
111 | * elf32-i386.c (elf_i386_tls_transition): Add a parameter, | |
112 | r_symndx. Report local symbol name on error. | |
113 | (elf_i386_check_relocs): Updated. Report local symbol name on | |
114 | error. | |
115 | (elf_i386_gc_sweep_hook): Updated. | |
116 | (elf_i386_relocate_section): Likewise. | |
117 | ||
118 | * elf64-x86-64.c (elf64_x86_64_tls_transition): Add a parameter, | |
119 | r_symndx. Report local symbol name on error. | |
120 | (elf64_x86_64_check_relocs): Updated. Report local symbol name | |
121 | on error. | |
122 | (elf64_x86_64_gc_sweep_hook): Updated. | |
123 | (elf64_x86_64_relocate_section): Likewise. | |
124 | ||
b8674692 TG |
125 | 2009-06-19 Tristan Gingold <gingold@adacore.com> |
126 | ||
127 | * mach-o.c (bfd_mach_o_print_private_header): Fix format character. | |
128 | ||
046b007d TG |
129 | 2009-06-19 Tristan Gingold <gingold@adacore.com> |
130 | ||
131 | * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Add prototype. | |
132 | (bfd_mach_o_version): Use bfd_mach_o_get_data instead of direct access. | |
133 | (bfd_mach_o_valid): Ditto. | |
134 | (bfd_mach_o_wide_p): Ditto. | |
135 | (bfd_mach_o_canonicalize_reloc): Ditto. | |
136 | (bfd_mach_o_build_commands): Ditto. | |
137 | (bfd_mach_o_scan_read_thread): Ditto. | |
138 | (bfd_mach_o_flatten_sections): Ditto. | |
139 | (bfd_mach_o_scan_start_address): Ditto. | |
140 | (bfd_mach_o_lookup_section): Ditto. | |
141 | (bfd_mach_o_core_fetch_environment): Ditto. | |
142 | (bfd_mach_o_write_contents): Ditto. Handle reexport_dylib. | |
143 | (bfd_mach_o_scan_write_relocs): Adjust for bfd_mach_o_get_data. | |
144 | (bfd_mach_o_scan_write_symtab): Ditto. | |
145 | Use macros instead of hard-coded values. | |
146 | (bfd_mach_o_scan_read_symtab_symbol): Make the function static. | |
147 | Use bfd_mach_o_get_data instead of direct access. Use macros | |
148 | instead of hard-coded values. | |
149 | (bfd_mach_o_scan_read_symtab_strtab): Make the function static. | |
150 | Remove sym argument and get section from mdata. | |
151 | Move code into the else branch. | |
152 | (bfd_mach_o_scan_read_symtab_symbols): Make the function static. | |
153 | Remove sym argument and get section from mdata. Adjust code. | |
154 | (bfd_mach_o_scan_read_dylib): Move assertion into the created | |
155 | switch (which replaces consecutive if statements). | |
156 | (bfd_mach_o_scan_read_dysymtab): Rename seg to cmd. Load | |
157 | module table, table of content, indirect symbols and external | |
158 | referenced symbols. | |
159 | (bfd_mach_o_scan_read_symtab): Renames seg to symtab. Set symtab | |
160 | field. | |
161 | (bfd_mach_o_scan_read_linkedit): New function. | |
162 | (bfd_mach_o_scan_read_str): Ditto. | |
163 | (bfd_mach_o_count_symbols): Simplify the code by using the symtab | |
164 | field of mdata. | |
165 | (bfd_mach_o_get_symtab_upper_bound): Remove check as | |
166 | bfd_mach_o_count_symbols never returns an error. | |
167 | (bfd_mach_o_canonicalize_symtab): Simplify the code by using the | |
168 | symtab field (there might be only one symtab). | |
169 | (bfd_mach_o_scan_read_command): Handle reexported dylib. | |
170 | Handle sub frameworks, sub umbrella, sub library and sub client. | |
171 | Read code signature and segment split info commands. | |
172 | (bfd_mach_o_scan): Reindent. | |
173 | (bfd_mach_o_xlat_name): New type. | |
174 | (bfd_mach_o_print_flags): New function. | |
175 | (bfd_mach_o_get_name): Ditto. | |
176 | (bfd_mach_o_cpu_name): New variable. | |
177 | (bfd_mach_o_filetype_name, bfd_mach_o_header_flags_name) | |
178 | (bfd_mach_o_section_type_name) | |
179 | (bfd_mach_o_section_attribute_name) | |
180 | (bfd_mach_o_load_command_name): New variables. | |
181 | (bfd_mach_o_print_private_header): New function. | |
182 | (bfd_mach_o_print_section_map): New function extracted from | |
183 | bfd_mach_o_print_private_bfd_data. | |
184 | (bfd_mach_o_print_section): Ditto. Print more infos. | |
185 | (bfd_mach_o_print_segment): Ditto. | |
186 | (bfd_mach_o_print_dysymtab): Ditto. | |
187 | (bfd_mach_o_bfd_print_private_bfd_data): Reworked. Handle | |
188 | load weak dylib, reexport dylib and id dylib. | |
189 | Handle code signature and segment_split info. | |
190 | Handle sub frameworks, sub umbrella, sub library and sub client. | |
191 | (bfd_mach_o_section_get_nbr_indirect): New function. | |
192 | ||
193 | * mach-o.h (BFD_MACH_O_REFERENCE_MASK): New macro. Add comment. | |
194 | (bfd_mach_o_header_flags): New enum to define header flags. | |
195 | (bfd_mach_o_section_attribute): New enum to replace ... | |
196 | (BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC, | |
197 | BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG, | |
198 | BFD_MACH_O_S_SELF_MODIFYING_CODE, BFD_MACH_O_S_ATTR_LIVE_SUPPORT, | |
199 | BFD_MACH_O_S_ATTR_NO_DEAD_STRIP, BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, | |
200 | BFD_MACH_O_S_ATTR_NO_TOC, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): ... | |
201 | these removed macros. | |
202 | (BFD_MACH_O_NLIST_SIZE, BFD_MACH_O_NLIST_64_SIZE): New macros. | |
203 | (bfd_mach_o_dylib_module): New type. | |
204 | (BFD_MACH_O_DYLIB_MODULE_SIZE, BFD_MACH_O_DYLIB_MODULE_64_SIZE): New | |
205 | macros. | |
206 | (bfd_mach_o_dylib_table_of_content): New type. | |
207 | (BFD_MACH_O_TABLE_OF_CONTENT_SIZE): New macro. | |
208 | (bfd_mach_o_dylib_reference): New type. | |
209 | (BFD_MACH_O_REFERENCE_SIZE): New macro. | |
210 | (bfd_mach_o_dysymtab_command): Add fields for loaded and decoded | |
211 | modules, toc, references and indirect syms. | |
212 | (BFD_MACH_O_INDIRECT_SYMBOL_SIZE): New macro. | |
213 | (bfd_mach_o_dylinker_command): Remove cmd and cmdsize fields (were | |
214 | unused). Add comment. | |
215 | (bfd_mach_o_dylib_command): Ditto. | |
216 | (bfd_mach_o_prebound_dylib_command): Ditto. | |
217 | (bfd_mach_o_linkedit_command): New type. | |
218 | (bfd_mach_o_str_command): New type. | |
219 | (bfd_mach_o_load_command): Add linkedit and str fields. | |
220 | (mach_o_data_struct): Add symtab field. | |
221 | (bfd_get_mach_o_data): Renamed to ... | |
222 | (bfd_mach_o_get_data): ... this new macro. | |
223 | (bfd_mach_o_scan_read_symtab_symbol, | |
224 | bfd_mach_o_scan_read_symtab_strtab, | |
225 | bfd_mach_o_scan_read_symtab_symbols): Prototypes removed. | |
226 | ||
227 | * mach-o-i386.c (bfd_mach_o_i386_mkobject): Use bfd_mach_o_get_data | |
228 | instead of direct access. | |
229 | ||
6d78d0b9 AM |
230 | 2009-06-19 Alan Modra <amodra@bigpond.net.au> |
231 | ||
232 | * elf32-ppc.c (ppc_elf_check_relocs): Allow local symbols for | |
233 | R_PPC_PLTREL24 relocs. | |
234 | (ppc_elf_relocate_section): Likewise. | |
235 | ||
3ec01793 AM |
236 | 2009-06-19 Alan Modra <amodra@bigpond.net.au> |
237 | ||
238 | * elf32-ppc.c (find_plt_ent): Pass pointer to plist rather than | |
239 | pointer to sym hash. Update all uses. | |
240 | (update_plt_info): Likewise. Don't check addend here. | |
241 | ||
c2e61a4e L |
242 | 2009-06-18 H.J. Lu <hongjiu.lu@intel.com> |
243 | ||
244 | * elf32-i386.c (elf_i386_check_relocs): Remove isymbuf and use | |
245 | bfd_sym_from_r_symndx. | |
246 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
247 | ||
87d72d41 AM |
248 | 2009-06-18 Alan Modra <amodra@bigpond.net.au> |
249 | ||
250 | * elf-bfd.h (struct sym_sec_cache): Delete. | |
251 | (struct sym_cache): New. | |
252 | (bfd_section_from_r_symndx): Delete prototype. | |
253 | (bfd_sym_from_r_symndx): Define prototype. | |
254 | * elf.c (bfd_section_from_r_symndx): Delete, replace with.. | |
255 | (bfd_sym_from_r_symndx): ..new function. | |
256 | * elf32-arm.c: Update all uses of struct sym_sec_cache and | |
257 | bfd_section_from_r_symndx to new struct and function. | |
258 | * elf32-bfin.c: Likewise. | |
259 | * elf32-hppa.c: Likewise. | |
260 | * elf32-i386.c: Likewise. | |
261 | * elf32-m32r.c: Likewise. | |
262 | * elf32-m68hc1x.c: Likewise. | |
263 | * elf32-m68hc1x.h: Likewise. | |
264 | * elf32-m68k.c: Likewise. | |
265 | * elf32-ppc.c: Likewise. | |
266 | * elf32-s390.c: Likewise. | |
267 | * elf32-sh.c: Likewise. | |
268 | * elf64-ppc.c: Likewise. | |
269 | * elf64-s390.c: Likewise. | |
270 | * elf64-x86-64.c: Likewise. | |
271 | * elfxx-sparc.c: Likewise. | |
272 | * elfxx-sparc.h: Likewise. | |
273 | ||
14aae723 L |
274 | 2009-06-18 H.J. Lu <hongjiu.lu@intel.com> |
275 | ||
276 | * elf32-i386.c (elf_i386_check_relocs): Cache or free isymbuf. | |
277 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
278 | ||
5e486aa1 NC |
279 | 2009-06-18 Nick Clifton <nickc@redhat.com> |
280 | ||
281 | * elflink.c (elf_link_sort_relocs): Return early if there are no | |
282 | relocs to sort. | |
283 | ||
361dff73 DK |
284 | 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com> |
285 | ||
32425da9 NC |
286 | Merge cegcc and mingw32ce target name changes from |
287 | CeGCC project: | |
361dff73 | 288 | |
32425da9 | 289 | 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt> |
361dff73 DK |
290 | |
291 | * config.bfd: Add arm*-*-cegcc* target. | |
292 | ||
32425da9 | 293 | 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt> |
361dff73 DK |
294 | |
295 | * config.bfd: Add arm-*-mingw32ce* target. | |
296 | ||
e03a8ed8 L |
297 | 2009-06-17 H.J. Lu <hongjiu.lu@intel.com> |
298 | ||
299 | * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New. | |
300 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise. | |
301 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it. | |
302 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. | |
303 | ||
304 | 2009-06-17 H.J. Lu <hongjiu.lu@intel.com> | |
305 | ||
306 | * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New. | |
307 | * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise. | |
308 | * elf32-i386.c (elf_i386_check_relocs): Use it. | |
309 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
310 | ||
311 | 2009-06-17 H.J. Lu <hongjiu.lu@intel.com> | |
312 | ||
313 | * elf-bfd.h (elf_dyn_relocs): New. | |
314 | ||
315 | * elf32-i386.c (elf_i386_dyn_relocs): Removed. | |
316 | (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with | |
317 | elf_dyn_relocs. | |
318 | (elf_i386_copy_indirect_symbol): Likewise. | |
319 | (elf_i386_check_relocs): Likewise. | |
320 | (elf_i386_gc_sweep_hook): Likewise. | |
321 | (elf_i386_allocate_dynrelocs): Likewise. | |
322 | (elf_i386_readonly_dynrelocs): Likewise. | |
323 | (elf_i386_size_dynamic_sections): Likewise. | |
324 | ||
325 | * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed. | |
326 | (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs | |
327 | with elf_dyn_relocs. | |
328 | (elf64_x86_64_copy_indirect_symbol): Updated. | |
329 | (elf64_x86_64_check_relocs): Likewise. | |
330 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
331 | (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
332 | (elf64_x86_64_allocate_dynrelocs): Likewise. | |
333 | (elf64_x86_64_readonly_dynrelocs): Likewise. | |
334 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
335 | ||
64e77c6d L |
336 | 2009-06-17 H.J. Lu <hongjiu.lu@intel.com> |
337 | ||
338 | * elf32-arm.c (create_got_section): Get existing .rela.got | |
339 | section. | |
340 | * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise. | |
341 | * elf32-lm32.c (create_got_section): Likewise. | |
342 | * elf32-m32r.c (create_got_section): Likewise. | |
343 | * elf32-ppc.c (ppc_elf_create_got): Likewise. | |
344 | * elf32-s390.c (create_got_section): Likewise. | |
345 | * elf32-sh.c (create_got_section): Likewise. | |
346 | * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise. | |
347 | * elf64-s390.c (create_got_section): Likewise. | |
348 | * elfxx-sparc.c (create_got_section): Likewise. | |
349 | ||
350 | * elflink.c (_bfd_elf_create_got_section): Properly initialize | |
351 | the GOT size. | |
352 | ||
d2149d72 L |
353 | 2009-06-16 H.J. Lu <hongjiu.lu@intel.com> |
354 | ||
355 | * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New. | |
356 | ||
357 | * elf32-i386.c (elf_i386_local_hash): Removed. | |
358 | (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH. | |
359 | (elf_i386_get_local_sym_hash): Likewise. | |
360 | ||
361 | * elf64-x86-64.c (elf64_x86_64_local_hash): Removed. | |
362 | (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH. | |
363 | (elf64_x86_64_get_local_sym_hash): Likewise. | |
364 | * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise. | |
365 | (get_local_sym_hash): Likewise. | |
366 | ||
cc3bd654 L |
367 | 2009-06-16 H.J. Lu <hongjiu.lu@intel.com> |
368 | ||
369 | * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec, | |
370 | rel_got_sec and plt_sec. | |
371 | (elfNN_ia64_relax_section): Updated. | |
372 | (elfNN_ia64_create_dynamic_sections): Likewise. | |
373 | (get_got): Likewise. | |
374 | (allocate_dynrel_entries): Likewise. | |
375 | (elfNN_ia64_size_dynamic_sections): Likewise. | |
376 | (set_got_entry): Likewise. | |
377 | (elfNN_ia64_choose_gp): Likewise. | |
378 | (elfNN_ia64_relocate_section): Likewise. | |
379 | (elfNN_ia64_finish_dynamic_symbol): Likewise. | |
380 | (elfNN_ia64_finish_dynamic_sections): Likewise. | |
381 | ||
be3e406d UW |
382 | 2009-06-16 Ulrich Weigand <uweigand@de.ibm.com> |
383 | ||
384 | * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits | |
385 | also for calls. | |
386 | ||
6de2ae4a L |
387 | 2009-06-16 H.J. Lu <hongjiu.lu@intel.com> |
388 | ||
389 | * configure.in (elf): Add elf-ifunc.lo. | |
390 | ||
391 | * configure: Regenerated. | |
392 | * Makefile.in: Likewise. | |
393 | ||
394 | * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt, | |
395 | srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc. | |
396 | ||
397 | * elf32-i386.c (elf_i386_link_hash_table): Remove sgot, | |
398 | sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and | |
399 | irelifunc. | |
400 | (elf_i386_link_hash_table_create): Likewise. | |
401 | (elf_i386_create_dynamic_sections): Likewise. | |
402 | (elf_i386_check_relocs): Likewise. | |
403 | (elf_i386_allocate_dynrelocs): Likewise. | |
404 | (elf_i386_size_dynamic_sections): Likewise. | |
405 | (elf_i386_relocate_section): Likewise. | |
406 | (elf_i386_finish_dynamic_symbol): Likewise. | |
407 | (elf_i386_finish_dynamic_sections): Likewise. | |
408 | (elf_i386_create_got_section): Removed. | |
409 | ||
410 | * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot, | |
411 | sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and | |
412 | irelifunc. | |
413 | (elf64_x86_64_compute_jump_table_size): Updated. | |
414 | (elf64_x86_64_link_hash_table_create): Likewise. | |
415 | (elf64_x86_64_create_dynamic_sections): Likewise. | |
416 | (elf64_x86_64_check_relocs): Likewise. | |
417 | (elf64_x86_64_allocate_dynrelocs): Likewise. | |
418 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
419 | (elf64_x86_64_relocate_section): Likewise. | |
420 | (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
421 | (elf64_x86_64_finish_dynamic_sections): Likewise. | |
422 | (elf64_x86_64_create_got_section): Removed. | |
423 | ||
424 | * elflink.c (_bfd_elf_create_got_section): Use log_file_align | |
425 | for pointer alignment. Set up section pointers. | |
426 | (_bfd_elf_create_dynamic_sections): Likewise. | |
427 | (_bfd_elf_create_ifunc_sections): Moved to ... | |
428 | * elf-ifunc.c: Here. New. | |
429 | ||
430 | * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo. | |
431 | (BFD32_BACKENDS_CFILES): Add elf-ifunc.c. | |
432 | Run "make dep-am". | |
433 | ||
81694485 NC |
434 | 2009-06-16 Doug Kwan <dougkwan@google.com> |
435 | ||
6de2ae4a L |
436 | * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset |
437 | to bfd_signed_vma. Cast constant operands which are used in | |
438 | offset related expressions to bfd_signed_vma type as appropriate. | |
81694485 | 439 | |
6db7e006 MR |
440 | 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> |
441 | ||
442 | * elf32-vax.c (elf_vax_plt_sym_val): New function. | |
443 | (elf_backend_plt_sym_val): Define. | |
444 | ||
9b90d8fd MR |
445 | 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> |
446 | ||
447 | * elf32-vax.c (elf_vax_reloc_type_class): New function. | |
448 | (elf_backend_reloc_type_class): Define. | |
449 | ||
04981bc1 MR |
450 | 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> |
451 | ||
452 | * elf32-vax.c (elf_vax_relocate_section): For symbol references | |
453 | from an executable to a shared library treat R_VAX_PC32 | |
454 | relocations as R_VAX_PLT32 ones. | |
455 | ||
886815b2 MR |
456 | 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> |
457 | ||
458 | * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local | |
459 | symbols in GOT space calculation. | |
460 | (elf_vax_relocate_section): Adjust accordingly. | |
461 | ||
6c4fb25a MR |
462 | 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> |
463 | ||
464 | * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to | |
465 | include <R11:R2>. | |
466 | ||
7b6021f1 MR |
467 | 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> |
468 | ||
469 | * elf32-vax.c (elf_vax_check_relocs): Handle the visibility | |
470 | attribute. | |
471 | (elf_vax_relocate_section): Likewise. | |
472 | ||
188dbb07 L |
473 | 2009-06-15 H.J. Lu <hongjiu.lu@intel.com> |
474 | ||
475 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments. | |
476 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. | |
477 | ||
048cbda4 L |
478 | 2009-06-15 H.J. Lu <hongjiu.lu@intel.com> |
479 | ||
480 | * elf32-i386.c (elf_i386_check_relocs): Reformat. | |
481 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
482 | ||
482c6ce9 L |
483 | 2009-06-15 H.J. Lu <hongjiu.lu@intel.com> |
484 | ||
485 | * Makefile.am: Run "make dep-am". | |
486 | * Makefile.in: Regenerated. | |
487 | ||
eba077f2 L |
488 | 2009-06-15 H.J. Lu <hongjiu.lu@intel.com> |
489 | ||
490 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo. | |
491 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. | |
492 | ||
ec68b083 NC |
493 | 2009-06-15 Nick Clifton <nickc@redhat.com> |
494 | ||
495 | * po/ru.po: New Russian translation. | |
496 | * configure.in (ALL_LINGUAS): Add ru. | |
497 | * configure: Regenerate. | |
498 | ||
b80ee1aa L |
499 | 2009-06-14 H.J. Lu <hongjiu.lu@intel.com> |
500 | ||
501 | * elf32-i386.c: Remove duplicated comments. | |
502 | ||
44c4ea11 L |
503 | 2009-06-14 H.J. Lu <hongjiu.lu@intel.com> |
504 | ||
505 | PR ld/10270 | |
506 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow | |
507 | dynamic IFUNC pointer in non-shared object. Use .got.plt | |
508 | for IFUNC definition in PIE. | |
509 | (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in | |
510 | PIE locally. | |
511 | ||
512 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow | |
513 | dynamic IFUNC pointer in non-shared object. Use .got.plt | |
514 | for IFUNC definition in PIE. | |
515 | (elf64_x86_64_relocate_section): Resolve IFUNC definition in | |
516 | PIE locally. | |
517 | ||
8b7e2992 L |
518 | 2009-06-13 H.J. Lu <hongjiu.lu@intel.com> |
519 | ||
520 | * elf32-i386.c (elf_i386_check_relocs): Properly report | |
521 | local symbol for unhandled relocation against STT_GNU_IFUNC | |
522 | symbol. | |
637fa7af | 523 | (elf_i386_relocate_section): Likewise. |
8b7e2992 | 524 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. |
637fa7af | 525 | (elf64_x86_64_relocate_section): Likewise. |
8b7e2992 | 526 | |
c25bc9fc L |
527 | 2009-06-13 H.J. Lu <hongjiu.lu@intel.com> |
528 | ||
529 | PR ld/10269 | |
530 | * elf32-i386.c: Include "objalloc.h" and "hashtab.h". | |
531 | (elf_i386_link_hash_table): Add loc_hash_table and | |
532 | loc_hash_memory. | |
533 | (elf_i386_local_hash): New. | |
534 | (elf_i386_local_htab_hash): Likewise. | |
535 | (elf_i386_local_htab_eq): Likewise. | |
536 | (elf_i386_get_local_sym_hash): Likewise. | |
537 | (elf_i386_link_hash_table_free): Likewise. | |
538 | (elf_i386_allocate_local_dynrelocs): Likewise. | |
539 | (elf_i386_finish_local_dynamic_symbol): Likewise. | |
540 | (bfd_elf64_bfd_link_hash_table_free): Likewise. | |
541 | (elf_i386_link_hash_table_create): Create loc_hash_table and | |
542 | loc_hash_memory. | |
543 | (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols. | |
544 | (elf_i386_size_dynamic_sections): Likewise. | |
545 | (elf_i386_relocate_section): Likewise. | |
546 | (elf_i386_finish_dynamic_sections): Likewise. | |
547 | (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym | |
548 | isn't NULL. | |
549 | ||
550 | * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h". | |
551 | (elf64_x86_64_link_hash_table): Add loc_hash_table and | |
552 | loc_hash_memory. | |
553 | (elf64_x86_64_local_hash): New. | |
554 | (elf64_x86_64_local_htab_hash): Likewise. | |
555 | (elf64_x86_64_local_htab_eq): Likewise. | |
556 | (elf64_x86_64_get_local_sym_hash): Likewise. | |
557 | (elf64_x86_64_link_hash_table_free): Likewise. | |
558 | (elf64_x86_64_allocate_local_dynrelocs): Likewise. | |
559 | (elf64_x86_64_finish_local_dynamic_symbol): Likewise. | |
560 | (bfd_elf64_bfd_link_hash_table_free): Likewise. | |
561 | (elf64_x86_64_link_hash_table_create): Create loc_hash_table | |
562 | and loc_hash_memory. | |
563 | (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC | |
564 | symbols. | |
565 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
566 | (elf64_x86_64_relocate_section): Likewise. | |
567 | (elf64_x86_64_finish_dynamic_sections): Likewise. | |
568 | (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if | |
569 | sym isn't NULL. | |
570 | ||
dec9d5df PB |
571 | 2009-06-10 Philip Blundell <philb@gnu.org> |
572 | ||
573 | * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if | |
574 | elf_sec->this_hdr == NULL. | |
575 | ||
92bc0e80 TG |
576 | 2009-06-12 Tristan Gingold <gingold@adacore.com> |
577 | ||
578 | * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR. | |
579 | * bfd-in2.h: Regenerated. | |
580 | * libbfd.h: Regenerated. | |
581 | ||
582 | * mach-o.c (FILE_ALIGN): New macro. | |
583 | (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol. | |
584 | (bfd_mach_o_print_symbol): Ditto. | |
585 | (bfd_mach_o_scan_write_thread): Adjust type of variable offset. | |
586 | (bfd_mach_o_get_reloc_upper_bound): New function. | |
587 | (bfd_mach_o_canonicalize_reloc): Ditto. | |
588 | (bfd_mach_o_scan_write_relocs): Ditto. | |
589 | (bfd_mach_o_scan_write_section_32): Remove offset argument. | |
590 | (bfd_mach_o_scan_write_section_64): Ditto. | |
591 | (bfd_mach_o_scan_write_segment_32): Write relocs. Fix size of data | |
592 | written for load command. Do not compute section file offset. | |
593 | (bfd_mach_o_scan_write_segment_64): Ditto. | |
594 | (bfd_mach_o_scan_write_symtab): Compute file offset first. | |
595 | Adjust for bfd_mach_o_asymbol. Move code to convert from BFD to | |
596 | Mach-O to ... | |
597 | (bfd_mach_o_mangle_symbols): ... this new function. | |
046b007d | 598 | (bfd_mach_o_write_contents): Be sure to have load commands built. |
92bc0e80 TG |
599 | Call bfd_mach_o_mangle_symbols. |
600 | (bfd_mach_o_build_commands): Adjust for filelen field. | |
601 | Use FILE_ALIGN macro. Clear section file offset if section is empty. | |
602 | Do not set symtab file offset anymore here. | |
603 | (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol. | |
604 | (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc. | |
605 | Set reloc_count and rel_filepos section fields. | |
606 | (bfd_mach_o_scan_read_section_32): Type of argument offset is now | |
607 | unsigned int. | |
608 | (bfd_mach_o_scan_read_section_64): Ditto. | |
609 | (bfd_mach_o_scan_read_section): Ditto. | |
610 | (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now | |
611 | bfd_mach_o_asymbol. Use unsigned int for file offset type. | |
612 | (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol. | |
613 | Handle weak-ref symbols. | |
614 | (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol. | |
615 | (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. | |
616 | (bfd_mach_o_scan): Remove assignment to removed field. | |
617 | (bfd_mach_o_mkobject_init): Ditto. | |
618 | (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter. | |
619 | (bfd_mach_o_bfd_reloc_type_lookup): New macro. | |
620 | (bfd_mach_o_bfd_reloc_name_lookup): Ditto. | |
621 | (bfd_mach_o_swap_reloc_in): Ditto. | |
622 | (bfd_mach_o_swap_reloc_out): Ditto. | |
623 | ||
624 | * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY) | |
625 | (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY) | |
626 | (BFD_MACH_O_REFERENCE_FLAG_DEFINED) | |
627 | (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED) | |
628 | (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY) | |
629 | (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY) | |
630 | (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED) | |
631 | (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF) | |
632 | (BFD_MACH_O_N_WEAK_DEF): New macros. | |
633 | Add comments. | |
634 | (bfd_mach_o_section_type): Add new enumeration values. | |
635 | (BFD_MACH_O_S_SELF_MODIFYING_CODE) | |
636 | (BFD_MACH_O_S_ATTR_LIVE_SUPPORT) | |
637 | (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP) | |
638 | (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New | |
639 | macros. | |
640 | (BFD_MACH_O_GENERIC_RELOC_VANILLA) | |
641 | (BFD_MACH_O_GENERIC_RELOC_PAIR) | |
642 | (BFD_MACH_O_GENERIC_RELOC_SECTDIFF) | |
643 | (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR) | |
644 | (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto. | |
645 | (BFD_MACH_O_RELENT_SIZE): Ditto. | |
646 | (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH) | |
647 | (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE) | |
648 | (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH) | |
649 | (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto. | |
650 | (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL) | |
651 | (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE) | |
652 | (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH) | |
653 | (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto. | |
654 | (bfd_mach_o_reloc_info): New struct. | |
655 | (bfd_mach_o_asymbol): New struct. | |
656 | (bfd_mach_o_symtab_command): The symbols field is now of type | |
657 | bfd_mach_o_asymbol. | |
658 | (bfd_mach_o_load_command): The offset and len fields are now of type | |
659 | unsigned int. | |
660 | (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields. | |
661 | Add a filelen field. Add comments. | |
662 | (bfd_mach_o_backend_data): New struct. | |
663 | (bfd_mach_o_get_backend_data): New macro. | |
664 | (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type | |
665 | bfd_mach_o_asymbol. | |
666 | (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. | |
667 | (bfd_mach_o_get_reloc_upper_bound): New prototype. | |
668 | (bfd_mach_o_canonicalize_reloc): Ditto. | |
669 | ||
670 | * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove | |
671 | duplicated macro. Now defined to _bfd_generic_is_local_label. | |
672 | (TARGET_NAME_BACKEND): New macro... | |
673 | (TARGET_NAME_BACKEND): ... used to name a new variable. | |
674 | (TARGET_NAME): Define relocs table using bfd_mach_o, reference | |
675 | Mach-O backend data. | |
676 | ||
677 | * mach-o-i386.c (i386_howto_table): New variable. | |
678 | (bfd_mach_o_i386_swap_reloc_in): New function. | |
679 | (bfd_mach_o_i386_swap_reloc_out): Ditto. | |
680 | (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto. | |
681 | (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto. | |
682 | (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros. | |
683 | (bfd_mach_o_bfd_reloc_type_lookup) | |
684 | (bfd_mach_o_bfd_reloc_name_lookup): Ditto. | |
685 | ||
8c7d38e8 NC |
686 | 2009-06-11 Eric Paris <eparis@redhat.com> |
687 | Nick Clifton <nickc@redhat.com> | |
688 | ||
689 | * opncls.c (_maybe_make_executable): New function. Gives execute | |
690 | permission to an executable bfd that was opened for writing | |
691 | provided that it is a regular file. Replaces common code found in... | |
692 | (bfd_close): here and ... | |
693 | (bfd_close_all_done): here. | |
694 | ||
f865a31d AG |
695 | 2009-06-11 Anthony Green <green@moxielogic.com> |
696 | ||
697 | * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL. | |
698 | * bfd-in2.h: Rebuilt. | |
699 | * libbfd.h: Rebuilt. | |
700 | * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10 | |
701 | relocation support. | |
702 | (moxie_reloc_map): Ditto. | |
703 | Clean up copyright notice. | |
704 | ||
25b88f33 PP |
705 | 2009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com> |
706 | ||
1372b818 | 707 | * bfd-in2.h: bfd_mmap prototype. |
25b88f33 PP |
708 | * bfdio.c (bfd_mmap): New function. |
709 | * libbfd.h (bfd_iovec): Add bmmap. | |
1372b818 | 710 | * cache.c (cache_bmmap): New function. |
25b88f33 PP |
711 | (cache_iovec): Initialize bmmap member. |
712 | * opencls.c (opncls_bmmap): New function. | |
713 | (opncls_iovec): Initialize bmmap member. | |
714 | ||
c2f09c75 TG |
715 | 2009-06-09 Tristan Gingold <gingold@adacore.com> |
716 | ||
717 | * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment | |
718 | and stabstr_segment fields. | |
719 | (mach_o_be_vec, mach_o_le_vec): Removed | |
720 | (bfd_mach_o_version): New prototype. | |
721 | ||
722 | * mach-o.c (bfd_mach_o_version): Make this function public. | |
723 | (mach_o_wide_p): New function. | |
724 | (bfd_mach_o_wide_p): Ditto. | |
725 | (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for | |
726 | weird names. | |
727 | (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment. | |
728 | Search in the list only if the name starts with a dot. | |
729 | (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded | |
730 | test. Check bfd_seek status. | |
731 | (bfd_mach_o_scan_write_thread): Check bfd_seek status. | |
732 | (bfd_mach_o_scan_write_section_32): Ditto. | |
733 | (bfd_mach_o_scan_write_section_64): Ditto. | |
734 | (bfd_mach_o_scan_write_section): Removed. | |
735 | (bfd_mach_o_scan_write_segment): Split into ... | |
736 | (bfd_mach_o_scan_write_segment_32): ... this and ... | |
737 | (bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status. | |
738 | (bfd_mach_o_scan_write_symtab_symbols): Moved into ... | |
739 | (bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD | |
740 | symbol table. Now returns a boolean. | |
741 | (bfd_mach_o_write_contents): Set filetype. Check bfd_seek status. | |
742 | Adjust for status type. | |
743 | (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded | |
744 | test. Write symbol table. Numbers the sections. | |
745 | (bfd_mach_o_read_header): Check bfd_seek status. | |
746 | Use mach_o_wide_p instead of hard-coded test. | |
747 | (bfd_mach_o_scan_read_section_32): Check bfd_seek status. | |
748 | (bfd_mach_o_scan_read_section_64): Ditto. | |
749 | (bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status. | |
750 | Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly | |
751 | handled common symbols. | |
752 | (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status. | |
753 | (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. | |
754 | (bfd_mach_o_scan_read_dylinker): Ditto. | |
755 | (bfd_mach_o_scan_read_dylib): Ditto. | |
756 | (bfd_mach_o_scan_read_thread): Ditto. | |
757 | (bfd_mach_o_scan_read_symtab): Ditto. | |
758 | Do not create a section for the stabs. | |
759 | (bfd_mach_o_scan_read_uuid): Check bfd_seek status. | |
760 | (bfd_mach_o_scan_read_segment): Ditto. | |
761 | (bfd_mach_o_scan_read_command): Ditto. | |
762 | (bfd_mach_o_scan_start_address): Ditto. | |
763 | (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test. | |
764 | (bfd_mach_o_archive_p): Check bfd_seek status. | |
765 | (bfd_mach_o_core_fetch_environment): Ditto. | |
766 | ||
767 | * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype. | |
768 | ||
2a81c24a L |
769 | 2009-06-06 H.J. Lu <hongjiu.lu@intel.com> |
770 | ||
771 | * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc. | |
772 | (elf_i386_link_hash_table_create): Initialize irelifunc. | |
773 | (elf_i386_check_relocs): Updated. Set up irelifunc for | |
774 | shared objects. | |
775 | (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic | |
776 | relocation for non-GOT reference of STT_GNU_IFUNC symbol in | |
777 | shared objects. | |
778 | (elf_i386_relocate_section): Likewise. | |
779 | ||
780 | * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc. | |
781 | (elf64_x86_64_link_hash_table_create): Initialize irelifunc. | |
782 | (elf64_x86_64_check_relocs): Updated. Set up irelifunc for | |
783 | shared objects. | |
784 | (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic | |
785 | relocation for non-GOT reference of STT_GNU_IFUNC symbol in | |
786 | shared objects. | |
787 | (elf64_x86_64_relocate_section): Likewise. | |
788 | ||
789 | * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to | |
790 | ... | |
791 | (_bfd_elf_create_ifunc_sections): This. | |
792 | ||
c2f09c75 | 793 | * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to |
2a81c24a L |
794 | ... |
795 | (_bfd_elf_create_ifunc_sections): This. Create .rel[a].ifunc | |
796 | for shared objects. | |
797 | ||
710ab287 L |
798 | 2009-06-06 H.J. Lu <hongjiu.lu@intel.com> |
799 | ||
800 | * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic | |
801 | relocation for R_386_32 against STT_GNU_IFUNC symbol when | |
802 | building shared object. Check info->executable instead of | |
803 | !info->shared when setting non_got_ref. | |
804 | (elf_i386_allocate_dynrelocs): Allocate dynamic relocation | |
805 | for non-GOT reference of STT_GNU_IFUNC symbol in shared | |
806 | object. Allocate GOT relocation agsinst STT_GNU_IFUNC | |
807 | symbol if needed. | |
808 | (elf_i386_relocate_section): Output dynamic relocation for | |
809 | R_386_32 against STT_GNU_IFUNC symbol to get the real | |
810 | function address when building shared object. | |
811 | (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT | |
812 | relocation for STT_GNU_IFUNC symbol in shared object. | |
813 | ||
814 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for | |
815 | dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC | |
816 | symbol when building shared object. Check info->executable | |
817 | instead of !info->shared when setting non_got_ref. | |
818 | (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation | |
819 | for non-GOT reference of STT_GNU_IFUNC symbol in shared | |
820 | library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol | |
821 | if needed. | |
822 | (elf64_x86_64_relocate_section): Output dynamic relocation | |
823 | for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real | |
824 | function address when building shared object. | |
825 | (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT | |
826 | relocation for STT_GNU_IFUNC symbol in shared object. | |
827 | ||
9e93c730 JK |
828 | 2009-06-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
829 | ||
830 | * Makefile.am: Run "make dep-am". | |
831 | (BFD32_BACKENDS): Add mach-o-i386.lo. | |
832 | (BFD32_BACKENDS_CFILES): Add mach-o-i386.c. | |
833 | * Makefile.in: Regenerate. | |
834 | ||
74681fc4 AM |
835 | 2009-06-06 Alan Modra <amodra@bigpond.net.au> |
836 | ||
837 | * elf32-spu.c (spu_elf_relocate_section): Match overlay number | |
838 | when looking for soft-icache stubs. | |
839 | ||
154a1ee5 TG |
840 | 2009-06-05 Tristan Gingold <gingold@adacore.com> |
841 | ||
842 | * mach-o.h: Update copyright year. | |
843 | (bfd_mach_o_mach_header_magic): New enum. | |
844 | (bfd_mach_o_cpu_subtype): Now an enum. | |
845 | (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros. | |
846 | (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto. | |
847 | (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto. | |
848 | (bfd_mach_o_load_command): Field type_required is now a boolean. | |
849 | Reindent prototypes. | |
850 | (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove. | |
851 | (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype. | |
852 | (bfd_mach_o_bfd_copy_private_section_data): Ditto. | |
853 | (bfd_mach_o_bfd_copy_private_bfd_data): Ditto. | |
854 | (bfd_mach_o_get_symtab_upper_bound): Ditto. | |
855 | (bfd_mach_o_canonicalize_symtab): Ditto. | |
856 | (bfd_mach_o_get_symbol_info): Ditto. | |
857 | (bfd_mach_o_print_symbol): Ditto. | |
858 | (bfd_mach_o_bfd_print_private_bfd_data): Ditto. | |
859 | (bfd_mach_o_make_empty_symbol): Ditto. | |
860 | (bfd_mach_o_write_contents): Ditto. | |
861 | ||
862 | * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p, | |
863 | bfd_mach_o_mkobject): Defines. | |
864 | (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1. | |
865 | Do not check with target vector but with flavour. | |
866 | (struct mach_o_section_name_xlat): New declaration. | |
867 | (dwarf_section_names_xlat): Ditto. | |
868 | (text_section_names_xlat): Ditto. | |
869 | (data_section_names_xlat): Ditto. | |
870 | (struct mach_o_segment_name_xlat): Ditto. | |
871 | (segsec_names_xlat): Ditto. | |
872 | (bfd_mach_o_convert_section_name_to_bfd): New function. | |
873 | (bfd_mach_o_convert_section_name_to_mach_o): Ditto. | |
874 | (bfd_mach_o_bfd_copy_private_symbol_data): Make it public. | |
875 | (bfd_mach_o_bfd_copy_private_section_data): Ditto. | |
876 | (bfd_mach_o_bfd_copy_private_bfd_data): Ditto. | |
877 | Accept any input and output flavour. Do not share private data | |
878 | anymore. | |
879 | (bfd_mach_o_count_symbols): Add a comment. | |
880 | (bfd_mach_o_get_symtab_upper_bound): Make it public. | |
881 | (bfd_mach_o_canonicalize_symtab): Ditto. | |
882 | (bfd_mach_o_get_symbol_info): Ditto. | |
883 | (bfd_mach_o_print_symbol): Ditto. | |
884 | (bfd_mach_o_write_header): Now returns a boolean instead of an int. | |
885 | Use constants instead of hard-coded values. | |
886 | (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded | |
887 | values. | |
888 | (bfd_mach_o_scan_write_section_64): Ditto. | |
889 | (bfd_mach_o_scan_write_segment): Ditto. | |
890 | Do not copy sections anymore. | |
891 | (bfd_mach_o_write_contents): Make it public. | |
892 | Remove dead code. Rewrite typeflag assignment. | |
893 | (bfd_mach_o_build_commands): New function. | |
894 | (bfd_mach_o_set_section_contents): Ditto. | |
895 | (bfd_mach_o_make_empty_symbol): Make it public. | |
896 | (bfd_mach_o_read_header): Make it static. | |
897 | Convert to bfd_boolean. | |
898 | Use constants instead of hard-coded values. | |
899 | (bfd_mach_o_make_bfd_section): Call | |
900 | bfd_mach_o_convert_section_name_to_bfd to create name. | |
901 | (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded | |
902 | values. | |
903 | (bfd_mach_o_scan_read_section_64): Ditto. | |
904 | (bfd_mach_o_scan_read_segment): Do not create a bfd section for | |
905 | a segment anymore. Use constants instead of hard-coded values. | |
906 | (bfd_mach_o_scan_read_command): Fix style. | |
907 | (bfd_mach_o_scan): Use constants instead of hard-coded values. | |
908 | Get rid of BFD_IO_FUNCS. | |
909 | (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject. | |
910 | (bfd_mach_o_header_p): Created from bfd_mach_o_object_p. | |
911 | (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p. | |
912 | (bfd_mach_o_object_p): Removed. | |
913 | (bfd_mach_o_gen_core_p): New function, replaces ... | |
914 | (bfd_mach_o_core_p): ... deleted. | |
915 | (bfd_mach_o_bfd_print_private_bfd_data): Make it public. | |
916 | ||
917 | * mach-o-i386.c: New file. | |
918 | * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin. | |
919 | * configure.in (TDEFINES): Add mach_o_i386_vec. | |
920 | * configure: Regenerated. | |
921 | * targets.c: Add mach_o_i386_vec. | |
922 | ||
923 | * mach-o.c: Update copyright years. | |
924 | (BFD_IO_FUNCS): Remove (was not used). | |
925 | (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap | |
926 | bfd_mach_o_slurp_extended_name_table, | |
927 | bfd_mach_o_construct_extended_name_table, | |
928 | bfd_mach_o_truncate_arname, bfd_mach_o_write_armap, | |
929 | bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt, | |
930 | bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup, | |
931 | bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook, | |
932 | bfd_mach_o_get_section_contents_in_window, | |
933 | bfd_mach_o_bfd_is_local_label_name, | |
934 | bfd_mach_o_bfd_is_target_special_symbol, | |
935 | bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno, | |
936 | bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info, | |
937 | bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols, | |
938 | bfd_mach_o_minisymbol_to_symbol, | |
939 | bfd_mach_o_bfd_get_relocated_section_contents, | |
940 | bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create, | |
941 | bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols, | |
942 | bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link, | |
943 | bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach, | |
944 | bfd_mach_o_bfd_merge_private_bfd_data, | |
945 | bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents, | |
946 | bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections, | |
947 | bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group, | |
948 | bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol, | |
949 | bfd_mach_o_bfd_copy_private_header_data, | |
950 | bfd_mach_o_core_file_matches_executable_p): Move these defines ... | |
951 | * mach-o-target.c: ... here. | |
952 | Update copyright years. | |
953 | ||
a1ef399e AM |
954 | 2009-06-04 Alan Modra <amodra@bigpond.net.au> |
955 | ||
956 | * dep-in.sed: Don't use \n in replacement part of s command. | |
957 | * Makefile.am (DEP1): LC_ALL for uniq. | |
958 | Run "make dep-am". | |
959 | * Makefile.in: Regenerate. | |
960 | ||
2e75bb35 L |
961 | 2009-06-03 H.J. Lu <hongjiu.lu@intel.com> |
962 | ||
963 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of | |
964 | h->plt.refcount > 0 on STT_GNU_IFUNC symbol. | |
965 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. | |
966 | ||
0018b0a3 L |
967 | 2009-06-03 H.J. Lu <hongjiu.lu@intel.com> |
968 | ||
969 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate | |
970 | GOT entry for STT_GNU_IFUNC symbol with pointer equality. | |
971 | (elf_i386_relocate_section): Adjust R_386_GOT32 relocation | |
972 | against STT_GNU_IFUNC symbols for static executables. | |
973 | (elf_i386_finish_dynamic_symbol): Load GOT entry with | |
974 | PLT entry for STT_GNU_IFUNC symbol with pointer equality. | |
975 | ||
976 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate | |
977 | GOT entry for STT_GNU_IFUNC symbol with pointer equality. | |
978 | (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with | |
979 | PLT entry for STT_GNU_IFUNC symbol with pointer equality. | |
980 | ||
94313f36 RS |
981 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
982 | ||
983 | * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined | |
984 | symbols to be left unimported when linking statically. | |
985 | * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage | |
986 | code when linking statically. | |
987 | ||
7afd84dc L |
988 | 2009-06-02 H.J. Lu <hongjiu.lu@intel.com> |
989 | ||
990 | * elf32-i386.c (elf_i386_check_relocs): Increment | |
991 | got.refcount for R_386_GOT32/R_386_GOTOFF relocations | |
992 | against STT_GNU_IFUNC symbol. | |
993 | (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if | |
994 | local STT_GNU_IFUNC definition is used. | |
995 | (elf_i386_relocate_section): Handle got.offset != -1 for | |
996 | R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC | |
997 | symbol. | |
998 | ||
999 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment | |
1000 | got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 | |
1001 | relocations against STT_GNU_IFUNC symbol. | |
1002 | (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if | |
1003 | local STT_GNU_IFUNC definition is used. | |
1004 | (elf64_x86_64_relocate_section): Handle got.offset != -1 | |
1005 | for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against | |
1006 | STT_GNU_IFUNC symbol. | |
1007 | ||
cbe950e9 L |
1008 | 2009-06-01 H.J. Lu <hongjiu.lu@intel.com> |
1009 | ||
1010 | PR ld/10205 | |
1011 | * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE. | |
1012 | (elf_i386_reloc_type_lookup): Likewise. | |
1013 | (R_386_tls): Removed. | |
1014 | (R_386_irelative): New. | |
1015 | (R_386_vt_offset): Updated. | |
1016 | (elf_i386_rtype_to_howto): Likewise. | |
1017 | (elf_i386_link_hash_table): Add igotplt, iplt and irelplt. | |
1018 | (elf_i386_link_hash_table_create): Initialize igotplt, | |
1019 | iplt and irelplt. | |
1020 | (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first. | |
1021 | (elf_i386_adjust_dynamic_symbol): Likewise. | |
1022 | (elf_i386_allocate_dynrelocs): Likewise. | |
1023 | (elf_i386_relocate_section): Likewise. | |
1024 | (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt | |
1025 | sections. | |
1026 | (elf_i386_finish_dynamic_symbol): When building a static | |
1027 | executable, use .iplt, .igot.plt and .rel.iplt sections for | |
1028 | STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for | |
1029 | locally defined STT_GNU_IFUNC symbol. | |
1030 | ||
1031 | * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE. | |
1032 | (x86_64_reloc_map): Likewise. | |
1033 | (R_X86_64_standard): Updated. | |
1034 | (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt. | |
1035 | (elf64_x86_64_link_hash_table_create): Initialize igotplt, | |
1036 | iplt and irelplt. | |
1037 | (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first. | |
1038 | (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
1039 | (elf64_x86_64_allocate_dynrelocs): Likewise. | |
1040 | (elf64_x86_64_relocate_section): Likewise. | |
1041 | (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt | |
1042 | sections. | |
1043 | (elf64_x86_64_finish_dynamic_symbol): When building a static | |
1044 | executable, use .iplt, .igot.plt and .rela.iplt sections for | |
1045 | STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation | |
1046 | for locally defined STT_GNU_IFUNC symbol. | |
1047 | ||
1048 | * reloc.c (BFD_RELOC_386_IRELATIVE): New. | |
1049 | (BFD_RELOC_X86_64_IRELATIVE): Likewise. | |
1050 | ||
1051 | * bfd-in2.h: Regenerated. | |
1052 | * libbfd.h: Likewise. | |
1053 | ||
3aa14d16 L |
1054 | 2009-06-01 H.J. Lu <hongjiu.lu@intel.com> |
1055 | ||
1056 | * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs. | |
1057 | (_bfd_elf_make_ifunc_reloc_section): Removed. | |
1058 | (_bfd_elf_is_ifunc_symbol): Likewise. | |
1059 | (_bfd_elf_create_static_ifunc_sections): New. | |
1060 | ||
1061 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC | |
1062 | symbol check to ... | |
1063 | (elf_link_add_object_symbols): Here. | |
1064 | (_bfd_elf_link_hash_hide_symbol): Don't clean plt on | |
1065 | STT_GNU_IFUNC symbol. | |
1066 | (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol | |
1067 | if a STT_GNU_IFUNC symbol is referenced in a non-shared object. | |
1068 | (IFUNC_INFIX): Removed. | |
1069 | (get_ifunc_reloc_section_name): Likewise. | |
1070 | (_bfd_elf_make_ifunc_reloc_section): Likewise. | |
1071 | (_bfd_elf_is_ifunc_symbol): Likewise. | |
1072 | (_bfd_elf_create_static_ifunc_sections): New. | |
1073 | ||
eb4ff4d6 L |
1074 | 2009-05-29 H.J. Lu <hongjiu.lu@intel.com> |
1075 | ||
1076 | * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix. | |
1077 | (create_got_section): Likewise. | |
1078 | (allocate_dynrelocs): Likewise. | |
1079 | (readonly_dynrelocs): Likewise. | |
1080 | (set_tls_module_base): Likewise. | |
1081 | (dtpoff_base): Likewise. | |
1082 | (tpoff): Likewise. | |
1083 | (elf_i386_link_hash_table_create): Updated. | |
1084 | (elf_i386_create_dynamic_sections): Likewise. | |
1085 | (elf_i386_check_relocs): Likewise. | |
1086 | (elf_i386_size_dynamic_sections): Likewise. | |
1087 | (elf_i386_relocate_section): Likewise. | |
1088 | ||
1089 | * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix. | |
1090 | (create_got_section): Likewise. | |
1091 | (allocate_dynrelocs): Likewise. | |
1092 | (readonly_dynrelocs): Likewise. | |
1093 | (set_tls_module_base): Likewise. | |
1094 | (dtpoff_base): Likewise. | |
1095 | (tpoff): Likewise. | |
1096 | (elf64_x86_64_link_hash_table_create): Updated. | |
1097 | (elf64_x86_64_create_dynamic_sections): Likewise. | |
1098 | (elf64_x86_64_check_relocs): Likewise. | |
1099 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
1100 | (elf64_x86_64_relocate_section): Likewise. | |
1101 | ||
fc579192 NC |
1102 | 2009-05-28 Nick Clifton <nickc@redhat.com> |
1103 | ||
1104 | * targets.c (_bfd_target_vector): Only include plugin target in | |
1105 | all-targets build if BFD_SUPPORTS_PLUGINS is non-zero. | |
1106 | ||
5ebe2858 UW |
1107 | 2009-05-28 Ulrich Weigand <uweigand@de.ibm.com> |
1108 | ||
1109 | * elf32-spu.c (struct call_info): New member broken_cycle. | |
1110 | (remove_cycle): Instead of physically removing call_info structures | |
1111 | to break call graph cycles, mark them using the broken_cycle flag. | |
1112 | (mark_overlay_section): Respect broken_cycle flag. | |
1113 | (unmark_overlay_section): Likewise. | |
1114 | (collect_lib_sections): Likewise. | |
1115 | (collect_overlays): Likewise. | |
1116 | (sum_stack): Likewise. | |
1117 | ||
34ad4cb0 UW |
1118 | 2009-05-28 Ulrich Weigand <uweigand@de.ibm.com> |
1119 | ||
1120 | * elf32-spu.c (insert_callee): Accumulate incoming callee->count. | |
1121 | (mark_functions_via_relocs): Initialize callee->count to 1. | |
1122 | (pasted_function): Likewise. | |
1123 | (spu_elf_auto_overlay): Honor call counts when determining number | |
1124 | of stubs required in software i-cache mode. | |
1125 | ||
fc579192 NC |
1126 | 2009-05-27 Rafael Avila de Espindola <espindola@google.com> |
1127 | ||
1128 | * plugin.c (program_name): Remove. | |
1129 | (plugin_program_name): New. | |
1130 | (bfd_plugin_set_program_name): New. | |
1131 | (try_load_plugin): Use plugin_program_name. | |
1132 | * plugin.h (bfd_plugin_set_program_name): New. | |
1133 | ||
1134 | 2009-05-27 Rafael Avila de Espindola <espindola@google.com> | |
5691d22d NC |
1135 | |
1136 | * aclocal.m4: Include ../config/plugins.m4. | |
1137 | * configure.in: Use AC_PLUGINS. | |
1138 | * configure: Regenerate. | |
1139 | * Makefile.in: Regenerate. | |
1140 | * doc/Makefile.in: Regenerate. | |
1141 | ||
c8a1f254 NS |
1142 | 2009-05-27 Nathan Sidwell <nathan@codesourcery.com> |
1143 | ||
1144 | * elf32-ppc.c (ppc_elf_relax_section): Work with a partial | |
1145 | link. | |
1146 | * bout.c (b_out_bfd_relax_section): Reject relocatable links. | |
1147 | * elf32-m10300.c (mn10300_elf_relax_section): Likewise. | |
1148 | * elf32-avr.c (elf32_avr_relax_section): Likewise. | |
1149 | * elf32-frv.c (elf32_avr_relax_section): Likewise. | |
1150 | * elf32-xtensa.c (elf_xtensa_relax_section): Likewise. | |
1151 | * elf64-mmix.c (mmix_elf_relax_section): Likewise. | |
1152 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
1153 | * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise. | |
1154 | * reloc.c (bfd_generic_relax_section): Likewise. | |
1155 | * reloc16.c (bfd_coff_reloc16_relax_section): Likewise. | |
1156 | * vms.c (vms_bfd_relax_section): Likewise. | |
1157 | ||
68d7e96a L |
1158 | 2009-05-26 H.J. Lu <hongjiu.lu@intel.com> |
1159 | ||
1160 | * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New. | |
1161 | ||
1162 | * elf32-i386.c (is_indirect_symbol): Renamed to ... | |
1163 | * elflink.c (_bfd_elf_is_ifunc_symbol): This. | |
1164 | ||
1165 | * elf32-i386.c (allocate_dynrelocs): Updated. | |
1166 | (elf_i386_relocate_section): Likewise. | |
1167 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
1168 | (elf64_x86_64_relocate_section): Likewise. | |
1169 | ||
1170 | * elf64-x86-64.c (is_indirect_symbol): Removed. | |
1171 | ||
f12e7348 NC |
1172 | 2009-05-26 Nick Clifton <nickc@redhat.com> |
1173 | ||
1174 | * po/id.po: Updated Indonesian translation. | |
1175 | ||
ce3c775b NC |
1176 | 2009-05-26 Rafael Avila de Espindola <espindola@google.com> |
1177 | ||
1178 | * Makefile.am: Run "make dep-am". | |
1179 | (AM_CPPFLAGS): New. | |
1180 | (LIBDL): New. | |
1181 | (ALL_MACHINES): Add cpu-plugin.lo. | |
1182 | (ALL_MACHINES_CFILES): Add cpu-plugin.c. | |
1183 | (BFD32_BACKENDS): Add plugin.lo. | |
1184 | (BFD32_BACKENDS_CFILES): Add plugin.c. | |
1185 | (libbfd_la_LIBADD): Add LIBDL | |
1186 | * archures.c (bfd_architecture): Add bfd_arch_plugin. | |
1187 | (bfd_plugin_arch): Declare. | |
1188 | * bfd-in.h (BFD_SUPPORTS_PLUGINS): New. | |
1189 | * bfd.c (bfd): Add plugin_data. | |
1190 | * config.bfd: Handle the plugin target. | |
1191 | * configure.in: Check for --enable-plugins. | |
1192 | (LT_INIT): Use the dlopen option. | |
1193 | * cpu-plugin.c: New. | |
1194 | * plugin.c: New. | |
1195 | * plugin.h: New. | |
1196 | * targets.c (plugin_vec): Declare. | |
1197 | (_bfd_target_vector): Add plugin_vec. | |
1198 | * Makefile.in: Regenerate. | |
1199 | * bfd-in2.h: Regenerate. | |
1200 | * configure: Regenerate. | |
1201 | ||
9e097a72 AM |
1202 | 2009-05-26 Alan Modra <amodra@bigpond.net.au> |
1203 | ||
1204 | * dep-in.sed: Don't modify .o to .lo here. Output one filename | |
1205 | per line with all lines having continuation backslash. Prefix | |
1206 | first line with "A", following lines with "B". | |
1207 | * Makefile.am (DEP): Don't use dep.sed here. | |
1208 | (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use | |
1209 | dep.sed here on dependencies, sort and uniq. | |
1210 | * Makefile.in: Regenerate. | |
1211 | ||
d5acff2f TG |
1212 | 2009-05-25 Tristan Gingold <gingold@adacore.com> |
1213 | ||
1214 | * makefile.vms: Add verilog.obj to object list OBJS. | |
1215 | ||
5c93f09b AM |
1216 | 2009-05-24 Alan Modra <amodra@bigpond.net.au> |
1217 | ||
1218 | * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory | |
1219 | for BFD_IN_MEMORY is cleared. | |
1220 | (bfd_bwrite): Zero excess memory allocated. | |
1221 | ||
48229727 JB |
1222 | 2009-05-22 Julian Brown <julian@codesourcery.com> |
1223 | ||
1224 | * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New | |
1225 | macros. | |
1226 | (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b) | |
1227 | (elf32_arm_stub_a8_veneer_blx): New stub sequences. | |
1228 | (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond, | |
1229 | arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx. | |
1230 | (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields. | |
1231 | (a8_erratum_fix, a8_erratum_reloc): New structs. | |
1232 | (elf32_arm_link_hash_table): Add a8_erratum_fixes, | |
1233 | num_a8_erratum_fixes, fix_cortex_a8 fields. | |
1234 | (elf32_arm_link_hash_table_create): Zero fix_cortex_a8. | |
1235 | (elf32_arm_add_stub): Split into two parts, creating... | |
1236 | (elf32_arm_create_or_find_stub_sec): New function. | |
1237 | (elf32_arm_final_link_relocate): Add forward declaration. | |
1238 | (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2 | |
1239 | relocations, multiple relocations per stub. | |
1240 | (find_stub_size_and_template): New (using parts of arm_size_one_stub). | |
1241 | (arm_size_one_stub): Use find_stub_size_and_template. | |
1242 | (a8_reloc_compare): New. | |
1243 | (find_thumb_glue): Add forward declaration. | |
1244 | (cortex_a8_erratum_scan): New. | |
1245 | (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support. | |
1246 | (bfd_elf32_arm_set_cortex_a8_fix): New. | |
1247 | (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument. | |
1248 | (arm_map_one_stub): Add THUMB32_TYPE support. | |
1249 | (a8_branch_to_stub_data): New. | |
1250 | (make_branch_to_a8_stub): New. | |
1251 | (elf32_arm_write_section): Add Cortex-A8 erratum workaround support. | |
1252 | * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New. | |
1253 | (bfd_elf32_arm_set_target_relocs): Add argument for controlling | |
1254 | Cortex-A8 erratum workaround. | |
1255 | * bfd-in2.h: Regenerate. | |
1256 | ||
2b3decb5 AM |
1257 | 2009-05-22 Alan Modra <amodra@bigpond.net.au> |
1258 | ||
1259 | * Makefile.am: Run "make dep-am". | |
1260 | * Makefile.in: Regenerate. | |
1261 | * po/SRC-POTFILES.in: Regenerate. | |
1262 | ||
930e005c AM |
1263 | 2009-05-21 Alan Modra <amodra@bigpond.net.au> |
1264 | ||
1265 | * elflink.c (elf_link_input_bfd): Correct *pindex change in last | |
1266 | commit. | |
1267 | ||
6e0b88f1 AM |
1268 | 2009-05-21 Alan Modra <amodra@bigpond.net.au> |
1269 | ||
1270 | * elf-bfd.h (struct elf_backend_data | |
1271 | <elf_backend_link_output_symbol_hook>): Return an int. | |
1272 | * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop | |
1273 | symbols on deleted .opd entries. | |
1274 | * elflink.c (elf_link_output_sym): Return without outputting sym | |
1275 | if output_symbol_hook returns 2. | |
1276 | (elf_link_output_extsym): Don't assign h->indx when symbol discarded. | |
1277 | Abort if we must not discard sym. | |
1278 | (elf_link_input_bfd): Similarly, don't set finfo->indices for | |
1279 | local syms. | |
1280 | (bfd_elf_final_link): Adjust elf_link_output_sym calls. | |
1281 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for | |
1282 | elf_backend_link_output_symbol_hook return type change. | |
1283 | * elf32-arm.c (output_arch_syminfo): Likewise. | |
1284 | (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise. | |
1285 | (elf32_arm_output_arch_local_syms): Likewise. | |
1286 | * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise. | |
1287 | * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise. | |
1288 | (bfd_score_elf_link_output_symbol_hook): Likewise. | |
1289 | * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise. | |
1290 | * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise. | |
1291 | * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise. | |
1292 | * elf32-spu.c (spu_elf_output_symbol_hook): Likewise. | |
1293 | * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise. | |
1294 | * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise. | |
1295 | * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise. | |
1296 | * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise. | |
1297 | * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise. | |
1298 | * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise. | |
1299 | * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise. | |
1300 | ||
5ef11c02 AM |
1301 | 2009-05-21 Alan Modra <amodra@bigpond.net.au> |
1302 | ||
1303 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on | |
1304 | out of range .opd symbols. | |
1305 | ||
ebf12fbe DK |
1306 | 2009-05-21 Dave Korn <dave.korn.cygwin@gmail.com> |
1307 | ||
1308 | * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not | |
1309 | fprintf_vma directly. | |
1310 | * peXXigen.c (pe_print_edata): Likewise. | |
1311 | (pe_print_pdata): Likewise. | |
1312 | (_bfd_XX_print_ce_compressed_pdata): Likewise. | |
1313 | (_bfd_XX_print_private_bfd_data_common): Likewise. | |
1314 | ||
c1711530 DK |
1315 | 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com> |
1316 | ||
1317 | * cofflink.c (process_embedded_commands): Ignore "-aligncomm". | |
1318 | ||
22a8f80e | 1319 | 2009-05-15 Andrew Stubbs <ams@codesourcery.com> |
164e7efc | 1320 | Paul Brook <paul@codesourcery.com> |
22a8f80e PB |
1321 | |
1322 | * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to | |
1323 | fix discarded sections. | |
1324 | ||
335bd8f2 UW |
1325 | 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1326 | ||
1327 | * elf32-spu.c (mark_overlay_section): Move .init and .fini | |
1328 | sections into the software icache. | |
1329 | ||
cdc83fba UW |
1330 | 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1331 | ||
1332 | * elf32-spu.c (build_stub): Always build "compact" sofware | |
1333 | i-cache stubs. | |
1334 | ||
97fc8d84 UW |
1335 | 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1336 | ||
1337 | * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2. | |
1338 | (spu_elf_setup): Initialize it. | |
1339 | (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache. | |
1340 | Update to new-sytle cache manager data structures. | |
1341 | (spu_elf_build_stubs): Generate new-style cache manager data | |
1342 | structures and symbols. | |
1343 | (spu_elf_auto_overlay): Update size computation. | |
1344 | ||
452de53c UW |
1345 | 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1346 | ||
1347 | * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY | |
1348 | segments first amongst the program headers. | |
1349 | ||
d342a8b1 UW |
1350 | 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1351 | ||
1352 | * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index | |
1353 | into addresses for relocation types that look at high bits. Remove | |
1354 | special handling of relocation overflow warnings. | |
1355 | ||
cc210763 UW |
1356 | 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1357 | ||
1358 | * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the | |
1359 | control flow graph between fragments of a function. | |
1360 | ||
c1ea05bb UW |
1361 | 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
1362 | ||
1363 | * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode, | |
1364 | generate only a 16-byte .toe section. | |
1365 | (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise. | |
1366 | ||
bbb0fc04 AM |
1367 | 2009-05-14 Alan Modra <amodra@bigpond.net.au> |
1368 | ||
1369 | * elf32-spu.c (spu_elf_size_stubs): Split out section placement to.. | |
1370 | (spu_elf_place_overlay_data): ..here. New function. | |
1371 | * elf32-spu.h (spu_elf_place_overlay_data): Declare. | |
1372 | ||
6e6718a3 AJ |
1373 | 2009-05-13 Andrew Jenner <andrew@codesourcery.com> |
1374 | ||
1375 | * elf32-arm.c: Move sysdep.h to start of file. | |
1376 | ||
77ae44b0 AM |
1377 | 2009-05-11 Ulrich Weigand <uweigand@de.ibm.com> |
1378 | ||
1379 | * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as | |
1380 | start of overlays. | |
1381 | (spu_elf_build_stubs): Don't define __icache_tagbase. Define | |
1382 | __icache_tag_array and __icache_tag_array_size. | |
1383 | ||
51408ec2 AM |
1384 | 2009-05-11 Masaki Muranaka <monaka@monami-software.com> |
1385 | ||
1386 | * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary | |
1387 | ATTRIBUTE_UNUSED. | |
1388 | (bfinfdpic_link_omit_section_dynsym): Likewise. | |
1389 | (elf32_bfinfdpic_finish_dynamic_sections): Likewise. | |
1390 | ||
2468f9c9 PB |
1391 | 2009-05-05 Paul Brook <paul@codesourcery.com> |
1392 | ||
1393 | * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype. | |
1394 | * bfd-in2.h: Regenerate. | |
1395 | * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define. | |
1396 | (_arm_elf_section_data): Add text and exidx fields. | |
1397 | (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size, | |
1398 | insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31, | |
1399 | copy_exidx_entry): New functions. | |
1400 | (elf32_arm_write_section): Fixup .ARM.exidx contents. | |
1401 | ||
738a79f6 CL |
1402 | 2009-05-05 Christophe lyon <christophe.lyon@st.com> |
1403 | ||
1404 | * elf32-arm.c (DEF_STUBS): New helper define. | |
1405 | (DEF_STUB): Likewise. | |
1406 | (stub_def): New type. | |
1407 | (stub_definitions): New array, containing stub template pointers | |
1408 | and sizes. | |
1409 | (arm_size_one_stub): Make use of stub_definitions. | |
1410 | ||
09e2aba4 DK |
1411 | 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com> |
1412 | ||
1413 | * elflink.c (find_version_for_sym): Remove from here, ... | |
1414 | * linker.c (bfd_find_version_for_sym): ... rename, replace | |
1415 | here, make public and update all callers. | |
1416 | * bfd-in2.h: Regenerate. | |
1417 | ||
d8045f23 NC |
1418 | 2009-04-30 Nick Clifton <nickc@redhat.com> |
1419 | ||
1420 | * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs | |
1421 | section pointer. | |
1422 | (struct elf_obj_data): Add has_ifunc_symbols boolean. | |
1423 | * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags | |
1424 | into a STT_GNU_IFUNC symbol type. | |
1425 | (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function | |
1426 | type. | |
1427 | (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if | |
1428 | the binary contains ifunc symbols. | |
1429 | * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC | |
1430 | symbol type into a BSF_GNU_INDIRECT_FUNCTION flag. | |
1431 | * elf32-i386.c (is_indirect_function): New function. | |
1432 | (elf_i386_check_relocs): Create an ifunc output section. | |
1433 | (allocate_dynrelocs): Create dynamic relocs in the ifunc output | |
1434 | section if necessary. | |
1435 | (elf_i386_relocate_section): Emit a reloc against an ifunc symbol | |
1436 | if necessary. | |
1437 | (elf_i386_add_symbol_hook): New function. Set the | |
1438 | has_ifunc_symbols field of the elf_obj_data structure if an ifunc | |
1439 | symbol is encountered. | |
1440 | (elf_backend_post_process_headers): Define. | |
1441 | (elf_backend_add_symbol_hook): Define. | |
1442 | (elf_i386_post_process_headers): Rename to | |
1443 | elf_i388_fbsd_post_process_headers. | |
1444 | * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro. | |
1445 | (is_indirect_function): New function. | |
1446 | (elf64_x86_64_check_relocs): Create an ifunc output section. | |
1447 | (allocate_dynrelocs): Create dynamic relocs in the ifunc output | |
1448 | section if necessary. | |
1449 | (elf64_x86_64_relocate_section): Emit a reloc against an ifunc | |
1450 | symbol if necessary. | |
1451 | (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the | |
1452 | elf_obj_data structure if an ifunc symbol is encountered. | |
1453 | (elf_backend_post_process_headers): Define. | |
1454 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT | |
1455 | if we have ifunc symbols to handle. | |
1456 | (get_ifunc_reloc_section_name): New function. Computes the name | |
1457 | for an ifunc section. | |
1458 | (_bfd_elf_make_ifunc_reloc_section): New function. Creates a | |
1459 | section to hold ifunc relocs. | |
1460 | * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define. | |
1461 | (bfd_print_symbol_vandf): Handle ifunc symbols. | |
1462 | (bfd_decode_symclass): Likewise. | |
1463 | * bfd-in2.h: Regenerate. | |
1464 | ||
96c23d59 JM |
1465 | 2009-04-30 Joseph Myers <joseph@codesourcery.com> |
1466 | ||
1467 | * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute | |
1468 | MOVW and MOVT relocations in a shared library link. | |
1469 | ||
c067354b NC |
1470 | 2009-04-27 Anthony Green <green@moxielogic.com> |
1471 | ||
1472 | * verilog.c: New file. | |
1473 | * Makefile.am (BFD32_LIBS): Add verilog.c. | |
1474 | (BFD32_LIBS_CFILES): Add verilog.c. | |
1475 | (verilog.lo): New build rule. | |
1476 | * Makefile.in: Rebuilt. | |
1477 | * targets.c: Add verilog support. | |
1478 | * bfd.c (tdata union): Add Verilog private data field. | |
1479 | * bfd-in2.h: Regenerate. | |
1480 | ||
325c681d L |
1481 | 2009-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1482 | ||
1483 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't | |
1484 | copy pe_opthdr. | |
1485 | ||
ba775898 DK |
1486 | 2009-04-23 Matthias Klose <doko@ubuntu.com> |
1487 | ||
2e28a5fc | 1488 | * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'. |
ba775898 | 1489 | |
155d87d7 CL |
1490 | 2009-04-22 Christophe Lyon <christophe.lyon@st.com> |
1491 | ||
1492 | PR9743 | |
1493 | * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24, | |
1494 | R_ARM_JUMP24 and R_ARM_PLT32 relocations. | |
1495 | (elf32_arm_size_stubs): Likewise. | |
1496 | (record_thumb_to_arm_glue): Deleted unused function. | |
1497 | (bfd_elf32_arm_process_before_allocation): No longer handle | |
1498 | R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here. | |
1499 | (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24, | |
1500 | R_ARM_JUMP24 and R_ARM_PLT32 relocations. | |
1501 | ||
3e6b1042 DJ |
1502 | 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com> |
1503 | ||
1504 | * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED. | |
1505 | (elf32_arm_write_section): Declare early. | |
1506 | (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD. | |
1507 | (arm_allocate_glue_section_space): Exclude empty sections. | |
1508 | (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED. | |
1509 | (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub | |
1510 | BFD. | |
1511 | (elf32_arm_output_glue_section, elf32_arm_final_link): New. | |
1512 | (elf32_arm_merge_eabi_attributes): Skip the stub BFD. | |
1513 | (elf32_arm_size_dynamic_sections): Allocate interworking | |
1514 | sections here. | |
1515 | (bfd_elf32_bfd_final_link): Define. | |
1516 | ||
4f360784 L |
1517 | 2009-04-21 H.J. Lu <hongjiu.lu@intel.com> |
1518 | ||
1519 | * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K. | |
154a1ee5 | 1520 | |
4f360784 L |
1521 | * coffcode.h (coff_compute_section_file_positions): Clear |
1522 | D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE. | |
1523 | ||
1524 | * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and | |
1525 | force_minimum_alignment. | |
1526 | ||
1527 | * libcoff.h: Regenerated. | |
1528 | ||
1529 | * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed. | |
1530 | (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise. | |
1531 | ||
1532 | * peicode.h (pe_mkobject): Don't set force_minimum_alignment | |
1533 | nor target_subsystem. | |
1534 | ||
1535 | * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check | |
1536 | force_minimum_alignment nor target_subsystem. | |
1537 | ||
e48570bb DK |
1538 | 2009-04-21 Kai Tietz <kai.tietz@onevision.com> |
1539 | ||
1540 | * coff-x86_64.c (PEI_HEADERS): Protect includes. | |
1541 | (bfd_pe_print_pdata): Remove #ifdef PE variation. | |
1542 | * pei-x86_64.c (PEI_HEADERS): Define to prevent double | |
1543 | include in coff-x86_64.c of headers. | |
1544 | (PDATA_ROW_SIZE): New define. | |
1545 | (pex_regs[]): New static array. | |
1546 | (pex64_get_runtime_function): New static function. | |
1547 | (pex64_get_unwind_info): Likewise. | |
1548 | (pex64_get_scope_entry): Likewise. | |
1549 | (pex64_xdata_print_uwd_codes): Likewise. | |
1550 | (pex64_get_section_by_rva): Likewise. | |
1551 | (pex64_dump_xdata): Likewise. | |
1552 | (pex64_bfd_print_pdata): Likewise. | |
1553 | (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata. | |
1554 | * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation. | |
1555 | * libpei.h (_bfd_pex64_print_pdata): Removed declaration. | |
1556 | ||
383c383f | 1557 | 2009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com> |
4f360784 L |
1558 | Alan Modra <amodra@bigpond.net.au> |
1559 | Dave Korn <dave.korn.cygwin@gmail.com> | |
383c383f AM |
1560 | |
1561 | * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t | |
1562 | long names and non-NUL-terminated strings. | |
1563 | ||
b6b450f1 L |
1564 | 2009-04-17 H.J. Lu <hongjiu.lu@intel.com> |
1565 | ||
1566 | * bfd-in2.h: Regenerated. | |
1567 | ||
d9118602 L |
1568 | 2009-04-17 H.J. Lu <hongjiu.lu@intel.com> |
1569 | ||
1570 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace | |
1571 | IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER. | |
1572 | ||
92dd4511 L |
1573 | 2009-04-17 H.J. Lu <hongjiu.lu@intel.com> |
1574 | ||
1575 | PR binutils/10074 | |
1576 | * coffcode.h (bfd_pei_p): New. | |
1577 | ||
1578 | * config.bfd: Remove bfd_efi_bsdrv_ia32_vec, | |
1579 | bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec, | |
1580 | bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and | |
1581 | bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec, | |
1582 | bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with | |
1583 | i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively. | |
1584 | ||
1585 | * configure.in: Remove bfd_efi_bsdrv_ia32_vec, | |
1586 | bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec, | |
1587 | bfd_efi_rtdrv_x86_64_vec, | |
1588 | bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace | |
1589 | bfd_efi_ia64_vec with bfd_pei_ia64_vec. | |
1590 | * targets.c: Likewise. | |
1591 | ||
1592 | * configure: Regenerated. | |
1593 | * libcoff.h: Likewise. | |
1594 | * Makefile.in: Likewise. | |
1595 | ||
1596 | * efi-app-ia32.c: Removed. | |
1597 | * efi-app-x86_64.c: Likewise. | |
1598 | * efi-bsdrv-ia32.c: Likewise. | |
1599 | * efi-bsdrv-ia64.c: Likewise. | |
1600 | * efi-bsdrv-x86_64.c: Likewise. | |
1601 | * efi-rtdrv-ia32.c: Likewise. | |
1602 | * efi-rtdrv-ia64.c: Likewise. | |
1603 | * efi-rtdrv-x86_64.c: Likewise. | |
1604 | * efi-rtdrv-ia32.c: Likewise. | |
1605 | ||
1606 | * efi-app-ia64.c: Moved to ... | |
1607 | * pei-ia64.c: This. | |
1608 | (TARGET_SYM): Set to bfd_pei_ia64_vec. | |
1609 | (TARGET_NAME): Set to pei-ia64. | |
1610 | ||
1611 | * libpei.h (bfd_target_pei_p): Removed. | |
1612 | (bfd_target_pei_arch): Likewise. | |
1613 | (bfd_target_efi_app_p): Likewise. | |
1614 | (bfd_target_efi_app_arch): Likewise. | |
1615 | (bfd_target_efi_bsdrv_p): Likewise. | |
1616 | (bfd_target_efi_bsdrv_arch): Likewise. | |
1617 | (bfd_target_efi_rtdrv_p): Likewise. | |
1618 | (bfd_target_efi_rtdrv_arch): Likewise. | |
1619 | (bfd_pe_executable_p): Likewise. | |
1620 | ||
1621 | * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo, | |
1622 | efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo. | |
1623 | (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c | |
1624 | and efi-rtdrv-ia32.c. | |
1625 | (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo, | |
1626 | efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and | |
1627 | efi-rtdrv-x86_64.lo. Add pei-ia64.lo. | |
1628 | (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c, | |
1629 | efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and | |
1630 | efi-rtdrv-x86_64.c. Add pei-ia64.c. | |
1631 | (efi-app-ia64.lo): Removed. | |
1632 | (efi-bsdrv-ia32.lo): Likewise. | |
1633 | (efi-rtdrv-ia32.lo): Likewise. | |
1634 | (efi-app-ia64.lo): Likewise. | |
1635 | (efi-bsdrv-ia64.lo): Likewise. | |
1636 | (efi-rtdrv-ia64.lo): Likewise. | |
1637 | (efi-app-x86_64.lo): Likewise. | |
1638 | (efi-bsdrv-x86_64.lo): Likewise. | |
1639 | (efi-rtdrv-x86_64.lo): Likewise. | |
1640 | (pei-ia64.lo): New. | |
1641 | ||
1642 | * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p | |
1643 | with bfd_pei_p. | |
1644 | (arch_type): Removed. | |
1645 | (pe_arch): Likewise. | |
1646 | (pe_bfd_object_p): Just return coff_object_p. | |
1647 | ||
1648 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace | |
1649 | bfd_pe_executable_p with bfd_pei_p. | |
1650 | ||
69c5861e CL |
1651 | 2009-04-17 Christophe Lyon <christophe.lyon@st.com> |
1652 | ||
1653 | * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through | |
1654 | PLT entries to an undefined symbol when generating a shared | |
1655 | library. | |
1656 | ||
e9cd0660 NC |
1657 | 2009-04-17 Nick Clifton <nickc@redhat.com> |
1658 | ||
1659 | PR 9909 | |
1660 | * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols. | |
1661 | ||
3023e3f6 RS |
1662 | 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com> |
1663 | ||
1664 | * aout-adobe.c (aout_32_bfd_define_common_symbol): Define. | |
1665 | * aout-target.h (MY_bfd_define_common_symbol): Likewise. | |
1666 | * aout-tic30.c (MY_bfd_define_common_symbol): Likewise. | |
1667 | * binary.c (binary_bfd_define_common_symbol): Likewise. | |
1668 | * bout.c (b_out_bfd_define_common_symbol): Likewise. | |
1669 | * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise. | |
1670 | * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise. | |
1671 | * coffcode.h (coff_bfd_define_common_symbol): Likewise. | |
1672 | * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise. | |
1673 | * i386msdos.c (msdos_bfd_define_common_symbol): Likewise. | |
1674 | * i386os9k.c (os9k_bfd_define_common_symbol): Likewise. | |
1675 | * ieee.c (ieee_bfd_define_common_symbol): Likewise. | |
1676 | * ihex.c (ihex_bfd_define_common_symbol): Likewise. | |
1677 | * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
1678 | * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise. | |
1679 | * mmo.c (mmo_bfd_define_common_symbol): Likewise. | |
1680 | * nlm-target.h (nlm_bfd_define_common_symbol): Likewise. | |
1681 | * oasys.c (oasys_bfd_define_common_symbol): Likewise. | |
1682 | * pef.c (bfd_pef_bfd_define_common_symbol): Likewise. | |
1683 | * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise. | |
1684 | * som.c (som_bfd_define_common_symbol): Likewise. | |
1685 | * srec.c (srec_bfd_define_common_symbol): Likewise. | |
1686 | * tekhex.c (tekhex_bfd_define_common_symbol): Likewise. | |
1687 | * versados.c (versados_bfd_define_common_symbol): Likewise. | |
1688 | * vms.c (vms_bfd_define_common_symbol): Likewise. | |
1689 | * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise. | |
1690 | * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise. | |
1691 | * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol. | |
1692 | (pmac_xcoff_vec): Likewise. | |
1693 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
1694 | (aix5coff64_vec): Likewise. | |
1695 | * linker.c (bfd_generic_define_common_symbol): New function. | |
1696 | * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol. | |
1697 | (_bfd_define_common_symbol): New field. | |
1698 | * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare. | |
1699 | * xcofflink.c (_bfd_xcoff_define_common_symbol): New function. | |
1700 | (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common | |
1701 | symbols here. | |
1702 | * bfd-in2.h: Regenerate. | |
1703 | * libbfd.h: Likewise. | |
1704 | * libcoff.h: Likewise. | |
1705 | ||
20135e4c NC |
1706 | 2009-04-15 Anthony Green <green@moxielogic.com> |
1707 | ||
1708 | * targets.c: Add moxie support. | |
1709 | * Makefile.am: Ditto. | |
1710 | * Makefile.in: Rebuilt. | |
1711 | * cpu-moxie.c, elf32-moxie.c: New files. | |
1712 | * archures.c: Add moxie support. | |
1713 | * configure.in: Add moxie support. | |
1714 | * configure: Rebuilt. | |
1715 | * config.bfd, archures.c: Add moxie support. | |
1716 | * bfd-in2.h: Rebuilt. | |
1717 | ||
82b5c97a CL |
1718 | 2009-04-15 Christophe Lyon <christophe.lyon@st.com> |
1719 | ||
1720 | * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM | |
1721 | branch to an undef weak symbol into a jump to next instruction if | |
1722 | a PLT entry will be created. | |
1723 | ||
0408dee6 DK |
1724 | 2009-04-14 Dave Korn <dave.korn.cygwin@gmail.com> |
1725 | ||
1726 | * coffgen.c (make_a_section_from_file): Set the backend long | |
1727 | section names enable if long section names found on input. | |
1728 | * coffcode.h: Extend long section names documentation to match. | |
1729 | ||
a0c402a5 L |
1730 | 2009-04-08 H.J. Lu <hongjiu.lu@intel.com> |
1731 | ||
1732 | * elflink.c (elf_link_add_object_symbols): Warn alternate ELF | |
1733 | machine code. | |
1734 | ||
4d28413b DD |
1735 | 2009-04-07 DJ Delorie <dj@redhat.com> |
1736 | ||
1737 | * archures.c: Add bfd_mach_mep_c5. | |
1738 | * bfd-in2.h: Likewise. | |
1739 | * cpu-mep.c: Add bfd_c5_arch. | |
1740 | * elf32-mep.c: Support it. | |
1741 | ||
bb6198d2 L |
1742 | 2009-04-07 H.J. Lu <hongjiu.lu@intel.com> |
1743 | ||
1744 | * elflink.c (_bfd_elf_section_already_linked): Add `\n' for | |
1745 | info->callbacks->einfo. | |
1746 | * linker.c (_bfd_generic_section_already_linked): Likewise. | |
1747 | ||
bcb012d3 DD |
1748 | 2009-04-06 DJ Delorie <dj@redhat.com> |
1749 | ||
1750 | * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes. | |
1751 | ||
db1fe6e9 L |
1752 | 2009-04-06 H.J. Lu <hongjiu.lu@intel.com> |
1753 | ||
1754 | * coff-x86_64.c (bfd_pe_print_pdata): Defined to | |
1755 | _bfd_pex64_print_pdata only if PE is defined. | |
1756 | ||
1757 | * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ... | |
1758 | (_bfd_pex64_print_pdata): This. | |
1759 | ||
1760 | * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ... | |
1761 | (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64 | |
1762 | is defined. | |
1763 | ||
c7c7219d KT |
1764 | 2009-04-05 Kai Tietz <kai.tietz@onevision.com> |
1765 | ||
1766 | * coff-x86_64.c (bfd_pe_print_pdata): Define as | |
1767 | _bfd_pep_print_x64_pdata. | |
1768 | * libpei.h (_bfd_pep_print_x64_pdata): Add prototype. | |
1769 | * peXXigen.c (_bfd_pep_print_x64_pdata): New. | |
1770 | ||
3df502ae SA |
1771 | 2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com> |
1772 | ||
154a1ee5 | 1773 | * elf32-xtensa.c (relax_property_section): Always set r_offset |
3df502ae SA |
1774 | to zero. |
1775 | ||
d3626fb0 CL |
1776 | 2009-04-02 Christophe Lyon <christophe.lyon@st.com> |
1777 | ||
1778 | * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb, | |
1779 | elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long | |
1780 | branch stubs. | |
1781 | (elf32_arm_stub_type): New enum values for the two new stubs. | |
1782 | (arm_type_of_stub): Make use of the two new stubs. | |
1783 | (arm_size_one_stub): Handle the two new stubs. | |
1784 | ||
fe723c87 MT |
1785 | 2009-04-01 Matt Thomas <matt@netbsd.org> |
1786 | ||
1787 | * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against | |
1788 | hidden symbols into the GOT or PLT.GOT. | |
154a1ee5 | 1789 | (elf_vax_relocate_section): Do not emit a PCREL reloc |
fe723c87 MT |
1790 | into a shared object if it is against a hidden symbol. |
1791 | ||
ee698300 RS |
1792 | 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> |
1793 | ||
1794 | * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p | |
1795 | and know_contains_shared_object_p. | |
1796 | (xcoff_archive_contains_shared_object_p): Add an "info" parameter. | |
1797 | Cache the result in the archive_info table. | |
1798 | (xcoff_auto_export_p): Add an "info" parameter and update the | |
1799 | call to xcoff_archive_contains_shared_object_p. | |
1800 | (xcoff_mark_auto_exports): Update accordingly. | |
1801 | (xcoff_post_gc_symbol): Likewise. | |
1802 | ||
54e2dbe0 RS |
1803 | 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> |
1804 | ||
1805 | * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT | |
1806 | rather than C_EXT. | |
1807 | ||
2e470849 RS |
1808 | 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> |
1809 | ||
1810 | * coff-rs6000.c (member_layout): New structure. | |
1811 | (archive_iterator): Likewise. | |
1812 | (member_layout_init): New function. | |
1813 | (archive_iterator_begin): Likewise. | |
1814 | (archive_iterator_next): Likewise. | |
1815 | (xcoff_write_armap_old): Use the new iterator functions. | |
1816 | (do_shared_object_padding): Delete. | |
1817 | (xcoff_write_armap_big): Use the new iterator functions. Simplify | |
1818 | handling of arch_info. | |
1819 | (xcoff_write_archive_contents_old): Allocate arelt_data in the | |
1820 | first loop rather than the second. Allocate a member header if | |
1821 | there isn't one, then work out the stat information and length | |
1822 | in the first loop too. Use the new iterators for the second loop. | |
1823 | (xcoff_write_archive_contents_big): Likewise. | |
1824 | ||
24c611d1 RS |
1825 | 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> |
1826 | ||
1827 | * bfd-in.h (bfd_xcoff_split_import_path): Declare. | |
1828 | (bfd_xcoff_set_archive_import_path): Likewise. | |
1829 | * bfd-in2.h: Regenerate. | |
1830 | * xcofflink.c: Include libiberty.h. | |
1831 | (xcoff_archive_info): New structure. | |
1832 | (xcoff_archive_info_hash): New function. | |
1833 | (xcoff_archive_info_eq): Likewise. | |
1834 | (xcoff_get_archive_info): Likewise. | |
1835 | (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info. | |
1836 | (bfd_xcoff_split_import_path): New function. | |
1837 | (bfd_xcoff_set_archive_import_path): Likewise. | |
1838 | (xcoff_set_import_path): Move earlier in file. | |
1839 | (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive | |
1840 | object to the the directory part of the bfd's filename. Get the | |
1841 | import path and filename of an archive object from the archive's | |
1842 | xcoff_tdata, initializing it if necessary. Update use of | |
1843 | import_file_id. | |
1844 | (bfd_link_input_bfd): Update use of import_file_id. | |
1845 | (xcoff_write_global_symbol): Likewise. | |
1846 | ||
d286971a RS |
1847 | 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> |
1848 | ||
1849 | * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h. | |
1850 | ||
1851 | 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> | |
1852 | ||
1853 | * xcofflink.c (xcoff_link_create_extra_sections): Don't create | |
1854 | a .loader section for relocatable links. | |
1855 | (xcoff_need_ldrel_p): New function. | |
1856 | (xcoff_mark): Use it. | |
1857 | (bfd_xcoff_link_count_reloc): Only count loader relocs if there's | |
1858 | a loader section. | |
1859 | (xcoff_build_ldsym): New function, split out from... | |
1860 | (xcoff_build_ldsyms): ...here. Rename to... | |
1861 | (xcoff_post_gc_symbol): ...this. Only export symbols, and only | |
1862 | call xcoff_build_ldsym, if there's a loader section. | |
1863 | (xcoff_build_loader_section): New function, extracted verbatim from... | |
1864 | (bfd_xcoff_size_dynamic_sections): ...here. Only call it if | |
1865 | there's a loader section. Only add an __rtinit loader symbol | |
1866 | if there's a loader section. Update after above name change. | |
1867 | (xcoff_symbol_section, xcoff_create_ldrel): New functions. | |
1868 | (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section | |
1869 | and xcoff_create_ldrel. | |
1870 | (xcoff_write_global_symbol): Use xcoff_create_ldrel. | |
1871 | (xcoff_reloc_link_order): Likewise, but only call it if there's | |
1872 | a loader section. Use xcoff_symbol_section. | |
1873 | (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym | |
1874 | if there's a loader section. | |
1875 | ||
8707bb87 RS |
1876 | 2009-04-01 Richard Sandiford <rdsandiford@googlemail.com> |
1877 | ||
1878 | * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun. | |
1879 | ||
e780aef2 CL |
1880 | 2009-04-01 Christophe Lyon <christophe.lyon@st.com> |
1881 | ||
1882 | * elf32-arm.c (group_sections): Rewrite loops for better | |
1883 | readability. | |
1884 | ||
c301e700 DD |
1885 | 2009-03-30 DJ Delorie <dj@redhat.com> |
1886 | ||
1887 | * elflink.c (elf_link_input_bfd): Don't try to resolve complex | |
1888 | relocs when doing a relocatable link. | |
1889 | ||
3895f852 MM |
1890 | 2009-03-28 Mark Mitchell <mark@codesourcery.com> |
1891 | ||
1892 | * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not | |
1893 | "ERROR:", in error messages. | |
1894 | * cpu-arm.c (bfd_arm_merge_machines): Likewise. | |
1895 | * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise. | |
1896 | * elf32-arm.c (tag_cpu_arch_combine): Likewise. | |
1897 | (elf32_arm_merge_eabi_attributes): Likewise. | |
1898 | (elf32_arm_merge_private_bfd_data): Likewise. | |
1899 | ||
ea882e87 NC |
1900 | 2009-03-27 Nick Clifton <nickc@redhat.com> |
1901 | ||
1902 | * section.c (bfd_get_section_contents): Detect and handle the case | |
1903 | where a section has the SEC_IN_MEMORY flag set but no actual | |
1904 | contents allocated. | |
1905 | ||
9433b9b1 AM |
1906 | 2009-03-26 Alan Modra <amodra@bigpond.net.au> |
1907 | ||
1908 | PR 6494 | |
1909 | * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO | |
1910 | p_filesz and p_memsz are equal. Use p_memsz as the segment size. | |
1911 | (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO | |
1912 | if we don't find matching PT_LOAD when copying. | |
1913 | ||
dc1aa734 SR |
1914 | 2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com> |
1915 | ||
1916 | * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of | |
1917 | the reloc descriptions. | |
1918 | ||
34d3d6b9 HPN |
1919 | 2009-03-25 Hans-Peter Nilsson <hp@axis.com> |
1920 | ||
1921 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> | |
1922 | <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols. | |
1923 | <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto. | |
1924 | ||
34274ccc L |
1925 | 2009-03-24 H.J. Lu <hongjiu.lu@intel.com> |
1926 | ||
1927 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static. | |
1928 | (bfd_i386_arch_intel_syntax): Likewise. | |
1929 | (i8086_arch): Likewise. | |
1930 | (bfd_x86_64_arch): Likewise. | |
1931 | ||
019c5a2e HPN |
1932 | 2009-03-24 Hans-Peter Nilsson <hp@axis.com> |
1933 | ||
6718f446 HPN |
1934 | * elf32-cris.c (cris_elf_relocate_section): <case |
1935 | R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local | |
1936 | symbols for non-allocated sections. Don't check whether to | |
1937 | generate R_CRIS_DTPMOD for non-allocated sections. | |
1938 | (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't | |
1939 | handle relocation GC:ing if applied to non-allocated section. | |
1940 | (cris_elf_check_relocs): Similar. | |
1941 | ||
019c5a2e HPN |
1942 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> |
1943 | <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size | |
1944 | when emitting a known TP offset in the GOT. | |
1945 | ||
ffcfec52 AM |
1946 | 2009-03-23 Alan Modra <amodra@bigpond.net.au> |
1947 | ||
1948 | * elf64-ppc.c (synthetic_opd): Delete. | |
1949 | (compare_symbols): Look for .opd name rather than section match. | |
1950 | (ppc64_elf_get_synthetic_symtab): Likewise. | |
1951 | ||
c6dd29ce AM |
1952 | 2009-03-21 Alan Modra <amodra@bigpond.net.au> |
1953 | ||
1954 | * elf32-ppc.c (is_pic_glink_stub): Delete. | |
1955 | (is_nonpic_glink_stub): New function. | |
1956 | (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather | |
1957 | than first pic one. | |
1958 | (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix. | |
1959 | ||
8c21ca21 AK |
1960 | 2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com> |
1961 | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | |
1962 | ||
1963 | * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_* | |
4f360784 | 1964 | macros for visibilty and locality checks. |
8c21ca21 AK |
1965 | (elf_s390_adjust_dynamic_symbol): Likewise. |
1966 | (allocate_dynrelocs): Likewise. | |
1967 | (elf_s390_relocate_section): Likewise. | |
1968 | (elf_s390_finish_dynamic_symbol): Likewise. | |
1969 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
1970 | (elf_s390_adjust_dynamic_symbol): Likewise. | |
1971 | (allocate_dynrelocs): Likewise. | |
1972 | (elf_s390_relocate_section): Likewise. | |
1973 | (elf_s390_finish_dynamic_symbol): Likewise. | |
1974 | ||
156621f3 KT |
1975 | 2009-03-19 Kai Tietz <kai.tietz@onevision.com> |
1976 | ||
1977 | * bfd-in2.h: Regenerated. | |
1978 | * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY | |
1979 | for debugging sections and map memory read/write dependent on | |
1980 | SEC_COFF_NOREAD. | |
1981 | (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections | |
1982 | without memory read flags set. | |
1983 | * section.c: Add SEC_COFF_NOREAD to section flags. | |
1984 | ||
d1fa68d3 AS |
1985 | 2009-03-19 Andreas Schwab <schwab@linux-m68k.org> |
1986 | ||
1987 | * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long | |
1988 | for format string. | |
1989 | ||
ad2adbc8 AM |
1990 | 2009-03-19 Alan Modra <amodra@bigpond.net.au> |
1991 | ||
1992 | * elf32-spu.c (spu_elf_find_overlays): Separate error return from | |
1993 | "no overlays" return. If there are overlays, create overlay | |
1994 | manager entry symbols here, so that.. | |
1995 | (spu_elf_build_stubs): ..we don't need to set them up here. | |
1996 | Simplify entry symbol tests. | |
1997 | * elf32-spu.h (spu_elf_find_overlays): Update prototype. | |
1998 | ||
67cc5033 MK |
1999 | 2009-03-18 Mark Kettenis <kettenis@gnu.org> |
2000 | ||
d1fa68d3 | 2001 | * elf.c (elfcore_grok_openbsd_procinfo) |
67cc5033 MK |
2002 | (elfcore_grok_openbsd_note): New functions. |
2003 | (elf_parse_notes): Handle notes from OpenBSD ELF core files. | |
2004 | ||
8d25cc3d AM |
2005 | 2009-03-18 Alan Modra <amodra@bigpond.net.au> |
2006 | ||
3889c459 | 2007 | * vms-hdr.c: Don't include alloca.h. |
8d25cc3d AM |
2008 | * elf32-m68hc1x.c: Include alloca-conf.h. |
2009 | * xsym.c: Likewise. | |
2010 | * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. | |
2011 | * som.c: Likewise. | |
2012 | * Makefile.am: Run "make dep-am". | |
2013 | * Makefile.in: Regenerate. | |
2014 | ||
a89e6478 DJ |
2015 | 2009-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
2016 | ||
2017 | * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test. | |
2018 | ||
a7e11ee1 AM |
2019 | 2009-03-17 Alan Modra <amodra@bigpond.net.au> |
2020 | ||
2021 | * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit. | |
2022 | Add compact_stub. | |
2023 | (emum _ovly_flavour): Delete ovly_compact, ovly_none. | |
2024 | * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and | |
2025 | ovly_return fields with ovly_entry[2]. Adjust all users. | |
2026 | (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler | |
2027 | when soft-icache. | |
2028 | (spu_elf_build_stubs): Likewise. | |
2029 | (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for | |
2030 | ovly_flavour changes. Update all callers. | |
2031 | (ovl_stub_size_log2): New function. | |
2032 | (build_stub): Handle compact icache stubs. Use different manager | |
2033 | entry point for stubs in non-icache area. | |
2034 | (spu_elf_size_stubs): Don't allocate space for indirect branch | |
2035 | descriptors. | |
2036 | (spu_elf_build_stubs): And don't built them. | |
2037 | ||
607a83c9 AS |
2038 | 2009-03-16 Andrew Stubbs <ams@codesourcery.com> |
2039 | ||
2040 | * dwarf2.c (read_section): Always use rawsize, if available. | |
2041 | ||
588f62fc AM |
2042 | 2009-03-16 Alan Modra <amodra@bigpond.net.au> |
2043 | ||
2044 | * simple.c (bfd_simple_get_relocated_section_contents): Use larger | |
2045 | of rawsize and size for buffer. | |
2046 | ||
a14c90c1 UW |
2047 | 2009-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
2048 | ||
2049 | * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay | |
2050 | parameter just because fixed sections fit into local store. | |
2051 | (spu_elf_auto_overlay): Do not declare as "noreturn". Skip | |
2052 | generating overlays if fixed sections plus reserved stack | |
2053 | and heap space fit into local store. | |
2054 | ||
30c665df AM |
2055 | 2009-03-15 Alan Modra <amodra@bigpond.net.au> |
2056 | ||
2057 | * elf32-spu.c (build_stub): Correct icache set_id. | |
2058 | (spu_elf_relocate_section): Likewise. | |
2059 | ||
f95942a3 RS |
2060 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2061 | ||
2062 | * xcofflink.c (xcoff_link_check_archive_element): Only free the | |
2063 | symbol table if it was created by the current call. | |
2064 | ||
670562e9 RS |
2065 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2066 | ||
2067 | * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors | |
2068 | class XMC_DS rather than XMC_UA. | |
2069 | ||
b64232cc RS |
2070 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2071 | ||
2072 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the | |
2073 | bfd_boolean export_defineds parameter with an unsigned int | |
2074 | auto_export_flags parameter. | |
2075 | * bfd-in2.h: Regenerate. | |
2076 | * xcofflink.c (xcoff_archive_contains_shared_object_p): New function, | |
2077 | split out from xcoff_build_ldsyms. | |
2078 | (xcoff_covered_by_expall_p): New function. | |
2079 | (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms | |
2080 | but with extra code to handle -bexpfull and -bexpall. | |
2081 | (xcoff_mark_auto_exports): New function. | |
2082 | (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether | |
2083 | a function should be automatically exported. | |
2084 | (bfd_xcoff_size_dynamic_sections): Replace the export_defineds | |
2085 | parameter with an auto_export_flags parameter. Update ldinfo | |
2086 | accordingly. Use xcoff_mark_auto_exports to mark all automatically- | |
2087 | exported symbols. | |
2088 | ||
7d504122 RS |
2089 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2090 | ||
2091 | * xcofflink.c (xcoff_mark_symbol_by_name): New function. | |
2092 | (bfd_xcoff_size_dynamic_sections): Use it to mark the entry, | |
2093 | init and fini functions. Do garbage collection for objects | |
2094 | without an entry point too. | |
2095 | ||
8602d4fe RS |
2096 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2097 | ||
2098 | * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to | |
2099 | check whether a symbol has csect information. | |
2100 | (coff_print_aux): Likewise. | |
2101 | * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect | |
2102 | information for C_AIX_WEAKEXT too. | |
2103 | (_bfd_xcoff_swap_aux_out): Likewise. | |
2104 | (xcoff_reloc_type_br): Handle defweak symbols too. | |
2105 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect | |
2106 | information for C_AIX_WEAKEXT too. | |
2107 | (_bfd_xcoff64_swap_aux_out): Likewise. | |
2108 | (xcoff64_reloc_type_br): Handle defweak symbols too. | |
2109 | * coffgen.c (coff_print_symbol): Handle auxillary function | |
2110 | information for C_AIX_WEAKEXT too. | |
2111 | * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK | |
2112 | instead of BSF_GLOBAL if the L_WEAK flag is set. | |
2113 | (xcoff_dynamic_definition_p): New function. | |
2114 | (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym | |
2115 | defines h. Don't change h if ldsym isn't the definition. Otherwise, | |
2116 | always take the symbol class from the ldsym. Use weak bfd symbol | |
2117 | types for weak ldsyms. | |
2118 | (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P. | |
2119 | Fix the check for whether a definition is from a shared object. | |
2120 | Allow redefinitions of weak symbols. | |
2121 | (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P. | |
2122 | (xcoff_keep_symbol_p): Likewise. | |
2123 | (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P. | |
2124 | (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P. | |
2125 | Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols, | |
2126 | but mark them as L_WEAK. | |
2127 | (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT | |
2128 | instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT. | |
2129 | ||
5b49f6dc RS |
2130 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2131 | ||
2132 | * xcofflink.c (xcoff_mark): When walking the relocations, | |
2133 | only mark the target symbol or the target section, not both. | |
2134 | (xcoff_final_definition_p): New function. | |
2135 | (xcoff_keep_symbol_p): Use it to check whether an external XCOFF | |
2136 | symbol is a valid definition of the associated output symbol. | |
2137 | Use XCOFF_ALLOCATED to stop the same hash table entry having | |
2138 | two output symbols. | |
2139 | (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when | |
2140 | keeping a symbol. | |
2141 | (xcoff_link_input_bfd): Use xcoff_final_definition_p. | |
2142 | ||
c4037431 RS |
2143 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2144 | ||
2145 | * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute | |
2146 | symbols as XMC_XO. | |
2147 | ||
3df13c4a RS |
2148 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2149 | ||
2150 | * libcoff-in.h (xcoff_tdata): Add a lineno_counts field. | |
2151 | * libcoff.h: Regenerate. | |
2152 | * xcofflink.c (xcoff_link_add_symbols): Record per-symbol | |
2153 | line-number counts in the bfd's lineno_counts field. | |
2154 | Don't keep per-csect line-number counts. | |
2155 | (xcoff_sweep): Don't update per-csect line-number counts. | |
2156 | (bfd_xcoff_size_dynamic_sections): Count the number of line-number | |
2157 | entries in each output section. | |
2158 | (xcoff_link_input_bfd): Get the number of line numbers from | |
2159 | the bfd's lineno_counts field, rather than recalculating it | |
2160 | from scratch. Fix the range check when updating C_BINCL and | |
2161 | C_EINCL symbols. | |
2162 | (_bfd_xcoff_bfd_final_link): Don't count the output line numbers | |
2163 | here. Don't expect csects to have line-number counts. | |
2164 | ||
e450936a RS |
2165 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2166 | ||
2167 | * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long. | |
2168 | * libcoff.h: Regenerate. | |
2169 | * xcofflink.c (xcoff_keep_symbol_p): New function, using the | |
2170 | "skip" logic from xcoff_link_input_bfd. | |
2171 | (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic | |
2172 | objects in a dynamic link, rather than checking whether csectpp | |
2173 | is null. Always allocate debug_index for other objects, | |
2174 | and always go through the loop. Update the type of debug_index | |
2175 | after the change above. Read the auxillary csect information | |
2176 | and use xcoff_keep_symbol_p to decide whether a symbol should | |
2177 | be kept. Set its debug_index to -2 if not. | |
2178 | (xcoff_link_input_bfd): Update the type of debug_index after | |
2179 | the change above and always expect it to be nonnull. Use it to | |
2180 | test whether a symbol should be stripped, rather than making the | |
2181 | decision here. Postpone all symbol creation to the second pass. | |
2182 | ||
47dfb2ca RS |
2183 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2184 | ||
2185 | * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when | |
2186 | creating a descriptor. | |
2187 | (xcoff_sweep): Don't mark toc_section unless it's needed. | |
2188 | (bfd_xcoff_size_dynamic_sections): Skip the toc_section | |
2189 | when marking every bfd. | |
2190 | (xcoff_link_input_bfd): Skip all TOC anchors. | |
2191 | (xcoff_toc_section_p, xcoff_find_tc0): New functions. | |
2192 | (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor | |
2193 | to -1; call xcoff_find_tc0 instead. | |
2194 | ||
4cc02a02 RS |
2195 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2196 | ||
2197 | * libcoff-in.h (xcoff_section_tdata): Update commentary. | |
2198 | * libcoff.h: Regenerate. | |
2199 | * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER | |
2200 | symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than | |
2201 | the previous symbol's csect. Treat last_symndx as an inclusive value | |
2202 | and simplify its handling. | |
2203 | (xcoff_mark): Treat last_symndx as an inclusive value. Only mark | |
2204 | symbols with the right csect. Don't mark rsec when processing | |
d1fa68d3 | 2205 | relocations against undefined or absolute sections. |
4cc02a02 RS |
2206 | (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag |
2207 | of bfd_und_section_ptr. | |
2208 | (xcoff_link_input_bfd): Likewise. | |
2209 | ||
858ef0ce RS |
2210 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2211 | ||
2212 | * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations | |
2213 | against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED | |
2214 | flag is set. Assert that all undefined symbols are either | |
2215 | imported or defined by a dynamic object. | |
2216 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise. | |
2217 | * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol | |
2218 | handling to all relocations. Only set XCOFF_CALLED for function | |
2219 | symbols. | |
2220 | (xcoff_find_function): New function, split out from... | |
2221 | (bfd_xcoff_export_symbol) ...here. | |
2222 | (xcoff_set_import_path): New function, split out from... | |
2223 | (bfd_xcoff_import_symbol): ...here. Remove assertion for old | |
2224 | meaning of XCOFF_CALLED. | |
2225 | (xcoff_mark_symbol): If we mark an undefined and unimported | |
2226 | symbol, find some way of defining it. If the symbol is a function | |
2227 | descriptor, fill in its definition automatically. If the symbol | |
2228 | is a function, mark its descriptor and allocate room for global | |
2229 | linkage code. Otherwise mark the symbol as implicitly imported. | |
2230 | Move the code for creating function descriptors from... | |
d1fa68d3 | 2231 | (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to |
858ef0ce RS |
2232 | check for symbols that were implicitly defined. |
2233 | (xcoff_mark): Don't count any dynamic relocations against | |
2234 | function symbols. | |
2235 | (bfd_xcoff_size_dynamic_sections): Save the rtld parameter | |
2236 | in the xcoff link info. | |
2237 | (xcoff_link_input_bfd): Remove handling of undefined and | |
2238 | unexported symbols. | |
2239 | ||
12b2cce9 RS |
2240 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2241 | ||
2242 | * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute | |
2243 | if the target is absolute. Fix comment typo. | |
2244 | (xcoff_ppc_relocate_section): Remove FIXME. | |
2245 | * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute | |
2246 | if the target is absolute. | |
2247 | ||
0e3212ad RS |
2248 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2249 | ||
2250 | * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy | |
2251 | R_POS and R_NEG relocations against absolute symbols to the | |
2252 | .loader section. | |
2253 | ||
d19d97e9 RS |
2254 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2255 | ||
2256 | * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype | |
2257 | to 2 for bfd_mach_ppc_620. | |
2258 | ||
e5231592 RS |
2259 | 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> |
2260 | ||
2261 | * config.bfd: Treat AIX 6+ in the same way as AIX 5. | |
2262 | * configure.in: Likewise. | |
2263 | * configure: Regenerate. | |
2264 | ||
3516e984 L |
2265 | 2009-03-13 H.J. Lu <hongjiu.lu@intel.com> |
2266 | ||
2267 | PR binutils/9945 | |
2268 | * elf.c (assign_section_numbers): Generate symbol table if there | |
2269 | is any relocation in output. | |
2270 | (_bfd_elf_compute_section_file_positions): Likewise. | |
2271 | ||
ce98a316 NC |
2272 | 2009-03-13 Nick Clifton <nickc@redhat.com> |
2273 | ||
2274 | PR 9934 | |
2275 | * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section. | |
2276 | * elflink.c (elf_link_read_relocs_from_section): Use | |
2277 | NUM_SHDR_ENTRIES. Gracefully handle the case where there are | |
2278 | relocs but no symbol table. | |
2279 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. | |
2280 | ||
c4fb387b L |
2281 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
2282 | ||
2283 | PR ld/9938 | |
2284 | * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp | |
2285 | to check ___tls_get_addr. | |
2286 | ||
2287 | * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use | |
2288 | strncmp to check __tls_get_addr. | |
2289 | ||
53638231 AS |
2290 | 2009-03-12 Andrew Stubbs <ams@codesourcery.com> |
2291 | ||
2292 | * dwarf2.c (read_section): Always check the offset, even when the | |
2293 | section has been read before. | |
2294 | ||
09e8c3bf L |
2295 | 2009-03-11 H.J. Lu <hongjiu.lu@intel.com> |
2296 | ||
2297 | * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in | |
2298 | comments. | |
2299 | ||
36e4dce6 CD |
2300 | 2009-03-11 Chris Demetriou <cgd@google.com> |
2301 | ||
2302 | * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. | |
2303 | * bfd-in2.h: Regenerate. | |
2304 | * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT | |
2305 | flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file | |
2306 | mode. | |
2307 | (bsd_write_armap): Likewise. | |
2308 | (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT | |
2309 | flag is set, do nothing. | |
2310 | (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 | |
2311 | for timestamp. | |
2312 | ||
9b175a76 UW |
2313 | 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com> |
2314 | ||
2315 | * elf32-spu.c (find_function_stack_adjust): Handle sf instruction | |
2316 | used to update stack pointer. | |
2317 | ||
f501de17 DA |
2318 | 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2319 | ||
2320 | PR binutils/9921 | |
2321 | * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE | |
2322 | for unknown symbols in absolute section. | |
2323 | ||
d11fd249 NC |
2324 | 2009-03-06 Nick Clifton <nickc@redhat.com> |
2325 | ||
2326 | * po/es.po: Updated Spanish translation. | |
2327 | ||
8cd931b7 CL |
2328 | 2009-03-05 Christophe Lyon <christophe.lyon@st.com> |
2329 | ||
2330 | * elf32-arm.c (group_sections): Take next section size into | |
2331 | account before accepting to group it. | |
2332 | ||
5fa9e92f CL |
2333 | 2009-03-05 Christophe Lyon <christophe.lyon@st.com> |
2334 | ||
2335 | * elf32-arm.c (arm_type_of_stub): Handle long branches targetting | |
2336 | PLT entries. | |
2337 | (elf32_arm_final_link_relocate): Likewise. | |
2338 | ||
b92997d6 AM |
2339 | 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de> |
2340 | ||
2341 | PR 9923 | |
2342 | * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type. | |
2343 | ||
727fc41e AM |
2344 | 2009-03-04 Alan Modra <amodra@bigpond.net.au> |
2345 | ||
2346 | * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. | |
2347 | * section.c (struct bfd_section): Add has_tls_get_addr_call. | |
2348 | (BFD_FAKE_SECTION): Init new flag. | |
2349 | * ecoff.c (bfd_debug_section): Likewise. | |
2350 | * bfd-in2.h: Regenerate. | |
2351 | * libbfd.h: Regenerate. | |
2352 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. | |
2353 | (ppc_elf_reloc_type_lookup): Handle new relocs. | |
2354 | (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
2355 | without marker relocs. | |
2356 | (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
2357 | if section has no old-style calls. | |
2358 | (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
2359 | Don't try to optimize new-style __tls_get_addr call when handling | |
2360 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
2361 | relocs. | |
2362 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. | |
2363 | (ppc64_elf_reloc_type_lookup): Handle new relocs. | |
2364 | (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
2365 | without marker relocs. | |
2366 | (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
2367 | if section has no old-style calls. Set toc_ref for new relocs as | |
2368 | appropriate. | |
2369 | (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
2370 | Don't try to optimize new-style __tls_get_addr call when handling | |
2371 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
2372 | relocs. | |
2373 | ||
51dec227 AM |
2374 | 2009-03-04 Alan Modra <amodra@bigpond.net.au> |
2375 | ||
2376 | PR 6768 | |
2377 | * configure.in: Test for ld --as-needed support. Link shared | |
2378 | libbfd against libm. | |
2379 | * configure: Regenerate. | |
2380 | ||
a1f7ca36 AM |
2381 | 2009-03-03 Alan Modra <amodra@bigpond.net.au> |
2382 | ||
2383 | * Makefile.am: Run "make dep-am". | |
2384 | * Makefile.in: Regenerate. | |
2385 | ||
c3b7224a NC |
2386 | 2009-03-02 Qinwei <qinwei@sunnorth.com.cn> |
2387 | ||
2388 | * elf32-score7.c: New file. | |
2389 | * elf32-score.h: New file. | |
2390 | * elf32-score.c: Add code to support score 7. Set score7 as the | |
2391 | default. | |
2392 | * cpu-score.c: Add score7 architecure. | |
2393 | (compatibile): New function. | |
2394 | * Makefile.am: Add rules for building elf32-score7 object. | |
2395 | * Makefile.in: Regenerate. | |
2396 | * configure.in: Add elf32-score7 object to score vectors. | |
2397 | * configure: Regenerate. | |
2398 | * reloc.c: Add score7 relocs. | |
2399 | * archures.c: Add score3 and score7 machine numbers. | |
2400 | * bfd-in2.h: Regenerate. | |
2401 | * libbfd.h: Regenerate. | |
2402 | ||
58e24671 RW |
2403 | 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
2404 | ||
2405 | * configure: Regenerate. | |
2406 | ||
5887528b DA |
2407 | 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2408 | ||
d45b7d74 DA |
2409 | * elf32-hppa.c (hppa32_elf_local_refcounts): New function. |
2410 | (elf32_hppa_check_relocs): Use it. | |
2411 | ||
5887528b DA |
2412 | * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to |
2413 | elf64-hppa.c. | |
2414 | (elf_hppa_unmark_useless_dynamic_symbols): Likewise. | |
2415 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. | |
2416 | (elf_hppa_is_dynamic_loader_symbol): Likewise. | |
2417 | (elf_hppa_record_segment_addrs): Likewise. | |
2418 | (elf_hppa_final_link): Likewise. | |
2419 | (elf_hppa_relocate_insn): Likewise. | |
2420 | (elf_hppa_final_link_relocate): Likewise. | |
2421 | (elf64_hppa_relocate_section): Likewise. | |
2422 | * elf64-hppa.c: Insert above. | |
2423 | ||
a03bd320 DA |
2424 | 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2425 | ||
2426 | * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. | |
2427 | (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table. | |
2428 | (elf_hppa_relocate_section): Likewise. | |
2429 | * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive | |
2430 | from struct elf_link_hash_entry. Add count field. | |
2431 | (struct elf64_hppa_dyn_hash_table): Delete. | |
2432 | (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field. | |
2433 | (elf64_hppa_hash_table): Rename to hppa_link_hash_table. | |
2434 | (hppa_elf_hash_entry, eh_name): Define. | |
2435 | (elf64_hppa_new_dyn_hash_entry): Delete. | |
2436 | (elf64_hppa_dyn_hash_lookup): Delete. | |
2437 | (elf64_hppa_dyn_hash_traverse): Delete. | |
2438 | (get_dyn_name): Delete. | |
2439 | (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead | |
2440 | of struct elf64_hppa_dyn_hash_entry *. | |
2441 | (elf64_hppa_finalize_dlt, llocate_global_data_dlt, | |
2442 | allocate_global_data_plt, allocate_global_data_stub, | |
2443 | allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries): | |
2444 | Likewise. | |
2445 | (hppa64_link_hash_newfunc): New. | |
2446 | (elf64_hppa_hash_table_create): Rework. | |
2447 | (count_dyn_reloc): Likewise. | |
2448 | (hppa64_elf_local_refcounts): New. | |
2449 | (elf64_hppa_check_relocs): Rework using standard technique for recording | |
2450 | local DLT, PLT and OPD reference counts. | |
2451 | (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct | |
2452 | elf_link_hash_entry *. | |
2453 | (elf64_hppa_mark_exported_functions, allocate_global_data_dlt, | |
2454 | allocate_global_data_plt, allocate_global_data_stub, | |
2455 | allocate_global_data_opd, allocate_dynrel_entries, | |
2456 | elf64_hppa_adjust_dynamic_symbol, | |
2457 | elf64_hppa_mark_milli_and_exported_functions): Likewise. | |
2458 | (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections): | |
2459 | Use hppa_link_hash_table. Rework. | |
2460 | (elf64_hppa_link_output_symbol_hook): Rework. | |
2461 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd, | |
2462 | elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc, | |
2463 | elf64_hppa_finish_dynamic_sections): Likewise. | |
2464 | ||
ebe24dd4 CL |
2465 | 2009-02-26 Christophe Lyon <christophe.lyon@st.com> |
2466 | ||
2467 | * elf32-arm.c (stub_reloc_type): Removed. | |
2468 | (insn_sequence): Renamed reloc_type field to r_type. | |
2469 | (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub. | |
2470 | (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise. | |
2471 | (elf32_arm_stub_long_branch_thumb_only_pic): Likewise. | |
2472 | (elf32_arm_stub_type): Add new enum entries for the new stubs. | |
2473 | (arm_stub_is_thumb): Catch new stubs. | |
2474 | (arm_type_of_stub): Handle new stubs. | |
2475 | (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs. | |
2476 | (bfd_elf32_arm_process_before_allocation): Remove useless | |
2477 | condition. | |
2478 | ||
b9d678e0 L |
2479 | 2009-02-25 H.J. Lu <hongjiu.lu@intel.com> |
2480 | ||
2481 | * elf.c (elf_find_function): Use is_function_type to check | |
2482 | function symbol. | |
2483 | ||
56fb3749 SA |
2484 | 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com> |
2485 | ||
2486 | * xtensa-modules.c: Revert to previous version 1.11 due | |
2487 | to inadvertant commit. | |
2488 | ||
658ff993 SA |
2489 | 2009-02-24 Sterling Augustine <sterling@tensilica.com> |
2490 | ||
2491 | * elf32-xtensa.c (text_action_add): Separate test for action | |
2492 | type. Break if saved action is ta_widen_insn at same offset. | |
2493 | ||
cf3eccff DJ |
2494 | 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
2495 | ||
2496 | * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename | |
2497 | to elf32_arm_stub_long_branch_any_arm_pic. | |
2498 | (elf32_arm_stub_long_branch_any_thumb_pic): New. | |
2499 | (enum elf32_arm_stub_type, arm_type_of_stub) | |
2500 | (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC | |
2501 | separately. | |
2502 | ||
07d72278 DJ |
2503 | 2009-02-24 Joseph Myers <joseph@codesourcery.com> |
2504 | ||
2505 | * elf32-arm.c (PREV_SEC): Update comment. | |
2506 | (group_sections): Rename argument to stubs_always_after_branch. | |
2507 | Reverse the list and place stubs at the end of input sections. | |
2508 | Undefine NEXT_SEC. | |
2509 | (elf32_arm_size_stubs): Update to use stubs_always_after_branch. | |
2510 | ||
4e31c731 DJ |
2511 | 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com> |
2512 | ||
2513 | * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset. | |
2514 | Fix formatting. | |
2515 | (arm_size_one_stub): Remove unnecessary break. | |
2516 | (arm_map_one_stub): Fix formatting. Return after BFD_FAIL. | |
2517 | ||
2518 | 2009-02-23 Christophe Lyon <christophe.lyon@st.com> | |
461a49ca DJ |
2519 | |
2520 | * elf32-arm.c (stub_insn_type): New type. | |
2521 | (stub_reloc_type): Likewise. | |
2522 | (insn_sequence): Likewise. | |
2523 | (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence. | |
2524 | (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise. | |
2525 | (elf32_arm_stub_long_branch_thumb_only): Likewise. | |
2526 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
2527 | (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise. | |
2528 | (elf32_arm_stub_long_branch_any_any_pic): Likewise. | |
2529 | (elf32_arm_stub_hash_entry): Add new helper fields. | |
2530 | (stub_hash_newfunc): Initialize these new fields. | |
2531 | (arm_build_one_stub): Encode Arm and Thumb instructions separately | |
2532 | to take endianness into account. | |
2533 | (arm_size_one_stub): Compute size of stubs using insn_sequence. | |
2534 | (arm_map_one_stub): Code is now more generic, thanks to | |
2535 | insn_sequence. | |
2536 | ||
c2b4a39d CL |
2537 | 2009-02-23 Christophe Lyon <christophe.lyon@st.com> |
2538 | ||
2539 | * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub | |
2540 | code. | |
2541 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
2542 | (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when | |
2543 | BLX is not available. Fix typo in warning message. Add comments | |
2544 | and improve formatting. | |
2545 | (arm_build_one_stub): Adjust to new | |
2546 | elf32_arm_stub_long_branch_v4t_thumb_arm stub. | |
2547 | (arm_map_one_stub): Likewise. | |
2548 | ||
0c376465 | 2549 | 2009-02-23 Tristan Gingold <gingold@adacore.com> |
a60a89d6 TG |
2550 | Eric Botcazou <ebotcazou@adacore.com> |
2551 | Douglas B Rupp <rupp@gnat.com> | |
0c376465 TG |
2552 | |
2553 | * vms.h: Update copyright year, fix comments, reorder declarations. | |
2554 | (_bfd_save_vms_section): Remove the prototype. | |
2555 | (EGPS_S_V_NO_SHIFT): New constant. | |
2556 | (bfd_vms_set_section_flags): New prototype. | |
2557 | (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New | |
2558 | constants. | |
2559 | (EGSY_S_W_FLAGS): Ditto. | |
2560 | (EGSY_S_V_QUAD_VAL): Ditto. | |
2561 | (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto. | |
2562 | (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX, | |
2563 | EGST_S_B_NAMLNG): Ditto. | |
2564 | (ESRF_S_B_NAMLNG): Ditto. | |
2565 | (ETIR_S_C_HEADER_SIZE): Ditto. | |
2566 | (EGPS_S_V_ALLOC_64BIT): Ditto. | |
2567 | (DST_S_C_EPILOG): Ditto. | |
2568 | (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto. | |
2569 | (DST_S_C_SRC_INCRLNUM_B): Ditto. | |
2570 | (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto. | |
2571 | (DST_S_L_PCLINE_UNSLONG): Ditto. | |
2572 | (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto | |
2573 | (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto | |
2574 | (DST_S_C_SOURCE_HEADER_SIZE): Ditto. | |
2575 | (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto. | |
2576 | (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto. | |
2577 | (DST_S_B_SRC_UNSBYTE): Ditto. | |
2578 | (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto. | |
2579 | Add prototypes. | |
2580 | (vms_section, vms_reloc): Remove types. | |
2581 | (hdr_struc): Replaced by ... | |
2582 | (hdr_struct): ... new type. | |
2583 | (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants. | |
2584 | (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto. | |
2585 | (EMH_DATE_LENGTH): Ditto. | |
2586 | (eom_struc): Replaced by ... | |
2587 | (eom_struct): ... new type. | |
2588 | (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants. | |
2589 | (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto. | |
2590 | (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto. | |
2591 | (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto. | |
2592 | (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto. | |
2593 | (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto. | |
2594 | (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto. | |
2595 | (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto. | |
2596 | (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto. | |
2597 | (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto. | |
2598 | (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto. | |
2599 | (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto. | |
2600 | (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto. | |
2601 | (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto. | |
2602 | (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto. | |
2603 | (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto. | |
2604 | (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto. | |
2605 | (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH) | |
2606 | (DBG_S_C_DMT_PSECT_SIZE): Ditto. | |
2607 | (enum file_type_enum): New type. | |
2608 | (struct location_struct): Removed. | |
2609 | (struct fileinfo, struct srecinfo, struct lineinfo): New types. | |
2610 | (struct funcinfo, struct module): Ditto. | |
2611 | (struct vms_private_data_struct): Update fields. | |
2612 | (struct vms_section_data_struct): New type. | |
2613 | ||
2614 | * vms.c: Update copyright year, fix comments, | |
2615 | Fix includes for DECC, add prototypes. | |
2616 | (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove | |
2617 | some initializers. | |
2618 | Use flavour to set is_vax, location_stack is removed. | |
2619 | (struct pair): Declare. | |
2620 | (fill_section_ptr): Initialize variables at declaration. | |
2621 | Add guard to set SECTION_SYM flag, handlde und section. | |
2622 | (vms_fixup_sections): Use struct pair for fill_section_ptr argument. | |
2623 | (_bfd_vms_slurp_object_records): New function, replaces previous | |
2624 | vms_object_p. | |
2625 | (vms_slurp_module): New function. | |
2626 | (vms_slurp_image): Ditto. | |
2627 | (vms_object_p): Complete rewrite. | |
2628 | (vms_mkobject): Use is_vax field to slect architecture. | |
2629 | (free_reloc_stream): New function. | |
2630 | (vms_convert_to_var): Ditto. | |
2631 | (vms_convert_to_var_1): Ditto. | |
2632 | (vms_convert_to_var_unix_filename): Ditto. | |
2633 | (vms_close_and_cleanup): Call free_reloc_stream, convert file to | |
2634 | VAR format on VMS. | |
2635 | (vms_new_section_hook): Set alignment to 0, allocate private data. | |
2636 | (vms_get_section_contents): Load content. | |
2637 | (vms_get_symbol_info): Handle undefined section. | |
2638 | (vms_find_nearest_line): Handle. | |
2639 | (alloc_reloc_stream): New function. | |
2640 | (vms_slurp_reloc_table): Ditto. | |
2641 | (vms_get_reloc_upper_bound): Make it real. | |
2642 | (vms_canonicalize_reloc): Do the real work. | |
2643 | (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA, | |
2644 | ALPHA_R_BOH. | |
2645 | (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH. | |
2646 | (vms_set_arch_mach): Check arch. | |
2647 | (vms_set_section_contents): Copy the content after allocation. | |
2648 | (vms_alpha_vec): Update object flags. | |
2649 | ||
2650 | * vms-tir.c: Update copyright year, fix comments, | |
2651 | add prototypes for new functions. | |
2652 | (dst_define_location): New function. | |
2653 | (dst_restore_location): New function. | |
2654 | (dst_retrieve_location): New function. | |
2655 | (dst_check_allocation): New function. | |
2656 | (image_dump): Call dst_check_allocation. | |
2657 | (image_write_b): Ditto. | |
2658 | (image_write_w): Ditto. | |
2659 | (image_write_l): Ditto. | |
2660 | (image_write_q): Ditto. | |
2661 | (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW, | |
2662 | STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC, | |
2663 | CTL_STKDL. | |
2664 | Call error handler instead of abort if name is not known. | |
2665 | (etir_sta): Add quarter_relocs argument and set it. | |
2666 | Fix cast. | |
2667 | (etir_sto): Ditto. | |
2668 | (etir_opr): Ditto, return FALSE in case of error. | |
2669 | (etir_ctl): Add quarter_relocs argument and set it, fix cast. | |
2670 | Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL. | |
2671 | (etir_stc): Add quarter_relocs argument and set it, fix cast. | |
2672 | Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA. | |
2673 | Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL. | |
2674 | Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS. | |
2675 | Return FALSE in case of error. | |
2676 | (tir_sta): Change sign of psect. | |
2677 | (tir_ctl): Ditto. | |
2678 | (tir_cmd): Fix cast. Makes tir_table static const. | |
2679 | (etir_cmd): Add quarter_relocs argument, makes etir_table const, | |
2680 | add argument to explain. | |
2681 | (analyze_etir): Initialize maxptr, add quarter_relocs | |
2682 | declaration, move some declarations into inner scopes. | |
2683 | Handle quarter_relocs and STO_IMM. | |
2684 | (_bfd_vms_slurp_tir): Use constant instead of hard-coded values. | |
2685 | (_bfd_vms_slurp_relocs): New function. | |
2686 | (_bfd_vms_decode_relocs): New function. | |
2687 | (sto_imm): Rewritten. | |
2688 | (start_first_etbt_record): New function. | |
2689 | (start_another_etbt_record): Ditto. | |
2690 | (etir_output_check): Ditto. | |
2691 | (defer_reloc_p): Ditto. | |
2692 | (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to | |
2693 | a for-loop. Correctly deals with contents, deals with .vmsdebug, | |
2694 | rewritte relocations handling. | |
2695 | (_bfd_vms_write_tbt): Removed. | |
2696 | (_bfd_vms_write_dbg): Ditto. | |
2697 | ||
2698 | * vms-misc.c: Update copyright year, Fix comments. | |
2699 | (_bfd_vms_get_header_values): Use 'size' instead of 'length'. | |
2700 | (maybe_adjust_record_pointer_for_object): New function. | |
2701 | (_bfd_vms_get_first_record): New function, replaces ... | |
2702 | (_bfd_vms_get_record): .. removed. | |
2703 | (_bfd_vms_get_object_record): New function. | |
2704 | (_bfd_vms_get_object_record): New function. | |
2705 | (vms_get_remaining_object_record): New function, replaces ... | |
2706 | (_bfd_vms_get_next_record): ... removed. | |
2707 | (add_new_contents): Removed. | |
2708 | (_bfd_save_vms_section): Removed. | |
2709 | (_bfd_get_vms_section): Removed. | |
2710 | (_bfd_vms_output_flush): Write in VAR format. | |
2711 | (new_symbol): Don't make UND section. | |
2712 | ||
2713 | * vms-hdr.c: Update copyright year, update list of record handled. | |
2714 | (_bfd_vms_slurp_hdr): rec_length renamed to rec_size. | |
2715 | (_bfd_vms_write_hdr): Strip vms and unix patches, | |
2716 | add comments, truncate module name at 31 characters, | |
2717 | use constants instead of hard-coded value, | |
2718 | write BFD version instead of a fixed string. | |
2719 | (_bfd_vms_slurp_ihd): New function. | |
2720 | (_bfd_vms_slurp_isd): Ditto. | |
2721 | (_bfd_vms_slurp_ihs): Ditto. | |
2722 | (new_module): Ditto. | |
2723 | (parse_module): Ditto | |
2724 | (build_module_list): Ditto. | |
2725 | (module_find_nearest_line): Ditto. | |
2726 | (_bfd_vms_find_nearest_dst_line): Ditto. | |
2727 | (vms_slurp_debug): Ditto. | |
2728 | (_bfd_vms_slurp_dbg): Ditto. | |
2729 | (_bfd_vms_slurp_tbt): Ditto. | |
2730 | (_bfd_vms_write_dbg): Ditto. | |
2731 | (_bfd_vms_write_tbt): Ditto. | |
2732 | ||
2733 | * vms-gsd.c: Update copyright year, update list of records handled. | |
2734 | (EVAX_LITERALS_NAME): New macro. | |
2735 | (evax_section_flags): Add an entry for EVAX_LITERALS_NAME. | |
2736 | (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd. | |
2737 | (register_universal_symbol): New function and prototype. | |
2738 | (_bfd_vms_slurp_gsd): Fix indentations and casts, | |
2739 | improve debug messages, | |
2740 | use constants instead of hard-coded value, | |
2741 | fix missing endianness conversion, | |
2742 | handle global symbol (SYMG). | |
2743 | (bfd_vms_set_section_flags): New function. | |
2744 | (_bfd_vms_write_gsd): Don't write .vmsdebug section, | |
2745 | handle section literals, | |
2746 | fix indentation, | |
2747 | handle section bfd and vms flags, | |
2748 | don't output LIB$INITIALIZE symbol, | |
2749 | fix handling of weak symbols, | |
2750 | fix evax vs vax procedure descriptor, | |
2751 | handle absolute symbols. | |
2752 | ||
2753 | * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR, | |
2754 | BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations. | |
2755 | ||
2756 | * makefile.vms (DEFS): Fix flags for VMS. | |
2757 | ||
2758 | * bfdio.c (real_fopen): Handle multiple VMS fopen attributes. | |
2759 | ||
2760 | * bfd-in2.h: Regenerated. | |
2761 | * libbfd.h: Regenerated. | |
2762 | ||
47149254 CC |
2763 | 2009-02-20 Cary Coutant <ccoutant@google.com> |
2764 | ||
2765 | * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime | |
2766 | in struct stat. | |
2767 | ||
6b1cecf3 DK |
2768 | 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> |
2769 | ||
2770 | PR gas/7059 | |
2771 | * coffcode.h (coff_write_object_contents): Don't let the string | |
2772 | table offset overflow the s_name field when using long section names. | |
2773 | ||
88183869 DK |
2774 | 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> |
2775 | ||
2776 | * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which | |
2777 | control long section name handling with ECOFF_NO_LONG_SECTION_NAMES. | |
2778 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
2779 | * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which | |
2780 | control long section name handling with XCOFF_NO_LONG_SECTION_NAMES. | |
2781 | (bfd_pmac_xcoff_backend_data): Likewise. | |
2782 | * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise. | |
2783 | (bfd_xcoff_aix5_backend_data): Likewise. | |
2784 | (xcoff64_write_object_contents): Delete unused long_section_names | |
2785 | local variable. | |
2786 | * coff-sh.c (bfd_coff_small_swap_table): Initialise long section | |
2787 | name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire | |
2788 | struct non-const. | |
2789 | * coffcode.h (documentation): Update to describe long section names. | |
2790 | (COFFLONGSECTIONCATHELPER): New helper macro. | |
2791 | (BLANKOR1TOODD): Likewise. | |
2792 | (COFF_ENABLE_LONG_SECTION_NAMES): Likewise. | |
2793 | (COFF_LONG_SECTION_NAMES_SETTER): Likewise. | |
2794 | (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise. | |
2795 | (bfd_coff_set_long_section_names_allowed): New function. | |
2796 | (bfd_coff_set_long_section_names_disallowed): Likewise. | |
2797 | (struct bfd_coff_backend_data): Add new backend hook function | |
2798 | pointer _bfd_coff_set_long_section_names. | |
2799 | (bfd_coff_set_long_section_names): New backend hook. | |
2800 | (coff_write_object_contents): Only generate long section names if | |
2801 | bfd_coff_long_section_names() indicates they are currently enabled. | |
2802 | (bfd_coff_std_swap_table): Make non-const, and initialise long | |
2803 | section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
2804 | (ticoff0_swap_table): Likewise to both. | |
2805 | (ticoff1_swap_table): Again, likewise to both. | |
2806 | * coffgen.c (make_a_section_from_file): Allow long section names | |
2807 | as inputs even if not currently allowed for outputs. | |
2808 | * ecoff.c (_bfd_ecoff_no_long_sections): New function. | |
2809 | * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank. | |
2810 | * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2811 | * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2812 | * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2813 | * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2814 | * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2815 | * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2816 | * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2817 | * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2818 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2819 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2820 | * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2821 | * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2822 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2823 | * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2824 | * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2825 | * libcoff-in.h: Update copyright year to cause updated copyright | |
2826 | year in generated libcoff.h, and fix typo. | |
2827 | * libcoff.h: Regenerated. | |
2828 | * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro. | |
2829 | (_bfd_ecoff_no_long_sections): Add prototype. | |
2830 | * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro. | |
2831 | * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already | |
2832 | defined by an including .c file. | |
2833 | * ticoff.h (ticoff0_swap_table): Make non-const, and initialise | |
2834 | long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
2835 | (ticoff1_swap_table): Likewise to both. | |
2836 | ||
90d8a22c CL |
2837 | 2009-02-18 Christophe Lyon <christophe.lyon@st.com> |
2838 | ||
2839 | * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic | |
2840 | stub. Catch default case error. | |
2841 | (arm_map_one_stub): Add missing Thumb mapping symbol. | |
2842 | ||
12123067 NC |
2843 | 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de> |
2844 | ||
2845 | PR 9841 | |
2846 | * elf32-avr.c: Handle case where no local symbos exist correctly. | |
2847 | ||
fea2b4d6 CL |
2848 | 2009-02-16 Christophe Lyon <christophe.lyon@st.com> |
2849 | ||
2850 | bfd/ | |
2851 | * elf32-arm.c (arm_long_branch_stub, | |
2852 | arm_thumb_v4t_long_branch_stub, | |
2853 | arm_thumb_thumb_long_branch_stub, | |
2854 | arm_thumb_arm_v4t_long_branch_stub, | |
2855 | arm_thumb_arm_v4t_short_branch_stub, | |
2856 | arm_pic_long_branch_stub): | |
2857 | Renamed to elf32_arm_stub_long_branch_any_any, | |
2858 | elf32_arm_stub_long_branch_v4t_arm_thumb, | |
2859 | elf32_arm_stub_long_branch_thumb_only, | |
2860 | elf32_arm_stub_long_branch_v4t_thumb_arm, | |
2861 | elf32_arm_stub_short_branch_v4t_thumb_arm, | |
2862 | elf32_arm_stub_long_branch_any_any_pic. | |
2863 | (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch, | |
2864 | arm_thumb_thumb_stub_long_branch, | |
2865 | arm_thumb_arm_v4t_stub_long_branch, | |
2866 | arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch): | |
2867 | Renamed to arm_stub_long_branch_any_any, | |
2868 | arm_stub_long_branch_v4t_arm_thumb, | |
2869 | arm_stub_long_branch_thumb_only, | |
2870 | arm_stub_long_branch_v4t_thumb_arm, | |
2871 | arm_stub_short_branch_v4t_thumb_arm, | |
2872 | arm_stub_long_branch_any_any_pic. | |
2873 | ||
13e0a874 DA |
2874 | 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2875 | ||
2876 | * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used | |
2877 | in branch offset check. | |
2878 | ||
3a71aa26 AM |
2879 | 2009-02-15 Alan Modra <amodra@bigpond.net.au> |
2880 | ||
2881 | * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, | |
2882 | add toc.symndx and toc.add. | |
2883 | (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. | |
2884 | Set up toc.add. | |
2885 | (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all | |
2886 | callers. | |
2887 | (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. | |
2888 | (branch_reloc_hash_match): New function, extracted from.. | |
2889 | (ppc64_elf_tls_optimize): ..here. | |
2890 | (ppc64_elf_relocate_section): Properly set addends when optimizing | |
2891 | tls sequences. Avoid unnecessary reading and writing of insns. | |
2892 | Only redo reloc when symbol changed. Bypass symbol checks when | |
2893 | using tlsld_got. | |
2894 | * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. | |
2895 | (branch_reloc_hash_match): New function, extracted from.. | |
2896 | (ppc_elf_tls_optimize): ..here. | |
2897 | (ppc_elf_relocate_section): Avoid unnecessary reading of insns. | |
2898 | Don't clear addend on zapped __tls_get_addr reloc. | |
2899 | ||
2c2b4ed4 NC |
2900 | 2009-02-12 Nick Clifton <nickc@redhat.com> |
2901 | ||
2902 | PR 9827 | |
2903 | * elflink.c (bfd_elf_final_link): When counting the relocations, | |
2904 | if the header size has not been set yet then assume that it will | |
2905 | match the output section's reloc type. | |
2906 | ||
453f5985 NS |
2907 | 2009-02-12 Nathan Sidwell <nathan@codesourcery.com> |
2908 | ||
2909 | * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for | |
2910 | relocatable link. | |
2911 | ||
3209bffa AM |
2912 | 2009-02-09 Alan Modra <amodra@bigpond.net.au> |
2913 | ||
2914 | * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. | |
2915 | (find_function): Likewise. | |
2916 | (pasted_function): Don't error if no prior function found. | |
2917 | (discover_functions): Revert 2008-12-10 change. Extend first | |
2918 | function range to start of section. | |
2919 | ||
813c8a3c DA |
2920 | 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2921 | ||
2922 | * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert | |
2923 | functions to C90. | |
2924 | * elf64-hppa.h: Likewise. | |
2925 | ||
2d0f9ad9 JM |
2926 | 2009-02-06 Joseph Myers <joseph@codesourcery.com> |
2927 | ||
2928 | * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special | |
2929 | .sbss handling. | |
2930 | ||
50e00962 AM |
2931 | 2009-02-04 Alan Modra <amodra@bigpond.net.au> |
2932 | ||
2933 | * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize. | |
2934 | Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*. | |
2935 | ||
52b6b6b9 JM |
2936 | 2009-02-03 Sandip Matte <sandip@rmicorp.com> |
2937 | ||
2938 | * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. | |
2939 | * archures.c (bfd_mach_mips_xlr): Define. | |
2940 | * bfd-in2.h: Regenerate. | |
2941 | * cpu-mips.c (I_xlr): Define. | |
2942 | (arch_info_struct): Add XLR entry. | |
2943 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. | |
2944 | (mips_set_isa_flags): Handle bfd_mach_mips_xlr | |
2945 | (mips_mach_extensions): Add XLR entry. | |
2946 | ||
654c3c9f EW |
2947 | 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com> |
2948 | ||
2949 | * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound. | |
2950 | ||
31dd3154 JM |
2951 | 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> |
2952 | ||
2953 | * configure.in: AC_SUBST pdfdir. | |
d1fa68d3 | 2954 | * Makefile.am: Add install-pdf, install-pdf-am |
31dd3154 JM |
2955 | and install-pdf-recursive targets. Define pdfdir. |
2956 | * doc/Makefile.am: Define pdf__strip_dir. Add | |
2957 | install-pdf and install-pdf-am targets. | |
d1fa68d3 | 2958 | * po/Make-in: Add install-pdf target. |
31dd3154 JM |
2959 | * configure: Regenerate. |
2960 | * Makefile.in: Regenerate | |
2961 | * doc/Makefile.in: Regenerate. | |
2962 | ||
cf869cce NC |
2963 | 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com> |
2964 | ||
2965 | * bfd-in2.h: Regenerate. | |
2966 | * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and | |
2967 | fields from n_entries to n_slots where appropriate, update comments. | |
2968 | (HOWTO): Add TLS relocations. | |
2969 | (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*. | |
2970 | (enum elf_m68k_got_offset_size): New enum. | |
2971 | (struct elf_m68k_got_entry.type): Move field to ... | |
2972 | (struct elf_m68k_got_entry_key): ... here. Update all uses. | |
2973 | (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static | |
2974 | functions. | |
2975 | (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static | |
2976 | functions. | |
2977 | (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries | |
2978 | fields into n_entries array. Update comments. | |
2979 | (elf_m68k_init_got): Simplify, update all uses. | |
2980 | (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update. | |
2981 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot | |
2982 | GOT entries; update name, update all uses. | |
2983 | (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto. | |
2984 | (elf_m68k_get_got_entry): Update. | |
2985 | (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries, | |
2986 | simplify. | |
2987 | (elf_m68k_remove_got_entry_type): Simplify. | |
2988 | (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update. | |
2989 | (elf_m68k_can_merge_gots): Update. | |
2990 | (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update. | |
2991 | (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot | |
2992 | GOT entries, simplify. | |
2993 | (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same. | |
2994 | (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff | |
2995 | field, remove obsoleted local_n_entries field. | |
2996 | (elf_m68k_partition_multi_got_2): New static function. | |
2997 | (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it; | |
2998 | update. | |
2999 | (elf_m68k_remove_got_entry_type): Update. | |
3000 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
d1fa68d3 | 3001 | (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary |
cf869cce NC |
3002 | update of sgot->size and srelgot->size. |
3003 | (elf_m68k_gc_sweep_hook): Update. | |
3004 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
3005 | (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle | |
3006 | TLS relocations. | |
3007 | * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations. | |
3008 | * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*. | |
3009 | ||
c1a0a41f DD |
3010 | 2009-02-02 DJ Delorie <dj@redhat.com> |
3011 | ||
3012 | * elf32-mep.c (config_names): Regenerate configuration. | |
3013 | ||
72a80a16 AM |
3014 | 2009-02-02 Alan Modra <amodra@bigpond.net.au> |
3015 | ||
3016 | * elf-bfd.h (bfd_elf_get_str_section): Don't declare. | |
3017 | (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise. | |
3018 | * elf.c (bfd_elf_get_str_section): Make static. | |
3019 | (bfd_elf_find_section): Delete. | |
3020 | * libbfd.h: Regenerate. | |
3021 | ||
273f4430 JK |
3022 | 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
3023 | ||
3024 | * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove. | |
3025 | (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs. | |
3026 | ||
010e5ae2 AM |
3027 | 2009-01-31 Alan Modra <amodra@bigpond.net.au> |
3028 | ||
3029 | * elflink.c (on_needed_list): New function. | |
3030 | (elf_link_add_object_symbols): Link in --as-needed libs if they | |
3031 | satisfy undefined symbols in other libs. | |
3032 | ||
33a7ffc2 JM |
3033 | 2009-01-30 Julian Brown <julian@codesourcery.com> |
3034 | ||
3035 | * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with | |
3036 | EXEC_P or DYNAMIC flags, and skip sections which are being linked | |
3037 | with --just-symbols (-R). | |
3038 | ||
13d72a14 AN |
3039 | 2009-01-29 Adam Nemet <anemet@caviumnetworks.com> |
3040 | ||
3041 | * dwarf2.c (read_rangelist): Use read_address to read low_pc and | |
3042 | high_pc in order to properly sign-extend VMAs. | |
3043 | ||
d334575b | 3044 | 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
d1fa68d3 AS |
3045 | Mark Shinwell <shinwell@codesourcery.com> |
3046 | Catherine Moore <clm@codesourcery.com> | |
d334575b JM |
3047 | |
3048 | * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments. | |
3049 | ||
528aeb62 CM |
3050 | 2009-01-28 Catherine Moore <clm@codesourcery.com> |
3051 | ||
3052 | * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and | |
3053 | SEC_LOAD for dynamic relocation sections. | |
3054 | ||
f6f05983 HPN |
3055 | 2009-01-27 Hans-Peter Nilsson <hp@axis.com> |
3056 | ||
3057 | * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table | |
3058 | (info)->tls_size, not elf_hash_table (info)->tls_sec->size for | |
3059 | the size of local TLS data. | |
3060 | ||
27cc28f9 AS |
3061 | 2009-01-27 Andreas Schwab <schwab@suse.de> |
3062 | ||
3063 | * mach-o.c (bfd_mach_o_archive_p): Restrict the number of | |
3064 | architectures in the archive. | |
3065 | ||
b3bf42d8 HPN |
3066 | 2009-01-27 Hans-Peter Nilsson <hp@axis.com> |
3067 | ||
f551b6f0 HPN |
3068 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL> |
3069 | <R_CRIS_32_DTPREL>: Correct relocation value. | |
3070 | ||
b3bf42d8 HPN |
3071 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8> |
3072 | <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined | |
3073 | symbols with non-default visibility. | |
3074 | ||
9bc4e62b NS |
3075 | 2009-01-26 Nathan Sidwell <nathan@codesourcery.com> |
3076 | ||
3077 | * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs | |
3078 | describing the trampolines. | |
3079 | (ppc_elf_relocate_section): Update relocs to describe the | |
3080 | trampolines. | |
3081 | ||
aeaf6540 DA |
3082 | 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
3083 | ||
3084 | * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that | |
3085 | branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F | |
3086 | and R_PARISC_PCREL12F relocations. | |
3087 | ||
1e8fa21e AM |
3088 | 2009-01-24 Alan Modra <amodra@bigpond.net.au> |
3089 | ||
3090 | PR 6022 | |
3091 | * elflink.c (find_version_for_sym): New function split out from, | |
3092 | but without export_dynamic test, .. | |
3093 | (_bfd_elf_link_assign_sym_version): ..here. | |
3094 | (_bfd_elf_export_symbol): Use it. | |
3095 | ||
28caa186 AM |
3096 | 2009-01-23 Alan Modra <amodra@bigpond.net.au> |
3097 | ||
3098 | * elf-bfd.h (struct elf_assign_sym_version_info): Delete. | |
3099 | (struct elf_info_failed, struct elf_find_verdep_info): Move to.. | |
3100 | * elflink.c: ..here, somewhat modified. | |
3101 | * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol, | |
3102 | _bfd_elf_link_find_version_dependencies, | |
3103 | _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section, | |
3104 | _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, | |
3105 | _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't | |
3106 | declare.. | |
3107 | * elflink.c: ..and make static here. | |
3108 | (_bfd_elf_link_find_version_dependencies): Adjust for removal | |
3109 | of output_bfd from struct elf_find_verdep_info. | |
3110 | (_bfd_elf_link_assign_sym_version): Similarly adjust to use | |
3111 | struct elf_info_failed. | |
3112 | (bfd_elf_size_dynamic_sections): Adjust. | |
3113 | ||
be04437d AM |
3114 | 2009-01-22 Alan Modra <amodra@bigpond.net.au> |
3115 | ||
3116 | PR 6832 | |
3117 | * dwarf2.c (find_line): Don't update stash->sec_info_ptr until | |
3118 | after comp_unit_find_line call. | |
3119 | ||
58f9615c NC |
3120 | 2009-01-21 Nick Clifton <nickc@redhat.com> |
3121 | ||
3122 | PR 9769 | |
3123 | * vmsutil.c (vms_file_stats_name): Remove use of unsupported | |
3124 | tm_gmtoff field in struct tm. | |
3125 | ||
fb266b8b AM |
3126 | 2009-01-21 Alan Modra <amodra@bigpond.net.au> |
3127 | ||
3128 | * elf32-spu.h (struct spu_elf_params): Add non_ia_text. | |
3129 | * elf32-spu.c (mark_overlay_section): Only include .text.ia.* | |
3130 | sections in soft-icache lines unless non_ia_text. Don't add | |
3131 | rodata if doing so would exceed line size. | |
3132 | ||
451ffe63 HPN |
3133 | 2009-01-19 Hans-Peter Nilsson <hp@axis.com> |
3134 | ||
3135 | * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol | |
3136 | types than bfd_link_hash_indirect, before early return, call | |
3137 | _bfd_elf_link_hash_copy_indirect. | |
3138 | ||
5aa6ff7c AS |
3139 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
3140 | ||
3141 | * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. | |
3142 | * elf-bfd.h (elf_backend_data): Add obj_attrs_order. | |
3143 | * elf32-arm.c (elf32_arm_obj_attrs_order): New function. | |
3144 | (elf_backend_obj_attrs_order): New define. | |
3145 | * elfxx-target.h (elf_backend_obj_attrs_order): New define. | |
3146 | (elfNN_bed): Add elf_backend_obj_attrs_order. | |
3147 | ||
3483fe2e AS |
3148 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
3149 | ||
3150 | * elf-attrs.c (is_default_attr): Substitute magic numbers with macros. | |
3151 | (obj_attr_size): Likewise. | |
3152 | (write_obj_attribute): Likewise. | |
3153 | (_bfd_elf_copy_obj_attributes): Likewise. | |
3154 | (_bfd_elf_parse_attributes): Likewise. | |
3155 | * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define. | |
3156 | (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines. | |
3157 | (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines. | |
3158 | (ATTR_TYPE_HAS_NO_DEFAULT): New define. | |
3159 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers | |
3160 | with macros. | |
3161 | ||
2d0bb761 AS |
3162 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
3163 | ||
3164 | * elf-attrs.c (is_default_attr): Support defaultless attributes. | |
3165 | (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. | |
3166 | (bfd_elf_add_obj_attr_string): Likewise. | |
3167 | (bfd_elf_add_obj_attr_int_string): Likewise. | |
3168 | (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. | |
3169 | * elf-bfd.h (struct obj_attribute): Document new flag bit. | |
3170 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that | |
3171 | Tag_nodefaults has no default value. | |
3172 | (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults | |
3173 | comment to reflect the new state. | |
3174 | ||
a77e83b7 AM |
3175 | 2009-01-19 Alan Modra <amodra@bigpond.net.au> |
3176 | ||
3177 | PR 9695 | |
3178 | * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC. | |
3179 | (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC. | |
3180 | (adjust_z_magix): Delete dead code handling QMAGIC. | |
3181 | ||
f6d29e26 KT |
3182 | 2009-01-16 Kai Tietz <kai.tietz@onevision.com> |
3183 | ||
3184 | * coffcode.h (styp_to_sec_flags): Correct interpretation of | |
3185 | IMAGE_SCN_MEM_DISCARDABLE. | |
3186 | ||
29670fb9 AM |
3187 | 2009-01-16 Alan Modra <amodra@bigpond.net.au> |
3188 | ||
3189 | * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute | |
3190 | SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. | |
3191 | * configure.in (commonbfdlib): Delete. | |
3192 | (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ | |
3193 | (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such | |
3194 | is available, not just for linux. | |
3195 | * po/SRC-POTFILES.in: Regenerate. | |
3196 | * Makefile.in: Regenerate. | |
3197 | * configure: Regenerate. | |
3198 | ||
91e22acd AS |
3199 | 2009-01-15 Andrew Stubbs <ams@codesourcery.com> |
3200 | Julian Brown <julian@codesourcery.com> | |
3201 | ||
3202 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known | |
3203 | ARM attributes in ABI 2.07. | |
3204 | * elf32-arm.c (get_secondary_compatible_arch): New function. | |
3205 | (set_secondary_compatible_arch): New function. | |
3206 | (tag_cpu_arch_combine): New function. | |
3207 | (elf32_arm_copy_one_eabi_other_attribute): Delete function. | |
3208 | (elf32_arm_copy_eabi_other_attribute_list): Delete function. | |
3209 | (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to | |
3210 | make it fit with order_01243. | |
3211 | Add support for Tag_also_compatible_with, | |
3212 | Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, | |
3213 | Tag_MPextension_use, Tag_nodefaults and Tag_conformance. | |
3214 | Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, | |
3215 | Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, | |
3216 | Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, | |
3217 | Tag_VFP_arch and Tag_ABI_FP_16bit_format. | |
3218 | Rework the way unknown attributes are handled. | |
3219 | Defer errors until all attributes have been processed. | |
3220 | ||
7b86a9fa AS |
3221 | 2009-01-15 Andrew Stubbs <ams@codesourcery.com> |
3222 | ||
3223 | * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to | |
3224 | bfd_elf_add_obj_attr_int_string. | |
3225 | Read Tag_compatibility from its new location in the attribute array, | |
3226 | rather than the attribute list. | |
3227 | (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat -> | |
3228 | bfd_elf_add_obj_attr_int_string. | |
3229 | (_bfd_elf_parse_attributes): Likewise. | |
3230 | (_bfd_elf_merge_object_attributes): There's now only one | |
3231 | Tag_compatibility, and it's in the array, not the list. | |
3232 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include | |
3233 | Tag_compatibility. | |
3234 | (bfd_elf_add_obj_attr_compat): Rename to | |
3235 | bfd_elf_add_obj_attr_int_string. | |
3236 | (bfd_elf_add_proc_attr_compat): Rename to | |
3237 | bfd_elf_add_proc_attr_int_string. | |
3238 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle | |
3239 | Tag_compatibility. | |
3240 | ||
01e1a5bc NC |
3241 | 2009-01-15 Douglas B Rupp <rupp@gnat.com> |
3242 | ||
3243 | * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo | |
3244 | (BFD32_BACKENDS_CFILES): Add new file vmsutil.c | |
3245 | (vmsutil.lo): Add dependency rule. | |
3246 | * Makefile.in: Regenerate. | |
3247 | * config.bfd (ia64*-*-*vms*): Add case. | |
3248 | * configure.in (bfd_elf64_ia64_vms_vec): Add case. | |
3249 | * configure: Regenerate. | |
3250 | * vmsutil.c: New file. | |
3251 | * vmsutil.h: New file. | |
3252 | * elf-bfd.h (struct bfd_elf_special_section): Change type of | |
3253 | attr to bfd_vma. | |
3254 | * elfxx-ia64.c (elfNN_vms_post_process_headers, | |
3255 | elfNN_vms_section_processing, elfNN_vms_final_write_processing, | |
3256 | elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, | |
3257 | elfNN_vms_object_p): New functions | |
3258 | * targets.c (bfd_elf64_ia64_vms_vec): New target. | |
3259 | ||
a33dafc3 L |
3260 | 2009-01-14 H.J. Lu <hongjiu.lu@intel.com> |
3261 | ||
3262 | PR ld/9727 | |
3263 | * elflink.c (elf_gc_sweep): Exclude the group section if the | |
3264 | first member of the section group is excluded. | |
3265 | ||
13c0e967 AM |
3266 | 2009-01-14 Alan Modra <amodra@bigpond.net.au> |
3267 | ||
3268 | PR 9735 | |
3269 | * syms.c (_bfd_stab_section_find_nearest_line): Don't free | |
3270 | saved filename, use bfd_alloc rather than bfd_malloc for it. | |
3271 | ||
460e679b AM |
3272 | 2009-01-13 Alan Modra <amodra@bigpond.net.au> |
3273 | ||
3274 | * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. | |
3275 | ||
25076afa AM |
3276 | 2009-01-13 Alan Modra <amodra@bigpond.net.au> |
3277 | ||
3278 | * elf32-spu.c (remove_cycles): Always set call->max_depth. | |
3279 | ||
37107878 AM |
3280 | 2009-01-12 Alan Modra <amodra@bigpond.net.au> |
3281 | ||
3282 | * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. | |
3283 | ||
cd4a7468 AM |
3284 | 2009-01-12 Alan Modra <amodra@bigpond.net.au> |
3285 | ||
3286 | * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, | |
3287 | num_lines_log2. | |
3288 | (struct got_entry): Add br_addr. | |
3289 | (struct call_info): Add priority. | |
3290 | (struct function_info): Add lr_store and sp_adjust. | |
3291 | (spu_elf_setup): Init line_size_log2 and num_lines_log2. | |
3292 | (spu_elf_find_overlays): For soft-icache, mark any section within cache | |
3293 | area as an overlay, and check that no other overlays exist. Look up | |
3294 | icache overlay manager entry sym. | |
3295 | (BRA_STUBS, BRA, BRASL): Define. | |
3296 | (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub. | |
3297 | (needs_ovl_stub): Adjust for soft-icache. Return priority encoded | |
3298 | in branch insn. | |
3299 | (count_stub, build_stub): Support soft-icache. | |
3300 | (build_spuear_stubs, process_stubs): Adjust build_stub call. | |
3301 | (spu_elf_size_stubs): Size soft-icache stubs. | |
3302 | (overlay_index): New function. | |
3303 | (spu_elf_build_stubs): Make static. Support soft-icache. | |
3304 | (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache. | |
3305 | (find_function_stack_adjust): Save lr store and stack adjust insn | |
3306 | offsets. | |
3307 | (maybe_insert_function): Adjust find_function_stack_adjust call. | |
3308 | (mark_functions_via_relocs): Retrieve priority. | |
3309 | (remove_cycles): Only warn about pruned arcs when stack_analysis. | |
3310 | (sort_calls): Sort by priority first. | |
3311 | (mark_overlay_section): Ignore .ovl.init. | |
3312 | (sum_stack): Only print when stack_analysis. | |
3313 | (print_one_overlay_section): New function, extracted from.. | |
3314 | (spu_elf_auto_overlay): ..here. Support soft-icache overlays. | |
3315 | (spu_elf_stack_analysis): Only print when htab->stack_analysis. | |
3316 | (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive | |
3317 | analysis. Call spu_elf_build_stubs. | |
3318 | (spu_elf_relocate_section): For soft-icache encode overlay index | |
3319 | into addresses. | |
3320 | (spu_elf_output_symbol_hook): Support soft-icache. | |
3321 | (spu_elf_modify_program_headers: Likewise. | |
37107878 | 3322 | |
cd4a7468 AM |
3323 | * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename |
3324 | num_regions to num_lines. Add line_size and max_branch. | |
3325 | (enum _ovly_flavour): Add ovly_soft_icache. | |
3326 | (spu_elf_build_stubs): Delete. | |
3327 | ||
80c29487 JK |
3328 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3329 | ||
3330 | * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4 | |
3331 | relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'. | |
3332 | ||
1bc86aea HPN |
3333 | 2009-01-07 Hans-Peter Nilsson <hp@axis.com> |
3334 | ||
3335 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> | |
3336 | <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in | |
3337 | the program, the known offset starts at the negative size of the | |
3338 | TLS section. | |
3339 | <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: | |
3340 | Similar. | |
3341 | ||
3baa454d | 3342 | 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> |
75606e85 | 3343 | |
3baa454d | 3344 | * config.bfd: Add lm32-*-rtems*. |
75606e85 | 3345 | |
9dbe8890 L |
3346 | 2009-01-03 H.J. Lu <hongjiu.lu@intel.com> |
3347 | ||
3348 | * coff-ppc.c: Add 2009 to Copyright. | |
3349 | * elf32-cris.c: Likewise. | |
3350 | * elflink.c: Likewise. | |
3351 | ||
0bdf8d40 HPN |
3352 | 2009-01-03 Hans-Peter Nilsson <hp@axis.com> |
3353 | ||
3354 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename | |
3355 | gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry. | |
3356 | ||
54ac0771 L |
3357 | 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> |
3358 | ||
3359 | PR ld/9679 | |
3360 | * elflink.c (elf_merge_st_other): New. | |
3361 | (_bfd_elf_merge_symbol): Use it on skipped weak definitions and | |
3362 | hide them if needed. | |
3363 | (elf_link_add_object_symbols): Updated. | |
3364 | ||
d8880531 L |
3365 | 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> |
3366 | ||
3367 | PR ld/9676 | |
3368 | * elflink.c (elf_link_add_object_symbols): Update def_dynamic, | |
3369 | ref_dynamic and dynamic_def fields when setting def_regular | |
3370 | to 1. | |
3371 | ||
b70b5c14 NC |
3372 | 2009-01-02 Curtis Mackie <curtmackevo@gmail.com> |
3373 | ||
3374 | PR 9682 | |
3375 | * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string | |
3376 | literal. | |
3377 | ||
d8880531 | 3378 | For older changes see ChangeLog-2008 |
56882138 AM |
3379 | \f |
3380 | Local Variables: | |
3381 | mode: change-log | |
3382 | left-margin: 8 | |
3383 | fill-column: 74 | |
3384 | version-control: never | |
3385 | End: |