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