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