remove maxq-coff port
[binutils-gdb.git] / bfd / ChangeLog
1 2010-06-29 Alan Modra <amodra@gmail.com>
2
3 * cpu-maxq.c: Delete file.
4 * coff-maxq.c: Delete file.
5 * Makefile.am: Remove references to maxq.
6 * archures.c: Likewise.
7 * coffcode.h: Likewise.
8 * configure.in: Likewise.
9 * targets.c: Likewise.
10 * config.bfd: Move maxq from obsolete to removed.
11 * Makefile.in: Regenerate.
12 * bfd-in2.h: Regenerate.
13 * configure: Regenerate.
14 * libbfd.h: Regenerate.
15 * po/SRC-POTFILES.in: Regenerate.
16
17 2010-06-28 Alan Modra <amodra@gmail.com>
18
19 * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
20 to silence gcc warning.
21
22 2010-06-27 Alan Modra <amodra@gmail.com>
23
24 * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
25 (group_sections): Likewise.
26
27 2010-06-27 Alan Modra <amodra@gmail.com>
28
29 * bout.c (aligncode): Delete set but unused variables.
30 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
31 * coff-ppc.c (ppc_record_toc_entry): Likewise.
32 (coff_ppc_relocate_section): Likewise.
33 * coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise.
34 * elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise.
35 * elf-m10300.c (mn10300_elf_final_link_relocate): Likewise.
36 (mn10300_elf_relax_section): Likewise.
37 * elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise.
38 (record_vfp11_erratum_veneer): Likewise.
39 (bfd_elf32_arm_vfp11_erratum_scan): Likewise.
40 (elf32_arm_final_link_relocate): Likewise.
41 (elf32_arm_check_relocs, arm_map_one_stub): Likewise.
42 * elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise.
43 (elf32_avr_relax_section): Likewise.
44 (avr_mark_stub_not_to_be_necessary): Likewise.
45 * elf32-bfin.c (_bfin_create_got_section): Likewise.
46 * elf32-cr16.c (cr16_elf_final_link_relocate): Likewise.
47 (elf32_cr16_relax_delete_bytes): Likewise.
48 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise.
49 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
50 * elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise.
51 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
52 (elf32_h8_relax_delete_bytes): Likewise.
53 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
54 * elf32-i370.c (i370_elf_check_relocs): Likewise.
55 (elf_relocate_section): Likewise.
56 * elf32-ip2k.c (adjust_all_relocations): Likewise.
57 (ip2k_elf_relax_section): Likewise.
58 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
59 (lm32_elf_check_relocs): Likewise.
60 (lm32_elf_finish_dynamic_sections): Likewise.
61 (lm32_elf_finish_dynamic_symbol): Likewise.
62 * elf32-m32c.c (m32c_offset_for_reloc): Likewise.
63 (m32c_elf_relax_delete_bytes): Likewise.
64 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
65 (m32r_elf_finish_dynamic_sections): Likewise.
66 (m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise.
67 * elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise.
68 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
69 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
70 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
71 (microblaze_elf_check_relocs): Likewise.
72 (microblaze_elf_finish_dynamic_symbol): Likewise.
73 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
74 * elf32-ppc.c (ppc_elf_tls_optimize): Likewise.
75 * elf32-rx.c (rx_elf_relocate_section): Likewise.
76 (elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise.
77 (elf32_rx_relax_section): Likewise.
78 * elf32-score.c (score_elf_got_offset_from_index): Likewise.
79 (score_elf_final_link_relocate): Likewise.
80 (s3_bfd_score_elf_relocate_section): Likewise.
81 * elf32-score7.c (score_elf_got_offset_from_index): Likewise.
82 (s7_bfd_score_elf_relocate_section): Likewise.
83 * elf32-sh.c (sh_elf_check_relocs): Likewise.
84 * elf32-spu.c (spu_elf_relocate_section): Likewise.
85 * elf32-v850.c (v850_elf_check_relocs): Likewise.
86 (find_remembered_hi16s_reloc): Likewise.
87 * elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise.
88 (elf_vax_relocate_section): Likewise.
89 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
90 * elf32-xtensa.c (xlate_offset_with_removed_text): Likewise.
91 (move_literal): Likewise.
92 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
93 (elf64_hppa_check_relocs): Likewise.
94 (elf64_hppa_finish_dynamic_symbol): Likewise.
95 (elf64_hppa_relocate_section): Likewise.
96 * elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise.
97 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
98 (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise.
99 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
100 (elfNN_vms_section_from_shdr): Likewise.
101 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
102 (_bfd_sparc_elf_relocate_section): Likewise.
103 * hp300hpux.c (slurp_symbol_table): Likewise.
104 * i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise.
105 * mach-o.c (bfd_mach_o_write_thread): Likewise.
106 * mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise.
107 * nlm32-sparc.c (nlm_sparc_read_reloc): Likewise.
108 * pdp11.c (pdp11_aout_link_input_section): Likewise.
109 (aout_link_input_section, aout_link_input_bfd): Likewise.
110 * pe-mips.c (mips_swap_reloc_out): Likewise.
111 (coff_pe_mips_relocate_section): Likewise.
112 * som.c (som_bfd_ar_write_symbol_stuff): Likewise.
113 * vms-alpha.c (_bfd_vms_slurp_egsd): Likewise.
114 * xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise.
115
116 * coff-i860.c (i860_reloc_processing): Avoid set but unused warning.
117 * coffcode.h (coff_compute_section_file_positions): Likewise.
118 (coff_slurp_reloc_table): Likewise.
119 * cpu-arm.c (arm_check_note): Likewise.
120 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise.
121 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
122 * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise.
123 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
124 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
125 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
126 * elf32-sh64.c (_bfd_sh_align_load_span): Likewise.
127 * ieee.c (parse_expression): Likewise.
128 (ieee_slurp_external_symbols, drop_int): Likewise.
129 * peXXigen.c (pe_print_pdata): Likewise.
130 * versados.c (process_esd): Likewise.
131
132 2010-06-25 Tristan Gingold <gingold@adacore.com>
133
134 * vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
135 its flags. Create an absolute section if needed.
136
137 2010-06-25 Tristan Gingold <gingold@adacore.com>
138
139 * vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
140 sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create
141 dummy psect anymore. Adjust.
142 (_bfd_vms_write_eeom): Adjust (use target_index instead of index)
143 (_bfd_vms_write_etir): Ditto.
144 (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
145 section name. Adjust.
146
147 2010-06-25 Tristan Gingold <gingold@adacore.com>
148
149 * vms-alpha.c (alpha_vms_write_exec): Set linktime field.
150
151 2010-06-25 Alan Modra <amodra@gmail.com>
152
153 * elf64-ppc.c (toc_skip_enum): Define.
154 (ppc64_elf_edit_toc): Use two low bits of skip array as markers.
155 Optimize largetoc sequences.
156 (adjust_toc_syms): Update for skip array change.
157 (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
158
159 2010-06-25 Alan Modra <amodra@gmail.com>
160
161 * elf64-ppc.c (is_static_defined): New function.
162 (get_tls_mask, ppc_type_of_stub): Use it here.
163 (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
164 (ppc64_elf_tls_setup): Typo fix.
165 (adjust_toc_syms): Correctly handle symbols defined past the end
166 of the toc. Move syms on removed entries to next entry rather
167 than to start of toc.
168 (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to
169 edit ppc64 input. Allocate one extra word in skip array.
170 Honour info->keep_memory when reading relocs if we can.
171 Adjust toc relocs after adjusting symbols.
172
173 2010-06-23 Nathan Sidwell <nathan@codesourcery.com>
174
175 * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
176 when scaning map.
177
178 2010-06-17 Tristan Gingold <gingold@adacore.com>
179
180 * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
181 (BFD64_BACKENDS_CFILES): ... here.
182 (BFD32_BACKENDS): Move vms-alpha.lo to ...
183 (BFD64_BACKENDS): ... here.
184 * Makefile.in: Regenerate.
185
186 2010-06-15 Joseph Myers <joseph@codesourcery.com>
187
188 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
189 * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
190 elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
191 elf32_tic6x_merge_private_bfd_data): New.
192 (bfd_elf32_bfd_merge_private_bfd_data,
193 elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
194 elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
195 Define.
196 * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
197
198 2010-06-15 Joseph Myers <joseph@codesourcery.com>
199
200 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
201 (struct elf_backend_data): Update comment on obj_attrs_order.
202 * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
203 _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
204 instead of hardcoded 4.
205 * elf32-arm.c (elf32_arm_obj_attrs_order): Use
206 LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
207 instead of hardcoded 4 and 5.
208 (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
209 instead of hardcoded 4.
210
211 2010-06-14 Kevin Buettner <kevinb@redhat.com>
212
213 * elf32-h8300.c (elf_symbol_leading_char): Define.
214
215 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
216
217 * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
218
219 2010-06-11 Tristan Gingold <gingold@adacore.com>
220
221 * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
222 sections to 0.
223
224 2010-06-11 Tristan Gingold <gingold@adacore.com>
225
226 * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
227
228 2010-06-11 Tristan Gingold <gingold@adacore.com>
229
230 * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
231 Adjust cast.
232 (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
233 * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
234 * vms-alpha.c (evax_section_flags): Make it const.
235 (vms_secflag_by_name): Remove unused ABFD argument.
236 Make SECTION_FLAGS and NAME arguments const. Clarify comment.
237 (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
238 (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
239 (_bfd_vms_write_egsd): Remove useless cast.
240
241 2010-06-10 Tristan Gingold <gingold@adacore.com>
242
243 * config.bfd: Remove #if/#endif so that som can be compiled on any
244 host.
245 * targets.c (_bfd_target_vector): Remove #if/#endif so that som
246 can be used on any host.
247
248 2010-06-10 Tristan Gingold <gingold@adacore.com>
249
250 * som.c: Can now be compiled on any host.
251 Include bfd headers instead of system one.
252 (som_compute_checksum): Parameter is now a pointer to a
253 som_external_header structure. Adjust.
254 (struct section_to_type): Field section is now const.
255 (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
256 definition.
257 (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
258 (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
259 (som_swap_clock_in, som_swap_clock_out): New functions.
260 (som_swap_header_in, som_swap_header_out): Likewise.
261 (som_swap_space_dictionary_in): Likewise.
262 (som_swap_space_dictionary_out): Likewise.
263 (som_swap_subspace_dictionary_in): Likewise.
264 (som_swap_subspace_dictionary_record_out): Likewise.
265 (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
266 (som_swap_string_auxhdr_out): Likewise.
267 (som_swap_compilation_unit_out): Likewise.
268 (som_swap_exec_auxhdr_in): Likewise.
269 (som_swap_exec_auxhdr_out): Likewise.
270 (som_swap_lst_header_in): Likewise.
271 (som_object_setup): Adjust parameter type using bfd types.
272 (setup_sections): Likewise. Ditto for object file types.
273 Use intermediate variables for external representation and use the
274 swap functions to convert.
275 (som_object_p): Ditto. Remove #ifdef/#endif on always defined
276 macros.
277 (som_prep_headers): Likewise.
278 (som_write_symbol_strings): Likewise.
279 (som_begin_writing): Likewise.
280 (som_finish_writing): Likewise.
281 (som_build_and_write_symbol_table): Likewise.
282 (bfd_section_from_som_symbol): Likewise.
283 (som_slurp_symbol_table): Likewise.
284 (som_bfd_print_private_bfd_data): Likewise.
285 (bfd_som_attach_aux_hdr): Likewise. Clear the padding.
286 (bfd_som_attach_compilation_unit): Likewise.
287 (som_bfd_count_ar_symbols): Likewise.
288 (som_bfd_fill_in_ar_symbols): Likewise.
289 (som_slurp_armap): Likewise.
290 (som_bfd_ar_write_symbol_stuff): Likewise.
291 (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
292 sprintf to write header fields.
293 * som.h: Include bfd headers instead of system one.
294 (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
295 (struct somdata): Use bfd structures instead of system ones.
296 (struct som_section_data_struct): Likewise.
297 (struct som_subspace_dictionary_record): Removed (now in
298 include/som/internal.h)
299
300 2010-06-10 Tristan Gingold <gingold@adacore.com>
301
302 * targets.c (bfd_target_list): Remove hp/ux compiler work-around
303 as bfd requires an ANSI-C compiler.
304
305 2010-06-09 Tristan Gingold <gingold@adacore.com>
306
307 * bfdio.c (bfd_bread): Fix the code to prevent reading past the
308 end of archive members.
309
310 2010-06-08 Tristan Gingold <gingold@adacore.com>
311
312 * som.c (som_bfd_free_cached_info): Do not free relocations as
313 they were allocated with bfd_zalloc.
314
315 2010-06-08 Tristan Gingold <gingold@adacore.com>
316
317 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
318 for the first block.
319
320 2010-06-08 Tristan Gingold <gingold@adacore.com>
321
322 * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
323 * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
324 * libbfd.h: Regenerate.
325 * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
326 (bfd_elfNN_mkarchive): Ditto.
327
328 2010-06-02 Tristan Gingold <gingold@adacore.com>
329
330 * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
331
332 2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
333
334 * configure: Regenerate.
335
336 2010-06-01 Tristan Gingold <gingold@adacore.com>
337
338 * vms-alpha.c (struct vms_private_data_struct): Add
339 transfer_address field. Remove unused dst_info field.
340 (alpha_vms_write_exec): Use transfer_address.
341 (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
342 (alpha_vms_bfd_final_link): Set transfer_address.
343
344 2010-05-31 Tristan Gingold <gingold@adacore.com>
345
346 * vms-lib.c (credat_lo, credat_hi): New fields.
347 (vms_read_block): Adjust comments.
348 (vms_write_block): New function.
349 (_bfd_vms_lib_archive_p): Decode majorid once. Replace some
350 hard-coded values with constants. Set credat_lo and credat_hi.
351 (_bfd_vms_lib_mkarchive): Add argument kind.
352 Set ver, mhd_size and type according to kind.
353 (_bfd_vms_lib_alpha_mkarchive): New function.
354 (struct lib_index): Renamed from struct vms_index
355 (lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
356 (get_idxlen): Type of idx argument adjusted. Add is_elfidx
357 argument and handle it.
358 (vms_write_index): Adjust argument idx. Handle elf indexes.
359 (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
360 (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
361 use it. Handle elf indexes. Set credat.
362 * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
363 (_bfd_vms_lib_alpha_mkarchive): ... this.
364 * libbfd.h: Regenerated.
365 * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
366
367 2010-05-28 Sterling Augustine <sterling@tensilica.com>
368
369 * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
370 of code to change the bits in the instructions to match the changes
371 in the relocations. Declare dest_addr and sym_sec to help.
372
373 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
374
375 Workaround GCC PR middle-end/4210.
376 * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
377 and val[3].
378
379 2010-05-27 Tristan Gingold <gingold@adacore.com>
380
381 * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
382 (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
383 (vms_time_to_time_t): Use them instead of local const.
384 (vms_time_t_to_vms_time): New function.
385 (vms_get_time): Likewise.
386 (vms_raw_get_time): Likewise.
387 * vms.h (vms_time_t_to_vms_time): New declaration.
388 (vms_get_time): Likewise.
389 (vms_raw_get_time): Likewise.
390
391 2010-05-26 Tristan Gingold <gingold@adacore.com>
392
393 * vms-alpha.c: Update comments.
394 (alpha_vms_write_exec): Set lnkflags. Write the GST.
395 (alpha_vms_link_output_symbol): New function.
396 (alpha_vms_bfd_final_link): Generate the VMS symbol table.
397 Set dst_section private field.
398 (alpha_vms_bfd_final_link): Remove code that set dst_section.
399
400 2010-05-26 Tristan Gingold <gingold@adacore.com>
401
402 * bfdio.c: Declare and define _bfd_memory_iovec.
403 (bfd_bread): Move code for BFD_IN_MEMORY...
404 (bfd_bwrite): ... Ditto ...
405 (bfd_tell): ... Ditto ...
406 (bfd_flush): ... Ditto ...
407 (bfd_stat): ... Ditto ...
408 (bfd_seek): ... Ditto ...
409 (bfd_get_size): ... Ditto ...
410 (bfd_mmap): ... Ditto ...
411 (memory_bread): ... to these new functions.
412 (memory_bwrite): Ditto.
413 (memory_btell): Ditto.
414 (memory_bseek): Ditto.
415 (memory_bflush): Ditto.
416 (memory_bstat): Ditto.
417 (memory_bmmap): Ditto.
418 (memory_bclose): New function.
419 * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
420 * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
421 * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
422 (bfd_make_writable): Use _bfd_memory_iovec.
423 * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
424 * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
425 _bfd_memory_iovec.
426 (alpha_ecoff_openr_next_archived_file): Use proxy_origin
427 instead of origin.
428 * libbfd.h: Regenerate.
429
430 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
431 Joseph Myers <joseph@codesourcery.com>
432 Andrew Stubbs <ams@codesourcery.com>
433
434 * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
435 bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
436 * configure.in: Handle FDPIC vectors.
437 * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
438 * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
439 (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
440 SYMBOL_REFERENCES_LOCAL for function descriptors.
441 (fdpic_object_p): New.
442 (sh_reloc_map): Add FDPIC and movi20 relocations.
443 (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
444 range.
445 (struct elf_sh_plt_info): Add got20 and short_plt. Update all
446 definitions.
447 (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
448 (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
449 (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
450 (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
451 (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
452 New.
453 (get_plt_info): Handle FDPIC.
454 (MAX_SHORT_PLT): Define.
455 (get_plt_index, get_plt_offset): Handle short_plt.
456 (union gotref): New.
457 (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
458 got_type and adjust all uses. Add GOT_FUNCDESC.
459 (struct sh_elf_obj_tdata): Add local_funcdesc. Rename
460 local_got_tls_type to local_got_type.
461 (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
462 users changed.
463 (sh_elf_local_funcdesc): Define.
464 (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
465 and srofixup.
466 (sh_elf_link_hash_newfunc): Initialize new fields.
467 (sh_elf_link_hash_table_create): Set fdpic_p.
468 (sh_elf_omit_section_dynsym): New.
469 (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
470 and .rofixup.
471 (allocate_dynrelocs): Allocate local function descriptors and space
472 for R_SH_FUNCDESC-related relocations, and for rofixups.
473 Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
474 require function descriptors.
475 (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
476 (sh_elf_modify_program_headers): New.
477 (sh_elf_size_dynamic_sections): Allocate function descriptors for
478 local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
479 Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
480 local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
481 entry in the .dynamic section.
482 (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
483 (sh_elf_add_rofixup, sh_elf_osec_to_segment)
484 (sh_elf_osec_readonly_p, install_movi20_field): New functions.
485 (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
486 R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
487 and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
488 read-only section warnings. Handle undefined weak symbols. Generate
489 fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
490 relocations and clear EF_SH_PIC. Handle 20-bit relocations.
491 Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
492 (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
493 R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
494 Handle 20-bit relocations.
495 (sh_elf_copy_indirect_symbol): Copy function descriptor reference
496 counts.
497 (sh_elf_check_relocs): Handle new relocations. Make symbols
498 dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
499 symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
500 for R_SH_DIR32.
501 (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
502 (sh_elf_merge_private_data): Copy initial flags. Do not clobber
503 non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
504 (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
505 here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
506 FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
507 Use install_movi20_field. Rename srel to srelgot. Always generate
508 R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
509 (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
510 Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
511 Rename sgot to sgotplt. Assert that the right number of rofixups
512 and dynamic relocations were allocated.
513 (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
514 (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
515 (elf_backend_can_make_relative_eh_frame)
516 (elf_backend_can_make_lsda_relative_eh_frame)
517 (elf_backend_encode_eh_address): Define.
518 (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
519 (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
520 Redefine for FDPIC vector.
521 * reloc.c: Add SH FDPIC and movi20 relocations.
522 * targets.c (_bfd_target_vector): Add FDPIC vectors.
523 * configure, bfd-in2.h, libbfd.h: Regenerated.
524
525 2010-05-25 Jay Krell <jay.krell@cornell.edu>
526
527 PR ld/11624
528 * archive.c (_bfd_calloc_wrapper): New function.
529 (_bfd_add_bfd_to_archive_cache): Use it.
530
531 * configure.in: Add alpha*-*-*vms* to list of natives.
532 * configure: Regenerate.
533
534 * vms-misc.c: Define globalref if necessary.
535 (vms_convert_to_var_unix_filename): Rename to
536 _bfd_vms_convert_to_var_unix_filename and export.
537 * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
538 * vms-alpha.c (vms_close_and_cleanup): Update invocation of
539 vms_convert_to_var_unix_filename.
540
541 2010-05-24 Tristan Gingold <gingold@adacore.com>
542
543 * vms-alpha.c (add_symbol_entry): New function extrated from ...
544 (add_symbol): ... adjusted.
545
546 2010-05-24 Tristan Gingold <gingold@adacore.com>
547
548 * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
549 (alpha_vms_write_exec): Add a comment.
550 (_bfd_vms_write_egsd): Ditto.
551 (alpha_vms_convert_symbol): Remove a blank line.
552
553 2010-05-21 Tristan Gingold <gingold@adacore.com>
554
555 * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
556 for the GST.
557
558 2010-05-21 Tristan Gingold <gingold@adacore.com>
559
560 * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
561 SEC_LOAD if isect has data.
562 (vms_get_symbol_info): Refine the condition for 'T' type.
563
564 2010-05-18 Tristan Gingold <gingold@adacore.com>
565
566 * vms-alpha.c (_bfd_vms_write_emh): New function.
567 (_bfd_vms_write_lmn): New function.
568 (_bfd_vms_write_eeom): Moved.
569 (hash_string): Likewise.
570 (_bfd_vms_length_hash_symbol): Likewise.
571 (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
572 and _bfd_vms_write_lmn, and call these functions.
573
574 2010-05-18 Tristan Gingold <gingold@adacore.com>
575
576 * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
577 Add details in the messages.
578 (evax_bfd_print_image): Change message.
579
580 2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
581
582 PR gas/11600
583 * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
584 (elf_fake_sections): Likewise.
585
586 * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
587 SHF_EXCLUDE here.
588 * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
589
590 2010-05-17 Tristan Gingold <gingold@adacore.com>
591
592 * vms-alpha.c: Include esgps.h and eidc.h.
593 (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
594 (evax_bfd_print_egsd_flags): New function, extracted from ...
595 (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
596 EGSD__C_SPSC and EGSD__C_IDC.
597
598 2010-05-14 Tristan Gingold <gingold@adacore.com>
599
600 * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
601 (_bfd_vms_get_object_record): Handle align byte only in the
602 foreign case.
603
604 2010-05-14 Tristan Gingold <gingold@adacore.com>
605
606 * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
607 * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
608 * libbfd.h: Regenerate.
609 * configure.in (havevecs): Define HAVE_all_vecs when
610 --enable-targets=all is set. Use AC_SUBST on it.
611 (tdefaults): Do not add havevecs.
612 (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
613 * configure: Regenerate.
614 * Makefile.am (HAVEVECS): New variable.
615 (INCLUDES): Add HAVEVECS.
616 * Makefile.in: Regenerate.
617 * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
618 target is selected. Add #ifdef/#endif around vms specific code.
619 (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
620 bfd_elfNN_archive_slurp_extended_name_table,
621 bfd_elfNN_archive_construct_extended_name_table,
622 bfd_elfNN_archive_truncate_arname,
623 bfd_elfNN_archive_write_armap,
624 bfd_elfNN_archive_read_ar_hdr,
625 bfd_elfNN_archive_write_ar_hdr,
626 bfd_elfNN_archive_openr_next_archived_file,
627 bfd_elfNN_archive_get_elt_at_index,
628 bfd_elfNN_archive_generic_stat_arch_elt,
629 bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
630
631 2010-05-11 Jie Zhang <jie@codesourcery.com>
632
633 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
634 Tag_ABI_HardFP_use correctly.
635
636 2010-05-11 Alan Modra <amodra@gmail.com>
637
638 * coffcode.h (coff_write_object_contents): Enclose all occurrences
639 of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
640
641 2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
642
643 * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
644 sym_name to improve packing.
645 (cortex_a8_erratum_scan): Check for PLT entries.
646 (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
647
648 2010-05-07 Tristan Gingold <gingold@adacore.com>
649
650 * Makefile.in: Regenerate with automake 1.11.1.
651 * aclocal.m4: Ditto.
652
653 2010-05-05 Nick Clifton <nickc@redhat.com>
654
655 * po/es.po: Updated Spanish translation.
656
657 2010-05-03 Tristan Gingold <gingold@adacore.com>
658
659 * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
660 selective_search flag.
661 Add comments.
662 * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
663 before output_has_begun is set.
664
665 2010-05-03 Tristan Gingold <gingold@adacore.com>
666
667 * vms-alpha.c: Add comments.
668 (struct vms_private_data_struct): Remove image_autoextend field.
669 (dst_check_allocation): Removed.
670 (image_write): Remove call to dst_check_allocation.
671 (vms_slurp_debug): Do not set image_autoextend. Adjust section
672 size.
673 (_bfd_vms_slurp_object_records): Remove useless new_type variable.
674 (alpha_vms_write_exec): Use dst_section to get the dst section.
675 Write the dmt section.
676 (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
677 (alpha_vms_read_sections_content): Do not set image_autoextend.
678 (alpha_vms_bfd_final_link): Generate the dst.
679
680 2010-05-03 Tristan Gingold <gingold@adacore.com>
681
682 * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
683 next array.
684 (vms_lib_dcx): Adjust for the above change.
685
686 2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
687
688 PR ld/11542
689 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
690
691 * elf32-i386.c (elf_i386_relocate_section): Use it.
692 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
693
694 2010-04-30 Tristan Gingold <gingold@adacore.com>
695
696 * vms-lib.c (vms_read_block): New function.
697 (vms_traverse_index): Use vms_read_block. Handle long key names.
698
699 2010-04-30 Tristan Gingold <gingold@adacore.com>
700
701 * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
702 and syms removed.
703 (struct carsym_mem): New structure.
704 (vms_add_index): New function.
705 (vms_add_indexes_from_list): New function.
706 (vms_traverse_index): Parameter carsym changed to carsym_mem.
707 Code adjusted to handle elfidx.
708 (vms_lib_read_index): Adjusted for vms_traverse_index changes.
709 Parameter NBREL is now a pointer.
710 (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
711 archives.
712 (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
713 (_bfd_vms_lib_find_symbol): Ditto.
714 (vms_lib_bopen): Fix two typos: return FALSE in case of error,
715 check MHD id.
716 (_bfd_vms_lib_get_module): New function.
717 (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
718 function.
719 (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
720 (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
721 (vms_write_index): Adjust for structure renamed.
722 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
723 changes of _bfd_vms_lib_find_symbol.
724
725 2010-04-28 Kai Tietz <kai.tietz@onevision.com>
726
727 * config.bfd: Correct accidential reverted patch
728 about vax*-*-*vms*.
729
730 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
731
732 * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
733 to USE_MINGW64_LEADING_UNDERSCORES.
734 * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
735 * config.bfd: Change underscoring default for x64 mingw
736 to false.
737 * coffcode.h (coff_write_relocs): Add check that dereferenced
738 sym_ptr_ptr isn't NULL.
739 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
740 * configure: Regenerated.
741 * configure.in: Add option '--enable-leading-mingw64-underscores'
742 and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
743
744 2010-04-27 Nick Clifton <nickc@redhat.com>
745
746 PR binutils/11512
747 * coffgen.c (coff_find_nearest_line): Incldue the section address
748 of function name symbols in address comparisons.
749
750 2010-04-27 Nick Clifton <nickc@redhat.com>
751
752 * po/fr.po: Updated French translation.
753
754 2010-04-23 Alan Modra <amodra@gmail.com>
755
756 * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
757 ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
758 throughout file.
759 (assign_file_positions_for_load_sections): Modify section in
760 segment warning to ignore overlay vmas.
761 * elf32-spu.c (spu_elf_object_p): Replace use of
762 ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
763
764 2010-04-22 Nick Clifton <nickc@redhat.com>
765
766 * po/bfd.pot: Updated by the Translation project.
767 * po/vi.po: Updated Vietnamese translation.
768
769 2010-04-22 Alan Modra <amodra@gmail.com>
770
771 * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
772 change. Tidy. Don't error on sections not allocated in segment.
773
774 2010-04-15 Andrew Haley <aph@redhat.com>
775
776 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
777 merge_exidx_entries.
778 * bfd-in2.h: Likewise.
779 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
780 control merging of exidx entries.
781
782 2010-04-20 Joseph Myers <joseph@codesourcery.com>
783
784 * elf32-tic6x.h: New.
785 * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
786 * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
787 elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
788 elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
789 elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
790 bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
791 (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
792 elf32_tic6x_relocate_section): Handle REL relocations.
793 (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
794
795 2010-04-20 Jakub Jelinek <jakub@redhat.com>
796
797 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
798 DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
799
800 2010-04-19 Nick Clifton <nickc@redhat.com>
801
802 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
803 arhdrpos variable.
804 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
805 attribute to warned variable. Remove unused val, type and type2
806 variables.
807
808 2010-04-16 Andreas Schwab <schwab@redhat.com>
809
810 * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
811 strict-aliasing rules.
812
813 2010-04-16 Tristan Gingold <gingold@adacore.com>
814
815 * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
816 (_bfd_vms_get_object_record): Always assume there is a pad byte
817 for alignment.
818
819 * vms-lib.c: Add a few comments.
820
821 2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
822
823 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
824 attributes in v2.08 of the ABI.
825
826 2010-04-15 Alan Modra <amodra@gmail.com>
827
828 * config.bfd (vax*-*-*vms*): Delete.
829
830 2010-04-14 Tristan Gingold <gingold@adacore.com>
831
832 * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
833 vms-tir.lo, vms.lo and add vms-alpha.lo
834 (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
835 vms-tir.c, vms.c and add vms-alpha.c
836 * Makefile.in: Regenerate.
837 * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
838 Remove vms_vax_vec.
839 * configure: Regenerate.
840 * targets.c (vms_vax_vec): Remove the declaration.
841 (_bfd_target_vector): Remove vms_vax_vec.
842 * vms-alpha.c: New file.
843 * vms-gsd.c: Removed, rewritten in vms-alpha.c
844 * vms-hdr.c: Ditto.
845 * vms-tir.c: Ditto.
846 * vms.c: Ditto.
847 * vms-misc.c: Fix indentation and comments. Replace most of
848 #if VMS_DEBUG/vms_debug with vms_debug2.
849 (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
850 (hash_string): Ditto.
851 (_bfd_vms_length_hash_symbol): Ditto.
852 (maybe_adjust_record_pointer_for_object): Ditto.
853 (_bfd_vms_get_object_record): Ditto.
854 (vms_get_remaining_object_record): Ditto.
855 (_bfd_vms_push): Ditto.
856 (_bfd_vms_pop): Ditto.
857 (_bfd_vms_get_header_values): Removed.
858 (_bfd_vms_get_first_record): Removed.
859 (vms_get_remaining_image_record): Removed.
860 (new_symbol): Removed.
861 (_bfd_vms_enter_symbol): Removed.
862 (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
863 (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
864 parameter with struct vms_rec_wr.
865 (_bfd_vms_output_push): Removed and replaced by ...
866 (_bfd_vms_output_begin_subrec): ... new function.
867 (_bfd_vms_output_alignment): Replace bfd parameter with
868 struct vms_rec_wr, and adjust.
869 (_bfd_vms_output_check): Ditto
870 (_bfd_vms_output_byte): Ditto.
871 (_bfd_vms_output_short): Ditto.
872 (_bfd_vms_output_long): Ditto.
873 (_bfd_vms_output_quad): Ditto.
874 (_bfd_vms_output_counted): Ditto.
875 (_bfd_vms_output_dump): Ditto.
876 (_bfd_vms_output_fill): Ditto.
877 (_bfd_vms_output_pop): Removed and replaced by ...
878 (_bfd_vms_output_end_subrec): ... new function.
879 (_bfd_vms_output_flush): Removed.
880 (_bfd_vms_output_align): New function.
881 (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
882 parameter.
883 (vms_convert_to_var): New function imported from vms.c
884 (vms_convert_to_var_1): Ditto.
885 (vms_convert_to_var_unix_filename): Ditto.
886 (vms_get_module_name): Ditto.
887 (get_vms_time_string): Ditto.
888 (vms_time_to_time_t): Ditto.
889 (vms_rawtime_to_time_t): Ditto.
890 * vms.h: All macros for the VMS file format are now in include/vms.
891 Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
892 have been removed.
893 (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
894 (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
895 (struct funcinfo, struct vms_private_data_struct): Ditto.
896 (struct vms_section_data_struct): Ditto.
897 (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
898 (vms_get_module_name, get_vms_time_string): New declarations.
899 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
900 (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
901 (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
902 (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
903 (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
904 (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
905 (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
906 (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
907 (_bfd_vms_output_fill): Ditto.
908 (bfd_vms_set_section_flags): Ditto.
909
910 2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
911
912 * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
913 exit due to merging the same weak symbol to test that the symbols are
914 actually weak.
915
916 2010-04-13 Alan Modra <amodra@gmail.com>
917
918 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
919 when optimizing high got_tlsgd/ld insns.
920
921 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
922
923 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
924 define.
925 (HAVE_PRSTATUS32_T): Likewise.
926
927 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
928
929 PR corefiles/11467
930 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
931 for x86_64-*-linux*.
932 * config.in: Regenerated.
933 * configure: Likewise.
934
935 * elf.c: Include CORE_HEADER if it is defined.
936
937 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
938 Jan Kratochvil <jan.kratochvil@redhat.com>
939
940 * hosts/x86-64linux.h: New.
941
942 2010-04-09 Nick Clifton <nickc@redhat.com>
943
944 * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
945 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
946 variables htab and hdr_info and mark info parameter as unused.
947 * elf.c (prep_headers): Remove unused variable i_phdrp.
948 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
949 * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
950 as unused.
951 * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
952 * verilog.c (verilog_write_section): Remove unused variable
953 address.
954
955 2010-04-07 Alan Modra <amodra@gmail.com>
956
957 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
958 * configure: Regenerate.
959
960 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
961
962 PR ld/11434
963 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
964
965 2010-04-06 Tristan Gingold <gingold@adacore.com>
966
967 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
968
969 2010-04-05 Jakub Jelinek <jakub@redhat.com>
970
971 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
972 provided that it has the expected address size and zero segment
973 length.
974
975 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
976 (struct line_info): Add op_index field, change end_sequence type to
977 unsigned char.
978 (new_line_sorts_after): For the same address compare op_index.
979 (add_line_info): Add op_index argument, store it into the structure.
980 (decode_line_info): Complain about unknown versions of .debug_line.
981 Initialize maximum_ops_per_insn. Add op_index state register and
982 track it.
983
984 2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
985
986 * elf32-ppc.c (apuinfo_set): New static var.
987 (ppc_elf_begin_write_processing): Set it here, always create an
988 APUinfo section if there were any in the inputs.
989 (ppc_elf_write_section): Check apuinfo_set.
990 (ppc_elf_final_write_processing): Likewise.
991
992 2010-04-01 Tristan Gingold <gingold@adacore.com>
993
994 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
995 vms_time_to_time_t and vms_rawtime_to_time_t.
996 * vms.c (vms_alpha_vec): Add archives support.
997 * vms-misc.c: Include safe-ctype.h
998 (vms_get_module_name): New function.
999 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
1000 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
1001 vms_get_module_name function. Use this function.
1002 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
1003 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
1004 Add prototypes for vms-lib.c
1005 * libbfd.h: Regenerate.
1006 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
1007 vms-lib.lo to vms_alpha_vec.
1008 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
1009 * configure: Regenerate.
1010 * bfd.c: Add selective_search field.
1011 * bfd-in2.h: Regenerate.
1012 * archive.c (append_relative_path): Rename to
1013 _bfd_append_relative_path and make it public.
1014 (_bfd_get_elt_at_filepos): Adjust for above renaming.
1015 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
1016 (BFD32_BACKENDS_CFILES): Add vms-lib.c
1017 * Makefile.in: Regenerate.
1018
1019 2010-04-01 Jakub Jelinek <jakub@redhat.com>
1020
1021 * dwarf2.c (read_attribute_value): Handle CU version 4
1022 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
1023 and DW_FORM_flag_present. For unknown form value return NULL.
1024 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
1025 like DW_FORM_block.
1026 (parse_comp_unit): Allow CU version 4.
1027
1028 2010-04-01 Hans-Peter Nilsson <hp@axis.com>
1029
1030 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
1031 to _bfd_elf_get_dynamic_reloc_section.
1032 (elf_cris_discard_excess_dso_dynamics): Ditto.
1033
1034 2010-03-31 Kai Tietz <kai.tietz@onevision.com>
1035
1036 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
1037 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
1038
1039 2010-03-31 Alan Modra <amodra@gmail.com>
1040
1041 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
1042 TPREL16_HI and TPREL16_HA insns.
1043
1044 2010-03-31 Hans-Peter Nilsson <hp@axis.com>
1045
1046 PR ld/11458
1047 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
1048 assert of empty pcrel_relocs_copied on the direct symbol. Instead
1049 of moving the list from the indirect symbol to the direct symbol,
1050 merge into any existing list.
1051 (cris_elf_check_relocs): Store the original section in the
1052 pcrel_relocs_copied list, not the relocation section.
1053 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
1054 the relocation section, for reducing its size. Change the
1055 BFD_ASSERT into a check for the section being read-only, and only
1056 emit warnings and TEXTREL marker when there's an entry for a
1057 read-only section.
1058
1059 2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1060
1061 * elf32-arm.c (using_thumb_only): Handle v6-M.
1062
1063 2010-03-26 Alan Modra <amodra@gmail.com>
1064
1065 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
1066 * bfd-in.h (elf_discarded_section): Clarify comment.
1067 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
1068 * bfd-in2.h: Regenerate.
1069
1070 2010-03-26 Matt Rice <ratmice@gmail.com>
1071
1072 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
1073 as unique in the armap.
1074
1075 2010-03-26 Alan Modra <amodra@gmail.com>
1076
1077 PR ld/11375
1078 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
1079 possible stub on branches.
1080
1081 2010-03-25 Joseph Myers <joseph@codesourcery.com>
1082
1083 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
1084 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
1085 (BFD32_BACKENDS): Add elf32-tic6x.lo.
1086 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
1087 * Makefile.in: Regenerate.
1088 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
1089 (bfd_archures_list): Update.
1090 * config.bfd (tic6x-*-elf): New.
1091 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
1092 New.
1093 * configure: Regenerate.
1094 * cpu-tic6x.c, elf32-tic6x.c: New.
1095 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
1096 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
1097 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
1098 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
1099 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
1100 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
1101 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
1102 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
1103 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
1104 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
1105 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
1106 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
1107 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
1108 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
1109 (_bfd_target_vector): Update.
1110 * bfd-in2.h, libbfd.h: Regenerate.
1111
1112 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
1113
1114 * aout-target.h: Update copyright year.
1115 * aout-tic30.c: Likewise.
1116 * coff-alpha.c: Likewise.
1117 * coff-rs6000.c: Likewise.
1118 * coff64-rs6000.c: Likewise.
1119 * elf64-mips.c: Likewise.
1120 * ieee.c: Likewise.
1121 * libecoff.h: Likewise.
1122 * mach-o-target.c: Likewise.
1123 * mach-o.c: Likewise.
1124 * oasys.c: Likewise.
1125 * targets.c: Likewise.
1126
1127 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
1128
1129 * libbfd-in.h: Update copyright year.
1130
1131 2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
1132
1133 PR ld/11413
1134 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
1135 instead of shared.
1136
1137 2010-03-19 Jie Zhang <jie@codesourcery.com>
1138
1139 * elf32-arm.c (struct section_list): Remove.
1140 (section_list): Remove typedef.
1141 (record_section_with_arm_elf_section_data): Remove.
1142 (find_arm_elf_section_entry): Remove.
1143 (get_arm_elf_section_data): Use is_arm_elf.
1144 (unrecord_section_with_arm_elf_section_data): Remove.
1145 (elf32_arm_new_section_hook): Don't call
1146 record_section_with_arm_elf_section_data.
1147 (elf32_arm_write_section): Set mapcount to -1 when
1148 the map has been used. Don't call
1149 unrecord_section_with_arm_elf_section_data.
1150 (unrecord_section_via_map_over_sections): Remove.
1151 (elf32_arm_close_and_cleanup): Remove.
1152 (elf32_arm_bfd_free_cached_info): Remove.
1153 (bfd_elf32_close_and_cleanup): Don't define.
1154 (bfd_elf32_bfd_free_cached_info): Don't define.
1155
1156 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1157
1158 PR binutils/11396
1159 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
1160 * libcoff.h: Regenerated.
1161
1162 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
1163 if dont_strip_reloc is set.
1164 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
1165 dont_strip_reloc on output if there is no .reloc and
1166 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
1167
1168 2010-03-18 Wei Guozhi <carrot@google.com>
1169
1170 PR gas/11323
1171 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
1172 R_ARM_GOT_PREL.
1173 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
1174 * bfd-in2.h: Regenerate.
1175 * libbfd.h: Regenerate.
1176
1177 2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
1178
1179 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
1180 (BFD_RELOC_SPU_STUB): Likewise.
1181
1182 2010-03-17 Jie Zhang <jie@codesourcery.com>
1183
1184 * elf.c (assign_file_positions_for_load_sections): Avoid
1185 overflow.
1186
1187 2010-03-17 Alan Modra <amodra@gmail.com>
1188
1189 PR binutils/11382
1190 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
1191 proper type.
1192
1193 2010-03-17 Alan Modra <amodra@gmail.com>
1194
1195 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
1196
1197 2010-03-16 Alan Modra <amodra@gmail.com>
1198
1199 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
1200 (ppc64_elf_edit_toc): Set it here.
1201 (ha_reloc_match): New function.
1202 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
1203
1204 2010-03-15 Alan Modra <amodra@gmail.com>
1205
1206 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
1207 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
1208
1209 2010-03-14 Alan Modra <amodra@gmail.com>
1210
1211 PR ld/11378
1212 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
1213 * elf64-ppc.c (call_check_done): Define.
1214 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
1215 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
1216 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
1217 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
1218 Simplify return logic. Iterate over all .init and .fini fragments
1219 by recursion. Set makes_toc_func_call here..
1220 (ppc64_elf_next_input_section): ..rather than here.
1221 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
1222
1223 2010-03-13 Alan Modra <amodra@gmail.com>
1224
1225 PR ld/11375
1226 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
1227 function descriptor symbol if there is one, not just for plt stubs.
1228 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
1229
1230 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1231
1232 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
1233 version twice.
1234 Skip it when constructing def.vd_next.
1235
1236 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
1237 bfd_elf32_i386_sol2_vec.
1238 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
1239 (elf32_bed): Redefine to elf32_i386_sol2_bed.
1240 (elf_backend_want_plt_sym): Redefine to 1.
1241
1242 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
1243 bfd_elf64_x86_64_sol2_vec.
1244 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
1245 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
1246 (elf_backend_want_plt_sym): Redefine to 1.
1247
1248 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
1249 bfd_elf32_i386_sol2_vec.
1250 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1251 targ64_selvecs.
1252 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
1253 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1254 targ_selvecs.
1255
1256 * configure.in: Handle bfd_elf32_i386_sol2_vec,
1257 bfd_elf64_x86_64_sol2_vec.
1258 * configure: Regenerate.
1259
1260 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
1261 (bfd_elf64_x86_64_sol2_vec): Declare.
1262 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
1263 bfd_elf64_x86_64_sol2_vec.
1264
1265 2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1266
1267 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
1268 sections.
1269
1270 2010-03-04 Alan Modra <amodra@gmail.com>
1271
1272 PR 11302
1273 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
1274 (read_attribute_value, decode_line_info): Likewise.
1275 (add_line_info, read_rangelist): Return FALSE on alloc failures.
1276 (arange_add, sort_line_sequences): Likewise.
1277 (find_abstract_instance_name): Handle failures from called funcs.
1278 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
1279 (find_line): Realloc to a temp, and handle alloc fail.
1280
1281 2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1282
1283 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
1284 a mapping symbol to an empty section.
1285
1286 2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1287
1288 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
1289 return value from the call to _bfd_elf_merge_object_attributes.
1290
1291 2010-03-02 Christophe Lyon <christophe.lyon@st.com>
1292 Alan Modra <amodra@gmail.com>
1293
1294 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
1295 destination mode of the a8 stub.
1296 (elf32_arm_link_hash_table): Add top_id field.
1297 (elf32_arm_link_hash_table_create): Initialize top_id.
1298 (arm_type_of_stub): Update prototype, st_type can now be updated
1299 by this function. Actual destination address in case of PLT is
1300 computed here, to help factorizing code.
1301 (elf32_arm_stub_name): Update prototype, use stub_type additional
1302 parameter to build stub name.
1303 (elf32_arm_get_stub_entry): Update prototype, use stub_type
1304 additional parameter to build stub entry.
1305 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
1306 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
1307 Call elf32_arm_final_link_relocate to process all in-stub
1308 relocations.
1309 (elf32_arm_setup_section_lists): Update top_id.
1310 (cortex_a8_erratum_scan): Record stub destination mode.
1311 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
1312 to new prototype.
1313 (elf32_arm_final_link_relocate): Enable processing of in-stub
1314 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
1315 needed, enabling code factorization.
1316 (elf32_arm_final_link): Process stub sections.
1317 (elf32_arm_output_map_sym): Add entry to code/data map.
1318
1319 2010-03-01 David S. Miller <davem@davemloft.net>
1320
1321 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
1322 h->def_regular, set h->ref_regular.
1323 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
1324 and dynamic relocations if h->ref_regular.
1325
1326 * elfxx-sparc.c (struct elf_reloc_map): Delete.
1327 (sparc_reloc_map): Delete.
1328 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
1329 relocation type in switch statements.
1330
1331 2010-02-25 Alan Modra <amodra@gmail.com>
1332
1333 PR ld/11304
1334 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
1335 to final_link and invert. For final link allow some flags to
1336 differ. Don't specially allow flags to be all zero.
1337
1338 2010-02-24 Alan Modra <amodra@gmail.com>
1339
1340 PR binutils/10858
1341 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
1342 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
1343 table.
1344
1345 2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
1346
1347 PR binutils/11297
1348 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
1349 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
1350
1351 2010-02-22 Alan Modra <amodra@gmail.com>
1352
1353 * reloc.c (bfd_check_overflow): When forming addrmask, shift
1354 fieldmask left by rightshift.
1355 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
1356 overflow checks.
1357
1358 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
1359
1360 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
1361 STT_GNU_IFUNC on large common symbol.
1362
1363 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
1364
1365 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
1366 has_ifunc_symbols if the symbol comes from a shared library.
1367 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1368 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
1369 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
1370 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
1371 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
1372
1373 2010-02-19 Alan Modra <amodra@gmail.com>
1374
1375 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
1376 (_bfd_elf_copy_private_header_data): ..here.
1377 * elflink.c (_bfd_elf_size_group_sections): New function.
1378 (bfd_elf_size_dynamic_sections): Call it.
1379 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
1380 (_bfd_elf_fixup_group_sections): Declare.
1381
1382 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1383
1384 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
1385 merging Tag_DIV_use, Tag_MPextension_use, and
1386 Tag_MPextension_use_legacy tags.
1387
1388 2010-02-18 Alan Modra <amodra@gmail.com>
1389
1390 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
1391 commit. Don't write zeros for removed group members.
1392 (_bfd_elf_copy_private_header_data): Adjust size of group section
1393 when group members are removed by objcopy.
1394
1395 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
1396
1397 PR binutils/11280
1398 * configure.host (*-*-solaris2.11): Add host define to select
1399 valid default code page for windres/windmc on solaris.
1400
1401 2010-02-15 Nick Clifton <nickc@redhat.com>
1402
1403 * po/vi.po: Updated Vietnamese translation.
1404
1405 2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
1406
1407 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
1408 missing mapping symbol to data only sections.
1409
1410 2010-02-11 David S. Miller <davem@davemloft.net>
1411
1412 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
1413 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
1414 symbols.
1415 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
1416 these relocs on global symbols.
1417 (gdopoff): New.
1418 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
1419 local symbol references which are not STT_GNU_IFUNC. Handle
1420 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
1421 and deal with negative vs. non-negative values properly.
1422
1423 2010-02-09 Tristan Gingold <gingold@adacore.com>
1424
1425 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
1426 non-external relocation.
1427
1428 2010-02-09 Alan Modra <amodra@gmail.com>
1429
1430 * elf64-ppc.c (merge_got_entries): Move earlier in file.
1431 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
1432 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
1433 (ppc64_elf_layout_multitoc): Don't resize if we have already
1434 merged got entries.
1435
1436 2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
1437
1438 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
1439 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
1440 elfcore_write_s390_prefix): New.
1441 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
1442 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
1443 elfcore_write_s390_prefix): New.
1444 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
1445 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
1446 (elfcore_write_register_note): Handle .reg-s390-timer,
1447 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
1448 .reg-s390-prefix section.
1449
1450 2010-02-09 Alan Modra <amodra@gmail.com>
1451
1452 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
1453 unsigned char. Update variables and code using them throughout file.
1454 (struct ppc_link_hash_entry): Likewise for tls_mask.
1455
1456 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
1457
1458 * elf64-ppc.c (has_small_toc_reloc): Don't define.
1459 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
1460 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
1461 code setting the flag.
1462 (ppc64_elf_next_toc_section): Group big-toc sections in
1463 0x80008000 chunks.
1464
1465 2010-02-08 David S. Miller <davem@davemloft.net>
1466
1467 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
1468 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
1469
1470 * elfxx-sparc.c (create_got_section): Delete.
1471 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
1472 section creator does that work for us. Use ->elf.foo instead of
1473 ->foo where applicable.
1474 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
1475 where applicable.
1476 (allocate_dynrelocs): Likewise.
1477 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1478 (_bfd_sparc_elf_relocate_section): Likewise.
1479 (sparc_vxworks_build_plt_entry): Likewise.
1480 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1481 (sparc_finish_dyn): Likewise.
1482 (sparc_vxworks_finish_exec_plt): Likewise.
1483 (sparc_vxworks_finish_shared_plt): Likewise.
1484 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
1485
1486 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
1487 macros for visibilty and locality checks.
1488 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
1489 (allocate_dynrelocs): Likewise.
1490 (_bfd_sparc_elf_relocate_section): Likewise.
1491 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
1492
1493 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
1494 but never used local var 'dynobj'.
1495
1496 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
1497 nocopyreloc.
1498
1499 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
1500 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
1501 * bfd-in2.h: Regenerate.
1502 * libbfd.h: Regenerate.
1503
1504 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
1505 and loc_hash_memory.
1506 (_bfd_sparc_elf_link_hash_table_free): Declare.
1507 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
1508 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
1509 bfd_elf32_bfd_link_hash_table_free): Define.
1510 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
1511 has_ifunc_symbols if STT_GNU_IFUNC.
1512 (bfd_elf64_bfd_link_hash_table_free): Define.
1513 (elf_backend_post_process_headers): Define always.
1514 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
1515 (sparc_reloc_map): Add entries for new IFUNC relocs.
1516 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
1517 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
1518 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
1519 elf_sparc_get_local_sym_hash): New.
1520 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
1521 from here...
1522 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
1523 local hash table.
1524 (_bfd_sparc_elf_link_hash_table_free): New.
1525 (create_ifunc_sections): New.
1526 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
1527 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
1528 cons up a fake local hash table entry for it. Unconditionally add
1529 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
1530 dyn relocs for ifunc.
1531 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
1532 (allocate_dynrelocs): Unconditionally emit a PLT entry when
1533 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
1534 (allocate_local_dynrelocs): New function.
1535 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
1536 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
1537 like splt.
1538 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
1539 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
1540 plt in iplt/irelplt.
1541
1542 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
1543
1544 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
1545 max_contents_size, only consider sections whose contents must
1546 be swapped in.
1547
1548 2010-02-09 Alan Modra <amodra@gmail.com>
1549
1550 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
1551 (ppc64_elf_size_dynamic_sections): ..and here..
1552 (merge_got_entries): ..rather than here.
1553
1554 2010-02-09 Alan Modra <amodra@gmail.com>
1555
1556 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
1557 (has_small_toc_reloc): Define.
1558 (ppc64_elf_check_relocs): Set the above flags.
1559 (ppc64_elf_edit_opd): Delete obfd param.
1560 (ppc64_elf_tls_optimize): Likewise.
1561 (ppc64_elf_edit_toc): Likewise.
1562 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
1563 * elf64-ppc.h: Update prototypes.
1564
1565 2010-02-08 Alan Modra <amodra@gmail.com>
1566
1567 * section.c (struct bfd_section): Delete has_tls_reloc,
1568 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
1569 Add sec_flg0 thru sec_flg5.
1570 (BFD_FAKE_SECTION): Update for changed flags.
1571 * ecoff.c (bfd_debug_section): Likewise.
1572 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1573 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1574 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
1575 * elf32-xtensa.c (reloc_done): Define.
1576 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
1577 * bfd-in2.h: Regenerate.
1578
1579 2010-02-08 Tristan Gingold <gingold@adacore.com>
1580
1581 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
1582 for non-scattered relocations.
1583
1584 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
1585
1586 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
1587 apuinfo sections, only scan input sections once and reuse the
1588 buffer.
1589
1590 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1591
1592 * archures.c (bfd_mach_ppc_titan): Define.
1593 * bfd-in2.h: Regenerate.
1594 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
1595
1596 2010-02-08 Alan Modra <amodra@gmail.com>
1597
1598 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
1599
1600 2010-02-05 Sterling Augustine <sterling@tensilica.com>
1601
1602 * elf.c (assign_file_positions_for_load_sections) Update lma of
1603 section if necessary. Fixes Bugzilla 11219.
1604
1605 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
1606
1607 * elf32-i386.c: Remove trailing white spaces.
1608 * elf64-x86-64.c: Likewise.
1609
1610 2010-02-03 Nick Clifton <nickc@redhat.com>
1611
1612 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
1613 entries for other architectures.
1614 (struct elf_link_hash_table): Add hash_table_id field.
1615 (elf_hash_table_id): New accessor macro.
1616 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
1617 parameter.
1618 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
1619 returning cast pointer.
1620 (elf32_mn10300_link_hash_table_create): Identify new table as
1621 containing MN10300 extensions.
1622 (mn10300_elf_relax_section): Check pointer returned by
1623 elf32_mn10300_hash_table.
1624 * elf32-arm.c: Likewise, except using ARM extensions.
1625 * elf32-avr.c: Likewise, except using AVR extensions.
1626 * elf32-bfin.c: Likewise, except using BFIN extensions.
1627 * elf32-cris.c: Likewise, except using CRIS extensions.
1628 * elf32-frv.c: Likewise, except using FRV extensions.
1629 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
1630 * elf32-i386.c: Likewise, except using I386 extensions.
1631 * elf32-lm32.c: Likewise, except using LM32 extensions.
1632 * elf32-m32r.c: Likewise, except using M32RM extensions.
1633 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
1634 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
1635 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
1636 * elf32-m68k.c: Likewise, except using M68K extensions.
1637 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
1638 * elf32-ppc.c: Likewise, except using PPC32 extensions.
1639 * elf32-s390.c: Likewise, except using S390 extensions.
1640 * elf32-sh.c: Likewise, except using SH extensions.
1641 * elf32-spu.c: Likewise, except using SPU extensions.
1642 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
1643 * elf64-alpha.c: Likewise, except using ALPHA extensions.
1644 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
1645 * elf64-ppc.c: Likewise, except using PPC64 extensions.
1646 * elf64-s390.c: Likewise, except using S390 extensions.
1647 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
1648 * elfxx-ia64.c: Likewise, except using IA64 extensions.
1649 * elfxx-mips.c: Likewise, except using MIPS extensions.
1650 * elfxx-sparc.c: Likewise, except using SPARC extensions.
1651 * elfxx-sparc.h: Likewise, except using SPARC extensions.
1652 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
1653 redundant structure.
1654 (elf32_cr16_hash_table): Delete unused macro.
1655 (elf32_cr16_link_hash_traverse): Delete unused macro.
1656 * elf32-score.c: Likewise.
1657 * elf32-score7.c: Likewise.
1658 * elf32-vax.c: Likewise.
1659 * elf64-sh64.c: Likewise.
1660
1661 2010-02-03 Alan Modra <amodra@gmail.com>
1662
1663 * elf64-ppc.c (struct plt_entry): Move earlier in file.
1664 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
1665 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
1666 Update all uses.
1667 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
1668 Remove no_multi_toc.
1669 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
1670 when allocating a new struct got_entry.
1671 (allocate_got): New function, extracted from..
1672 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
1673 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
1674 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
1675 (ppc64_elf_setup_section_lists): Remove output_bfd param and
1676 no_multi_toc, add add_stub_section and layout_sections_again. Stash
1677 new params in htab. Extract some code to..
1678 (ppc64_elf_start_multitoc_partition): ..here. New function.
1679 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
1680 second pass toc scan.
1681 (merge_got_entries, merge_global_got, reallocate_got): New functions.
1682 (ppc64_elf_reinit_toc): Rename to..
1683 (ppc64_elf_finish_multitoc_partition): ..this.
1684 (ppc64_elf_layout_multitoc): New function.
1685 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
1686 layout_sections_again params.
1687 (ppc64_elf_relocate_section): Handle indirect got entries.
1688 * elf64-ppc.h: Update prototypes. Declare new functions.
1689
1690 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
1691
1692 * elf-bfd.h (elfcore_write_xstatereg): New.
1693
1694 * elf.c (elfcore_grok_xstatereg): New.
1695 (elfcore_write_xstatereg): Likewise.
1696 (elfcore_grok_note): Handle NT_X86_XSTATE.
1697 (elfcore_write_register_note): Handle .reg-xstate section.
1698
1699 2010-02-01 Tristan Gingold <gingold@adacore.com>
1700
1701 * som.c (som_write_ar_hdr): Define this macro.
1702
1703 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1704
1705 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
1706 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
1707 linkage table pointer to use the global table pointer if not doing
1708 a shared link.
1709
1710 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1711
1712 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
1713 if it has already been set.
1714
1715 2010-01-27 Tristan Gingold <gingold@adacore.com>
1716
1717 * vms.h: Remove trailing spaces.
1718 (struct hdr_struct): Remove unused hdr_c_cpr field.
1719 (enum file_format_enum): Add comments.
1720 * vms.c (vms_bfd_print_private_bfd_data): New function that
1721 replaces the macro.
1722 Remove trailing spaces.
1723 * vms-misc.c: Improve comments.
1724 (_bfd_vms_get_object_record): Also handle files without pads.
1725 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
1726 * vms-gsd.c (struct flagdescstruct): Make name field const.
1727 (gsyflagdesc): Fix typo.
1728
1729 2010-01-27 Alan Modra <amodra@gmail.com>
1730
1731 PR ld/11217
1732 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
1733 (ppc64_elf_setup_section_lists): Init them.
1734 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
1735 and .toc on the same input file.
1736 (ppc64_elf_relocate_section): Correct GOT entry offset.
1737
1738 2010-01-26 Tristan Gingold <gingold@adacore.com>
1739
1740 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
1741 (bfd_target): Add _bfd_write_ar_hdr_fn field.
1742 * archive.c (is_bsd44_extended_name): New macro.
1743 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
1744 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
1745 name.
1746 (_bfd_archive_bsd44_construct_extended_name_table): New function.
1747 (_bfd_generic_write_ar_hdr): Ditto.
1748 (_bfd_bsd44_write_ar_hdr): Ditto.
1749 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
1750 (bsd_write_armap): Adjust firstreal computation.
1751 * libbfd-in.h (struct areltdata): Add extra_size field.
1752 (_bfd_generic_write_ar_hdr): Add prototype.
1753 (_bfd_bsd44_write_ar_hdr): Ditto.
1754 (_bfd_write_ar_hdr): Define.
1755 (_bfd_noarchive_write_ar_hdr): Ditto.
1756 (_bfd_archive_bsd_write_ar_hdr): Ditto.
1757 (_bfd_archive_coff_write_ar_hdr): Ditto.
1758 (_bfd_archive_bsd44_slurp_armap): Ditto.
1759 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
1760 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
1761 (_bfd_archive_bsd44_truncate_arname): Ditto.
1762 (_bfd_archive_bsd44_write_armap): Ditto.
1763 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
1764 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
1765 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
1766 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
1767 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
1768 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
1769 * libbfd.h: Regenerate.
1770 * oasys.c (oasys_write_ar_hdr): Define.
1771 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
1772 * ieee.c (ieee_write_ar_hdr): Define.
1773 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
1774 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
1775 (bfd_pmac_xcoff_backend_data): Ditto.
1776 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
1777 (bfd_xcoff_aix5_backend_data): Ditto.
1778 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
1779 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
1780 * aout-tic30.c (MY_write_ar_hdr): Ditto.
1781 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
1782 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1783 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1784 (bfd_mach_o_construct_extended_name_table)
1785 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1786 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1787 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
1788 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1789 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1790 (bfd_mach_o_construct_extended_name_table)
1791 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1792 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1793 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
1794 * bfd-in2.h: Regenerate.
1795
1796 2010-01-26 Alan Modra <amodra@gmail.com>
1797 H.J. Lu <hongjiu.lu@intel.com>
1798
1799 PR ld/11218
1800 * elflink.c (elf_link_output_extsym): Do not ignore undefined
1801 symbols with ref_regular set when gc_sections is active.
1802
1803 2010-01-25 Alan Modra <amodra@gmail.com>
1804
1805 PR ld/11217
1806 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
1807 with relocations against undefined weak symbols.
1808 (ppc64_elf_relocate_section): Don't optimize calls to undefined
1809 weak functions if the symbol is dynamic.
1810 (ppc64_elf_relocate_section): Edit tprel tls sequences.
1811 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1812 (_bfd_elf_ppc_at_tprel_transform): New function.
1813 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
1814 * bfd-in2.h: Regenerate.
1815
1816 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
1817
1818 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
1819 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
1820 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
1821 bitsize to 1.
1822 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
1823
1824 2010-01-21 Nick Clifton <nickc@redhat.com>
1825
1826 * elflink.c (elf_link_add_object_symbols): Look up name of
1827 undefined symbol both before and after versioning has been
1828 applied. Do not bother with symbols that are weakly undefined.
1829
1830 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1831
1832 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
1833 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
1834
1835 2010-01-19 Cary Coutant <ccoutant@google.com>
1836
1837 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
1838
1839 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
1840 Alan Modra <amodra@gmail.com>
1841
1842 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
1843 (elf_object_p): Read e_phnum extension.
1844 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
1845 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
1846 that we can read last program header.
1847
1848 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1849
1850 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
1851 R_ARM_THM_CALL entry.
1852 (elf32_arm_final_link_relocate): Correct calculation of
1853 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
1854 or R_ARM_THM_JUMP24 relocation.
1855
1856 2010-01-18 Alan Modra <amodra@gmail.com>
1857
1858 PR 11168
1859 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
1860 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
1861 than 32k sections.
1862
1863 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 Fix compilation warning on gcc-3.4.
1866 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
1867 parameter index to sec_index according to the function definition.
1868
1869 2010-01-13 Chao-ying Fu <fu@mips.com>
1870
1871 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
1872 It is true for all CPUs.
1873 (jal_reloc_p): New function.
1874 (mips_elf_calculate_relocation): Rename require_jalxp to
1875 cross_mode_jump_p.
1876 Update comment for CROSS_MODE_JUMP_P.
1877 Set up cross_mode_jump_p based on the mode change.
1878 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
1879 Update comment for CROSS_MODE_JUMP_P.
1880 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
1881 Use !cross_mode_jump_p to guard conversion.
1882 Convert "jr t9" to "b", if possible.
1883 (_bfd_mips_elf_relocate_section): Rename require_jalx to
1884 cross_mode_jump_p.
1885 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
1886 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
1887
1888 2010-01-13 Nick Clifton <nickc@redhat.com>
1889
1890 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
1891 "m32c" returns the m32c arch_info_struct and not the m16c
1892 arch_info_struct.
1893 (arch_info_struct): Use the new scan function.
1894 (bfd_m32c_arch): Likewise.
1895
1896 2010-01-13 Tristan Gingold <gingold@adacore.com>
1897
1898 * config.bfd: Remove duplicated target vector for i386-*-darwin.
1899 Appends new arch instead of overriding.
1900 Use mach_o_x86_64_vec for x86_64-*-darwin.
1901 * configure.in: Add mach_o_x86_64_vec.
1902 * configure: Regenerate.
1903 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
1904 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
1905 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
1906 * Makefile.in: Regenerate.
1907 * mach-o-x86-64.c: New file.
1908
1909 2010-01-13 Tristan Gingold <gingold@adacore.com>
1910
1911 * reloc.c: Add MACH_O_X86_64 relocations.
1912 * bfd-in2.h: Regenerate.
1913 * libbfd.h: Regenerate.
1914
1915 2010-01-13 Tristan Gingold <gingold@adacore.com>
1916
1917 * archive.c (normalize): Use lbasename.
1918 (bfd_bsd_truncate_arname): Ditto.
1919 (bfd_gnu_truncate_arname): Ditto.
1920
1921 2010-01-12 Tristan Gingold <gingold@adacore.com>
1922
1923 * makefile.vms (CFLAGS): Turns warnings into informational messages.
1924
1925 2010-01-11 Tristan Gingold <gingold@adacore.com>
1926
1927 * mach-o.h: Add x86-64 relocation types.
1928
1929 2010-01-11 Tristan Gingold <gingold@adacore.com>
1930
1931 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
1932 (bfd_mach_o_set_arch_mach): New prototype.
1933 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
1934 (bfd_mach_o_set_arch_mach): New function.
1935 (bfd_mach_o_gen_mkobject): New function.
1936 Set TARGET_ARCHITECTURE for the generic back-ends.
1937 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
1938 Check that TARGET_ARCHITECTURE is defined.
1939 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
1940 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
1941
1942 2010-01-11 Tristan Gingold <gingold@adacore.com>
1943
1944 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
1945
1946 2010-01-11 Nick Clifton <nickc@redhat.com>
1947
1948 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
1949 handling of R_V850_HI16_S relocation.
1950
1951 2010-01-11 Alan Modra <amodra@gmail.com>
1952
1953 PR 11103
1954 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
1955
1956 2010-01-11 Alan Modra <amodra@gmail.com>
1957
1958 PR 6832
1959 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
1960 (find_abstract_instance_name): Use it.
1961 (parse_comp_unit): Set it.
1962
1963 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1964
1965 * Makefile.in: Regenerate.
1966 * configure: Regenerate.
1967
1968 2010-01-08 Tristan Gingold <gingold@adacore.com>
1969
1970 * archive.c: Remove bfd_special_undocumented_glue.
1971
1972 2010-01-08 Alan Modra <amodra@gmail.com>
1973
1974 PR ld/11133
1975 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
1976 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
1977 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1978
1979 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1980
1981 PR ld/11138
1982 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
1983 a symbol referenced by DSO is is defined in a non-shared object
1984 and forced local.
1985
1986 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1987
1988 PR ld/11133
1989 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
1990 undefined __start_XXX/__stop_XXX in all input files and set
1991 SEC_KEEP.
1992
1993 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1994
1995 PR ld/11143
1996 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
1997
1998 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
1999
2000 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
2001 before including procfs.h.
2002 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
2003 * configure.in: Added autoconf probe for the pr_fpreg member.
2004 * configure: Regenerated.
2005 * config.in: Regenerated.
2006 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
2007
2008 2010-01-04 Joel Brobecker <brobecker@adacore.com>
2009
2010 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
2011 * dwarf2.c (concat_filename): Rename dirname with dir_name
2012 to void shadowing the dirname function.
2013 Rename subdirname with subdir_name to stay consistent with
2014 the new dir_name variable name.
2015
2016 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
2017
2018 * archures.c: Add bfd_mach_ppc_e500mc64.
2019 * bfd-in2.h: Regenerate.
2020 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
2021 bfd_mach_ppc_e500mc64.
2022
2023 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2024
2025 Fix -Wshadow warnings (seen on ppc-aix)
2026 * xcofflink.c: Replace finfo by flinfo throughout.
2027
2028 For older changes see ChangeLog-2009
2029 \f
2030 Local Variables:
2031 mode: change-log
2032 left-margin: 8
2033 fill-column: 74
2034 version-control: never
2035 End: