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