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