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