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