bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2010-04-05 Jakub Jelinek <jakub@redhat.com>
2
3 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
4 provided that it has the expected address size and zero segment
5 length.
6
7 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
8 (struct line_info): Add op_index field, change end_sequence type to
9 unsigned char.
10 (new_line_sorts_after): For the same address compare op_index.
11 (add_line_info): Add op_index argument, store it into the structure.
12 (decode_line_info): Complain about unknown versions of .debug_line.
13 Initialize maximum_ops_per_insn. Add op_index state register and
14 track it.
15
16 2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
17
18 * elf32-ppc.c (apuinfo_set): New static var.
19 (ppc_elf_begin_write_processing): Set it here, always create an
20 APUinfo section if there were any in the inputs.
21 (ppc_elf_write_section): Check apuinfo_set.
22 (ppc_elf_final_write_processing): Likewise.
23
24 2010-04-01 Tristan Gingold <gingold@adacore.com>
25
26 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
27 vms_time_to_time_t and vms_rawtime_to_time_t.
28 * vms.c (vms_alpha_vec): Add archives support.
29 * vms-misc.c: Include safe-ctype.h
30 (vms_get_module_name): New function.
31 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
32 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
33 vms_get_module_name function. Use this function.
34 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
35 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
36 Add prototypes for vms-lib.c
37 * libbfd.h: Regenerate.
38 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
39 vms-lib.lo to vms_alpha_vec.
40 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
41 * configure: Regenerate.
42 * bfd.c: Add selective_search field.
43 * bfd-in2.h: Regenerate.
44 * archive.c (append_relative_path): Rename to
45 _bfd_append_relative_path and make it public.
46 (_bfd_get_elt_at_filepos): Adjust for above renaming.
47 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
48 (BFD32_BACKENDS_CFILES): Add vms-lib.c
49 * Makefile.in: Regenerate.
50
51 2010-04-01 Jakub Jelinek <jakub@redhat.com>
52
53 * dwarf2.c (read_attribute_value): Handle CU version 4
54 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
55 and DW_FORM_flag_present. For unknown form value return NULL.
56 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
57 like DW_FORM_block.
58 (parse_comp_unit): Allow CU version 4.
59
60 2010-04-01 Hans-Peter Nilsson <hp@axis.com>
61
62 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
63 to _bfd_elf_get_dynamic_reloc_section.
64 (elf_cris_discard_excess_dso_dynamics): Ditto.
65
66 2010-03-31 Kai Tietz <kai.tietz@onevision.com>
67
68 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
69 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
70
71 2010-03-31 Alan Modra <amodra@gmail.com>
72
73 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
74 TPREL16_HI and TPREL16_HA insns.
75
76 2010-03-31 Hans-Peter Nilsson <hp@axis.com>
77
78 PR ld/11458
79 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
80 assert of empty pcrel_relocs_copied on the direct symbol. Instead
81 of moving the list from the indirect symbol to the direct symbol,
82 merge into any existing list.
83 (cris_elf_check_relocs): Store the original section in the
84 pcrel_relocs_copied list, not the relocation section.
85 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
86 the relocation section, for reducing its size. Change the
87 BFD_ASSERT into a check for the section being read-only, and only
88 emit warnings and TEXTREL marker when there's an entry for a
89 read-only section.
90
91 2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
92
93 * elf32-arm.c (using_thumb_only): Handle v6-M.
94
95 2010-03-26 Alan Modra <amodra@gmail.com>
96
97 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
98 * bfd-in.h (elf_discarded_section): Clarify comment.
99 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
100 * bfd-in2.h: Regenerate.
101
102 2010-03-26 Matt Rice <ratmice@gmail.com>
103
104 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
105 as unique in the armap.
106
107 2010-03-26 Alan Modra <amodra@gmail.com>
108
109 PR ld/11375
110 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
111 possible stub on branches.
112
113 2010-03-25 Joseph Myers <joseph@codesourcery.com>
114
115 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
116 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
117 (BFD32_BACKENDS): Add elf32-tic6x.lo.
118 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
119 * Makefile.in: Regenerate.
120 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
121 (bfd_archures_list): Update.
122 * config.bfd (tic6x-*-elf): New.
123 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
124 New.
125 * configure: Regenerate.
126 * cpu-tic6x.c, elf32-tic6x.c: New.
127 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
128 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
129 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
130 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
131 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
132 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
133 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
134 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
135 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
136 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
137 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
138 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
139 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
140 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
141 (_bfd_target_vector): Update.
142 * bfd-in2.h, libbfd.h: Regenerate.
143
144 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
145
146 * aout-target.h: Update copyright year.
147 * aout-tic30.c: Likewise.
148 * coff-alpha.c: Likewise.
149 * coff-rs6000.c: Likewise.
150 * coff64-rs6000.c: Likewise.
151 * elf64-mips.c: Likewise.
152 * ieee.c: Likewise.
153 * libecoff.h: Likewise.
154 * mach-o-target.c: Likewise.
155 * mach-o.c: Likewise.
156 * oasys.c: Likewise.
157 * targets.c: Likewise.
158
159 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
160
161 * libbfd-in.h: Update copyright year.
162
163 2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
164
165 PR ld/11413
166 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
167 instead of shared.
168
169 2010-03-19 Jie Zhang <jie@codesourcery.com>
170
171 * elf32-arm.c (struct section_list): Remove.
172 (section_list): Remove typedef.
173 (record_section_with_arm_elf_section_data): Remove.
174 (find_arm_elf_section_entry): Remove.
175 (get_arm_elf_section_data): Use is_arm_elf.
176 (unrecord_section_with_arm_elf_section_data): Remove.
177 (elf32_arm_new_section_hook): Don't call
178 record_section_with_arm_elf_section_data.
179 (elf32_arm_write_section): Set mapcount to -1 when
180 the map has been used. Don't call
181 unrecord_section_with_arm_elf_section_data.
182 (unrecord_section_via_map_over_sections): Remove.
183 (elf32_arm_close_and_cleanup): Remove.
184 (elf32_arm_bfd_free_cached_info): Remove.
185 (bfd_elf32_close_and_cleanup): Don't define.
186 (bfd_elf32_bfd_free_cached_info): Don't define.
187
188 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
189
190 PR binutils/11396
191 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
192 * libcoff.h: Regenerated.
193
194 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
195 if dont_strip_reloc is set.
196 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
197 dont_strip_reloc on output if there is no .reloc and
198 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
199
200 2010-03-18 Wei Guozhi <carrot@google.com>
201
202 PR gas/11323
203 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
204 R_ARM_GOT_PREL.
205 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
206 * bfd-in2.h: Regenerate.
207 * libbfd.h: Regenerate.
208
209 2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
210
211 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
212 (BFD_RELOC_SPU_STUB): Likewise.
213
214 2010-03-17 Jie Zhang <jie@codesourcery.com>
215
216 * elf.c (assign_file_positions_for_load_sections): Avoid
217 overflow.
218
219 2010-03-17 Alan Modra <amodra@gmail.com>
220
221 PR binutils/11382
222 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
223 proper type.
224
225 2010-03-17 Alan Modra <amodra@gmail.com>
226
227 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
228
229 2010-03-16 Alan Modra <amodra@gmail.com>
230
231 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
232 (ppc64_elf_edit_toc): Set it here.
233 (ha_reloc_match): New function.
234 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
235
236 2010-03-15 Alan Modra <amodra@gmail.com>
237
238 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
239 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
240
241 2010-03-14 Alan Modra <amodra@gmail.com>
242
243 PR ld/11378
244 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
245 * elf64-ppc.c (call_check_done): Define.
246 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
247 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
248 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
249 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
250 Simplify return logic. Iterate over all .init and .fini fragments
251 by recursion. Set makes_toc_func_call here..
252 (ppc64_elf_next_input_section): ..rather than here.
253 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
254
255 2010-03-13 Alan Modra <amodra@gmail.com>
256
257 PR ld/11375
258 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
259 function descriptor symbol if there is one, not just for plt stubs.
260 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
261
262 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
263
264 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
265 version twice.
266 Skip it when constructing def.vd_next.
267
268 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
269 bfd_elf32_i386_sol2_vec.
270 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
271 (elf32_bed): Redefine to elf32_i386_sol2_bed.
272 (elf_backend_want_plt_sym): Redefine to 1.
273
274 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
275 bfd_elf64_x86_64_sol2_vec.
276 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
277 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
278 (elf_backend_want_plt_sym): Redefine to 1.
279
280 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
281 bfd_elf32_i386_sol2_vec.
282 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
283 targ64_selvecs.
284 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
285 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
286 targ_selvecs.
287
288 * configure.in: Handle bfd_elf32_i386_sol2_vec,
289 bfd_elf64_x86_64_sol2_vec.
290 * configure: Regenerate.
291
292 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
293 (bfd_elf64_x86_64_sol2_vec): Declare.
294 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
295 bfd_elf64_x86_64_sol2_vec.
296
297 2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
298
299 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
300 sections.
301
302 2010-03-04 Alan Modra <amodra@gmail.com>
303
304 PR 11302
305 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
306 (read_attribute_value, decode_line_info): Likewise.
307 (add_line_info, read_rangelist): Return FALSE on alloc failures.
308 (arange_add, sort_line_sequences): Likewise.
309 (find_abstract_instance_name): Handle failures from called funcs.
310 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
311 (find_line): Realloc to a temp, and handle alloc fail.
312
313 2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
314
315 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
316 a mapping symbol to an empty section.
317
318 2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
319
320 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
321 return value from the call to _bfd_elf_merge_object_attributes.
322
323 2010-03-02 Christophe Lyon <christophe.lyon@st.com>
324 Alan Modra <amodra@gmail.com>
325
326 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
327 destination mode of the a8 stub.
328 (elf32_arm_link_hash_table): Add top_id field.
329 (elf32_arm_link_hash_table_create): Initialize top_id.
330 (arm_type_of_stub): Update prototype, st_type can now be updated
331 by this function. Actual destination address in case of PLT is
332 computed here, to help factorizing code.
333 (elf32_arm_stub_name): Update prototype, use stub_type additional
334 parameter to build stub name.
335 (elf32_arm_get_stub_entry): Update prototype, use stub_type
336 additional parameter to build stub entry.
337 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
338 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
339 Call elf32_arm_final_link_relocate to process all in-stub
340 relocations.
341 (elf32_arm_setup_section_lists): Update top_id.
342 (cortex_a8_erratum_scan): Record stub destination mode.
343 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
344 to new prototype.
345 (elf32_arm_final_link_relocate): Enable processing of in-stub
346 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
347 needed, enabling code factorization.
348 (elf32_arm_final_link): Process stub sections.
349 (elf32_arm_output_map_sym): Add entry to code/data map.
350
351 2010-03-01 David S. Miller <davem@davemloft.net>
352
353 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
354 h->def_regular, set h->ref_regular.
355 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
356 and dynamic relocations if h->ref_regular.
357
358 * elfxx-sparc.c (struct elf_reloc_map): Delete.
359 (sparc_reloc_map): Delete.
360 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
361 relocation type in switch statements.
362
363 2010-02-25 Alan Modra <amodra@gmail.com>
364
365 PR ld/11304
366 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
367 to final_link and invert. For final link allow some flags to
368 differ. Don't specially allow flags to be all zero.
369
370 2010-02-24 Alan Modra <amodra@gmail.com>
371
372 PR binutils/10858
373 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
374 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
375 table.
376
377 2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
378
379 PR binutils/11297
380 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
381 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
382
383 2010-02-22 Alan Modra <amodra@gmail.com>
384
385 * reloc.c (bfd_check_overflow): When forming addrmask, shift
386 fieldmask left by rightshift.
387 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
388 overflow checks.
389
390 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
391
392 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
393 STT_GNU_IFUNC on large common symbol.
394
395 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
396
397 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
398 has_ifunc_symbols if the symbol comes from a shared library.
399 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
400 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
401 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
402 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
403 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
404
405 2010-02-19 Alan Modra <amodra@gmail.com>
406
407 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
408 (_bfd_elf_copy_private_header_data): ..here.
409 * elflink.c (_bfd_elf_size_group_sections): New function.
410 (bfd_elf_size_dynamic_sections): Call it.
411 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
412 (_bfd_elf_fixup_group_sections): Declare.
413
414 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
415
416 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
417 merging Tag_DIV_use, Tag_MPextension_use, and
418 Tag_MPextension_use_legacy tags.
419
420 2010-02-18 Alan Modra <amodra@gmail.com>
421
422 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
423 commit. Don't write zeros for removed group members.
424 (_bfd_elf_copy_private_header_data): Adjust size of group section
425 when group members are removed by objcopy.
426
427 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
428
429 PR binutils/11280
430 * configure.host (*-*-solaris2.11): Add host define to select
431 valid default code page for windres/windmc on solaris.
432
433 2010-02-15 Nick Clifton <nickc@redhat.com>
434
435 * po/vi.po: Updated Vietnamese translation.
436
437 2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
438
439 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
440 missing mapping symbol to data only sections.
441
442 2010-02-11 David S. Miller <davem@davemloft.net>
443
444 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
445 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
446 symbols.
447 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
448 these relocs on global symbols.
449 (gdopoff): New.
450 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
451 local symbol references which are not STT_GNU_IFUNC. Handle
452 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
453 and deal with negative vs. non-negative values properly.
454
455 2010-02-09 Tristan Gingold <gingold@adacore.com>
456
457 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
458 non-external relocation.
459
460 2010-02-09 Alan Modra <amodra@gmail.com>
461
462 * elf64-ppc.c (merge_got_entries): Move earlier in file.
463 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
464 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
465 (ppc64_elf_layout_multitoc): Don't resize if we have already
466 merged got entries.
467
468 2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
469
470 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
471 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
472 elfcore_write_s390_prefix): New.
473 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
474 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
475 elfcore_write_s390_prefix): New.
476 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
477 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
478 (elfcore_write_register_note): Handle .reg-s390-timer,
479 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
480 .reg-s390-prefix section.
481
482 2010-02-09 Alan Modra <amodra@gmail.com>
483
484 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
485 unsigned char. Update variables and code using them throughout file.
486 (struct ppc_link_hash_entry): Likewise for tls_mask.
487
488 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
489
490 * elf64-ppc.c (has_small_toc_reloc): Don't define.
491 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
492 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
493 code setting the flag.
494 (ppc64_elf_next_toc_section): Group big-toc sections in
495 0x80008000 chunks.
496
497 2010-02-08 David S. Miller <davem@davemloft.net>
498
499 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
500 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
501
502 * elfxx-sparc.c (create_got_section): Delete.
503 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
504 section creator does that work for us. Use ->elf.foo instead of
505 ->foo where applicable.
506 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
507 where applicable.
508 (allocate_dynrelocs): Likewise.
509 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
510 (_bfd_sparc_elf_relocate_section): Likewise.
511 (sparc_vxworks_build_plt_entry): Likewise.
512 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
513 (sparc_finish_dyn): Likewise.
514 (sparc_vxworks_finish_exec_plt): Likewise.
515 (sparc_vxworks_finish_shared_plt): Likewise.
516 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
517
518 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
519 macros for visibilty and locality checks.
520 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
521 (allocate_dynrelocs): Likewise.
522 (_bfd_sparc_elf_relocate_section): Likewise.
523 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
524
525 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
526 but never used local var 'dynobj'.
527
528 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
529 nocopyreloc.
530
531 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
532 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
533 * bfd-in2.h: Regenerate.
534 * libbfd.h: Regenerate.
535
536 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
537 and loc_hash_memory.
538 (_bfd_sparc_elf_link_hash_table_free): Declare.
539 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
540 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
541 bfd_elf32_bfd_link_hash_table_free): Define.
542 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
543 has_ifunc_symbols if STT_GNU_IFUNC.
544 (bfd_elf64_bfd_link_hash_table_free): Define.
545 (elf_backend_post_process_headers): Define always.
546 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
547 (sparc_reloc_map): Add entries for new IFUNC relocs.
548 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
549 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
550 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
551 elf_sparc_get_local_sym_hash): New.
552 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
553 from here...
554 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
555 local hash table.
556 (_bfd_sparc_elf_link_hash_table_free): New.
557 (create_ifunc_sections): New.
558 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
559 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
560 cons up a fake local hash table entry for it. Unconditionally add
561 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
562 dyn relocs for ifunc.
563 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
564 (allocate_dynrelocs): Unconditionally emit a PLT entry when
565 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
566 (allocate_local_dynrelocs): New function.
567 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
568 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
569 like splt.
570 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
571 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
572 plt in iplt/irelplt.
573
574 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
575
576 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
577 max_contents_size, only consider sections whose contents must
578 be swapped in.
579
580 2010-02-09 Alan Modra <amodra@gmail.com>
581
582 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
583 (ppc64_elf_size_dynamic_sections): ..and here..
584 (merge_got_entries): ..rather than here.
585
586 2010-02-09 Alan Modra <amodra@gmail.com>
587
588 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
589 (has_small_toc_reloc): Define.
590 (ppc64_elf_check_relocs): Set the above flags.
591 (ppc64_elf_edit_opd): Delete obfd param.
592 (ppc64_elf_tls_optimize): Likewise.
593 (ppc64_elf_edit_toc): Likewise.
594 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
595 * elf64-ppc.h: Update prototypes.
596
597 2010-02-08 Alan Modra <amodra@gmail.com>
598
599 * section.c (struct bfd_section): Delete has_tls_reloc,
600 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
601 Add sec_flg0 thru sec_flg5.
602 (BFD_FAKE_SECTION): Update for changed flags.
603 * ecoff.c (bfd_debug_section): Likewise.
604 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
605 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
606 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
607 * elf32-xtensa.c (reloc_done): Define.
608 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
609 * bfd-in2.h: Regenerate.
610
611 2010-02-08 Tristan Gingold <gingold@adacore.com>
612
613 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
614 for non-scattered relocations.
615
616 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
617
618 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
619 apuinfo sections, only scan input sections once and reuse the
620 buffer.
621
622 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
623
624 * archures.c (bfd_mach_ppc_titan): Define.
625 * bfd-in2.h: Regenerate.
626 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
627
628 2010-02-08 Alan Modra <amodra@gmail.com>
629
630 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
631
632 2010-02-05 Sterling Augustine <sterling@tensilica.com>
633
634 * elf.c (assign_file_positions_for_load_sections) Update lma of
635 section if necessary. Fixes Bugzilla 11219.
636
637 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
638
639 * elf32-i386.c: Remove trailing white spaces.
640 * elf64-x86-64.c: Likewise.
641
642 2010-02-03 Nick Clifton <nickc@redhat.com>
643
644 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
645 entries for other architectures.
646 (struct elf_link_hash_table): Add hash_table_id field.
647 (elf_hash_table_id): New accessor macro.
648 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
649 parameter.
650 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
651 returning cast pointer.
652 (elf32_mn10300_link_hash_table_create): Identify new table as
653 containing MN10300 extensions.
654 (mn10300_elf_relax_section): Check pointer returned by
655 elf32_mn10300_hash_table.
656 * elf32-arm.c: Likewise, except using ARM extensions.
657 * elf32-avr.c: Likewise, except using AVR extensions.
658 * elf32-bfin.c: Likewise, except using BFIN extensions.
659 * elf32-cris.c: Likewise, except using CRIS extensions.
660 * elf32-frv.c: Likewise, except using FRV extensions.
661 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
662 * elf32-i386.c: Likewise, except using I386 extensions.
663 * elf32-lm32.c: Likewise, except using LM32 extensions.
664 * elf32-m32r.c: Likewise, except using M32RM extensions.
665 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
666 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
667 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
668 * elf32-m68k.c: Likewise, except using M68K extensions.
669 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
670 * elf32-ppc.c: Likewise, except using PPC32 extensions.
671 * elf32-s390.c: Likewise, except using S390 extensions.
672 * elf32-sh.c: Likewise, except using SH extensions.
673 * elf32-spu.c: Likewise, except using SPU extensions.
674 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
675 * elf64-alpha.c: Likewise, except using ALPHA extensions.
676 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
677 * elf64-ppc.c: Likewise, except using PPC64 extensions.
678 * elf64-s390.c: Likewise, except using S390 extensions.
679 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
680 * elfxx-ia64.c: Likewise, except using IA64 extensions.
681 * elfxx-mips.c: Likewise, except using MIPS extensions.
682 * elfxx-sparc.c: Likewise, except using SPARC extensions.
683 * elfxx-sparc.h: Likewise, except using SPARC extensions.
684 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
685 redundant structure.
686 (elf32_cr16_hash_table): Delete unused macro.
687 (elf32_cr16_link_hash_traverse): Delete unused macro.
688 * elf32-score.c: Likewise.
689 * elf32-score7.c: Likewise.
690 * elf32-vax.c: Likewise.
691 * elf64-sh64.c: Likewise.
692
693 2010-02-03 Alan Modra <amodra@gmail.com>
694
695 * elf64-ppc.c (struct plt_entry): Move earlier in file.
696 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
697 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
698 Update all uses.
699 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
700 Remove no_multi_toc.
701 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
702 when allocating a new struct got_entry.
703 (allocate_got): New function, extracted from..
704 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
705 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
706 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
707 (ppc64_elf_setup_section_lists): Remove output_bfd param and
708 no_multi_toc, add add_stub_section and layout_sections_again. Stash
709 new params in htab. Extract some code to..
710 (ppc64_elf_start_multitoc_partition): ..here. New function.
711 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
712 second pass toc scan.
713 (merge_got_entries, merge_global_got, reallocate_got): New functions.
714 (ppc64_elf_reinit_toc): Rename to..
715 (ppc64_elf_finish_multitoc_partition): ..this.
716 (ppc64_elf_layout_multitoc): New function.
717 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
718 layout_sections_again params.
719 (ppc64_elf_relocate_section): Handle indirect got entries.
720 * elf64-ppc.h: Update prototypes. Declare new functions.
721
722 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
723
724 * elf-bfd.h (elfcore_write_xstatereg): New.
725
726 * elf.c (elfcore_grok_xstatereg): New.
727 (elfcore_write_xstatereg): Likewise.
728 (elfcore_grok_note): Handle NT_X86_XSTATE.
729 (elfcore_write_register_note): Handle .reg-xstate section.
730
731 2010-02-01 Tristan Gingold <gingold@adacore.com>
732
733 * som.c (som_write_ar_hdr): Define this macro.
734
735 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
736
737 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
738 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
739 linkage table pointer to use the global table pointer if not doing
740 a shared link.
741
742 2010-01-29 Joel Brobecker <brobecker@adacore.com>
743
744 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
745 if it has already been set.
746
747 2010-01-27 Tristan Gingold <gingold@adacore.com>
748
749 * vms.h: Remove trailing spaces.
750 (struct hdr_struct): Remove unused hdr_c_cpr field.
751 (enum file_format_enum): Add comments.
752 * vms.c (vms_bfd_print_private_bfd_data): New function that
753 replaces the macro.
754 Remove trailing spaces.
755 * vms-misc.c: Improve comments.
756 (_bfd_vms_get_object_record): Also handle files without pads.
757 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
758 * vms-gsd.c (struct flagdescstruct): Make name field const.
759 (gsyflagdesc): Fix typo.
760
761 2010-01-27 Alan Modra <amodra@gmail.com>
762
763 PR ld/11217
764 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
765 (ppc64_elf_setup_section_lists): Init them.
766 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
767 and .toc on the same input file.
768 (ppc64_elf_relocate_section): Correct GOT entry offset.
769
770 2010-01-26 Tristan Gingold <gingold@adacore.com>
771
772 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
773 (bfd_target): Add _bfd_write_ar_hdr_fn field.
774 * archive.c (is_bsd44_extended_name): New macro.
775 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
776 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
777 name.
778 (_bfd_archive_bsd44_construct_extended_name_table): New function.
779 (_bfd_generic_write_ar_hdr): Ditto.
780 (_bfd_bsd44_write_ar_hdr): Ditto.
781 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
782 (bsd_write_armap): Adjust firstreal computation.
783 * libbfd-in.h (struct areltdata): Add extra_size field.
784 (_bfd_generic_write_ar_hdr): Add prototype.
785 (_bfd_bsd44_write_ar_hdr): Ditto.
786 (_bfd_write_ar_hdr): Define.
787 (_bfd_noarchive_write_ar_hdr): Ditto.
788 (_bfd_archive_bsd_write_ar_hdr): Ditto.
789 (_bfd_archive_coff_write_ar_hdr): Ditto.
790 (_bfd_archive_bsd44_slurp_armap): Ditto.
791 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
792 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
793 (_bfd_archive_bsd44_truncate_arname): Ditto.
794 (_bfd_archive_bsd44_write_armap): Ditto.
795 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
796 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
797 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
798 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
799 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
800 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
801 * libbfd.h: Regenerate.
802 * oasys.c (oasys_write_ar_hdr): Define.
803 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
804 * ieee.c (ieee_write_ar_hdr): Define.
805 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
806 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
807 (bfd_pmac_xcoff_backend_data): Ditto.
808 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
809 (bfd_xcoff_aix5_backend_data): Ditto.
810 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
811 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
812 * aout-tic30.c (MY_write_ar_hdr): Ditto.
813 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
814 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
815 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
816 (bfd_mach_o_construct_extended_name_table)
817 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
818 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
819 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
820 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
821 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
822 (bfd_mach_o_construct_extended_name_table)
823 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
824 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
825 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
826 * bfd-in2.h: Regenerate.
827
828 2010-01-26 Alan Modra <amodra@gmail.com>
829 H.J. Lu <hongjiu.lu@intel.com>
830
831 PR ld/11218
832 * elflink.c (elf_link_output_extsym): Do not ignore undefined
833 symbols with ref_regular set when gc_sections is active.
834
835 2010-01-25 Alan Modra <amodra@gmail.com>
836
837 PR ld/11217
838 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
839 with relocations against undefined weak symbols.
840 (ppc64_elf_relocate_section): Don't optimize calls to undefined
841 weak functions if the symbol is dynamic.
842 (ppc64_elf_relocate_section): Edit tprel tls sequences.
843 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
844 (_bfd_elf_ppc_at_tprel_transform): New function.
845 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
846 * bfd-in2.h: Regenerate.
847
848 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
849
850 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
851 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
852 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
853 bitsize to 1.
854 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
855
856 2010-01-21 Nick Clifton <nickc@redhat.com>
857
858 * elflink.c (elf_link_add_object_symbols): Look up name of
859 undefined symbol both before and after versioning has been
860 applied. Do not bother with symbols that are weakly undefined.
861
862 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
863
864 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
865 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
866
867 2010-01-19 Cary Coutant <ccoutant@google.com>
868
869 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
870
871 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
872 Alan Modra <amodra@gmail.com>
873
874 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
875 (elf_object_p): Read e_phnum extension.
876 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
877 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
878 that we can read last program header.
879
880 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
881
882 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
883 R_ARM_THM_CALL entry.
884 (elf32_arm_final_link_relocate): Correct calculation of
885 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
886 or R_ARM_THM_JUMP24 relocation.
887
888 2010-01-18 Alan Modra <amodra@gmail.com>
889
890 PR 11168
891 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
892 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
893 than 32k sections.
894
895 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
896
897 Fix compilation warning on gcc-3.4.
898 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
899 parameter index to sec_index according to the function definition.
900
901 2010-01-13 Chao-ying Fu <fu@mips.com>
902
903 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
904 It is true for all CPUs.
905 (jal_reloc_p): New function.
906 (mips_elf_calculate_relocation): Rename require_jalxp to
907 cross_mode_jump_p.
908 Update comment for CROSS_MODE_JUMP_P.
909 Set up cross_mode_jump_p based on the mode change.
910 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
911 Update comment for CROSS_MODE_JUMP_P.
912 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
913 Use !cross_mode_jump_p to guard conversion.
914 Convert "jr t9" to "b", if possible.
915 (_bfd_mips_elf_relocate_section): Rename require_jalx to
916 cross_mode_jump_p.
917 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
918 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
919
920 2010-01-13 Nick Clifton <nickc@redhat.com>
921
922 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
923 "m32c" returns the m32c arch_info_struct and not the m16c
924 arch_info_struct.
925 (arch_info_struct): Use the new scan function.
926 (bfd_m32c_arch): Likewise.
927
928 2010-01-13 Tristan Gingold <gingold@adacore.com>
929
930 * config.bfd: Remove duplicated target vector for i386-*-darwin.
931 Appends new arch instead of overriding.
932 Use mach_o_x86_64_vec for x86_64-*-darwin.
933 * configure.in: Add mach_o_x86_64_vec.
934 * configure: Regenerate.
935 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
936 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
937 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
938 * Makefile.in: Regenerate.
939 * mach-o-x86-64.c: New file.
940
941 2010-01-13 Tristan Gingold <gingold@adacore.com>
942
943 * reloc.c: Add MACH_O_X86_64 relocations.
944 * bfd-in2.h: Regenerate.
945 * libbfd.h: Regenerate.
946
947 2010-01-13 Tristan Gingold <gingold@adacore.com>
948
949 * archive.c (normalize): Use lbasename.
950 (bfd_bsd_truncate_arname): Ditto.
951 (bfd_gnu_truncate_arname): Ditto.
952
953 2010-01-12 Tristan Gingold <gingold@adacore.com>
954
955 * makefile.vms (CFLAGS): Turns warnings into informational messages.
956
957 2010-01-11 Tristan Gingold <gingold@adacore.com>
958
959 * mach-o.h: Add x86-64 relocation types.
960
961 2010-01-11 Tristan Gingold <gingold@adacore.com>
962
963 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
964 (bfd_mach_o_set_arch_mach): New prototype.
965 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
966 (bfd_mach_o_set_arch_mach): New function.
967 (bfd_mach_o_gen_mkobject): New function.
968 Set TARGET_ARCHITECTURE for the generic back-ends.
969 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
970 Check that TARGET_ARCHITECTURE is defined.
971 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
972 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
973
974 2010-01-11 Tristan Gingold <gingold@adacore.com>
975
976 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
977
978 2010-01-11 Nick Clifton <nickc@redhat.com>
979
980 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
981 handling of R_V850_HI16_S relocation.
982
983 2010-01-11 Alan Modra <amodra@gmail.com>
984
985 PR 11103
986 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
987
988 2010-01-11 Alan Modra <amodra@gmail.com>
989
990 PR 6832
991 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
992 (find_abstract_instance_name): Use it.
993 (parse_comp_unit): Set it.
994
995 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
996
997 * Makefile.in: Regenerate.
998 * configure: Regenerate.
999
1000 2010-01-08 Tristan Gingold <gingold@adacore.com>
1001
1002 * archive.c: Remove bfd_special_undocumented_glue.
1003
1004 2010-01-08 Alan Modra <amodra@gmail.com>
1005
1006 PR ld/11133
1007 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
1008 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
1009 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1010
1011 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1012
1013 PR ld/11138
1014 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
1015 a symbol referenced by DSO is is defined in a non-shared object
1016 and forced local.
1017
1018 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1019
1020 PR ld/11133
1021 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
1022 undefined __start_XXX/__stop_XXX in all input files and set
1023 SEC_KEEP.
1024
1025 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 PR ld/11143
1028 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
1029
1030 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
1031
1032 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
1033 before including procfs.h.
1034 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
1035 * configure.in: Added autoconf probe for the pr_fpreg member.
1036 * configure: Regenerated.
1037 * config.in: Regenerated.
1038 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
1039
1040 2010-01-04 Joel Brobecker <brobecker@adacore.com>
1041
1042 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
1043 * dwarf2.c (concat_filename): Rename dirname with dir_name
1044 to void shadowing the dirname function.
1045 Rename subdirname with subdir_name to stay consistent with
1046 the new dir_name variable name.
1047
1048 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
1049
1050 * archures.c: Add bfd_mach_ppc_e500mc64.
1051 * bfd-in2.h: Regenerate.
1052 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
1053 bfd_mach_ppc_e500mc64.
1054
1055 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1056
1057 Fix -Wshadow warnings (seen on ppc-aix)
1058 * xcofflink.c: Replace finfo by flinfo throughout.
1059
1060 For older changes see ChangeLog-2009
1061 \f
1062 Local Variables:
1063 mode: change-log
1064 left-margin: 8
1065 fill-column: 74
1066 version-control: never
1067 End:
This page took 0.054799 seconds and 5 git commands to generate.