2010-05-18 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2010-05-18 Tristan Gingold <gingold@adacore.com>
2
3 * vms-alpha.c (_bfd_vms_write_emh): New function.
4 (_bfd_vms_write_lmn): New function.
5 (_bfd_vms_write_eeom): Moved.
6 (hash_string): Likewise.
7 (_bfd_vms_length_hash_symbol): Likewise.
8 (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
9 and _bfd_vms_write_lmn, and call these functions.
10
11 2010-05-18 Tristan Gingold <gingold@adacore.com>
12
13 * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
14 Add details in the messages.
15 (evax_bfd_print_image): Change message.
16
17 2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
18
19 PR gas/11600
20 * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
21 (elf_fake_sections): Likewise.
22
23 * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
24 SHF_EXCLUDE here.
25 * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
26
27 2010-05-17 Tristan Gingold <gingold@adacore.com>
28
29 * vms-alpha.c: Include esgps.h and eidc.h.
30 (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
31 (evax_bfd_print_egsd_flags): New function, extracted from ...
32 (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
33 EGSD__C_SPSC and EGSD__C_IDC.
34
35 2010-05-14 Tristan Gingold <gingold@adacore.com>
36
37 * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
38 (_bfd_vms_get_object_record): Handle align byte only in the
39 foreign case.
40
41 2010-05-14 Tristan Gingold <gingold@adacore.com>
42
43 * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
44 * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
45 * libbfd.h: Regenerate.
46 * configure.in (havevecs): Define HAVE_all_vecs when
47 --enable-targets=all is set. Use AC_SUBST on it.
48 (tdefaults): Do not add havevecs.
49 (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
50 * configure: Regenerate.
51 * Makefile.am (HAVEVECS): New variable.
52 (INCLUDES): Add HAVEVECS.
53 * Makefile.in: Regenerate.
54 * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
55 target is selected. Add #ifdef/#endif around vms specific code.
56 (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
57 bfd_elfNN_archive_slurp_extended_name_table,
58 bfd_elfNN_archive_construct_extended_name_table,
59 bfd_elfNN_archive_truncate_arname,
60 bfd_elfNN_archive_write_armap,
61 bfd_elfNN_archive_read_ar_hdr,
62 bfd_elfNN_archive_write_ar_hdr,
63 bfd_elfNN_archive_openr_next_archived_file,
64 bfd_elfNN_archive_get_elt_at_index,
65 bfd_elfNN_archive_generic_stat_arch_elt,
66 bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
67
68 2010-05-11 Jie Zhang <jie@codesourcery.com>
69
70 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
71 Tag_ABI_HardFP_use correctly.
72
73 2010-05-11 Alan Modra <amodra@gmail.com>
74
75 * coffcode.h (coff_write_object_contents): Enclose all occurrences
76 of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
77
78 2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
79
80 * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
81 sym_name to improve packing.
82 (cortex_a8_erratum_scan): Check for PLT entries.
83 (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
84
85 2010-05-07 Tristan Gingold <gingold@adacore.com>
86
87 * Makefile.in: Regenerate with automake 1.11.1.
88 * aclocal.m4: Ditto.
89
90 2010-05-05 Nick Clifton <nickc@redhat.com>
91
92 * po/es.po: Updated Spanish translation.
93
94 2010-05-03 Tristan Gingold <gingold@adacore.com>
95
96 * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
97 selective_search flag.
98 Add comments.
99 * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
100 before output_has_begun is set.
101
102 2010-05-03 Tristan Gingold <gingold@adacore.com>
103
104 * vms-alpha.c: Add comments.
105 (struct vms_private_data_struct): Remove image_autoextend field.
106 (dst_check_allocation): Removed.
107 (image_write): Remove call to dst_check_allocation.
108 (vms_slurp_debug): Do not set image_autoextend. Adjust section
109 size.
110 (_bfd_vms_slurp_object_records): Remove useless new_type variable.
111 (alpha_vms_write_exec): Use dst_section to get the dst section.
112 Write the dmt section.
113 (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
114 (alpha_vms_read_sections_content): Do not set image_autoextend.
115 (alpha_vms_bfd_final_link): Generate the dst.
116
117 2010-05-03 Tristan Gingold <gingold@adacore.com>
118
119 * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
120 next array.
121 (vms_lib_dcx): Adjust for the above change.
122
123 2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
124
125 PR ld/11542
126 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
127
128 * elf32-i386.c (elf_i386_relocate_section): Use it.
129 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
130
131 2010-04-30 Tristan Gingold <gingold@adacore.com>
132
133 * vms-lib.c (vms_read_block): New function.
134 (vms_traverse_index): Use vms_read_block. Handle long key names.
135
136 2010-04-30 Tristan Gingold <gingold@adacore.com>
137
138 * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
139 and syms removed.
140 (struct carsym_mem): New structure.
141 (vms_add_index): New function.
142 (vms_add_indexes_from_list): New function.
143 (vms_traverse_index): Parameter carsym changed to carsym_mem.
144 Code adjusted to handle elfidx.
145 (vms_lib_read_index): Adjusted for vms_traverse_index changes.
146 Parameter NBREL is now a pointer.
147 (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
148 archives.
149 (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
150 (_bfd_vms_lib_find_symbol): Ditto.
151 (vms_lib_bopen): Fix two typos: return FALSE in case of error,
152 check MHD id.
153 (_bfd_vms_lib_get_module): New function.
154 (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
155 function.
156 (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
157 (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
158 (vms_write_index): Adjust for structure renamed.
159 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
160 changes of _bfd_vms_lib_find_symbol.
161
162 2010-04-28 Kai Tietz <kai.tietz@onevision.com>
163
164 * config.bfd: Correct accidential reverted patch
165 about vax*-*-*vms*.
166
167 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
168
169 * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
170 to USE_MINGW64_LEADING_UNDERSCORES.
171 * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
172 * config.bfd: Change underscoring default for x64 mingw
173 to false.
174 * coffcode.h (coff_write_relocs): Add check that dereferenced
175 sym_ptr_ptr isn't NULL.
176 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
177 * configure: Regenerated.
178 * configure.in: Add option '--enable-leading-mingw64-underscores'
179 and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
180
181 2010-04-27 Nick Clifton <nickc@redhat.com>
182
183 PR binutils/11512
184 * coffgen.c (coff_find_nearest_line): Incldue the section address
185 of function name symbols in address comparisons.
186
187 2010-04-27 Nick Clifton <nickc@redhat.com>
188
189 * po/fr.po: Updated French translation.
190
191 2010-04-23 Alan Modra <amodra@gmail.com>
192
193 * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
194 ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
195 throughout file.
196 (assign_file_positions_for_load_sections): Modify section in
197 segment warning to ignore overlay vmas.
198 * elf32-spu.c (spu_elf_object_p): Replace use of
199 ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
200
201 2010-04-22 Nick Clifton <nickc@redhat.com>
202
203 * po/bfd.pot: Updated by the Translation project.
204 * po/vi.po: Updated Vietnamese translation.
205
206 2010-04-22 Alan Modra <amodra@gmail.com>
207
208 * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
209 change. Tidy. Don't error on sections not allocated in segment.
210
211 2010-04-15 Andrew Haley <aph@redhat.com>
212
213 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
214 merge_exidx_entries.
215 * bfd-in2.h: Likewise.
216 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
217 control merging of exidx entries.
218
219 2010-04-20 Joseph Myers <joseph@codesourcery.com>
220
221 * elf32-tic6x.h: New.
222 * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
223 * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
224 elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
225 elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
226 elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
227 bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
228 (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
229 elf32_tic6x_relocate_section): Handle REL relocations.
230 (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
231
232 2010-04-20 Jakub Jelinek <jakub@redhat.com>
233
234 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
235 DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
236
237 2010-04-19 Nick Clifton <nickc@redhat.com>
238
239 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
240 arhdrpos variable.
241 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
242 attribute to warned variable. Remove unused val, type and type2
243 variables.
244
245 2010-04-16 Andreas Schwab <schwab@redhat.com>
246
247 * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
248 strict-aliasing rules.
249
250 2010-04-16 Tristan Gingold <gingold@adacore.com>
251
252 * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
253 (_bfd_vms_get_object_record): Always assume there is a pad byte
254 for alignment.
255
256 * vms-lib.c: Add a few comments.
257
258 2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
259
260 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
261 attributes in v2.08 of the ABI.
262
263 2010-04-15 Alan Modra <amodra@gmail.com>
264
265 * config.bfd (vax*-*-*vms*): Delete.
266
267 2010-04-14 Tristan Gingold <gingold@adacore.com>
268
269 * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
270 vms-tir.lo, vms.lo and add vms-alpha.lo
271 (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
272 vms-tir.c, vms.c and add vms-alpha.c
273 * Makefile.in: Regenerate.
274 * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
275 Remove vms_vax_vec.
276 * configure: Regenerate.
277 * targets.c (vms_vax_vec): Remove the declaration.
278 (_bfd_target_vector): Remove vms_vax_vec.
279 * vms-alpha.c: New file.
280 * vms-gsd.c: Removed, rewritten in vms-alpha.c
281 * vms-hdr.c: Ditto.
282 * vms-tir.c: Ditto.
283 * vms.c: Ditto.
284 * vms-misc.c: Fix indentation and comments. Replace most of
285 #if VMS_DEBUG/vms_debug with vms_debug2.
286 (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
287 (hash_string): Ditto.
288 (_bfd_vms_length_hash_symbol): Ditto.
289 (maybe_adjust_record_pointer_for_object): Ditto.
290 (_bfd_vms_get_object_record): Ditto.
291 (vms_get_remaining_object_record): Ditto.
292 (_bfd_vms_push): Ditto.
293 (_bfd_vms_pop): Ditto.
294 (_bfd_vms_get_header_values): Removed.
295 (_bfd_vms_get_first_record): Removed.
296 (vms_get_remaining_image_record): Removed.
297 (new_symbol): Removed.
298 (_bfd_vms_enter_symbol): Removed.
299 (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
300 (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
301 parameter with struct vms_rec_wr.
302 (_bfd_vms_output_push): Removed and replaced by ...
303 (_bfd_vms_output_begin_subrec): ... new function.
304 (_bfd_vms_output_alignment): Replace bfd parameter with
305 struct vms_rec_wr, and adjust.
306 (_bfd_vms_output_check): Ditto
307 (_bfd_vms_output_byte): Ditto.
308 (_bfd_vms_output_short): Ditto.
309 (_bfd_vms_output_long): Ditto.
310 (_bfd_vms_output_quad): Ditto.
311 (_bfd_vms_output_counted): Ditto.
312 (_bfd_vms_output_dump): Ditto.
313 (_bfd_vms_output_fill): Ditto.
314 (_bfd_vms_output_pop): Removed and replaced by ...
315 (_bfd_vms_output_end_subrec): ... new function.
316 (_bfd_vms_output_flush): Removed.
317 (_bfd_vms_output_align): New function.
318 (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
319 parameter.
320 (vms_convert_to_var): New function imported from vms.c
321 (vms_convert_to_var_1): Ditto.
322 (vms_convert_to_var_unix_filename): Ditto.
323 (vms_get_module_name): Ditto.
324 (get_vms_time_string): Ditto.
325 (vms_time_to_time_t): Ditto.
326 (vms_rawtime_to_time_t): Ditto.
327 * vms.h: All macros for the VMS file format are now in include/vms.
328 Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
329 have been removed.
330 (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
331 (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
332 (struct funcinfo, struct vms_private_data_struct): Ditto.
333 (struct vms_section_data_struct): Ditto.
334 (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
335 (vms_get_module_name, get_vms_time_string): New declarations.
336 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
337 (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
338 (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
339 (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
340 (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
341 (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
342 (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
343 (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
344 (_bfd_vms_output_fill): Ditto.
345 (bfd_vms_set_section_flags): Ditto.
346
347 2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
348
349 * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
350 exit due to merging the same weak symbol to test that the symbols are
351 actually weak.
352
353 2010-04-13 Alan Modra <amodra@gmail.com>
354
355 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
356 when optimizing high got_tlsgd/ld insns.
357
358 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
359
360 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
361 define.
362 (HAVE_PRSTATUS32_T): Likewise.
363
364 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
365
366 PR corefiles/11467
367 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
368 for x86_64-*-linux*.
369 * config.in: Regenerated.
370 * configure: Likewise.
371
372 * elf.c: Include CORE_HEADER if it is defined.
373
374 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
375 Jan Kratochvil <jan.kratochvil@redhat.com>
376
377 * hosts/x86-64linux.h: New.
378
379 2010-04-09 Nick Clifton <nickc@redhat.com>
380
381 * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
382 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
383 variables htab and hdr_info and mark info parameter as unused.
384 * elf.c (prep_headers): Remove unused variable i_phdrp.
385 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
386 * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
387 as unused.
388 * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
389 * verilog.c (verilog_write_section): Remove unused variable
390 address.
391
392 2010-04-07 Alan Modra <amodra@gmail.com>
393
394 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
395 * configure: Regenerate.
396
397 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
398
399 PR ld/11434
400 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
401
402 2010-04-06 Tristan Gingold <gingold@adacore.com>
403
404 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
405
406 2010-04-05 Jakub Jelinek <jakub@redhat.com>
407
408 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
409 provided that it has the expected address size and zero segment
410 length.
411
412 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
413 (struct line_info): Add op_index field, change end_sequence type to
414 unsigned char.
415 (new_line_sorts_after): For the same address compare op_index.
416 (add_line_info): Add op_index argument, store it into the structure.
417 (decode_line_info): Complain about unknown versions of .debug_line.
418 Initialize maximum_ops_per_insn. Add op_index state register and
419 track it.
420
421 2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
422
423 * elf32-ppc.c (apuinfo_set): New static var.
424 (ppc_elf_begin_write_processing): Set it here, always create an
425 APUinfo section if there were any in the inputs.
426 (ppc_elf_write_section): Check apuinfo_set.
427 (ppc_elf_final_write_processing): Likewise.
428
429 2010-04-01 Tristan Gingold <gingold@adacore.com>
430
431 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
432 vms_time_to_time_t and vms_rawtime_to_time_t.
433 * vms.c (vms_alpha_vec): Add archives support.
434 * vms-misc.c: Include safe-ctype.h
435 (vms_get_module_name): New function.
436 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
437 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
438 vms_get_module_name function. Use this function.
439 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
440 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
441 Add prototypes for vms-lib.c
442 * libbfd.h: Regenerate.
443 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
444 vms-lib.lo to vms_alpha_vec.
445 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
446 * configure: Regenerate.
447 * bfd.c: Add selective_search field.
448 * bfd-in2.h: Regenerate.
449 * archive.c (append_relative_path): Rename to
450 _bfd_append_relative_path and make it public.
451 (_bfd_get_elt_at_filepos): Adjust for above renaming.
452 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
453 (BFD32_BACKENDS_CFILES): Add vms-lib.c
454 * Makefile.in: Regenerate.
455
456 2010-04-01 Jakub Jelinek <jakub@redhat.com>
457
458 * dwarf2.c (read_attribute_value): Handle CU version 4
459 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
460 and DW_FORM_flag_present. For unknown form value return NULL.
461 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
462 like DW_FORM_block.
463 (parse_comp_unit): Allow CU version 4.
464
465 2010-04-01 Hans-Peter Nilsson <hp@axis.com>
466
467 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
468 to _bfd_elf_get_dynamic_reloc_section.
469 (elf_cris_discard_excess_dso_dynamics): Ditto.
470
471 2010-03-31 Kai Tietz <kai.tietz@onevision.com>
472
473 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
474 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
475
476 2010-03-31 Alan Modra <amodra@gmail.com>
477
478 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
479 TPREL16_HI and TPREL16_HA insns.
480
481 2010-03-31 Hans-Peter Nilsson <hp@axis.com>
482
483 PR ld/11458
484 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
485 assert of empty pcrel_relocs_copied on the direct symbol. Instead
486 of moving the list from the indirect symbol to the direct symbol,
487 merge into any existing list.
488 (cris_elf_check_relocs): Store the original section in the
489 pcrel_relocs_copied list, not the relocation section.
490 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
491 the relocation section, for reducing its size. Change the
492 BFD_ASSERT into a check for the section being read-only, and only
493 emit warnings and TEXTREL marker when there's an entry for a
494 read-only section.
495
496 2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
497
498 * elf32-arm.c (using_thumb_only): Handle v6-M.
499
500 2010-03-26 Alan Modra <amodra@gmail.com>
501
502 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
503 * bfd-in.h (elf_discarded_section): Clarify comment.
504 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
505 * bfd-in2.h: Regenerate.
506
507 2010-03-26 Matt Rice <ratmice@gmail.com>
508
509 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
510 as unique in the armap.
511
512 2010-03-26 Alan Modra <amodra@gmail.com>
513
514 PR ld/11375
515 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
516 possible stub on branches.
517
518 2010-03-25 Joseph Myers <joseph@codesourcery.com>
519
520 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
521 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
522 (BFD32_BACKENDS): Add elf32-tic6x.lo.
523 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
524 * Makefile.in: Regenerate.
525 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
526 (bfd_archures_list): Update.
527 * config.bfd (tic6x-*-elf): New.
528 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
529 New.
530 * configure: Regenerate.
531 * cpu-tic6x.c, elf32-tic6x.c: New.
532 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
533 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
534 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
535 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
536 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
537 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
538 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
539 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
540 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
541 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
542 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
543 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
544 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
545 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
546 (_bfd_target_vector): Update.
547 * bfd-in2.h, libbfd.h: Regenerate.
548
549 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
550
551 * aout-target.h: Update copyright year.
552 * aout-tic30.c: Likewise.
553 * coff-alpha.c: Likewise.
554 * coff-rs6000.c: Likewise.
555 * coff64-rs6000.c: Likewise.
556 * elf64-mips.c: Likewise.
557 * ieee.c: Likewise.
558 * libecoff.h: Likewise.
559 * mach-o-target.c: Likewise.
560 * mach-o.c: Likewise.
561 * oasys.c: Likewise.
562 * targets.c: Likewise.
563
564 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
565
566 * libbfd-in.h: Update copyright year.
567
568 2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
569
570 PR ld/11413
571 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
572 instead of shared.
573
574 2010-03-19 Jie Zhang <jie@codesourcery.com>
575
576 * elf32-arm.c (struct section_list): Remove.
577 (section_list): Remove typedef.
578 (record_section_with_arm_elf_section_data): Remove.
579 (find_arm_elf_section_entry): Remove.
580 (get_arm_elf_section_data): Use is_arm_elf.
581 (unrecord_section_with_arm_elf_section_data): Remove.
582 (elf32_arm_new_section_hook): Don't call
583 record_section_with_arm_elf_section_data.
584 (elf32_arm_write_section): Set mapcount to -1 when
585 the map has been used. Don't call
586 unrecord_section_with_arm_elf_section_data.
587 (unrecord_section_via_map_over_sections): Remove.
588 (elf32_arm_close_and_cleanup): Remove.
589 (elf32_arm_bfd_free_cached_info): Remove.
590 (bfd_elf32_close_and_cleanup): Don't define.
591 (bfd_elf32_bfd_free_cached_info): Don't define.
592
593 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
594
595 PR binutils/11396
596 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
597 * libcoff.h: Regenerated.
598
599 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
600 if dont_strip_reloc is set.
601 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
602 dont_strip_reloc on output if there is no .reloc and
603 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
604
605 2010-03-18 Wei Guozhi <carrot@google.com>
606
607 PR gas/11323
608 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
609 R_ARM_GOT_PREL.
610 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
611 * bfd-in2.h: Regenerate.
612 * libbfd.h: Regenerate.
613
614 2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
615
616 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
617 (BFD_RELOC_SPU_STUB): Likewise.
618
619 2010-03-17 Jie Zhang <jie@codesourcery.com>
620
621 * elf.c (assign_file_positions_for_load_sections): Avoid
622 overflow.
623
624 2010-03-17 Alan Modra <amodra@gmail.com>
625
626 PR binutils/11382
627 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
628 proper type.
629
630 2010-03-17 Alan Modra <amodra@gmail.com>
631
632 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
633
634 2010-03-16 Alan Modra <amodra@gmail.com>
635
636 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
637 (ppc64_elf_edit_toc): Set it here.
638 (ha_reloc_match): New function.
639 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
640
641 2010-03-15 Alan Modra <amodra@gmail.com>
642
643 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
644 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
645
646 2010-03-14 Alan Modra <amodra@gmail.com>
647
648 PR ld/11378
649 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
650 * elf64-ppc.c (call_check_done): Define.
651 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
652 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
653 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
654 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
655 Simplify return logic. Iterate over all .init and .fini fragments
656 by recursion. Set makes_toc_func_call here..
657 (ppc64_elf_next_input_section): ..rather than here.
658 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
659
660 2010-03-13 Alan Modra <amodra@gmail.com>
661
662 PR ld/11375
663 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
664 function descriptor symbol if there is one, not just for plt stubs.
665 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
666
667 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
668
669 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
670 version twice.
671 Skip it when constructing def.vd_next.
672
673 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
674 bfd_elf32_i386_sol2_vec.
675 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
676 (elf32_bed): Redefine to elf32_i386_sol2_bed.
677 (elf_backend_want_plt_sym): Redefine to 1.
678
679 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
680 bfd_elf64_x86_64_sol2_vec.
681 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
682 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
683 (elf_backend_want_plt_sym): Redefine to 1.
684
685 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
686 bfd_elf32_i386_sol2_vec.
687 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
688 targ64_selvecs.
689 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
690 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
691 targ_selvecs.
692
693 * configure.in: Handle bfd_elf32_i386_sol2_vec,
694 bfd_elf64_x86_64_sol2_vec.
695 * configure: Regenerate.
696
697 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
698 (bfd_elf64_x86_64_sol2_vec): Declare.
699 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
700 bfd_elf64_x86_64_sol2_vec.
701
702 2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
703
704 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
705 sections.
706
707 2010-03-04 Alan Modra <amodra@gmail.com>
708
709 PR 11302
710 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
711 (read_attribute_value, decode_line_info): Likewise.
712 (add_line_info, read_rangelist): Return FALSE on alloc failures.
713 (arange_add, sort_line_sequences): Likewise.
714 (find_abstract_instance_name): Handle failures from called funcs.
715 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
716 (find_line): Realloc to a temp, and handle alloc fail.
717
718 2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
719
720 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
721 a mapping symbol to an empty section.
722
723 2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
724
725 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
726 return value from the call to _bfd_elf_merge_object_attributes.
727
728 2010-03-02 Christophe Lyon <christophe.lyon@st.com>
729 Alan Modra <amodra@gmail.com>
730
731 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
732 destination mode of the a8 stub.
733 (elf32_arm_link_hash_table): Add top_id field.
734 (elf32_arm_link_hash_table_create): Initialize top_id.
735 (arm_type_of_stub): Update prototype, st_type can now be updated
736 by this function. Actual destination address in case of PLT is
737 computed here, to help factorizing code.
738 (elf32_arm_stub_name): Update prototype, use stub_type additional
739 parameter to build stub name.
740 (elf32_arm_get_stub_entry): Update prototype, use stub_type
741 additional parameter to build stub entry.
742 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
743 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
744 Call elf32_arm_final_link_relocate to process all in-stub
745 relocations.
746 (elf32_arm_setup_section_lists): Update top_id.
747 (cortex_a8_erratum_scan): Record stub destination mode.
748 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
749 to new prototype.
750 (elf32_arm_final_link_relocate): Enable processing of in-stub
751 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
752 needed, enabling code factorization.
753 (elf32_arm_final_link): Process stub sections.
754 (elf32_arm_output_map_sym): Add entry to code/data map.
755
756 2010-03-01 David S. Miller <davem@davemloft.net>
757
758 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
759 h->def_regular, set h->ref_regular.
760 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
761 and dynamic relocations if h->ref_regular.
762
763 * elfxx-sparc.c (struct elf_reloc_map): Delete.
764 (sparc_reloc_map): Delete.
765 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
766 relocation type in switch statements.
767
768 2010-02-25 Alan Modra <amodra@gmail.com>
769
770 PR ld/11304
771 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
772 to final_link and invert. For final link allow some flags to
773 differ. Don't specially allow flags to be all zero.
774
775 2010-02-24 Alan Modra <amodra@gmail.com>
776
777 PR binutils/10858
778 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
779 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
780 table.
781
782 2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
783
784 PR binutils/11297
785 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
786 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
787
788 2010-02-22 Alan Modra <amodra@gmail.com>
789
790 * reloc.c (bfd_check_overflow): When forming addrmask, shift
791 fieldmask left by rightshift.
792 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
793 overflow checks.
794
795 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
796
797 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
798 STT_GNU_IFUNC on large common symbol.
799
800 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
801
802 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
803 has_ifunc_symbols if the symbol comes from a shared library.
804 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
805 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
806 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
807 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
808 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
809
810 2010-02-19 Alan Modra <amodra@gmail.com>
811
812 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
813 (_bfd_elf_copy_private_header_data): ..here.
814 * elflink.c (_bfd_elf_size_group_sections): New function.
815 (bfd_elf_size_dynamic_sections): Call it.
816 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
817 (_bfd_elf_fixup_group_sections): Declare.
818
819 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
820
821 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
822 merging Tag_DIV_use, Tag_MPextension_use, and
823 Tag_MPextension_use_legacy tags.
824
825 2010-02-18 Alan Modra <amodra@gmail.com>
826
827 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
828 commit. Don't write zeros for removed group members.
829 (_bfd_elf_copy_private_header_data): Adjust size of group section
830 when group members are removed by objcopy.
831
832 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
833
834 PR binutils/11280
835 * configure.host (*-*-solaris2.11): Add host define to select
836 valid default code page for windres/windmc on solaris.
837
838 2010-02-15 Nick Clifton <nickc@redhat.com>
839
840 * po/vi.po: Updated Vietnamese translation.
841
842 2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
843
844 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
845 missing mapping symbol to data only sections.
846
847 2010-02-11 David S. Miller <davem@davemloft.net>
848
849 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
850 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
851 symbols.
852 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
853 these relocs on global symbols.
854 (gdopoff): New.
855 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
856 local symbol references which are not STT_GNU_IFUNC. Handle
857 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
858 and deal with negative vs. non-negative values properly.
859
860 2010-02-09 Tristan Gingold <gingold@adacore.com>
861
862 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
863 non-external relocation.
864
865 2010-02-09 Alan Modra <amodra@gmail.com>
866
867 * elf64-ppc.c (merge_got_entries): Move earlier in file.
868 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
869 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
870 (ppc64_elf_layout_multitoc): Don't resize if we have already
871 merged got entries.
872
873 2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
874
875 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
876 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
877 elfcore_write_s390_prefix): New.
878 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
879 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
880 elfcore_write_s390_prefix): New.
881 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
882 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
883 (elfcore_write_register_note): Handle .reg-s390-timer,
884 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
885 .reg-s390-prefix section.
886
887 2010-02-09 Alan Modra <amodra@gmail.com>
888
889 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
890 unsigned char. Update variables and code using them throughout file.
891 (struct ppc_link_hash_entry): Likewise for tls_mask.
892
893 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
894
895 * elf64-ppc.c (has_small_toc_reloc): Don't define.
896 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
897 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
898 code setting the flag.
899 (ppc64_elf_next_toc_section): Group big-toc sections in
900 0x80008000 chunks.
901
902 2010-02-08 David S. Miller <davem@davemloft.net>
903
904 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
905 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
906
907 * elfxx-sparc.c (create_got_section): Delete.
908 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
909 section creator does that work for us. Use ->elf.foo instead of
910 ->foo where applicable.
911 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
912 where applicable.
913 (allocate_dynrelocs): Likewise.
914 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
915 (_bfd_sparc_elf_relocate_section): Likewise.
916 (sparc_vxworks_build_plt_entry): Likewise.
917 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
918 (sparc_finish_dyn): Likewise.
919 (sparc_vxworks_finish_exec_plt): Likewise.
920 (sparc_vxworks_finish_shared_plt): Likewise.
921 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
922
923 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
924 macros for visibilty and locality checks.
925 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
926 (allocate_dynrelocs): Likewise.
927 (_bfd_sparc_elf_relocate_section): Likewise.
928 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
929
930 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
931 but never used local var 'dynobj'.
932
933 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
934 nocopyreloc.
935
936 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
937 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
938 * bfd-in2.h: Regenerate.
939 * libbfd.h: Regenerate.
940
941 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
942 and loc_hash_memory.
943 (_bfd_sparc_elf_link_hash_table_free): Declare.
944 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
945 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
946 bfd_elf32_bfd_link_hash_table_free): Define.
947 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
948 has_ifunc_symbols if STT_GNU_IFUNC.
949 (bfd_elf64_bfd_link_hash_table_free): Define.
950 (elf_backend_post_process_headers): Define always.
951 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
952 (sparc_reloc_map): Add entries for new IFUNC relocs.
953 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
954 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
955 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
956 elf_sparc_get_local_sym_hash): New.
957 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
958 from here...
959 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
960 local hash table.
961 (_bfd_sparc_elf_link_hash_table_free): New.
962 (create_ifunc_sections): New.
963 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
964 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
965 cons up a fake local hash table entry for it. Unconditionally add
966 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
967 dyn relocs for ifunc.
968 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
969 (allocate_dynrelocs): Unconditionally emit a PLT entry when
970 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
971 (allocate_local_dynrelocs): New function.
972 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
973 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
974 like splt.
975 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
976 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
977 plt in iplt/irelplt.
978
979 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
980
981 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
982 max_contents_size, only consider sections whose contents must
983 be swapped in.
984
985 2010-02-09 Alan Modra <amodra@gmail.com>
986
987 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
988 (ppc64_elf_size_dynamic_sections): ..and here..
989 (merge_got_entries): ..rather than here.
990
991 2010-02-09 Alan Modra <amodra@gmail.com>
992
993 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
994 (has_small_toc_reloc): Define.
995 (ppc64_elf_check_relocs): Set the above flags.
996 (ppc64_elf_edit_opd): Delete obfd param.
997 (ppc64_elf_tls_optimize): Likewise.
998 (ppc64_elf_edit_toc): Likewise.
999 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
1000 * elf64-ppc.h: Update prototypes.
1001
1002 2010-02-08 Alan Modra <amodra@gmail.com>
1003
1004 * section.c (struct bfd_section): Delete has_tls_reloc,
1005 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
1006 Add sec_flg0 thru sec_flg5.
1007 (BFD_FAKE_SECTION): Update for changed flags.
1008 * ecoff.c (bfd_debug_section): Likewise.
1009 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1010 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1011 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
1012 * elf32-xtensa.c (reloc_done): Define.
1013 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
1014 * bfd-in2.h: Regenerate.
1015
1016 2010-02-08 Tristan Gingold <gingold@adacore.com>
1017
1018 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
1019 for non-scattered relocations.
1020
1021 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
1022
1023 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
1024 apuinfo sections, only scan input sections once and reuse the
1025 buffer.
1026
1027 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1028
1029 * archures.c (bfd_mach_ppc_titan): Define.
1030 * bfd-in2.h: Regenerate.
1031 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
1032
1033 2010-02-08 Alan Modra <amodra@gmail.com>
1034
1035 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
1036
1037 2010-02-05 Sterling Augustine <sterling@tensilica.com>
1038
1039 * elf.c (assign_file_positions_for_load_sections) Update lma of
1040 section if necessary. Fixes Bugzilla 11219.
1041
1042 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
1043
1044 * elf32-i386.c: Remove trailing white spaces.
1045 * elf64-x86-64.c: Likewise.
1046
1047 2010-02-03 Nick Clifton <nickc@redhat.com>
1048
1049 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
1050 entries for other architectures.
1051 (struct elf_link_hash_table): Add hash_table_id field.
1052 (elf_hash_table_id): New accessor macro.
1053 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
1054 parameter.
1055 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
1056 returning cast pointer.
1057 (elf32_mn10300_link_hash_table_create): Identify new table as
1058 containing MN10300 extensions.
1059 (mn10300_elf_relax_section): Check pointer returned by
1060 elf32_mn10300_hash_table.
1061 * elf32-arm.c: Likewise, except using ARM extensions.
1062 * elf32-avr.c: Likewise, except using AVR extensions.
1063 * elf32-bfin.c: Likewise, except using BFIN extensions.
1064 * elf32-cris.c: Likewise, except using CRIS extensions.
1065 * elf32-frv.c: Likewise, except using FRV extensions.
1066 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
1067 * elf32-i386.c: Likewise, except using I386 extensions.
1068 * elf32-lm32.c: Likewise, except using LM32 extensions.
1069 * elf32-m32r.c: Likewise, except using M32RM extensions.
1070 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
1071 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
1072 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
1073 * elf32-m68k.c: Likewise, except using M68K extensions.
1074 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
1075 * elf32-ppc.c: Likewise, except using PPC32 extensions.
1076 * elf32-s390.c: Likewise, except using S390 extensions.
1077 * elf32-sh.c: Likewise, except using SH extensions.
1078 * elf32-spu.c: Likewise, except using SPU extensions.
1079 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
1080 * elf64-alpha.c: Likewise, except using ALPHA extensions.
1081 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
1082 * elf64-ppc.c: Likewise, except using PPC64 extensions.
1083 * elf64-s390.c: Likewise, except using S390 extensions.
1084 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
1085 * elfxx-ia64.c: Likewise, except using IA64 extensions.
1086 * elfxx-mips.c: Likewise, except using MIPS extensions.
1087 * elfxx-sparc.c: Likewise, except using SPARC extensions.
1088 * elfxx-sparc.h: Likewise, except using SPARC extensions.
1089 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
1090 redundant structure.
1091 (elf32_cr16_hash_table): Delete unused macro.
1092 (elf32_cr16_link_hash_traverse): Delete unused macro.
1093 * elf32-score.c: Likewise.
1094 * elf32-score7.c: Likewise.
1095 * elf32-vax.c: Likewise.
1096 * elf64-sh64.c: Likewise.
1097
1098 2010-02-03 Alan Modra <amodra@gmail.com>
1099
1100 * elf64-ppc.c (struct plt_entry): Move earlier in file.
1101 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
1102 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
1103 Update all uses.
1104 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
1105 Remove no_multi_toc.
1106 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
1107 when allocating a new struct got_entry.
1108 (allocate_got): New function, extracted from..
1109 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
1110 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
1111 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
1112 (ppc64_elf_setup_section_lists): Remove output_bfd param and
1113 no_multi_toc, add add_stub_section and layout_sections_again. Stash
1114 new params in htab. Extract some code to..
1115 (ppc64_elf_start_multitoc_partition): ..here. New function.
1116 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
1117 second pass toc scan.
1118 (merge_got_entries, merge_global_got, reallocate_got): New functions.
1119 (ppc64_elf_reinit_toc): Rename to..
1120 (ppc64_elf_finish_multitoc_partition): ..this.
1121 (ppc64_elf_layout_multitoc): New function.
1122 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
1123 layout_sections_again params.
1124 (ppc64_elf_relocate_section): Handle indirect got entries.
1125 * elf64-ppc.h: Update prototypes. Declare new functions.
1126
1127 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
1128
1129 * elf-bfd.h (elfcore_write_xstatereg): New.
1130
1131 * elf.c (elfcore_grok_xstatereg): New.
1132 (elfcore_write_xstatereg): Likewise.
1133 (elfcore_grok_note): Handle NT_X86_XSTATE.
1134 (elfcore_write_register_note): Handle .reg-xstate section.
1135
1136 2010-02-01 Tristan Gingold <gingold@adacore.com>
1137
1138 * som.c (som_write_ar_hdr): Define this macro.
1139
1140 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1141
1142 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
1143 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
1144 linkage table pointer to use the global table pointer if not doing
1145 a shared link.
1146
1147 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1148
1149 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
1150 if it has already been set.
1151
1152 2010-01-27 Tristan Gingold <gingold@adacore.com>
1153
1154 * vms.h: Remove trailing spaces.
1155 (struct hdr_struct): Remove unused hdr_c_cpr field.
1156 (enum file_format_enum): Add comments.
1157 * vms.c (vms_bfd_print_private_bfd_data): New function that
1158 replaces the macro.
1159 Remove trailing spaces.
1160 * vms-misc.c: Improve comments.
1161 (_bfd_vms_get_object_record): Also handle files without pads.
1162 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
1163 * vms-gsd.c (struct flagdescstruct): Make name field const.
1164 (gsyflagdesc): Fix typo.
1165
1166 2010-01-27 Alan Modra <amodra@gmail.com>
1167
1168 PR ld/11217
1169 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
1170 (ppc64_elf_setup_section_lists): Init them.
1171 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
1172 and .toc on the same input file.
1173 (ppc64_elf_relocate_section): Correct GOT entry offset.
1174
1175 2010-01-26 Tristan Gingold <gingold@adacore.com>
1176
1177 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
1178 (bfd_target): Add _bfd_write_ar_hdr_fn field.
1179 * archive.c (is_bsd44_extended_name): New macro.
1180 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
1181 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
1182 name.
1183 (_bfd_archive_bsd44_construct_extended_name_table): New function.
1184 (_bfd_generic_write_ar_hdr): Ditto.
1185 (_bfd_bsd44_write_ar_hdr): Ditto.
1186 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
1187 (bsd_write_armap): Adjust firstreal computation.
1188 * libbfd-in.h (struct areltdata): Add extra_size field.
1189 (_bfd_generic_write_ar_hdr): Add prototype.
1190 (_bfd_bsd44_write_ar_hdr): Ditto.
1191 (_bfd_write_ar_hdr): Define.
1192 (_bfd_noarchive_write_ar_hdr): Ditto.
1193 (_bfd_archive_bsd_write_ar_hdr): Ditto.
1194 (_bfd_archive_coff_write_ar_hdr): Ditto.
1195 (_bfd_archive_bsd44_slurp_armap): Ditto.
1196 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
1197 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
1198 (_bfd_archive_bsd44_truncate_arname): Ditto.
1199 (_bfd_archive_bsd44_write_armap): Ditto.
1200 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
1201 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
1202 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
1203 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
1204 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
1205 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
1206 * libbfd.h: Regenerate.
1207 * oasys.c (oasys_write_ar_hdr): Define.
1208 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
1209 * ieee.c (ieee_write_ar_hdr): Define.
1210 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
1211 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
1212 (bfd_pmac_xcoff_backend_data): Ditto.
1213 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
1214 (bfd_xcoff_aix5_backend_data): Ditto.
1215 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
1216 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
1217 * aout-tic30.c (MY_write_ar_hdr): Ditto.
1218 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
1219 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1220 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1221 (bfd_mach_o_construct_extended_name_table)
1222 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1223 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1224 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
1225 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1226 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1227 (bfd_mach_o_construct_extended_name_table)
1228 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1229 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1230 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
1231 * bfd-in2.h: Regenerate.
1232
1233 2010-01-26 Alan Modra <amodra@gmail.com>
1234 H.J. Lu <hongjiu.lu@intel.com>
1235
1236 PR ld/11218
1237 * elflink.c (elf_link_output_extsym): Do not ignore undefined
1238 symbols with ref_regular set when gc_sections is active.
1239
1240 2010-01-25 Alan Modra <amodra@gmail.com>
1241
1242 PR ld/11217
1243 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
1244 with relocations against undefined weak symbols.
1245 (ppc64_elf_relocate_section): Don't optimize calls to undefined
1246 weak functions if the symbol is dynamic.
1247 (ppc64_elf_relocate_section): Edit tprel tls sequences.
1248 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1249 (_bfd_elf_ppc_at_tprel_transform): New function.
1250 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
1251 * bfd-in2.h: Regenerate.
1252
1253 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
1254
1255 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
1256 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
1257 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
1258 bitsize to 1.
1259 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
1260
1261 2010-01-21 Nick Clifton <nickc@redhat.com>
1262
1263 * elflink.c (elf_link_add_object_symbols): Look up name of
1264 undefined symbol both before and after versioning has been
1265 applied. Do not bother with symbols that are weakly undefined.
1266
1267 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1268
1269 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
1270 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
1271
1272 2010-01-19 Cary Coutant <ccoutant@google.com>
1273
1274 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
1275
1276 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
1277 Alan Modra <amodra@gmail.com>
1278
1279 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
1280 (elf_object_p): Read e_phnum extension.
1281 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
1282 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
1283 that we can read last program header.
1284
1285 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1286
1287 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
1288 R_ARM_THM_CALL entry.
1289 (elf32_arm_final_link_relocate): Correct calculation of
1290 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
1291 or R_ARM_THM_JUMP24 relocation.
1292
1293 2010-01-18 Alan Modra <amodra@gmail.com>
1294
1295 PR 11168
1296 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
1297 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
1298 than 32k sections.
1299
1300 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1301
1302 Fix compilation warning on gcc-3.4.
1303 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
1304 parameter index to sec_index according to the function definition.
1305
1306 2010-01-13 Chao-ying Fu <fu@mips.com>
1307
1308 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
1309 It is true for all CPUs.
1310 (jal_reloc_p): New function.
1311 (mips_elf_calculate_relocation): Rename require_jalxp to
1312 cross_mode_jump_p.
1313 Update comment for CROSS_MODE_JUMP_P.
1314 Set up cross_mode_jump_p based on the mode change.
1315 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
1316 Update comment for CROSS_MODE_JUMP_P.
1317 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
1318 Use !cross_mode_jump_p to guard conversion.
1319 Convert "jr t9" to "b", if possible.
1320 (_bfd_mips_elf_relocate_section): Rename require_jalx to
1321 cross_mode_jump_p.
1322 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
1323 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
1324
1325 2010-01-13 Nick Clifton <nickc@redhat.com>
1326
1327 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
1328 "m32c" returns the m32c arch_info_struct and not the m16c
1329 arch_info_struct.
1330 (arch_info_struct): Use the new scan function.
1331 (bfd_m32c_arch): Likewise.
1332
1333 2010-01-13 Tristan Gingold <gingold@adacore.com>
1334
1335 * config.bfd: Remove duplicated target vector for i386-*-darwin.
1336 Appends new arch instead of overriding.
1337 Use mach_o_x86_64_vec for x86_64-*-darwin.
1338 * configure.in: Add mach_o_x86_64_vec.
1339 * configure: Regenerate.
1340 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
1341 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
1342 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
1343 * Makefile.in: Regenerate.
1344 * mach-o-x86-64.c: New file.
1345
1346 2010-01-13 Tristan Gingold <gingold@adacore.com>
1347
1348 * reloc.c: Add MACH_O_X86_64 relocations.
1349 * bfd-in2.h: Regenerate.
1350 * libbfd.h: Regenerate.
1351
1352 2010-01-13 Tristan Gingold <gingold@adacore.com>
1353
1354 * archive.c (normalize): Use lbasename.
1355 (bfd_bsd_truncate_arname): Ditto.
1356 (bfd_gnu_truncate_arname): Ditto.
1357
1358 2010-01-12 Tristan Gingold <gingold@adacore.com>
1359
1360 * makefile.vms (CFLAGS): Turns warnings into informational messages.
1361
1362 2010-01-11 Tristan Gingold <gingold@adacore.com>
1363
1364 * mach-o.h: Add x86-64 relocation types.
1365
1366 2010-01-11 Tristan Gingold <gingold@adacore.com>
1367
1368 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
1369 (bfd_mach_o_set_arch_mach): New prototype.
1370 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
1371 (bfd_mach_o_set_arch_mach): New function.
1372 (bfd_mach_o_gen_mkobject): New function.
1373 Set TARGET_ARCHITECTURE for the generic back-ends.
1374 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
1375 Check that TARGET_ARCHITECTURE is defined.
1376 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
1377 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
1378
1379 2010-01-11 Tristan Gingold <gingold@adacore.com>
1380
1381 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
1382
1383 2010-01-11 Nick Clifton <nickc@redhat.com>
1384
1385 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
1386 handling of R_V850_HI16_S relocation.
1387
1388 2010-01-11 Alan Modra <amodra@gmail.com>
1389
1390 PR 11103
1391 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
1392
1393 2010-01-11 Alan Modra <amodra@gmail.com>
1394
1395 PR 6832
1396 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
1397 (find_abstract_instance_name): Use it.
1398 (parse_comp_unit): Set it.
1399
1400 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1401
1402 * Makefile.in: Regenerate.
1403 * configure: Regenerate.
1404
1405 2010-01-08 Tristan Gingold <gingold@adacore.com>
1406
1407 * archive.c: Remove bfd_special_undocumented_glue.
1408
1409 2010-01-08 Alan Modra <amodra@gmail.com>
1410
1411 PR ld/11133
1412 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
1413 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
1414 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1415
1416 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1417
1418 PR ld/11138
1419 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
1420 a symbol referenced by DSO is is defined in a non-shared object
1421 and forced local.
1422
1423 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1424
1425 PR ld/11133
1426 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
1427 undefined __start_XXX/__stop_XXX in all input files and set
1428 SEC_KEEP.
1429
1430 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1431
1432 PR ld/11143
1433 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
1434
1435 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
1436
1437 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
1438 before including procfs.h.
1439 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
1440 * configure.in: Added autoconf probe for the pr_fpreg member.
1441 * configure: Regenerated.
1442 * config.in: Regenerated.
1443 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
1444
1445 2010-01-04 Joel Brobecker <brobecker@adacore.com>
1446
1447 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
1448 * dwarf2.c (concat_filename): Rename dirname with dir_name
1449 to void shadowing the dirname function.
1450 Rename subdirname with subdir_name to stay consistent with
1451 the new dir_name variable name.
1452
1453 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
1454
1455 * archures.c: Add bfd_mach_ppc_e500mc64.
1456 * bfd-in2.h: Regenerate.
1457 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
1458 bfd_mach_ppc_e500mc64.
1459
1460 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1461
1462 Fix -Wshadow warnings (seen on ppc-aix)
1463 * xcofflink.c: Replace finfo by flinfo throughout.
1464
1465 For older changes see ChangeLog-2009
1466 \f
1467 Local Variables:
1468 mode: change-log
1469 left-margin: 8
1470 fill-column: 74
1471 version-control: never
1472 End:
This page took 0.06022 seconds and 4 git commands to generate.