ae142f197ff76d97df31a3cffcf25ec0d4f196b1
[binutils-gdb.git] / bfd / ChangeLog
1 2008-03-03 Alan Modra <amodra@bigpond.net.au>
2
3 * elf32-ppc.c (allocate_dynrelocs): Discard relocs on
4 undefined symbols with internal or hidden visibility.
5 (ppc_elf_relocate_section): Likewise. Use SYMBOL_CALLS_LOCAL
6 rather than SYMBOL_REFERENCES_LOCAL on branches. Don't
7 return immediately on dynamic reloc error.
8
9 2008-03-01 Alan Modra <amodra@bigpond.net.au>
10
11 * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs
12 if emitrelocations.
13 (get_relocs): New function, split out from..
14 (ppc_build_one_stub): ..here. Add relocs on plt_branch stubs if
15 emitrelocations. Remove indx temp.
16 (ppc_size_one_stub): Count new stub relocs.
17 (ppc64_elf_size_stubs): Count new glink reloc.
18 (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations.
19 (ppc64_elf_finish_dynamic_sections): Output glink relocs.
20 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic
21 glink code.
22
23 2008-02-28 Alan Modra <amodra@bigpond.net.au>
24
25 * elf32-spu.c (mark_functions_via_relocs): Don't assume that
26 the "->start" pointer reaches to function origin, so that we
27 can handle functions split over more than two sections.
28 (build_call_tree): Likewise.
29 (pasted_function): Don't attempt to set fun->start back to the
30 function origin, just go back one section.
31
32 2008-02-27 Catherine Moore <clm@codesourcery.com>
33
34 * elf.c ( _bfd_elf_print_private_bfd_data): Call
35 elf_backend_get_target_dtag if defined.
36 * elf32-mips.c (elf_backend_get_target_dtag): Define.
37 * elf64-mips.c: Likewise.
38 * elfn32-mips.c: Likewise.
39 * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New.
40 * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare.
41 * elf-bfd.h (elf_backend_get_target_dtag): Add prototype.
42 * elfxx-target.h (elf_backend_get_target_dtag): Add default.
43 (elf_backend_data): Add elf_backend_get_target_dtag.
44
45 2008-02-26 Alan Modra <amodra@bigpond.net.au>
46
47 * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
48 for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms,
49 and assume branch relocs are not dynamic when non-shared.
50 (readonly_dynrelocs): New function, split out from..
51 (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs.
52 (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries,
53 clear non_got_ref..
54 (allocate_dynrelocs): ..and don't set u.def for undefined weak.
55 Do allow dynamic relocs on undefined symbols.
56 (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs.
57 (ppc_elf_relocate_section): Mirror dynamic reloc changes in
58 check_relocs.
59 (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak
60 plt symbols needing pointer_equality_needed.
61
62 2008-02-23 Alan Modra <amodra@bigpond.net.au>
63
64 * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
65
66 2008-02-23 Alan Modra <amodra@bigpond.net.au>
67
68 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
69 pointer_equality_needed.
70 (ppc_elf_check_relocs): Split out non-branch relocs from others
71 that might emit dynamic relocs. Set pointer_equality_needed
72 for their symbols. Don't set non_got_ref on branch reloc symbols.
73 (ppc_elf_hash_symbol): New function.
74 (elf_backend_hash_symbol): Define.
75 (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed.
76 Error if pointer_equality_needed on weak plt symbol.
77
78 2008-02-22 H.J. Lu <hongjiu.lu@intel.com>
79
80 PR ld/5788
81 * elflink.c (elf_create_symbuf): Correct buffer size and
82 position.
83
84 2008-02-22 Nick Clifton <nickc@redhat.com>
85
86 PR 868
87 * dwarf2.c: Revert previous patch. All of the allocate memory is
88 on an obstack which will be freed at some other time.
89
90 2008-02-20 Nick Clifton <nickc@redhat.com>
91
92 PR 868
93 * libbfd.c (bfd_realloc_or_free): New function. Performs like
94 bfd_realloc, but if the (re)allocation fails, the pointer is
95 freed.
96 * libbfd-in.h: Prototype.
97 * libbfd.h: Regenerate.
98 * bfdio.c (bfd_bwrite): Use the new function.
99 (bfd_seek): Likewise.
100 * bfdwin.c:(bfd_get_file_window): Likewise.
101 * elf-strtab.c (_bfd_elf_strtab_add): Likewise.
102 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
103 * elf32-xtensa.c (vsprintf_msg): Likewise.
104 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
105 * stabs.c (_bfd_link_seciton_stabs): Likewise.
106 * vms-misc.c (_bfd_vms_get_record): Likewise.
107 * vms-tir.c (check_section): Likewise.
108 * vms.c (vms_new_section_hook): Likewise.
109 * elf32-arm.c (elf32_arm_section_map_add): Check that the
110 allocation of sec_data->map succeeded before using it.
111 * elflink.c (elf_link_output_sym): Do not overwrite finfo->
112 symshndxbuf until it is known that the reallocation succeeded.
113
114 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br>
115 Nick Clifton <nickc@redhat.com>
116
117 PR 868
118 * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
119 out of memory.
120 (decode_line_info): Free the line_info_table before returning a
121 failure result.
122 (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
123 Free the line table. Free the function table. Free the variable
124 table.
125
126 2008-02-17 Mark Kettenis <kettenis@gnu.org>
127
128 * elf.c (swap_out_syms): Avoid preprocessing directive within
129 macro arg.
130
131 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
132
133 * elf.c (assign_file_positions_for_load_sections): Set the type of
134 PT_NOTE sections to SHT_NOTE.
135
136 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com>
137
138 * simple.c (bfd_simple_get_relocated_section_contents): Set
139 link_info.output_bfd.
140
141 2008-02-16 Nathan Sidwell <nathan@codesourcery.com>
142
143 * dwarf2.c (find_line): Don't trust debug information after an
144 unparseable compilation unit.
145
146 2008-02-15 Alan Modra <amodra@bigpond.net.au>
147
148 PR 5765
149 * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags.
150 * bfd-in2.h: Regenerate.
151
152 2008-02-15 Alan Modra <amodra@bigpond.net.au>
153
154 * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
155 * elf.c (bfd_elf_allocate_object): Don't check for already allocated
156 tdata.
157 * elf32-hppa.c (elf32_hppa_mkobject): New function.
158 (bfd_elf32_mkobject): Define.
159 * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with..
160 (is_ppc_elf): ..this new macro.
161 * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with..
162 (is_ppc64_elf): ..this new macro.
163
164 2008-02-15 Alan Modra <amodra@bigpond.net.au>
165
166 * elflink.c: Replace all accesses to hash->creator field with
167 output_bfd->xvec.
168 * cofflink.c: Likewise.
169 * coff-h8300.c: Likewise.
170 * ecoff.c: Likewise.
171 * elf32-m68hc1x.c: Likewise.
172 * elf32-ppc.c: Likewise.
173 * elf64-alpha.c: Likewise.
174 * elf64-ppc.c: Likewise.
175 * elf64-sparc.c: Likewise.
176 * elfxx-mips.c: Likewise.
177 * i386linux.c: Likewise.
178 * m68klinux.c: Likewise.
179 * sparclinux.c: Likewise.
180 * sunos.c: Likewise.
181 * xcofflink.c: Likewise.
182 * linker.c: Likewise.
183 (_bfd_link_hash_table_init): Don't store creator.
184
185 2008-02-14 Peter Jones <pjones@redhat.com>
186
187 * efi-rtdrv-ia32.c: New file.
188 * efi-bsdrv-ia32.c: New file.
189 * efi-rtdrv-ia64.c: New file.
190 * efi-bsdrv-ia64.c: New file.
191 * efi-rtdrv-x86_64.c: New file.
192 * efi-bsdrv-x86_64.c: New file.
193 * peicode.h (pe_bfd_object_p): Add support for boot service and
194 runtime service drivers.
195 * libpei.h: Add macros for EFI formats, and rename the efi application
196 format macros to disambiguate.
197 * targets.c: Add bfd_target _vec externs.
198 (_bfd_tar): Add EFI _vec entries.
199 * config.bfd: Add EFI vectors into the selection routines.
200 * configure.in: add EFI _vec entries.
201 * configure: Regenerate.
202 * Makefile.am: Add EFI files.
203 * Makefile.in: Regenerate.
204
205 2008-02-14 Nathan Sidwell <nathan@codesourcery.com>
206
207 * dwarf1.c (struct dwarf1_debug): Add syms member.
208 (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory.
209 (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate
210 section contents, check for out of memory.
211
212 * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte.
213 (parse_die): Change data pointers to bfd_byte.
214 (parse_line_table, parse_functions_in_unit): Likewise.
215
216 2008-02-14 Alan Modra <amodra@bigpond.net.au>
217
218 * elflink.c (compute_bucket_count): Warning fixes.
219
220 2008-02-12 DJ Delorie <dj@redhat.com>
221
222 * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
223 relocation pointing to local symbol in merged section.
224
225 * elf32-iq2000.c (iq2000_elf_relocate_offset16): New.
226 (iq2000_elf_relocate_section): Call it.
227
228 2008-02-12 Nick Clifton <nickc@redhat.com>
229
230 PR ld/5692
231 * elf-bfd.h (enum elf_object_id): New enum, used to identify
232 target specific extensions to the elf_obj_tdata structure.
233 (struct elf_obj_tdata): New field 'object_id'.
234 (elf_object_id, elf_program_header_size, elf_symtab_hdr): New
235 macros for accessing fields in the elf_obj_tdata structure.
236 (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object.
237 (bfd_elf_allocate_object): New function.
238 * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object
239 and implement by calling bfd_elf_allocate_object.
240 (bfd_elf_allocate_object): New function: Allocates an
241 elf_obj_tdata structure, possibly with a target specific
242 extension.
243 * elfxx-target.h (bfd_elfNN_mkobject): Use
244 bfd_elf_make_generic_object as the default value.
245 * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata
246 for consistency with other, similar structures.
247 (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM
248 ELF bfd.
249 (elf32_arm_mkobject): Call bfd_elf_allocate_object.
250 (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check
251 the bfd being processed.
252 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
253 (bfd_elf32_arm_set_target_relocs): Likewise.
254 (bfd_elf32_arm_final_link_relocate): Likewise.
255 (bfd_elf32_arm_copy_private_bfd_data): Likewise.
256 (bfd_elf32_arm_merge_eabi_attributes): Likewise.
257 (bfd_elf32_arm_merge_private_bfd_data): Likewise.
258 (bfd_elf32_arm_check_relocs): Likewise.
259 (bfd_elf32_arm_gc_mark_extra_sections): Likewise.
260 (bfd_elf32_arm_size_dynamic_sections): Likewise.
261 (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr.
262 (bfd_elf32_arm_init_maps): Likewise.
263 (bfd_elf32_arm_final_link_relocate): Likewise.
264 (bfd_elf32_arm_relocate_section): Likewise.
265 (bfd_elf32_arm_gc_sweep_hook): Likewise.
266 (bfd_elf32_arm_check_relocs): Likewise.
267 (bfd_elf32_arm_size_dynamic_sections): Likewise.
268 * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object.
269 (is_i386_elf): New macro. Checks a BFD to make sure that is an x86
270 ELF bfd.
271 (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd
272 being processed.
273 (elf_i386_size_dynamic_sections): Likewise.
274 (elf_i386_relocate_section): Likewise.
275 (elf_i386_check_relocs): Use elf_symtab_hdr.
276 (elf_i386_gc_sweep_hook): Likewise.
277 (elf_i386_size_dynamic_sections): Likewise.
278 (elf_i386_relocate_section): Likewise.
279 * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object.
280 (elf_create_pointer_linker_section): Use is_ppc_elf_target to
281 verify that the bfd before accessing target specific fields.
282 (ppc_elf_check_relocs): Likewise.
283 (elf_finish_pointer_linker_section): Likewise.
284 (elf_create_pointer_linker_section): Use elf_symtab_hdr.
285 (ppc_elf_check_relocs): Likewise.
286 (ppc_elf_gc_sweep_hook): Likewise.
287 (ppc_elf_tls_optimize): Likewise.
288 (ppc_elf_size_dynamic_sections): Likewise.
289 (ppc_elf_relax_section): Likewise.
290 (ppc_elf_relocate_section): Likewise.
291 * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment
292 reminding programmers to keep this structure in sync with the one
293 defined in elf64-s390.c.
294 (elf_s390_mkobject): Call bfd_elf_allocate_object.
295 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
296 ELF bfd.
297 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
298 being processed.
299 (elf_s390_size_dynamic_sections): Likewise.
300 (elf_s390_relocate_section): Likewise.
301 (elf_s390_check_relocs): Use elf_symtab_hdr.
302 (elf_s390_gc_sweep_hook): Likewise.
303 (elf_s390_size_dynamic_sections): Likewise.
304 (elf_s390_relocate_section): Likewise.
305 * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
306 (is_sh_elf): New macro. Checks a BFD to make sure that is an SH
307 ELF bfd.
308 (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the
309 bfd being processed.
310 (sh_elf_relocate_section): Likewise.
311 (sh_elf_check_relocs): Likewise.
312 (sh_elf_copy_private_data): Likewise.
313 (sh_elf_relax_section): Use elf_symtab_hdr.
314 (sh_elf_size_dynamic_sections): Likewise.
315 (sh_elf_relocate_section): Likewise.
316 (sh_elf_get_relocated_section_contents): Likewise.
317 (sh_elf_gc_sweep_hook): Likewise.
318 (sh_elf_check_relocs): Likewise.
319 * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object.
320 (is_alpha_elf): New macro. Checks a BFD to make sure that is an
321 Alpha ELF bfd.
322 (elf64_alpha_create_got_section): Use is_alpha_elf macro to check
323 the bfd being processed.
324 (elf64_alpha_create_dynamic_section): Likewise.
325 (elf64_alpha_check_relocs): Likewise.
326 (elf64_alpha_size_got_sections): Likewise.
327 (elf64_alpha_relax_section): Likewise.
328 (elf64_alpha_relocate_section): Likewise.
329 (elf64_alpha_final_link): Likewise.
330 (elf64_alpha_check_relocs): Use elf_symtab_hdr.
331 (elf64_alpha_relax_section): Likewise.
332 (elf64_alpha_relocate_section_r): Likewise.
333 (elf64_alpha_relocate_section): Likewise.
334 * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object.
335 (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd
336 being processed.
337 (opd_entry_value): Likewise.
338 (allocate_dynrelocs): Likewise.
339 (ppc64_elf_relocate_section): Likewise.
340 (ppc64_elf_check_relocs): Use elf_symtab_hdr.
341 (opd_entry_value): Likewise.
342 (ppc64_elf_gc_sweep_hook): Likewise.
343 (get_sym_h): Likewise.
344 (ppc64_elf_edit_opd): Likewise.
345 (ppc64_elf_tls_optimize): Likewise.
346 (ppc64_elf_edit_toc): Likewise.
347 (ppc64_elf_size_dynamic_sections): Likewise.
348 (toc_adjusting_stub_needed): Likewise.
349 (ppc64_elf_size_stubs): Likewise.
350 (ppc64_elf_relocate_section): Likewise.
351 * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment
352 reminding programmers to keep this structure in sync with the one
353 defined in elf32-s390.c.
354 (elf_s390_mkobject): Call bfd_elf_allocate_object.
355 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
356 ELF bfd.
357 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
358 being processed.
359 (elf_s390_size_dynamic_sections): Likewise.
360 (elf_s390_relocate_section): Likewise.
361 (elf_s390_check_relocs): Use elf_symtab_hdr.
362 (elf_s390_gc_sweep_hook): Likewise.
363 (elf_s390_size_dynamic_sections): Likewise.
364 (elf_s390_relocate_section): Likewise.
365 * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object.
366 (is_x86_64_elf): New macro. Checks a BFD to make sure that is an
367 x86_64 ELF bfd.
368 (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd
369 being processed.
370 (elf64_x86_64_size_dynamic_sections): Likewise.
371 (elf64_x86_64_relocate_section): Likewise.
372 (elf64_x86_64_check_relocs): Use elf_symtab_hdr.
373 (elf64_x86_64_gc_sweep_hook): Likewise.
374 (elf64_x86_64_size_dynamic_sections): Likewise.
375 (elf64_x86_64_relocate_section): Likewise.
376 * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object.
377 (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc
378 ELF bfd.
379 (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the
380 bfd being processed.
381 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
382 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
383 (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
384 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
385 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
386 (_bfd_sparc_elf_relocate_section): Likewise.
387
388 2008-02-12 Alan Modra <amodra@bigpond.net.au>
389
390 PR 5303, 5755
391 * arange-set.c: Delete.
392 * arange-set.h: Delete.
393 * dwarf2.c: Revert 2007-09-21 changes.
394 * Makefile.am: Likewise.
395 * Makefile.in: Regenerate.
396 * po/SRC-POTFILES.in: Regenerate.
397
398 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com>
399
400 * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
401 if necessary.
402 (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type
403 mismatches are detected.
404
405 * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
406 emit invalid relocs or rofixup entries for deleted .eh_frame entries.
407
408 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com>
409
410 * cache.c (cache_bread): Set bfd_error_file_truncated if EOF
411 was reached.
412 * srec.c (srec_scan): Calculate the checksum. Complain on mismatch.
413
414 2008-02-07 Alan Modra <amodra@bigpond.net.au>
415
416 * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling
417 of _ovly_buf_table size.
418 (spu_elf_build_stubs): Use low bit of .size as "present" bit.
419 Adjust initialisations relating to _ovly_buf_table.
420
421 2008-02-04 Bob Wilson <bob.wilson@acm.org>
422
423 * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
424 relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND
425 relocations against dynamic symbols.
426 (elf_xtensa_finish_dynamic_sections): Do not fail if there is no
427 .xt.lit section.
428
429 2008-02-04 Kai Tietz <kai.tietz@onevision.com>
430 H.J. Lu <hongjiu.lu@intel.com>
431
432 PR 5715
433 * warning.m4: Enable -Wno-format by default when using gcc on
434 mingw.
435 * configure: Regenerated.
436
437 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
438
439 * archures.c: Update copyright.
440 (bfd_mach_mips_octeon): New macro.
441 * bfd-in2.h: Regenerate.
442 * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon.
443 (mips_set_isa_flags): Likewise.
444 (mips_mach_extensions): Add Octeon.
445 * cpu-mips.c: Update copyright.
446 (I_mipsocteon): New enum constant.
447 (arch_info_struct): Add Octeon.
448
449 2008-02-04 Alan Modra <amodra@bigpond.net.au>
450
451 * elf32-spu.c (spu_elf_relocate_section): Correct return type.
452 Return error status on unexpected relocation errors.
453
454 2008-02-04 Alan Modra <amodra@bigpond.net.au>
455
456 PR ld/5692
457 * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort
458 on non-ELF input.
459 * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue
460 processing on non-ELF input.
461
462 2008-01-31 Marc Gauthier <marc@tensilica.com>
463
464 * config.bfd (xtensa*-*-*): Recognize processor variants.
465
466 2008-01-31 Nick Clifton <nickc@redhat.com>
467
468 PR ld/5692
469 * elf.c (bfd_elf_get_elf_syms): Check the return value of
470 get_elf_backend_data.
471
472 2008-01-28 Fabian Groffen <grobian@gentoo.org>
473
474 * config.bfd (x86_64-*-solaris2): Add support for this target.
475
476 2008-01-28 Alan Modra <amodra@bigpond.net.au>
477
478 Rewrite SPU overlay handling code. Put overlay calls stubs in the
479 overlays where possible. Use a faster call stub, or optionally at
480 compile time, a more compact stub. Double size of _ovly_buf_table
481 so that low bit of _ovly_table.buf can be used as a "present" bit.
482 Reserve an extra _ovly_table entry for index zero.
483 * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields,
484 add new ones.
485 (struct got_entry): New.
486 (struct spu_stub_hash_entry): Delete.
487 (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete.
488 (spu_elf_link_hash_table_create): Adjust for struct changes.
489 (spu_stub_name): Delete.
490 (spu_elf_find_overlays): Don't track sections from overlay regions.
491 Instead set ovl_buf number in spu elf section data. Error if
492 overlays in one region don't start at the same address. Adjust
493 for struct _spu_elf_section_data changes.
494 (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete.
495 (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define.
496 (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes.
497 (enum _insn_type): New.
498 (count_stub, build_stub): New functions.
499 (allocate_spuear_stubs): Use count_stub.
500 (build_spuear_stubs): Use build_stub.
501 (populate_stubs, sort_stubs): Delete.
502 (process_stubs): New function.
503 (write_one_stub): Delete.
504 (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite.
505 (alloc_stack_info): Adjust for struct _spu_elf_section_data changes.
506 (maybe_insert_function, check_function_ranges): Likewise.
507 (find_function, pasted_function, build_call_tree): Likewise.
508 (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise.
509 (spu_elf_modify_program_headers): Likewise.
510 (interesting_section): Detect stub sections differently. Delete
511 htab param, adjust all callers.
512 (spu_elf_relocate_section): Rewrite stub handling.
513 (spu_elf_output_symbol_hook): Likewise.
514 (bfd_elf32_bfd_link_hash_table_free): Delete.
515 * elf32-spu.h (struct _spu_elf_section_data): Move input-only and
516 output-only fields into a union. Add ovl_buf.
517 (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes.
518
519 2008-01-25 DJ Delorie <dj@redhat.com>
520
521 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
522
523 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
524
525 * bfd-in.h: Add mingw I64 support.
526 * bfd-in2.h: Regenerated.
527 * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64.
528
529 2008-01-21 Alan Modra <amodra@bigpond.net.au>
530
531 PR 4453
532 * format.c (bfd_check_format_matches): Don't accept archives as
533 fully matching unless they have a map.
534
535 2008-01-21 Alan Modra <amodra@bigpond.net.au>
536
537 * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
538
539 2008-01-21 Alan Modra <amodra@bigpond.net.au>
540
541 * ecoff.c (_bfd_ecoff_archive_p): Delete.
542 * libecoff.h (_bfd_ecoff_archive_p): Delete.
543 * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
544 * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
545 (ecoff_biglittle_vec): Likewise.
546
547 2008-01-19 Alan Modra <amodra@bigpond.net.au>
548
549 PR 5646
550 * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
551 non-NULL before dereferencing.
552
553 2008-01-15 Alan Modra <amodra@bigpond.net.au>
554
555 PR 5604
556 * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param
557 names from others.
558 (_bfd_elf_gc_keep): Declare.
559 * elfxx-target.h (elf_backend_gc_keep): Define.
560 (elfNN_bed): Init new field.
561 * elflink.c (_bfd_elf_gc_keep): New function.
562 (bfd_elf_gc_sections): Call gc_keep.
563 * elf64-ppc.c (elf_backend_gc_keep): Define.
564 (struct _ppc64_elf_section_data): Move .opd related fields to
565 a struct so they don't occupy the same storage. Adjust accesses
566 throughout file.
567 (ppc64_elf_gc_keep): New function, split out from..
568 (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark
569 to mark .opd section, just set gc_mark.
570 (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust
571 unless we are changing .opd. Test non-NULL opd->adjust at all
572 accesses throughout file.
573 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
574
575 2008-01-15 Alan Modra <amodra@bigpond.net.au>
576
577 * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
578 * bfd-in2.h: Regenerate.
579
580 2008-01-11 Tristan Gingold <gingold@adacore.com>
581 Eric Botcazou <ebotcazou@adacore.com>
582
583 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
584 relocatable.
585 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
586 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
587 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
588 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
589 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
590 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
591 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
592 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
593 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
594 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
595 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
596 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
597 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
598 * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
599 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
600 * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
601 or executable output with relocations.
602
603 2008-01-09 Nick Clifton <nickc@redhat.com>
604
605 PR gas/5552
606 * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field
607 to FALSE for all relocs.
608
609 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk>
610
611 PR ld/5526
612 * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
613 fields. Rename u.cie.u.merged to u.cie.u.merged_with.
614 (eh_frame_sec_info): Add a cies field.
615 (eh_frame_hdr_info): Add a merge_cies field.
616 * elf-eh-frame.c (cie): Add a reloc_index member to the personality
617 union.
618 (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
619 of hdr_info->cies.
620 (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of
621 cie structures in all cases and use it instead of extended_cies.
622 If merging, store the cie array in sec_info->cies and point each
623 CIE's eh_fde_cie at the associated element. Do not try to
624 calculate the value of the personality routine here; record the
625 offset of the relocation instead. Do not merge CIEs here.
626 (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
627 (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
628 (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
629 (find_merged_cie): New function.
630 (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies.
631
632 2008-01-07 Nick Clifton <nickc@redhat.com>
633
634 PR binutils/5535
635 * vms.c (vms_close_and_cleanup): Check for the presence of a
636 vms_private_data_struct before examining any of its fields.
637
638 2008-01-07 H.J. Lu <hongjiu.lu@intel.com>
639
640 PR ld/5522
641 * elflink.c (elf_link_input_bfd): Don't write out a section if
642 its output section is marked with SEC_NEVER_LOAD.
643
644 For older changes see ChangeLog-2007
645 \f
646 Local Variables:
647 mode: change-log
648 left-margin: 8
649 fill-column: 74
650 version-control: never
651 End: