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