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