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