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