2010-06-25 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2010-06-25 Tristan Gingold <gingold@adacore.com>
2
3 * vms-alpha.c (alpha_vms_write_exec): Set linktime field.
4
5 2010-06-25 Alan Modra <amodra@gmail.com>
6
7 * elf64-ppc.c (toc_skip_enum): Define.
8 (ppc64_elf_edit_toc): Use two low bits of skip array as markers.
9 Optimize largetoc sequences.
10 (adjust_toc_syms): Update for skip array change.
11 (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
12
13 2010-06-25 Alan Modra <amodra@gmail.com>
14
15 * elf64-ppc.c (is_static_defined): New function.
16 (get_tls_mask, ppc_type_of_stub): Use it here.
17 (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
18 (ppc64_elf_tls_setup): Typo fix.
19 (adjust_toc_syms): Correctly handle symbols defined past the end
20 of the toc. Move syms on removed entries to next entry rather
21 than to start of toc.
22 (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to
23 edit ppc64 input. Allocate one extra word in skip array.
24 Honour info->keep_memory when reading relocs if we can.
25 Adjust toc relocs after adjusting symbols.
26
27 2010-06-23 Nathan Sidwell <nathan@codesourcery.com>
28
29 * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
30 when scaning map.
31
32 2010-06-17 Tristan Gingold <gingold@adacore.com>
33
34 * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
35 (BFD64_BACKENDS_CFILES): ... here.
36 (BFD32_BACKENDS): Move vms-alpha.lo to ...
37 (BFD64_BACKENDS): ... here.
38 * Makefile.in: Regenerate.
39
40 2010-06-15 Joseph Myers <joseph@codesourcery.com>
41
42 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
43 * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
44 elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
45 elf32_tic6x_merge_private_bfd_data): New.
46 (bfd_elf32_bfd_merge_private_bfd_data,
47 elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
48 elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
49 Define.
50 * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
51
52 2010-06-15 Joseph Myers <joseph@codesourcery.com>
53
54 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
55 (struct elf_backend_data): Update comment on obj_attrs_order.
56 * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
57 _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
58 instead of hardcoded 4.
59 * elf32-arm.c (elf32_arm_obj_attrs_order): Use
60 LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
61 instead of hardcoded 4 and 5.
62 (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
63 instead of hardcoded 4.
64
65 2010-06-14 Kevin Buettner <kevinb@redhat.com>
66
67 * elf32-h8300.c (elf_symbol_leading_char): Define.
68
69 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
70
71 * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
72
73 2010-06-11 Tristan Gingold <gingold@adacore.com>
74
75 * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
76 sections to 0.
77
78 2010-06-11 Tristan Gingold <gingold@adacore.com>
79
80 * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
81
82 2010-06-11 Tristan Gingold <gingold@adacore.com>
83
84 * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
85 Adjust cast.
86 (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
87 * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
88 * vms-alpha.c (evax_section_flags): Make it const.
89 (vms_secflag_by_name): Remove unused ABFD argument.
90 Make SECTION_FLAGS and NAME arguments const. Clarify comment.
91 (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
92 (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
93 (_bfd_vms_write_egsd): Remove useless cast.
94
95 2010-06-10 Tristan Gingold <gingold@adacore.com>
96
97 * config.bfd: Remove #if/#endif so that som can be compiled on any
98 host.
99 * targets.c (_bfd_target_vector): Remove #if/#endif so that som
100 can be used on any host.
101
102 2010-06-10 Tristan Gingold <gingold@adacore.com>
103
104 * som.c: Can now be compiled on any host.
105 Include bfd headers instead of system one.
106 (som_compute_checksum): Parameter is now a pointer to a
107 som_external_header structure. Adjust.
108 (struct section_to_type): Field section is now const.
109 (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
110 definition.
111 (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
112 (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
113 (som_swap_clock_in, som_swap_clock_out): New functions.
114 (som_swap_header_in, som_swap_header_out): Likewise.
115 (som_swap_space_dictionary_in): Likewise.
116 (som_swap_space_dictionary_out): Likewise.
117 (som_swap_subspace_dictionary_in): Likewise.
118 (som_swap_subspace_dictionary_record_out): Likewise.
119 (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
120 (som_swap_string_auxhdr_out): Likewise.
121 (som_swap_compilation_unit_out): Likewise.
122 (som_swap_exec_auxhdr_in): Likewise.
123 (som_swap_exec_auxhdr_out): Likewise.
124 (som_swap_lst_header_in): Likewise.
125 (som_object_setup): Adjust parameter type using bfd types.
126 (setup_sections): Likewise. Ditto for object file types.
127 Use intermediate variables for external representation and use the
128 swap functions to convert.
129 (som_object_p): Ditto. Remove #ifdef/#endif on always defined
130 macros.
131 (som_prep_headers): Likewise.
132 (som_write_symbol_strings): Likewise.
133 (som_begin_writing): Likewise.
134 (som_finish_writing): Likewise.
135 (som_build_and_write_symbol_table): Likewise.
136 (bfd_section_from_som_symbol): Likewise.
137 (som_slurp_symbol_table): Likewise.
138 (som_bfd_print_private_bfd_data): Likewise.
139 (bfd_som_attach_aux_hdr): Likewise. Clear the padding.
140 (bfd_som_attach_compilation_unit): Likewise.
141 (som_bfd_count_ar_symbols): Likewise.
142 (som_bfd_fill_in_ar_symbols): Likewise.
143 (som_slurp_armap): Likewise.
144 (som_bfd_ar_write_symbol_stuff): Likewise.
145 (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
146 sprintf to write header fields.
147 * som.h: Include bfd headers instead of system one.
148 (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
149 (struct somdata): Use bfd structures instead of system ones.
150 (struct som_section_data_struct): Likewise.
151 (struct som_subspace_dictionary_record): Removed (now in
152 include/som/internal.h)
153
154 2010-06-10 Tristan Gingold <gingold@adacore.com>
155
156 * targets.c (bfd_target_list): Remove hp/ux compiler work-around
157 as bfd requires an ANSI-C compiler.
158
159 2010-06-09 Tristan Gingold <gingold@adacore.com>
160
161 * bfdio.c (bfd_bread): Fix the code to prevent reading past the
162 end of archive members.
163
164 2010-06-08 Tristan Gingold <gingold@adacore.com>
165
166 * som.c (som_bfd_free_cached_info): Do not free relocations as
167 they were allocated with bfd_zalloc.
168
169 2010-06-08 Tristan Gingold <gingold@adacore.com>
170
171 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
172 for the first block.
173
174 2010-06-08 Tristan Gingold <gingold@adacore.com>
175
176 * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
177 * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
178 * libbfd.h: Regenerate.
179 * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
180 (bfd_elfNN_mkarchive): Ditto.
181
182 2010-06-02 Tristan Gingold <gingold@adacore.com>
183
184 * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
185
186 2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
187
188 * configure: Regenerate.
189
190 2010-06-01 Tristan Gingold <gingold@adacore.com>
191
192 * vms-alpha.c (struct vms_private_data_struct): Add
193 transfer_address field. Remove unused dst_info field.
194 (alpha_vms_write_exec): Use transfer_address.
195 (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
196 (alpha_vms_bfd_final_link): Set transfer_address.
197
198 2010-05-31 Tristan Gingold <gingold@adacore.com>
199
200 * vms-lib.c (credat_lo, credat_hi): New fields.
201 (vms_read_block): Adjust comments.
202 (vms_write_block): New function.
203 (_bfd_vms_lib_archive_p): Decode majorid once. Replace some
204 hard-coded values with constants. Set credat_lo and credat_hi.
205 (_bfd_vms_lib_mkarchive): Add argument kind.
206 Set ver, mhd_size and type according to kind.
207 (_bfd_vms_lib_alpha_mkarchive): New function.
208 (struct lib_index): Renamed from struct vms_index
209 (lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
210 (get_idxlen): Type of idx argument adjusted. Add is_elfidx
211 argument and handle it.
212 (vms_write_index): Adjust argument idx. Handle elf indexes.
213 (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
214 (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
215 use it. Handle elf indexes. Set credat.
216 * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
217 (_bfd_vms_lib_alpha_mkarchive): ... this.
218 * libbfd.h: Regenerated.
219 * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
220
221 2010-05-28 Sterling Augustine <sterling@tensilica.com>
222
223 * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
224 of code to change the bits in the instructions to match the changes
225 in the relocations. Declare dest_addr and sym_sec to help.
226
227 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
228
229 Workaround GCC PR middle-end/4210.
230 * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
231 and val[3].
232
233 2010-05-27 Tristan Gingold <gingold@adacore.com>
234
235 * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
236 (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
237 (vms_time_to_time_t): Use them instead of local const.
238 (vms_time_t_to_vms_time): New function.
239 (vms_get_time): Likewise.
240 (vms_raw_get_time): Likewise.
241 * vms.h (vms_time_t_to_vms_time): New declaration.
242 (vms_get_time): Likewise.
243 (vms_raw_get_time): Likewise.
244
245 2010-05-26 Tristan Gingold <gingold@adacore.com>
246
247 * vms-alpha.c: Update comments.
248 (alpha_vms_write_exec): Set lnkflags. Write the GST.
249 (alpha_vms_link_output_symbol): New function.
250 (alpha_vms_bfd_final_link): Generate the VMS symbol table.
251 Set dst_section private field.
252 (alpha_vms_bfd_final_link): Remove code that set dst_section.
253
254 2010-05-26 Tristan Gingold <gingold@adacore.com>
255
256 * bfdio.c: Declare and define _bfd_memory_iovec.
257 (bfd_bread): Move code for BFD_IN_MEMORY...
258 (bfd_bwrite): ... Ditto ...
259 (bfd_tell): ... Ditto ...
260 (bfd_flush): ... Ditto ...
261 (bfd_stat): ... Ditto ...
262 (bfd_seek): ... Ditto ...
263 (bfd_get_size): ... Ditto ...
264 (bfd_mmap): ... Ditto ...
265 (memory_bread): ... to these new functions.
266 (memory_bwrite): Ditto.
267 (memory_btell): Ditto.
268 (memory_bseek): Ditto.
269 (memory_bflush): Ditto.
270 (memory_bstat): Ditto.
271 (memory_bmmap): Ditto.
272 (memory_bclose): New function.
273 * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
274 * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
275 * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
276 (bfd_make_writable): Use _bfd_memory_iovec.
277 * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
278 * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
279 _bfd_memory_iovec.
280 (alpha_ecoff_openr_next_archived_file): Use proxy_origin
281 instead of origin.
282 * libbfd.h: Regenerate.
283
284 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
285 Joseph Myers <joseph@codesourcery.com>
286 Andrew Stubbs <ams@codesourcery.com>
287
288 * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
289 bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
290 * configure.in: Handle FDPIC vectors.
291 * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
292 * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
293 (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
294 SYMBOL_REFERENCES_LOCAL for function descriptors.
295 (fdpic_object_p): New.
296 (sh_reloc_map): Add FDPIC and movi20 relocations.
297 (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
298 range.
299 (struct elf_sh_plt_info): Add got20 and short_plt. Update all
300 definitions.
301 (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
302 (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
303 (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
304 (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
305 (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
306 New.
307 (get_plt_info): Handle FDPIC.
308 (MAX_SHORT_PLT): Define.
309 (get_plt_index, get_plt_offset): Handle short_plt.
310 (union gotref): New.
311 (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
312 got_type and adjust all uses. Add GOT_FUNCDESC.
313 (struct sh_elf_obj_tdata): Add local_funcdesc. Rename
314 local_got_tls_type to local_got_type.
315 (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
316 users changed.
317 (sh_elf_local_funcdesc): Define.
318 (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
319 and srofixup.
320 (sh_elf_link_hash_newfunc): Initialize new fields.
321 (sh_elf_link_hash_table_create): Set fdpic_p.
322 (sh_elf_omit_section_dynsym): New.
323 (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
324 and .rofixup.
325 (allocate_dynrelocs): Allocate local function descriptors and space
326 for R_SH_FUNCDESC-related relocations, and for rofixups.
327 Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
328 require function descriptors.
329 (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
330 (sh_elf_modify_program_headers): New.
331 (sh_elf_size_dynamic_sections): Allocate function descriptors for
332 local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
333 Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
334 local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
335 entry in the .dynamic section.
336 (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
337 (sh_elf_add_rofixup, sh_elf_osec_to_segment)
338 (sh_elf_osec_readonly_p, install_movi20_field): New functions.
339 (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
340 R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
341 and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
342 read-only section warnings. Handle undefined weak symbols. Generate
343 fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
344 relocations and clear EF_SH_PIC. Handle 20-bit relocations.
345 Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
346 (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
347 R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
348 Handle 20-bit relocations.
349 (sh_elf_copy_indirect_symbol): Copy function descriptor reference
350 counts.
351 (sh_elf_check_relocs): Handle new relocations. Make symbols
352 dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
353 symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
354 for R_SH_DIR32.
355 (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
356 (sh_elf_merge_private_data): Copy initial flags. Do not clobber
357 non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
358 (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
359 here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
360 FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
361 Use install_movi20_field. Rename srel to srelgot. Always generate
362 R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
363 (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
364 Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
365 Rename sgot to sgotplt. Assert that the right number of rofixups
366 and dynamic relocations were allocated.
367 (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
368 (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
369 (elf_backend_can_make_relative_eh_frame)
370 (elf_backend_can_make_lsda_relative_eh_frame)
371 (elf_backend_encode_eh_address): Define.
372 (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
373 (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
374 Redefine for FDPIC vector.
375 * reloc.c: Add SH FDPIC and movi20 relocations.
376 * targets.c (_bfd_target_vector): Add FDPIC vectors.
377 * configure, bfd-in2.h, libbfd.h: Regenerated.
378
379 2010-05-25 Jay Krell <jay.krell@cornell.edu>
380
381 PR ld/11624
382 * archive.c (_bfd_calloc_wrapper): New function.
383 (_bfd_add_bfd_to_archive_cache): Use it.
384
385 * configure.in: Add alpha*-*-*vms* to list of natives.
386 * configure: Regenerate.
387
388 * vms-misc.c: Define globalref if necessary.
389 (vms_convert_to_var_unix_filename): Rename to
390 _bfd_vms_convert_to_var_unix_filename and export.
391 * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
392 * vms-alpha.c (vms_close_and_cleanup): Update invocation of
393 vms_convert_to_var_unix_filename.
394
395 2010-05-24 Tristan Gingold <gingold@adacore.com>
396
397 * vms-alpha.c (add_symbol_entry): New function extrated from ...
398 (add_symbol): ... adjusted.
399
400 2010-05-24 Tristan Gingold <gingold@adacore.com>
401
402 * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
403 (alpha_vms_write_exec): Add a comment.
404 (_bfd_vms_write_egsd): Ditto.
405 (alpha_vms_convert_symbol): Remove a blank line.
406
407 2010-05-21 Tristan Gingold <gingold@adacore.com>
408
409 * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
410 for the GST.
411
412 2010-05-21 Tristan Gingold <gingold@adacore.com>
413
414 * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
415 SEC_LOAD if isect has data.
416 (vms_get_symbol_info): Refine the condition for 'T' type.
417
418 2010-05-18 Tristan Gingold <gingold@adacore.com>
419
420 * vms-alpha.c (_bfd_vms_write_emh): New function.
421 (_bfd_vms_write_lmn): New function.
422 (_bfd_vms_write_eeom): Moved.
423 (hash_string): Likewise.
424 (_bfd_vms_length_hash_symbol): Likewise.
425 (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
426 and _bfd_vms_write_lmn, and call these functions.
427
428 2010-05-18 Tristan Gingold <gingold@adacore.com>
429
430 * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
431 Add details in the messages.
432 (evax_bfd_print_image): Change message.
433
434 2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
435
436 PR gas/11600
437 * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
438 (elf_fake_sections): Likewise.
439
440 * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
441 SHF_EXCLUDE here.
442 * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
443
444 2010-05-17 Tristan Gingold <gingold@adacore.com>
445
446 * vms-alpha.c: Include esgps.h and eidc.h.
447 (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
448 (evax_bfd_print_egsd_flags): New function, extracted from ...
449 (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
450 EGSD__C_SPSC and EGSD__C_IDC.
451
452 2010-05-14 Tristan Gingold <gingold@adacore.com>
453
454 * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
455 (_bfd_vms_get_object_record): Handle align byte only in the
456 foreign case.
457
458 2010-05-14 Tristan Gingold <gingold@adacore.com>
459
460 * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
461 * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
462 * libbfd.h: Regenerate.
463 * configure.in (havevecs): Define HAVE_all_vecs when
464 --enable-targets=all is set. Use AC_SUBST on it.
465 (tdefaults): Do not add havevecs.
466 (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
467 * configure: Regenerate.
468 * Makefile.am (HAVEVECS): New variable.
469 (INCLUDES): Add HAVEVECS.
470 * Makefile.in: Regenerate.
471 * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
472 target is selected. Add #ifdef/#endif around vms specific code.
473 (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
474 bfd_elfNN_archive_slurp_extended_name_table,
475 bfd_elfNN_archive_construct_extended_name_table,
476 bfd_elfNN_archive_truncate_arname,
477 bfd_elfNN_archive_write_armap,
478 bfd_elfNN_archive_read_ar_hdr,
479 bfd_elfNN_archive_write_ar_hdr,
480 bfd_elfNN_archive_openr_next_archived_file,
481 bfd_elfNN_archive_get_elt_at_index,
482 bfd_elfNN_archive_generic_stat_arch_elt,
483 bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
484
485 2010-05-11 Jie Zhang <jie@codesourcery.com>
486
487 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
488 Tag_ABI_HardFP_use correctly.
489
490 2010-05-11 Alan Modra <amodra@gmail.com>
491
492 * coffcode.h (coff_write_object_contents): Enclose all occurrences
493 of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
494
495 2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
496
497 * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
498 sym_name to improve packing.
499 (cortex_a8_erratum_scan): Check for PLT entries.
500 (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
501
502 2010-05-07 Tristan Gingold <gingold@adacore.com>
503
504 * Makefile.in: Regenerate with automake 1.11.1.
505 * aclocal.m4: Ditto.
506
507 2010-05-05 Nick Clifton <nickc@redhat.com>
508
509 * po/es.po: Updated Spanish translation.
510
511 2010-05-03 Tristan Gingold <gingold@adacore.com>
512
513 * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
514 selective_search flag.
515 Add comments.
516 * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
517 before output_has_begun is set.
518
519 2010-05-03 Tristan Gingold <gingold@adacore.com>
520
521 * vms-alpha.c: Add comments.
522 (struct vms_private_data_struct): Remove image_autoextend field.
523 (dst_check_allocation): Removed.
524 (image_write): Remove call to dst_check_allocation.
525 (vms_slurp_debug): Do not set image_autoextend. Adjust section
526 size.
527 (_bfd_vms_slurp_object_records): Remove useless new_type variable.
528 (alpha_vms_write_exec): Use dst_section to get the dst section.
529 Write the dmt section.
530 (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
531 (alpha_vms_read_sections_content): Do not set image_autoextend.
532 (alpha_vms_bfd_final_link): Generate the dst.
533
534 2010-05-03 Tristan Gingold <gingold@adacore.com>
535
536 * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
537 next array.
538 (vms_lib_dcx): Adjust for the above change.
539
540 2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
541
542 PR ld/11542
543 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
544
545 * elf32-i386.c (elf_i386_relocate_section): Use it.
546 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
547
548 2010-04-30 Tristan Gingold <gingold@adacore.com>
549
550 * vms-lib.c (vms_read_block): New function.
551 (vms_traverse_index): Use vms_read_block. Handle long key names.
552
553 2010-04-30 Tristan Gingold <gingold@adacore.com>
554
555 * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
556 and syms removed.
557 (struct carsym_mem): New structure.
558 (vms_add_index): New function.
559 (vms_add_indexes_from_list): New function.
560 (vms_traverse_index): Parameter carsym changed to carsym_mem.
561 Code adjusted to handle elfidx.
562 (vms_lib_read_index): Adjusted for vms_traverse_index changes.
563 Parameter NBREL is now a pointer.
564 (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
565 archives.
566 (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
567 (_bfd_vms_lib_find_symbol): Ditto.
568 (vms_lib_bopen): Fix two typos: return FALSE in case of error,
569 check MHD id.
570 (_bfd_vms_lib_get_module): New function.
571 (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
572 function.
573 (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
574 (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
575 (vms_write_index): Adjust for structure renamed.
576 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
577 changes of _bfd_vms_lib_find_symbol.
578
579 2010-04-28 Kai Tietz <kai.tietz@onevision.com>
580
581 * config.bfd: Correct accidential reverted patch
582 about vax*-*-*vms*.
583
584 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
585
586 * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
587 to USE_MINGW64_LEADING_UNDERSCORES.
588 * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
589 * config.bfd: Change underscoring default for x64 mingw
590 to false.
591 * coffcode.h (coff_write_relocs): Add check that dereferenced
592 sym_ptr_ptr isn't NULL.
593 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
594 * configure: Regenerated.
595 * configure.in: Add option '--enable-leading-mingw64-underscores'
596 and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
597
598 2010-04-27 Nick Clifton <nickc@redhat.com>
599
600 PR binutils/11512
601 * coffgen.c (coff_find_nearest_line): Incldue the section address
602 of function name symbols in address comparisons.
603
604 2010-04-27 Nick Clifton <nickc@redhat.com>
605
606 * po/fr.po: Updated French translation.
607
608 2010-04-23 Alan Modra <amodra@gmail.com>
609
610 * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
611 ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
612 throughout file.
613 (assign_file_positions_for_load_sections): Modify section in
614 segment warning to ignore overlay vmas.
615 * elf32-spu.c (spu_elf_object_p): Replace use of
616 ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
617
618 2010-04-22 Nick Clifton <nickc@redhat.com>
619
620 * po/bfd.pot: Updated by the Translation project.
621 * po/vi.po: Updated Vietnamese translation.
622
623 2010-04-22 Alan Modra <amodra@gmail.com>
624
625 * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
626 change. Tidy. Don't error on sections not allocated in segment.
627
628 2010-04-15 Andrew Haley <aph@redhat.com>
629
630 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
631 merge_exidx_entries.
632 * bfd-in2.h: Likewise.
633 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
634 control merging of exidx entries.
635
636 2010-04-20 Joseph Myers <joseph@codesourcery.com>
637
638 * elf32-tic6x.h: New.
639 * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
640 * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
641 elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
642 elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
643 elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
644 bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
645 (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
646 elf32_tic6x_relocate_section): Handle REL relocations.
647 (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
648
649 2010-04-20 Jakub Jelinek <jakub@redhat.com>
650
651 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
652 DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
653
654 2010-04-19 Nick Clifton <nickc@redhat.com>
655
656 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
657 arhdrpos variable.
658 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
659 attribute to warned variable. Remove unused val, type and type2
660 variables.
661
662 2010-04-16 Andreas Schwab <schwab@redhat.com>
663
664 * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
665 strict-aliasing rules.
666
667 2010-04-16 Tristan Gingold <gingold@adacore.com>
668
669 * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
670 (_bfd_vms_get_object_record): Always assume there is a pad byte
671 for alignment.
672
673 * vms-lib.c: Add a few comments.
674
675 2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
676
677 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
678 attributes in v2.08 of the ABI.
679
680 2010-04-15 Alan Modra <amodra@gmail.com>
681
682 * config.bfd (vax*-*-*vms*): Delete.
683
684 2010-04-14 Tristan Gingold <gingold@adacore.com>
685
686 * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
687 vms-tir.lo, vms.lo and add vms-alpha.lo
688 (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
689 vms-tir.c, vms.c and add vms-alpha.c
690 * Makefile.in: Regenerate.
691 * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
692 Remove vms_vax_vec.
693 * configure: Regenerate.
694 * targets.c (vms_vax_vec): Remove the declaration.
695 (_bfd_target_vector): Remove vms_vax_vec.
696 * vms-alpha.c: New file.
697 * vms-gsd.c: Removed, rewritten in vms-alpha.c
698 * vms-hdr.c: Ditto.
699 * vms-tir.c: Ditto.
700 * vms.c: Ditto.
701 * vms-misc.c: Fix indentation and comments. Replace most of
702 #if VMS_DEBUG/vms_debug with vms_debug2.
703 (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
704 (hash_string): Ditto.
705 (_bfd_vms_length_hash_symbol): Ditto.
706 (maybe_adjust_record_pointer_for_object): Ditto.
707 (_bfd_vms_get_object_record): Ditto.
708 (vms_get_remaining_object_record): Ditto.
709 (_bfd_vms_push): Ditto.
710 (_bfd_vms_pop): Ditto.
711 (_bfd_vms_get_header_values): Removed.
712 (_bfd_vms_get_first_record): Removed.
713 (vms_get_remaining_image_record): Removed.
714 (new_symbol): Removed.
715 (_bfd_vms_enter_symbol): Removed.
716 (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
717 (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
718 parameter with struct vms_rec_wr.
719 (_bfd_vms_output_push): Removed and replaced by ...
720 (_bfd_vms_output_begin_subrec): ... new function.
721 (_bfd_vms_output_alignment): Replace bfd parameter with
722 struct vms_rec_wr, and adjust.
723 (_bfd_vms_output_check): Ditto
724 (_bfd_vms_output_byte): Ditto.
725 (_bfd_vms_output_short): Ditto.
726 (_bfd_vms_output_long): Ditto.
727 (_bfd_vms_output_quad): Ditto.
728 (_bfd_vms_output_counted): Ditto.
729 (_bfd_vms_output_dump): Ditto.
730 (_bfd_vms_output_fill): Ditto.
731 (_bfd_vms_output_pop): Removed and replaced by ...
732 (_bfd_vms_output_end_subrec): ... new function.
733 (_bfd_vms_output_flush): Removed.
734 (_bfd_vms_output_align): New function.
735 (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
736 parameter.
737 (vms_convert_to_var): New function imported from vms.c
738 (vms_convert_to_var_1): Ditto.
739 (vms_convert_to_var_unix_filename): Ditto.
740 (vms_get_module_name): Ditto.
741 (get_vms_time_string): Ditto.
742 (vms_time_to_time_t): Ditto.
743 (vms_rawtime_to_time_t): Ditto.
744 * vms.h: All macros for the VMS file format are now in include/vms.
745 Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
746 have been removed.
747 (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
748 (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
749 (struct funcinfo, struct vms_private_data_struct): Ditto.
750 (struct vms_section_data_struct): Ditto.
751 (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
752 (vms_get_module_name, get_vms_time_string): New declarations.
753 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
754 (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
755 (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
756 (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
757 (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
758 (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
759 (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
760 (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
761 (_bfd_vms_output_fill): Ditto.
762 (bfd_vms_set_section_flags): Ditto.
763
764 2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
765
766 * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
767 exit due to merging the same weak symbol to test that the symbols are
768 actually weak.
769
770 2010-04-13 Alan Modra <amodra@gmail.com>
771
772 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
773 when optimizing high got_tlsgd/ld insns.
774
775 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
776
777 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
778 define.
779 (HAVE_PRSTATUS32_T): Likewise.
780
781 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
782
783 PR corefiles/11467
784 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
785 for x86_64-*-linux*.
786 * config.in: Regenerated.
787 * configure: Likewise.
788
789 * elf.c: Include CORE_HEADER if it is defined.
790
791 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
792 Jan Kratochvil <jan.kratochvil@redhat.com>
793
794 * hosts/x86-64linux.h: New.
795
796 2010-04-09 Nick Clifton <nickc@redhat.com>
797
798 * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
799 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
800 variables htab and hdr_info and mark info parameter as unused.
801 * elf.c (prep_headers): Remove unused variable i_phdrp.
802 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
803 * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
804 as unused.
805 * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
806 * verilog.c (verilog_write_section): Remove unused variable
807 address.
808
809 2010-04-07 Alan Modra <amodra@gmail.com>
810
811 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
812 * configure: Regenerate.
813
814 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
815
816 PR ld/11434
817 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
818
819 2010-04-06 Tristan Gingold <gingold@adacore.com>
820
821 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
822
823 2010-04-05 Jakub Jelinek <jakub@redhat.com>
824
825 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
826 provided that it has the expected address size and zero segment
827 length.
828
829 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
830 (struct line_info): Add op_index field, change end_sequence type to
831 unsigned char.
832 (new_line_sorts_after): For the same address compare op_index.
833 (add_line_info): Add op_index argument, store it into the structure.
834 (decode_line_info): Complain about unknown versions of .debug_line.
835 Initialize maximum_ops_per_insn. Add op_index state register and
836 track it.
837
838 2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
839
840 * elf32-ppc.c (apuinfo_set): New static var.
841 (ppc_elf_begin_write_processing): Set it here, always create an
842 APUinfo section if there were any in the inputs.
843 (ppc_elf_write_section): Check apuinfo_set.
844 (ppc_elf_final_write_processing): Likewise.
845
846 2010-04-01 Tristan Gingold <gingold@adacore.com>
847
848 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
849 vms_time_to_time_t and vms_rawtime_to_time_t.
850 * vms.c (vms_alpha_vec): Add archives support.
851 * vms-misc.c: Include safe-ctype.h
852 (vms_get_module_name): New function.
853 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
854 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
855 vms_get_module_name function. Use this function.
856 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
857 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
858 Add prototypes for vms-lib.c
859 * libbfd.h: Regenerate.
860 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
861 vms-lib.lo to vms_alpha_vec.
862 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
863 * configure: Regenerate.
864 * bfd.c: Add selective_search field.
865 * bfd-in2.h: Regenerate.
866 * archive.c (append_relative_path): Rename to
867 _bfd_append_relative_path and make it public.
868 (_bfd_get_elt_at_filepos): Adjust for above renaming.
869 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
870 (BFD32_BACKENDS_CFILES): Add vms-lib.c
871 * Makefile.in: Regenerate.
872
873 2010-04-01 Jakub Jelinek <jakub@redhat.com>
874
875 * dwarf2.c (read_attribute_value): Handle CU version 4
876 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
877 and DW_FORM_flag_present. For unknown form value return NULL.
878 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
879 like DW_FORM_block.
880 (parse_comp_unit): Allow CU version 4.
881
882 2010-04-01 Hans-Peter Nilsson <hp@axis.com>
883
884 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
885 to _bfd_elf_get_dynamic_reloc_section.
886 (elf_cris_discard_excess_dso_dynamics): Ditto.
887
888 2010-03-31 Kai Tietz <kai.tietz@onevision.com>
889
890 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
891 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
892
893 2010-03-31 Alan Modra <amodra@gmail.com>
894
895 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
896 TPREL16_HI and TPREL16_HA insns.
897
898 2010-03-31 Hans-Peter Nilsson <hp@axis.com>
899
900 PR ld/11458
901 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
902 assert of empty pcrel_relocs_copied on the direct symbol. Instead
903 of moving the list from the indirect symbol to the direct symbol,
904 merge into any existing list.
905 (cris_elf_check_relocs): Store the original section in the
906 pcrel_relocs_copied list, not the relocation section.
907 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
908 the relocation section, for reducing its size. Change the
909 BFD_ASSERT into a check for the section being read-only, and only
910 emit warnings and TEXTREL marker when there's an entry for a
911 read-only section.
912
913 2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
914
915 * elf32-arm.c (using_thumb_only): Handle v6-M.
916
917 2010-03-26 Alan Modra <amodra@gmail.com>
918
919 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
920 * bfd-in.h (elf_discarded_section): Clarify comment.
921 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
922 * bfd-in2.h: Regenerate.
923
924 2010-03-26 Matt Rice <ratmice@gmail.com>
925
926 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
927 as unique in the armap.
928
929 2010-03-26 Alan Modra <amodra@gmail.com>
930
931 PR ld/11375
932 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
933 possible stub on branches.
934
935 2010-03-25 Joseph Myers <joseph@codesourcery.com>
936
937 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
938 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
939 (BFD32_BACKENDS): Add elf32-tic6x.lo.
940 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
941 * Makefile.in: Regenerate.
942 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
943 (bfd_archures_list): Update.
944 * config.bfd (tic6x-*-elf): New.
945 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
946 New.
947 * configure: Regenerate.
948 * cpu-tic6x.c, elf32-tic6x.c: New.
949 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
950 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
951 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
952 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
953 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
954 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
955 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
956 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
957 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
958 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
959 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
960 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
961 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
962 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
963 (_bfd_target_vector): Update.
964 * bfd-in2.h, libbfd.h: Regenerate.
965
966 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
967
968 * aout-target.h: Update copyright year.
969 * aout-tic30.c: Likewise.
970 * coff-alpha.c: Likewise.
971 * coff-rs6000.c: Likewise.
972 * coff64-rs6000.c: Likewise.
973 * elf64-mips.c: Likewise.
974 * ieee.c: Likewise.
975 * libecoff.h: Likewise.
976 * mach-o-target.c: Likewise.
977 * mach-o.c: Likewise.
978 * oasys.c: Likewise.
979 * targets.c: Likewise.
980
981 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
982
983 * libbfd-in.h: Update copyright year.
984
985 2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
986
987 PR ld/11413
988 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
989 instead of shared.
990
991 2010-03-19 Jie Zhang <jie@codesourcery.com>
992
993 * elf32-arm.c (struct section_list): Remove.
994 (section_list): Remove typedef.
995 (record_section_with_arm_elf_section_data): Remove.
996 (find_arm_elf_section_entry): Remove.
997 (get_arm_elf_section_data): Use is_arm_elf.
998 (unrecord_section_with_arm_elf_section_data): Remove.
999 (elf32_arm_new_section_hook): Don't call
1000 record_section_with_arm_elf_section_data.
1001 (elf32_arm_write_section): Set mapcount to -1 when
1002 the map has been used. Don't call
1003 unrecord_section_with_arm_elf_section_data.
1004 (unrecord_section_via_map_over_sections): Remove.
1005 (elf32_arm_close_and_cleanup): Remove.
1006 (elf32_arm_bfd_free_cached_info): Remove.
1007 (bfd_elf32_close_and_cleanup): Don't define.
1008 (bfd_elf32_bfd_free_cached_info): Don't define.
1009
1010 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1011
1012 PR binutils/11396
1013 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
1014 * libcoff.h: Regenerated.
1015
1016 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
1017 if dont_strip_reloc is set.
1018 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
1019 dont_strip_reloc on output if there is no .reloc and
1020 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
1021
1022 2010-03-18 Wei Guozhi <carrot@google.com>
1023
1024 PR gas/11323
1025 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
1026 R_ARM_GOT_PREL.
1027 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
1028 * bfd-in2.h: Regenerate.
1029 * libbfd.h: Regenerate.
1030
1031 2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
1032
1033 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
1034 (BFD_RELOC_SPU_STUB): Likewise.
1035
1036 2010-03-17 Jie Zhang <jie@codesourcery.com>
1037
1038 * elf.c (assign_file_positions_for_load_sections): Avoid
1039 overflow.
1040
1041 2010-03-17 Alan Modra <amodra@gmail.com>
1042
1043 PR binutils/11382
1044 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
1045 proper type.
1046
1047 2010-03-17 Alan Modra <amodra@gmail.com>
1048
1049 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
1050
1051 2010-03-16 Alan Modra <amodra@gmail.com>
1052
1053 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
1054 (ppc64_elf_edit_toc): Set it here.
1055 (ha_reloc_match): New function.
1056 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
1057
1058 2010-03-15 Alan Modra <amodra@gmail.com>
1059
1060 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
1061 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
1062
1063 2010-03-14 Alan Modra <amodra@gmail.com>
1064
1065 PR ld/11378
1066 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
1067 * elf64-ppc.c (call_check_done): Define.
1068 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
1069 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
1070 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
1071 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
1072 Simplify return logic. Iterate over all .init and .fini fragments
1073 by recursion. Set makes_toc_func_call here..
1074 (ppc64_elf_next_input_section): ..rather than here.
1075 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
1076
1077 2010-03-13 Alan Modra <amodra@gmail.com>
1078
1079 PR ld/11375
1080 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
1081 function descriptor symbol if there is one, not just for plt stubs.
1082 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
1083
1084 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1085
1086 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
1087 version twice.
1088 Skip it when constructing def.vd_next.
1089
1090 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
1091 bfd_elf32_i386_sol2_vec.
1092 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
1093 (elf32_bed): Redefine to elf32_i386_sol2_bed.
1094 (elf_backend_want_plt_sym): Redefine to 1.
1095
1096 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
1097 bfd_elf64_x86_64_sol2_vec.
1098 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
1099 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
1100 (elf_backend_want_plt_sym): Redefine to 1.
1101
1102 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
1103 bfd_elf32_i386_sol2_vec.
1104 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1105 targ64_selvecs.
1106 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
1107 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1108 targ_selvecs.
1109
1110 * configure.in: Handle bfd_elf32_i386_sol2_vec,
1111 bfd_elf64_x86_64_sol2_vec.
1112 * configure: Regenerate.
1113
1114 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
1115 (bfd_elf64_x86_64_sol2_vec): Declare.
1116 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
1117 bfd_elf64_x86_64_sol2_vec.
1118
1119 2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1120
1121 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
1122 sections.
1123
1124 2010-03-04 Alan Modra <amodra@gmail.com>
1125
1126 PR 11302
1127 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
1128 (read_attribute_value, decode_line_info): Likewise.
1129 (add_line_info, read_rangelist): Return FALSE on alloc failures.
1130 (arange_add, sort_line_sequences): Likewise.
1131 (find_abstract_instance_name): Handle failures from called funcs.
1132 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
1133 (find_line): Realloc to a temp, and handle alloc fail.
1134
1135 2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1136
1137 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
1138 a mapping symbol to an empty section.
1139
1140 2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1141
1142 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
1143 return value from the call to _bfd_elf_merge_object_attributes.
1144
1145 2010-03-02 Christophe Lyon <christophe.lyon@st.com>
1146 Alan Modra <amodra@gmail.com>
1147
1148 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
1149 destination mode of the a8 stub.
1150 (elf32_arm_link_hash_table): Add top_id field.
1151 (elf32_arm_link_hash_table_create): Initialize top_id.
1152 (arm_type_of_stub): Update prototype, st_type can now be updated
1153 by this function. Actual destination address in case of PLT is
1154 computed here, to help factorizing code.
1155 (elf32_arm_stub_name): Update prototype, use stub_type additional
1156 parameter to build stub name.
1157 (elf32_arm_get_stub_entry): Update prototype, use stub_type
1158 additional parameter to build stub entry.
1159 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
1160 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
1161 Call elf32_arm_final_link_relocate to process all in-stub
1162 relocations.
1163 (elf32_arm_setup_section_lists): Update top_id.
1164 (cortex_a8_erratum_scan): Record stub destination mode.
1165 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
1166 to new prototype.
1167 (elf32_arm_final_link_relocate): Enable processing of in-stub
1168 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
1169 needed, enabling code factorization.
1170 (elf32_arm_final_link): Process stub sections.
1171 (elf32_arm_output_map_sym): Add entry to code/data map.
1172
1173 2010-03-01 David S. Miller <davem@davemloft.net>
1174
1175 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
1176 h->def_regular, set h->ref_regular.
1177 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
1178 and dynamic relocations if h->ref_regular.
1179
1180 * elfxx-sparc.c (struct elf_reloc_map): Delete.
1181 (sparc_reloc_map): Delete.
1182 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
1183 relocation type in switch statements.
1184
1185 2010-02-25 Alan Modra <amodra@gmail.com>
1186
1187 PR ld/11304
1188 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
1189 to final_link and invert. For final link allow some flags to
1190 differ. Don't specially allow flags to be all zero.
1191
1192 2010-02-24 Alan Modra <amodra@gmail.com>
1193
1194 PR binutils/10858
1195 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
1196 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
1197 table.
1198
1199 2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
1200
1201 PR binutils/11297
1202 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
1203 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
1204
1205 2010-02-22 Alan Modra <amodra@gmail.com>
1206
1207 * reloc.c (bfd_check_overflow): When forming addrmask, shift
1208 fieldmask left by rightshift.
1209 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
1210 overflow checks.
1211
1212 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
1213
1214 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
1215 STT_GNU_IFUNC on large common symbol.
1216
1217 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
1218
1219 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
1220 has_ifunc_symbols if the symbol comes from a shared library.
1221 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1222 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
1223 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
1224 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
1225 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
1226
1227 2010-02-19 Alan Modra <amodra@gmail.com>
1228
1229 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
1230 (_bfd_elf_copy_private_header_data): ..here.
1231 * elflink.c (_bfd_elf_size_group_sections): New function.
1232 (bfd_elf_size_dynamic_sections): Call it.
1233 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
1234 (_bfd_elf_fixup_group_sections): Declare.
1235
1236 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1237
1238 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
1239 merging Tag_DIV_use, Tag_MPextension_use, and
1240 Tag_MPextension_use_legacy tags.
1241
1242 2010-02-18 Alan Modra <amodra@gmail.com>
1243
1244 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
1245 commit. Don't write zeros for removed group members.
1246 (_bfd_elf_copy_private_header_data): Adjust size of group section
1247 when group members are removed by objcopy.
1248
1249 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
1250
1251 PR binutils/11280
1252 * configure.host (*-*-solaris2.11): Add host define to select
1253 valid default code page for windres/windmc on solaris.
1254
1255 2010-02-15 Nick Clifton <nickc@redhat.com>
1256
1257 * po/vi.po: Updated Vietnamese translation.
1258
1259 2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
1260
1261 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
1262 missing mapping symbol to data only sections.
1263
1264 2010-02-11 David S. Miller <davem@davemloft.net>
1265
1266 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
1267 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
1268 symbols.
1269 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
1270 these relocs on global symbols.
1271 (gdopoff): New.
1272 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
1273 local symbol references which are not STT_GNU_IFUNC. Handle
1274 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
1275 and deal with negative vs. non-negative values properly.
1276
1277 2010-02-09 Tristan Gingold <gingold@adacore.com>
1278
1279 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
1280 non-external relocation.
1281
1282 2010-02-09 Alan Modra <amodra@gmail.com>
1283
1284 * elf64-ppc.c (merge_got_entries): Move earlier in file.
1285 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
1286 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
1287 (ppc64_elf_layout_multitoc): Don't resize if we have already
1288 merged got entries.
1289
1290 2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
1291
1292 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
1293 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
1294 elfcore_write_s390_prefix): New.
1295 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
1296 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
1297 elfcore_write_s390_prefix): New.
1298 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
1299 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
1300 (elfcore_write_register_note): Handle .reg-s390-timer,
1301 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
1302 .reg-s390-prefix section.
1303
1304 2010-02-09 Alan Modra <amodra@gmail.com>
1305
1306 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
1307 unsigned char. Update variables and code using them throughout file.
1308 (struct ppc_link_hash_entry): Likewise for tls_mask.
1309
1310 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
1311
1312 * elf64-ppc.c (has_small_toc_reloc): Don't define.
1313 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
1314 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
1315 code setting the flag.
1316 (ppc64_elf_next_toc_section): Group big-toc sections in
1317 0x80008000 chunks.
1318
1319 2010-02-08 David S. Miller <davem@davemloft.net>
1320
1321 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
1322 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
1323
1324 * elfxx-sparc.c (create_got_section): Delete.
1325 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
1326 section creator does that work for us. Use ->elf.foo instead of
1327 ->foo where applicable.
1328 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
1329 where applicable.
1330 (allocate_dynrelocs): Likewise.
1331 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1332 (_bfd_sparc_elf_relocate_section): Likewise.
1333 (sparc_vxworks_build_plt_entry): Likewise.
1334 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1335 (sparc_finish_dyn): Likewise.
1336 (sparc_vxworks_finish_exec_plt): Likewise.
1337 (sparc_vxworks_finish_shared_plt): Likewise.
1338 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
1339
1340 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
1341 macros for visibilty and locality checks.
1342 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
1343 (allocate_dynrelocs): Likewise.
1344 (_bfd_sparc_elf_relocate_section): Likewise.
1345 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
1346
1347 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
1348 but never used local var 'dynobj'.
1349
1350 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
1351 nocopyreloc.
1352
1353 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
1354 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
1355 * bfd-in2.h: Regenerate.
1356 * libbfd.h: Regenerate.
1357
1358 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
1359 and loc_hash_memory.
1360 (_bfd_sparc_elf_link_hash_table_free): Declare.
1361 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
1362 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
1363 bfd_elf32_bfd_link_hash_table_free): Define.
1364 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
1365 has_ifunc_symbols if STT_GNU_IFUNC.
1366 (bfd_elf64_bfd_link_hash_table_free): Define.
1367 (elf_backend_post_process_headers): Define always.
1368 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
1369 (sparc_reloc_map): Add entries for new IFUNC relocs.
1370 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
1371 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
1372 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
1373 elf_sparc_get_local_sym_hash): New.
1374 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
1375 from here...
1376 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
1377 local hash table.
1378 (_bfd_sparc_elf_link_hash_table_free): New.
1379 (create_ifunc_sections): New.
1380 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
1381 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
1382 cons up a fake local hash table entry for it. Unconditionally add
1383 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
1384 dyn relocs for ifunc.
1385 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
1386 (allocate_dynrelocs): Unconditionally emit a PLT entry when
1387 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
1388 (allocate_local_dynrelocs): New function.
1389 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
1390 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
1391 like splt.
1392 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
1393 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
1394 plt in iplt/irelplt.
1395
1396 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
1397
1398 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
1399 max_contents_size, only consider sections whose contents must
1400 be swapped in.
1401
1402 2010-02-09 Alan Modra <amodra@gmail.com>
1403
1404 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
1405 (ppc64_elf_size_dynamic_sections): ..and here..
1406 (merge_got_entries): ..rather than here.
1407
1408 2010-02-09 Alan Modra <amodra@gmail.com>
1409
1410 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
1411 (has_small_toc_reloc): Define.
1412 (ppc64_elf_check_relocs): Set the above flags.
1413 (ppc64_elf_edit_opd): Delete obfd param.
1414 (ppc64_elf_tls_optimize): Likewise.
1415 (ppc64_elf_edit_toc): Likewise.
1416 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
1417 * elf64-ppc.h: Update prototypes.
1418
1419 2010-02-08 Alan Modra <amodra@gmail.com>
1420
1421 * section.c (struct bfd_section): Delete has_tls_reloc,
1422 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
1423 Add sec_flg0 thru sec_flg5.
1424 (BFD_FAKE_SECTION): Update for changed flags.
1425 * ecoff.c (bfd_debug_section): Likewise.
1426 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1427 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1428 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
1429 * elf32-xtensa.c (reloc_done): Define.
1430 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
1431 * bfd-in2.h: Regenerate.
1432
1433 2010-02-08 Tristan Gingold <gingold@adacore.com>
1434
1435 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
1436 for non-scattered relocations.
1437
1438 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
1439
1440 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
1441 apuinfo sections, only scan input sections once and reuse the
1442 buffer.
1443
1444 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1445
1446 * archures.c (bfd_mach_ppc_titan): Define.
1447 * bfd-in2.h: Regenerate.
1448 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
1449
1450 2010-02-08 Alan Modra <amodra@gmail.com>
1451
1452 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
1453
1454 2010-02-05 Sterling Augustine <sterling@tensilica.com>
1455
1456 * elf.c (assign_file_positions_for_load_sections) Update lma of
1457 section if necessary. Fixes Bugzilla 11219.
1458
1459 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 * elf32-i386.c: Remove trailing white spaces.
1462 * elf64-x86-64.c: Likewise.
1463
1464 2010-02-03 Nick Clifton <nickc@redhat.com>
1465
1466 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
1467 entries for other architectures.
1468 (struct elf_link_hash_table): Add hash_table_id field.
1469 (elf_hash_table_id): New accessor macro.
1470 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
1471 parameter.
1472 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
1473 returning cast pointer.
1474 (elf32_mn10300_link_hash_table_create): Identify new table as
1475 containing MN10300 extensions.
1476 (mn10300_elf_relax_section): Check pointer returned by
1477 elf32_mn10300_hash_table.
1478 * elf32-arm.c: Likewise, except using ARM extensions.
1479 * elf32-avr.c: Likewise, except using AVR extensions.
1480 * elf32-bfin.c: Likewise, except using BFIN extensions.
1481 * elf32-cris.c: Likewise, except using CRIS extensions.
1482 * elf32-frv.c: Likewise, except using FRV extensions.
1483 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
1484 * elf32-i386.c: Likewise, except using I386 extensions.
1485 * elf32-lm32.c: Likewise, except using LM32 extensions.
1486 * elf32-m32r.c: Likewise, except using M32RM extensions.
1487 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
1488 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
1489 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
1490 * elf32-m68k.c: Likewise, except using M68K extensions.
1491 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
1492 * elf32-ppc.c: Likewise, except using PPC32 extensions.
1493 * elf32-s390.c: Likewise, except using S390 extensions.
1494 * elf32-sh.c: Likewise, except using SH extensions.
1495 * elf32-spu.c: Likewise, except using SPU extensions.
1496 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
1497 * elf64-alpha.c: Likewise, except using ALPHA extensions.
1498 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
1499 * elf64-ppc.c: Likewise, except using PPC64 extensions.
1500 * elf64-s390.c: Likewise, except using S390 extensions.
1501 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
1502 * elfxx-ia64.c: Likewise, except using IA64 extensions.
1503 * elfxx-mips.c: Likewise, except using MIPS extensions.
1504 * elfxx-sparc.c: Likewise, except using SPARC extensions.
1505 * elfxx-sparc.h: Likewise, except using SPARC extensions.
1506 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
1507 redundant structure.
1508 (elf32_cr16_hash_table): Delete unused macro.
1509 (elf32_cr16_link_hash_traverse): Delete unused macro.
1510 * elf32-score.c: Likewise.
1511 * elf32-score7.c: Likewise.
1512 * elf32-vax.c: Likewise.
1513 * elf64-sh64.c: Likewise.
1514
1515 2010-02-03 Alan Modra <amodra@gmail.com>
1516
1517 * elf64-ppc.c (struct plt_entry): Move earlier in file.
1518 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
1519 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
1520 Update all uses.
1521 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
1522 Remove no_multi_toc.
1523 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
1524 when allocating a new struct got_entry.
1525 (allocate_got): New function, extracted from..
1526 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
1527 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
1528 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
1529 (ppc64_elf_setup_section_lists): Remove output_bfd param and
1530 no_multi_toc, add add_stub_section and layout_sections_again. Stash
1531 new params in htab. Extract some code to..
1532 (ppc64_elf_start_multitoc_partition): ..here. New function.
1533 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
1534 second pass toc scan.
1535 (merge_got_entries, merge_global_got, reallocate_got): New functions.
1536 (ppc64_elf_reinit_toc): Rename to..
1537 (ppc64_elf_finish_multitoc_partition): ..this.
1538 (ppc64_elf_layout_multitoc): New function.
1539 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
1540 layout_sections_again params.
1541 (ppc64_elf_relocate_section): Handle indirect got entries.
1542 * elf64-ppc.h: Update prototypes. Declare new functions.
1543
1544 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
1545
1546 * elf-bfd.h (elfcore_write_xstatereg): New.
1547
1548 * elf.c (elfcore_grok_xstatereg): New.
1549 (elfcore_write_xstatereg): Likewise.
1550 (elfcore_grok_note): Handle NT_X86_XSTATE.
1551 (elfcore_write_register_note): Handle .reg-xstate section.
1552
1553 2010-02-01 Tristan Gingold <gingold@adacore.com>
1554
1555 * som.c (som_write_ar_hdr): Define this macro.
1556
1557 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1558
1559 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
1560 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
1561 linkage table pointer to use the global table pointer if not doing
1562 a shared link.
1563
1564 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1565
1566 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
1567 if it has already been set.
1568
1569 2010-01-27 Tristan Gingold <gingold@adacore.com>
1570
1571 * vms.h: Remove trailing spaces.
1572 (struct hdr_struct): Remove unused hdr_c_cpr field.
1573 (enum file_format_enum): Add comments.
1574 * vms.c (vms_bfd_print_private_bfd_data): New function that
1575 replaces the macro.
1576 Remove trailing spaces.
1577 * vms-misc.c: Improve comments.
1578 (_bfd_vms_get_object_record): Also handle files without pads.
1579 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
1580 * vms-gsd.c (struct flagdescstruct): Make name field const.
1581 (gsyflagdesc): Fix typo.
1582
1583 2010-01-27 Alan Modra <amodra@gmail.com>
1584
1585 PR ld/11217
1586 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
1587 (ppc64_elf_setup_section_lists): Init them.
1588 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
1589 and .toc on the same input file.
1590 (ppc64_elf_relocate_section): Correct GOT entry offset.
1591
1592 2010-01-26 Tristan Gingold <gingold@adacore.com>
1593
1594 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
1595 (bfd_target): Add _bfd_write_ar_hdr_fn field.
1596 * archive.c (is_bsd44_extended_name): New macro.
1597 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
1598 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
1599 name.
1600 (_bfd_archive_bsd44_construct_extended_name_table): New function.
1601 (_bfd_generic_write_ar_hdr): Ditto.
1602 (_bfd_bsd44_write_ar_hdr): Ditto.
1603 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
1604 (bsd_write_armap): Adjust firstreal computation.
1605 * libbfd-in.h (struct areltdata): Add extra_size field.
1606 (_bfd_generic_write_ar_hdr): Add prototype.
1607 (_bfd_bsd44_write_ar_hdr): Ditto.
1608 (_bfd_write_ar_hdr): Define.
1609 (_bfd_noarchive_write_ar_hdr): Ditto.
1610 (_bfd_archive_bsd_write_ar_hdr): Ditto.
1611 (_bfd_archive_coff_write_ar_hdr): Ditto.
1612 (_bfd_archive_bsd44_slurp_armap): Ditto.
1613 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
1614 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
1615 (_bfd_archive_bsd44_truncate_arname): Ditto.
1616 (_bfd_archive_bsd44_write_armap): Ditto.
1617 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
1618 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
1619 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
1620 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
1621 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
1622 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
1623 * libbfd.h: Regenerate.
1624 * oasys.c (oasys_write_ar_hdr): Define.
1625 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
1626 * ieee.c (ieee_write_ar_hdr): Define.
1627 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
1628 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
1629 (bfd_pmac_xcoff_backend_data): Ditto.
1630 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
1631 (bfd_xcoff_aix5_backend_data): Ditto.
1632 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
1633 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
1634 * aout-tic30.c (MY_write_ar_hdr): Ditto.
1635 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
1636 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1637 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1638 (bfd_mach_o_construct_extended_name_table)
1639 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1640 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1641 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
1642 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1643 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1644 (bfd_mach_o_construct_extended_name_table)
1645 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1646 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1647 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
1648 * bfd-in2.h: Regenerate.
1649
1650 2010-01-26 Alan Modra <amodra@gmail.com>
1651 H.J. Lu <hongjiu.lu@intel.com>
1652
1653 PR ld/11218
1654 * elflink.c (elf_link_output_extsym): Do not ignore undefined
1655 symbols with ref_regular set when gc_sections is active.
1656
1657 2010-01-25 Alan Modra <amodra@gmail.com>
1658
1659 PR ld/11217
1660 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
1661 with relocations against undefined weak symbols.
1662 (ppc64_elf_relocate_section): Don't optimize calls to undefined
1663 weak functions if the symbol is dynamic.
1664 (ppc64_elf_relocate_section): Edit tprel tls sequences.
1665 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1666 (_bfd_elf_ppc_at_tprel_transform): New function.
1667 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
1668 * bfd-in2.h: Regenerate.
1669
1670 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
1671
1672 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
1673 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
1674 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
1675 bitsize to 1.
1676 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
1677
1678 2010-01-21 Nick Clifton <nickc@redhat.com>
1679
1680 * elflink.c (elf_link_add_object_symbols): Look up name of
1681 undefined symbol both before and after versioning has been
1682 applied. Do not bother with symbols that are weakly undefined.
1683
1684 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1685
1686 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
1687 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
1688
1689 2010-01-19 Cary Coutant <ccoutant@google.com>
1690
1691 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
1692
1693 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
1694 Alan Modra <amodra@gmail.com>
1695
1696 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
1697 (elf_object_p): Read e_phnum extension.
1698 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
1699 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
1700 that we can read last program header.
1701
1702 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1703
1704 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
1705 R_ARM_THM_CALL entry.
1706 (elf32_arm_final_link_relocate): Correct calculation of
1707 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
1708 or R_ARM_THM_JUMP24 relocation.
1709
1710 2010-01-18 Alan Modra <amodra@gmail.com>
1711
1712 PR 11168
1713 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
1714 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
1715 than 32k sections.
1716
1717 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1718
1719 Fix compilation warning on gcc-3.4.
1720 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
1721 parameter index to sec_index according to the function definition.
1722
1723 2010-01-13 Chao-ying Fu <fu@mips.com>
1724
1725 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
1726 It is true for all CPUs.
1727 (jal_reloc_p): New function.
1728 (mips_elf_calculate_relocation): Rename require_jalxp to
1729 cross_mode_jump_p.
1730 Update comment for CROSS_MODE_JUMP_P.
1731 Set up cross_mode_jump_p based on the mode change.
1732 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
1733 Update comment for CROSS_MODE_JUMP_P.
1734 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
1735 Use !cross_mode_jump_p to guard conversion.
1736 Convert "jr t9" to "b", if possible.
1737 (_bfd_mips_elf_relocate_section): Rename require_jalx to
1738 cross_mode_jump_p.
1739 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
1740 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
1741
1742 2010-01-13 Nick Clifton <nickc@redhat.com>
1743
1744 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
1745 "m32c" returns the m32c arch_info_struct and not the m16c
1746 arch_info_struct.
1747 (arch_info_struct): Use the new scan function.
1748 (bfd_m32c_arch): Likewise.
1749
1750 2010-01-13 Tristan Gingold <gingold@adacore.com>
1751
1752 * config.bfd: Remove duplicated target vector for i386-*-darwin.
1753 Appends new arch instead of overriding.
1754 Use mach_o_x86_64_vec for x86_64-*-darwin.
1755 * configure.in: Add mach_o_x86_64_vec.
1756 * configure: Regenerate.
1757 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
1758 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
1759 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
1760 * Makefile.in: Regenerate.
1761 * mach-o-x86-64.c: New file.
1762
1763 2010-01-13 Tristan Gingold <gingold@adacore.com>
1764
1765 * reloc.c: Add MACH_O_X86_64 relocations.
1766 * bfd-in2.h: Regenerate.
1767 * libbfd.h: Regenerate.
1768
1769 2010-01-13 Tristan Gingold <gingold@adacore.com>
1770
1771 * archive.c (normalize): Use lbasename.
1772 (bfd_bsd_truncate_arname): Ditto.
1773 (bfd_gnu_truncate_arname): Ditto.
1774
1775 2010-01-12 Tristan Gingold <gingold@adacore.com>
1776
1777 * makefile.vms (CFLAGS): Turns warnings into informational messages.
1778
1779 2010-01-11 Tristan Gingold <gingold@adacore.com>
1780
1781 * mach-o.h: Add x86-64 relocation types.
1782
1783 2010-01-11 Tristan Gingold <gingold@adacore.com>
1784
1785 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
1786 (bfd_mach_o_set_arch_mach): New prototype.
1787 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
1788 (bfd_mach_o_set_arch_mach): New function.
1789 (bfd_mach_o_gen_mkobject): New function.
1790 Set TARGET_ARCHITECTURE for the generic back-ends.
1791 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
1792 Check that TARGET_ARCHITECTURE is defined.
1793 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
1794 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
1795
1796 2010-01-11 Tristan Gingold <gingold@adacore.com>
1797
1798 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
1799
1800 2010-01-11 Nick Clifton <nickc@redhat.com>
1801
1802 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
1803 handling of R_V850_HI16_S relocation.
1804
1805 2010-01-11 Alan Modra <amodra@gmail.com>
1806
1807 PR 11103
1808 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
1809
1810 2010-01-11 Alan Modra <amodra@gmail.com>
1811
1812 PR 6832
1813 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
1814 (find_abstract_instance_name): Use it.
1815 (parse_comp_unit): Set it.
1816
1817 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1818
1819 * Makefile.in: Regenerate.
1820 * configure: Regenerate.
1821
1822 2010-01-08 Tristan Gingold <gingold@adacore.com>
1823
1824 * archive.c: Remove bfd_special_undocumented_glue.
1825
1826 2010-01-08 Alan Modra <amodra@gmail.com>
1827
1828 PR ld/11133
1829 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
1830 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
1831 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1832
1833 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1834
1835 PR ld/11138
1836 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
1837 a symbol referenced by DSO is is defined in a non-shared object
1838 and forced local.
1839
1840 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1841
1842 PR ld/11133
1843 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
1844 undefined __start_XXX/__stop_XXX in all input files and set
1845 SEC_KEEP.
1846
1847 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1848
1849 PR ld/11143
1850 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
1851
1852 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
1853
1854 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
1855 before including procfs.h.
1856 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
1857 * configure.in: Added autoconf probe for the pr_fpreg member.
1858 * configure: Regenerated.
1859 * config.in: Regenerated.
1860 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
1861
1862 2010-01-04 Joel Brobecker <brobecker@adacore.com>
1863
1864 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
1865 * dwarf2.c (concat_filename): Rename dirname with dir_name
1866 to void shadowing the dirname function.
1867 Rename subdirname with subdir_name to stay consistent with
1868 the new dir_name variable name.
1869
1870 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
1871
1872 * archures.c: Add bfd_mach_ppc_e500mc64.
1873 * bfd-in2.h: Regenerate.
1874 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
1875 bfd_mach_ppc_e500mc64.
1876
1877 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1878
1879 Fix -Wshadow warnings (seen on ppc-aix)
1880 * xcofflink.c: Replace finfo by flinfo throughout.
1881
1882 For older changes see ChangeLog-2009
1883 \f
1884 Local Variables:
1885 mode: change-log
1886 left-margin: 8
1887 fill-column: 74
1888 version-control: never
1889 End:
This page took 0.069759 seconds and 5 git commands to generate.