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