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