1b926920fb8f002bd12923e5b4b70951806d13dd
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2008-05-12 Alan Modra <amodra@bigpond.net.au>
2
3 * elf32-spu.c (spu_elf_relocate_section): Rename is_ea to is_ea_sym.
4
5 2008-05-10 Paul Pluzhnikov <ppluzhnikov@google.com>
6
7 * elfcore.h (elf_core_file_p): Warn about core truncation.
8
9 2008-05-07 Bob Wilson <bob.wilson@acm.org>
10
11 * elf32-xtensa.c (xtensa_property_section_name): New.
12 (xtensa_make_property_section): New.
13 (xtensa_get_property_section): Make static. Do not create a new
14 section if it does not exist.
15
16 2008-05-08 Alan Modra <amodra@bigpond.net.au>
17
18 * elf32-spu.c (spu_elf_special_sections): Add "._ea".
19 (spu_elf_relocate_section): Handle relocations against symbols
20 defined in ._ea specially.
21
22 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
23
24 * elf32-arm.c (elf32_arm_symbian_link_hash_table_create): Use
25 ARRAY_SIZE.
26 (elf32_arm_symbian_plt_sym_val): New.
27 (elf_backend_plt_sym_val): Define.
28
29 2008-05-03 Alan Modra <amodra@bigpond.net.au>
30
31 PR 2995, PR 6473
32 * elf.c (rewrite_elf_program_header): Rather than clearing
33 p_paddr_valid at end, don't set it in the first place. Delete
34 comment no longer relevant. When not p_paddr_valid, don't set
35 paddr from vaddr, and don't set p_vaddr_offset.
36
37 2008-05-01 Cary Coutant <ccoutant@google.com>
38
39 * elf.c (bfd_elf_get_str_section): Fix memory leak caused by
40 corrupt string table.
41
42 2008-05-01 Joel Brobecker <brobecker@adacore.com>
43
44 * cache.c (cache_bread_1): Renames cache_bread.
45 (cache_bread): New function.
46
47 2008-05-01 Alan Modra <amodra@bigpond.net.au>
48
49 PR 2995, PR 6473
50 * elf.c (_bfd_elf_make_section_from_shdr): Always set lma from p_paddr.
51 (assign_file_positions_for_load_sections): Combine nested "if".
52 (copy_elf_program_header): Don't set p_paddr_valid or p_vaddr_offset
53 when all header p_paddr fields are zero.
54
55 2008-04-30 Edmar Wienskoski <edmar@freescale.com>
56
57 * cpu-powerpc.c (bfd_powerpc_archs): Add e500mc entry.
58
59 2008-04-29 Daniel Jacobowitz <dan@codesourcery.com>
60
61 * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound)
62 (_bfd_elf_canonicalize_dynamic_reloc): Find dynamic relocations
63 even if they are not loaded.
64 * elflink.c (_bfd_elf_init_2_index_sections): Set data_index_section
65 first.
66
67 2008-04-25 Jay Foad <jay.foad@gmail.com>
68
69 * reloc16.c (bfd_coff_reloc16_get_value): Add support for
70 undefined weak symbols.
71
72 2008-04-25 Nick Clifton <nickc@redhat.com>
73
74 * po/vi.po: Updated Vietnamese translation.
75
76 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
77
78 * aclocal.m4: Regenerate.
79 * configure: Regenerate.
80
81 2008-04-21 Cary Coutant <ccoutant@google.com>
82
83 * archive.c (_bfd_write_archive_contents): Fix incorrect use of
84 ARFMAG.
85
86 2008-04-21 Nathan Sidwell <nathan@codesourcery.com>
87
88 * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't
89 set the value of undefined symbols in shared objects.
90 (_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for
91 undefined symbols unless pointer equality is needed.
92
93 2008-04-18 Dennis Roberts <dennis.roberts@sunquestinfo.com>
94
95 * aix5ppc-core.c: Define macros for the default architecture and
96 machine for matching core files.
97 (xcoff64_core_p): Set the architecture and machine to the default
98 values defined in the macros mentioned above.
99 * rs6000-core.c: Define macros to determine whether or not the
100 core file header uses the core_dumpxx header format.
101 (rs6000coff_core_p): Don't match core files that use the
102 core_dumpxx header format.
103
104 2008-04-16 Pedro Alves <pedro@codesourcery.com>
105
106 * config.bfd (i[3-7]86-*-dicos*, x86_64-*-dicos*): Add.
107
108 2008-04-16 David S. Miller <davem@davemloft.net>
109
110 * reloc.c (BFD_RELOC_SPARC_GOTDATA_HIX22,
111 BFD_RELOC_SPARC_GOTDATA_LOX10, BFD_RELOC_SPARC_GOTDATA_OP_HIX22,
112 BFD_RELOC_SPARC_GOTDATA_OP_LOX10, BFD_RELOC_SPARC_GOTDATA_OP): New.
113 * libbfd.h: Regnerate.
114 * bfd-in2.h: Regenerate.
115 * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Add entries for
116 GOTDATA relocations.
117 (sparc_reloc_map): Likewise.
118 (_bfd_sparc_elf_check_relocs): Handle R_SPARC_GOTDATA_* like
119 R_SPARC_GOT*.
120 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
121 (_bfd_sparc_elf_relocate_section): Transform R_SPARC_GOTDATA_HIX22,
122 R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22, and
123 R_SPARC_GOTDATA_OP_LOX10 into the equivalent R_SPARC_GOT* reloc.
124 Simply ignore R_SPARC_GOTDATA_OP relocations.
125
126 2008-04-14 Aurelien Jarno <aurelien@aurel32.net>
127
128 * configure.in: Link with the PIC version of libiberty on
129 Linux/MIPS hosts.
130 * configure: Regenerate.
131
132 2008-04-14 Edmar Wienskoski <edmar@freescale.com>
133
134 * archures.c: Add bfd_mach_ppc_e500mc.
135 * bfd-in2.h: Regenerate.
136
137 2008-04-08 Alan Modra <amodra@bigpond.net.au>
138
139 * elf32-spu.c (spu_elf_build_stubs): Correct error message.
140 (mark_functions_via_relocs): Remove premature init of symtab_hdr.
141 (collect_overlays): Commment typo fix.
142
143 2008-04-08 Kees Cook <kees@canonical.com>
144
145 * elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note
146 in EXEC_P bfds.
147
148 2008-04-08 Alan Modra <amodra@bigpond.net.au>
149
150 * elf32-spu.c: Include libiberty.h.
151 (struct spu_link_hash_table): Add local_stire, overlay_fixed, reserved,
152 non_ovly_stub, spu_elf_load_ovl_mgr, spu_elf_open_overlay_script,
153 spu_elf_relink, auto_overlay fields.
154 (AUTO_OVERLAY, AUTO_RELINK, OVERLAY_RODATA): Define.
155 (needs_ovl_stub): Flip test so that call to non-function warning
156 is emitted during relocate_section rather than earlier.
157 (spu_elf_check_vma): Stash --auto-overlay parameters, and clear
158 auto_overlay if no section exceeds local store.
159 (struct call_info): Add count, max_depth, is_pasted fields.
160 (struct function_info): Add rodata, last_caller, call_count,
161 depth, new visit flags.
162 (insert_callee): Increment call count.
163 (copy_callee): New function.
164 (mark_functions_via_relocs): Investigate all reloc types to count
165 possible function pointer stubs for --auto-overlay. Track
166 last_caller and increment function call_count.
167 (pasted_function): Insert a "call" into call info for pasted section.
168 (remove_cycles): Track max depth of calls. Don't emit call graph
169 pruning warning for --auto-overlay.
170 (build_call_tree): Don't transfer_calls for --auto-overlay.
171 Adjust remove_cycles call.
172 (sort_calls, sort_lib, sort_bfds): New functions.
173 (struct _mos_param, struct _uos_param, struct _cl_param): New.
174 (mark_overlay_section, unmark_overlay_section): New functions.
175 (collect_lib_sectios, auto_ovl_lib_functions): New functions.
176 (collect_overlays, find_pasted_call): New functions.
177 (sum_stack): Deal with is_pasted "calls". Exit before printing
178 when --auto-overlay.
179 (spu_elf_auto_overlay): New function.
180 (spu_elf_final_link): Call spu_elf_auto_overlay.
181 * elf32-spu.h (spu_elf_check_vma): Update prototype.
182
183 2008-04-07 Alan Modra <amodra@bigpond.net.au>
184
185 * elf32-spu.c (allocate_spuear_stubs): Ensure _SPUEAR_ symbol
186 is defined in overlay section before creating a stub.
187 (build_spuear_stubs): Likewise.
188 (spu_elf_size_stubs, spu_elf_build_stubs): Adjust calls.
189
190 2008-04-02 Alan Modra <amodra@bigpond.net.au>
191
192 * elf32-spu.c (insert_callee): Reorder call list so most recent
193 call is always first.
194 (interesting_section): Move.
195 (mark_functions_via_relocs): Fold interesting_section and
196 reloc_count tests in callers to here. Simplify output section
197 owner test.
198 (discover_functions): Set "gaps" when no symbols and some
199 "interesting_section". Run pasted_function loop for no symbol
200 bfds.
201 (for_each_node, transfer_calls): New functions.
202 (mark_non_root): Adjust to suit for_each_node.
203 (call_graph_traverse): Likewise. Fix memory leak. Rename to..
204 (remove_cycles): ..this.
205 (build_call_tree): Use for_each_node and transfer_calls.
206 (struct _sum_stack_param): New.
207 (sum_stack): Adjust to suit for_each_node. Return error on
208 malloc failure. Move code to print root node cumulative stack from..
209 (spu_elf_stack_analysis): ..here. Use for_each_node.
210
211 2008-03-31 Cary Coutant <ccoutant@google.com>
212
213 PR 6006
214 * archive.c (_bfd_slurp_extended_name_table): Change
215 ARFMAG[0] to ARFMAG[1].
216 (_bfd_construct_extended_name_table): Likewise.
217
218 2008-03-31 Daniel Jacobowitz <dan@codesourcery.com>
219
220 * elfxx-mips.c (mips_elf_record_got_page_entry): Update comment.
221 (_bfd_mips_elf_check_relocs): Update comments. Always call
222 mips_elf_record_got_page_entry for R_MIPS_GOT_PAGE.
223
224 2008-03-27 Cary Coutant <ccoutant@google.com>
225
226 Add support for thin archives.
227 * archive.c (_bfd_find_nested_archive): New function.
228 (get_extended_arelt_filename): Add origin parameter.
229 (_bfd_generic_read_ar_hdr_mag): Deal with extended name
230 combined with a file offset.
231 (append_relative_path): New function.
232 (_bfd_get_elt_at_filepos): Deal with external members and
233 nested archives.
234 (bfd_generic_openr_next_archived_file): Thin archives.
235 (bfd_generic_archive_p): Recognize new magic string.
236 (adjust_relative_path): New function.
237 (_bfd_construct_extended_name_table): Construct extended
238 names for thin archive members.
239 (_bfd_write_archive_contents): Emit new magic string, skip
240 copying files for thin archives.
241 * bfd-in.h (bfd_is_thin_archive): New macro.
242 * bfd.c (struct bfd): New fields for thin archives.
243 * libbfd-in.h (struct areltdata): New field for thin archives.
244 * opncls.c (bfd_close): Delete BFDs for nested archives.
245
246 2008-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
247
248 * elf32-bfin.c (bfin_final_link_relocate): New function, wrapper around
249 _bfd_final_link_relocate that also handles R_pcrel24 relocs.
250 (bfinfdpic_relocate_section, bfin_relocate_section): Use it.
251
252 2008-03-25 Nathan Sidwell <nathan@codesourcery.com>
253
254 * elf32-arm.c (elf32_arm_final_link_relocate): Skip dynamic relocs
255 in vxworks tls_vars sections.
256 (allocate_dynrelocs, elf32_arm_size_dynamic_sections): Likewise.
257 * elf32-i386.c (allocate_dynrelocs,
258 elf_i386_size_dynamic_sections, elf_i386_relocate_section): Likewise.
259 * elf32-ppc.c (allocate_dynrelocs, ppc_elf_size_dynamic_sections,
260 ppc_elf_relocate_section): Likewise.
261 * elf32-sh.c (allocate_dynrelocs, sh_elf_size_dynamic_sections,
262 sh_elf_relocate_section): Likewise.
263 * elfxx-sparc.c (allocate_dynrelocs,
264 _bfd_sparc_elf_size_dynamic_sections,
265 _bfd_sparc_elf_relocate_section): Likewise.
266
267 2008-03-21 Adam Nemet <anemet@caviumnetworks.com>
268
269 * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to
270 print the values from the dynamic section.
271
272 2008-03-20 Richard Sandiford <rsandifo@nildram.co.uk>
273
274 * elfxx-mips.c (MIPS_ELF_GNU_GOT1_MASK): New macro.
275 (_bfd_mips_elf_finish_dynamic_sections): Use it instead of 0x80000000.
276
277 2008-03-20 Alan Modra <amodra@bigpond.net.au>
278
279 * elf32-spu.c (spu_elf_create_sections): Remove output_bfd parameter.
280 (spu_elf_find_overlays, spu_elf_size_stubs): Likewise
281 (process_stubs, discover_functions, build_call_tree): Likewise.
282 (spu_elf_stack_analysis): Likewise.
283 (spu_elf_check_vma): Likewise. Move.
284 (struct call_info): Make "is_tail" a bitfield.
285 (insert_callee): Clear fun->start and set fun->is_func if we find
286 a non-tail call.
287 * elf32-spu.h (spu_elf_create_sections): Update prototype.
288 (spu_elf_find_overlays, spu_elf_size_stubs, spu_elf_check_vma): Ditto.
289
290 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
291
292 * aclocal.m4: Regenerate.
293 * configure: Likewise.
294 * Makefile.in: Likewise.
295
296 2008-03-16 H.J. Lu <hongjiu.lu@intel.com>
297
298 PR ld/5789
299 PR ld/5943
300 * elf32-i386.c (elf_i386_relocate_section): Issue an error
301 for R_386_GOTOFF relocaton against undefined hidden/internal
302 symbols when building a shared object.
303
304 * elf64-x86-64.c (elf64_x86_64_relocate_section): Issue an
305 error for R_X86_64_PC8/R_X86_64_PC16/R_X86_64_PC32
306 relocaton against undefined hidden/internal symbols when
307 building a shared object.
308 (elf64_x86_64_finish_dynamic_symbol): Return FALSE when symbol
309 is referenced locally, but isn't defined in a regular file.
310
311 2008-03-15 H.J. Lu <hongjiu.lu@intel.com>
312
313 * bfd-in.h (BFD_NO_FLAGS, HAS_RELOC, EXEC_P, HAS_LINENO,
314 HAS_DEBUG, HAS_SYMS, HAS_LOCALS, DYNAMIC, WP_TEXT, D_PAGED,
315 BFD_IS_RELAXABLE, BFD_TRADITIONAL_FORMAT, BFD_IN_MEMORY,
316 HAS_LOAD_PAGE, BFD_LINKER_CREATED): Moved to ...
317 * bfd.c: Here.
318
319 * bfd.c (bfd): Change cacheable, target_defaulted, opened_once,
320 mtime_set, no_export, output_has_begun and has_armap to bit
321 field.
322
323 * bfd-in2.h: Regenerated.
324
325 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
326
327 * cache.c (close_one): Remove mtime hack.
328
329 2008-03-14 H.J. Lu <hongjiu.lu@intel.com>
330
331 PR ld/5913
332 * elfxx-ia64.c (elfNN_ia64_tprel_base): Remove BFD_ASSERT.
333 (elfNN_ia64_dtprel_base): Likewise.
334 (elfNN_ia64_relocate_section): Go to missing_tls_sec if
335 tls_sec is NULL before calling elfNN_ia64_tprel_base or
336 elfNN_ia64_dtprel_base. Report unsupported TLS relocations.
337
338 2008-03-14 Alan Modra <amodra@bigpond.net.au>
339
340 * elf32-spu.c (process_stubs, spu_elf_relocate_section): Move
341 common code to..
342 (maybe_needs_stub): ..here, a new function that also omits stubs
343 for .eh_frame, and..
344 (needs_ovl_stub): ..here. Create stubs for labels in code section
345 referenced by switch jump table.
346 (spu_elf_find_overlays): Set htab->ovly_load and htab->ovly_return.
347 (enum _insn_type): Delete.
348 (enum _stub_type): New.
349 (count_stub, build_stub): Adjust.
350 (allocate_spuear_stubs, build_spuear_stubs): Adjust.
351
352 2008-03-13 Alan Modra <amodra@bigpond.net.au>
353
354 * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast.
355 (_bfd_elf_assign_file_position_for_section): Simplify align.
356 (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough
357 for sh_addralign.
358 (elf_fake_sections, swap_out_syms): Likewise.
359 * elflink.c (bfd_elf_final_link): Likewise.
360
361 2008-03-13 Alan Modra <amodra@bigpond.net.au>
362
363 * Makefile.am: Run "make dep-am".
364 * Makefile.in: Regenerate.
365 * po/SRC-POTFILES.in: Regenerate.
366
367 2008-03-12 Bernd Schmidt <bernd.schmidt@analog.com>
368
369 From Jie Zhang <jie.zhang@analog.com>
370 * elf32-bfin.c (struct bfinfdpic_relocs_info): Make got17m4,
371 gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, fdgoffhilo,
372 gotoff, call and sym not bitfields.
373 (bfinfdpic_gc_sweep_hook): New function; update the relocation
374 information for the relocations of the section being removed.
375 (bfinfdpic_check_relocs): Accumulate the number of relocations
376 which set got17m4, gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4,
377 fdgoffhilo, gotoff, call and sym fields.
378 (elf_backend_gc_sweep_hook): Redefine for FD-PIC.
379
380 2008-03-12 Alan Modra <amodra@bigpond.net.au>
381
382 PR 5900
383 * elf-bfd.h: Include elf/internal.h after elf/external.h.
384 * elfcode.h (elf_swap_symbol_in): Map reserved shndx range.
385 (elf_swap_symbol_out): Adjust SHN_XINDEX test.
386 (elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values
387 seen in external structs.
388 (valid_section_index_p): Delete.
389 (elf_object_p): Don't increment section numbers over reserved range.
390 Simplify test for valid sh_link, sh_info and e_shstrndx fields.
391 (elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values
392 seen in external structs. Don't increment section numbers over
393 reserved range.
394 * elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx.
395 (bfd_section_from_shdr): Likewise.
396 (group_signature): Range check before accessing elf_elfsections.
397 (_bfd_elf_setup_sections): Likewise.
398 (bfd_section_from_shdr): Likewise.
399 (bfd_section_from_shdr): Don't increment section number over
400 reserved sections.
401 (assign_file_positions_for_non_load_sections): Likewise.
402 (assign_file_positions_except_relocs): Likewise.
403 (_bfd_elf_write_object_contents): Likewise.
404 (assign_section_numbers): Likewise. Adjust for changed SHN_*.
405 (prep_headers): Delete unused variable.
406 * elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust
407 for changed SHN_* values.
408 (check_dynsym, elf_link_input_bfd): Likewise.
409 (bfd_elf_final_link): Likewise. Don't skip over reserved section
410 range.
411 (elf_fixup_link_order): Check that sh_link field is valid.
412 * elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned.
413 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before
414 accesssing elf_elfsections.
415 * elf32-avr.c (elf32_avr_size_stubs): Likewise.
416 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
417 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise.
418 * elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed
419 SHN_* defines. Test for SHN_BAD return from
420 _bfd_elf_section_from_bfd_section
421
422 2008-03-12 Alan Modra <amodra@bigpond.net.au>
423
424 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype.
425 * elf.c (_bfd_elf_section_from_bfd_section): Return unsigned int,
426 SHN_BAD on error.
427 (_bfd_elf_print_private_bfd_data): Test for SHN_BAD result from
428 _bfd_elf_section_from_bfd_section, not -1.
429 (swap_out_syms): Likewise.
430 * elflink.c (elf_link_add_object_symbols): Likewise.
431 (bfd_elf_get_bfd_needed_list): Likewise.
432 (bfd_elf_match_symbols_in_sections): Likewise.
433 (elf_link_add_object_symbols): Don't bother testing for symbols
434 using normal sections before calling bfd_section_from_elf_index.
435 (elf_link_input_bfd, bfd_elf_final_link): Likewise.
436 (bfd_elf_reloc_symbol_deleted_p): Likewise.
437 * elfcode.h (elf_slurp_symbol_table): Likewise.
438 * elf32-spu.c (get_sym_h): Likewise.
439 * elf32-xtensa.c (get_elf_r_symndx_section): Likewise.
440 * elf64-ppc.c (opd_entry_value, get_sym_h, ppc64_elf_edit_toc): Ditto.
441 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
442
443 2008-03-11 Alan Modra <amodra@bigpond.net.au>
444
445 * elf32-spu.c (spu_elf_relocate_section): Test identical conditions
446 to those in process_stubs for overlay symbols.
447
448 2008-03-09 Paul Brook <paul@codesourcery.com>
449
450 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new
451 Tag_VFP_arch values.
452
453 2008-03-08 Paul Brook <paul@codesourcery.com>
454
455 * elf32-arm.c (insert_thumb_branch): Rewrite.
456 (elf32_thumb_to_arm_stub): Use new insert_thumb_branch.
457
458 2008-03-07 Paul Brook <paul@codesourcery.com>
459
460 * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and
461 MOVT relocations.
462 (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign
463 extension.
464 (elf32_arm_relocate_section): Handle MOVW and MOVT
465 relocations. Improve safety check for other weird relocations.
466 (elf32_arm_check_relocs): Only set h->needs_plt for branch/call
467 relocations.
468
469 2008-03-03 Bob Wilson <bob.wilson@acm.org>
470
471 * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and
472 only compute its value once.
473
474 2008-03-03 Alan Modra <amodra@bigpond.net.au>
475
476 * elf32-spu.c (struct got_entry): Add "addend" field.
477 (count_stub, build_stub): Use a new stub if relocation addend
478 differs from existing stubs for this symbol.
479 (process_stubs): Deal with addends.
480 (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise.
481
482 2008-03-02 H.J. Lu <hongjiu.lu@intel.com>
483
484 PR ld/5789
485 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true
486 for hidden and local symbols.
487
488 2008-03-03 Alan Modra <amodra@bigpond.net.au>
489
490 * elf32-ppc.c (allocate_dynrelocs): Discard relocs on
491 undefined symbols with internal or hidden visibility.
492 (ppc_elf_relocate_section): Likewise. Use SYMBOL_CALLS_LOCAL
493 rather than SYMBOL_REFERENCES_LOCAL on branches. Don't
494 return immediately on dynamic reloc error.
495
496 2008-03-01 Alan Modra <amodra@bigpond.net.au>
497
498 * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs
499 if emitrelocations.
500 (get_relocs): New function, split out from..
501 (ppc_build_one_stub): ..here. Add relocs on plt_branch stubs if
502 emitrelocations. Remove indx temp.
503 (ppc_size_one_stub): Count new stub relocs.
504 (ppc64_elf_size_stubs): Count new glink reloc.
505 (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations.
506 (ppc64_elf_finish_dynamic_sections): Output glink relocs.
507 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic
508 glink code.
509
510 2008-02-28 Alan Modra <amodra@bigpond.net.au>
511
512 * elf32-spu.c (mark_functions_via_relocs): Don't assume that
513 the "->start" pointer reaches to function origin, so that we
514 can handle functions split over more than two sections.
515 (build_call_tree): Likewise.
516 (pasted_function): Don't attempt to set fun->start back to the
517 function origin, just go back one section.
518
519 2008-02-27 Catherine Moore <clm@codesourcery.com>
520
521 * elf.c ( _bfd_elf_print_private_bfd_data): Call
522 elf_backend_get_target_dtag if defined.
523 * elf32-mips.c (elf_backend_get_target_dtag): Define.
524 * elf64-mips.c: Likewise.
525 * elfn32-mips.c: Likewise.
526 * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New.
527 * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare.
528 * elf-bfd.h (elf_backend_get_target_dtag): Add prototype.
529 * elfxx-target.h (elf_backend_get_target_dtag): Add default.
530 (elf_backend_data): Add elf_backend_get_target_dtag.
531
532 2008-02-26 Alan Modra <amodra@bigpond.net.au>
533
534 * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
535 for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms,
536 and assume branch relocs are not dynamic when non-shared.
537 (readonly_dynrelocs): New function, split out from..
538 (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs.
539 (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries,
540 clear non_got_ref..
541 (allocate_dynrelocs): ..and don't set u.def for undefined weak.
542 Do allow dynamic relocs on undefined symbols.
543 (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs.
544 (ppc_elf_relocate_section): Mirror dynamic reloc changes in
545 check_relocs.
546 (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak
547 plt symbols needing pointer_equality_needed.
548
549 2008-02-23 Alan Modra <amodra@bigpond.net.au>
550
551 * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
552
553 2008-02-23 Alan Modra <amodra@bigpond.net.au>
554
555 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
556 pointer_equality_needed.
557 (ppc_elf_check_relocs): Split out non-branch relocs from others
558 that might emit dynamic relocs. Set pointer_equality_needed
559 for their symbols. Don't set non_got_ref on branch reloc symbols.
560 (ppc_elf_hash_symbol): New function.
561 (elf_backend_hash_symbol): Define.
562 (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed.
563 Error if pointer_equality_needed on weak plt symbol.
564
565 2008-02-22 H.J. Lu <hongjiu.lu@intel.com>
566
567 PR ld/5788
568 * elflink.c (elf_create_symbuf): Correct buffer size and
569 position.
570
571 2008-02-22 Nick Clifton <nickc@redhat.com>
572
573 PR 868
574 * dwarf2.c: Revert previous patch. All of the allocate memory is
575 on an obstack which will be freed at some other time.
576
577 2008-02-20 Nick Clifton <nickc@redhat.com>
578
579 PR 868
580 * libbfd.c (bfd_realloc_or_free): New function. Performs like
581 bfd_realloc, but if the (re)allocation fails, the pointer is
582 freed.
583 * libbfd-in.h: Prototype.
584 * libbfd.h: Regenerate.
585 * bfdio.c (bfd_bwrite): Use the new function.
586 (bfd_seek): Likewise.
587 * bfdwin.c:(bfd_get_file_window): Likewise.
588 * elf-strtab.c (_bfd_elf_strtab_add): Likewise.
589 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
590 * elf32-xtensa.c (vsprintf_msg): Likewise.
591 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
592 * stabs.c (_bfd_link_seciton_stabs): Likewise.
593 * vms-misc.c (_bfd_vms_get_record): Likewise.
594 * vms-tir.c (check_section): Likewise.
595 * vms.c (vms_new_section_hook): Likewise.
596 * elf32-arm.c (elf32_arm_section_map_add): Check that the
597 allocation of sec_data->map succeeded before using it.
598 * elflink.c (elf_link_output_sym): Do not overwrite finfo->
599 symshndxbuf until it is known that the reallocation succeeded.
600
601 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br>
602 Nick Clifton <nickc@redhat.com>
603
604 PR 868
605 * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
606 out of memory.
607 (decode_line_info): Free the line_info_table before returning a
608 failure result.
609 (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
610 Free the line table. Free the function table. Free the variable
611 table.
612
613 2008-02-17 Mark Kettenis <kettenis@gnu.org>
614
615 * elf.c (swap_out_syms): Avoid preprocessing directive within
616 macro arg.
617
618 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
619
620 * elf.c (assign_file_positions_for_load_sections): Set the type of
621 PT_NOTE sections to SHT_NOTE.
622
623 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com>
624
625 * simple.c (bfd_simple_get_relocated_section_contents): Set
626 link_info.output_bfd.
627
628 2008-02-16 Nathan Sidwell <nathan@codesourcery.com>
629
630 * dwarf2.c (find_line): Don't trust debug information after an
631 unparseable compilation unit.
632
633 2008-02-15 Alan Modra <amodra@bigpond.net.au>
634
635 PR 5765
636 * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags.
637 * bfd-in2.h: Regenerate.
638
639 2008-02-15 Alan Modra <amodra@bigpond.net.au>
640
641 * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
642 * elf.c (bfd_elf_allocate_object): Don't check for already allocated
643 tdata.
644 * elf32-hppa.c (elf32_hppa_mkobject): New function.
645 (bfd_elf32_mkobject): Define.
646 * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with..
647 (is_ppc_elf): ..this new macro.
648 * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with..
649 (is_ppc64_elf): ..this new macro.
650
651 2008-02-15 Alan Modra <amodra@bigpond.net.au>
652
653 * elflink.c: Replace all accesses to hash->creator field with
654 output_bfd->xvec.
655 * cofflink.c: Likewise.
656 * coff-h8300.c: Likewise.
657 * ecoff.c: Likewise.
658 * elf32-m68hc1x.c: Likewise.
659 * elf32-ppc.c: Likewise.
660 * elf64-alpha.c: Likewise.
661 * elf64-ppc.c: Likewise.
662 * elf64-sparc.c: Likewise.
663 * elfxx-mips.c: Likewise.
664 * i386linux.c: Likewise.
665 * m68klinux.c: Likewise.
666 * sparclinux.c: Likewise.
667 * sunos.c: Likewise.
668 * xcofflink.c: Likewise.
669 * linker.c: Likewise.
670 (_bfd_link_hash_table_init): Don't store creator.
671
672 2008-02-14 Peter Jones <pjones@redhat.com>
673
674 * efi-rtdrv-ia32.c: New file.
675 * efi-bsdrv-ia32.c: New file.
676 * efi-rtdrv-ia64.c: New file.
677 * efi-bsdrv-ia64.c: New file.
678 * efi-rtdrv-x86_64.c: New file.
679 * efi-bsdrv-x86_64.c: New file.
680 * peicode.h (pe_bfd_object_p): Add support for boot service and
681 runtime service drivers.
682 * libpei.h: Add macros for EFI formats, and rename the efi application
683 format macros to disambiguate.
684 * targets.c: Add bfd_target _vec externs.
685 (_bfd_tar): Add EFI _vec entries.
686 * config.bfd: Add EFI vectors into the selection routines.
687 * configure.in: add EFI _vec entries.
688 * configure: Regenerate.
689 * Makefile.am: Add EFI files.
690 * Makefile.in: Regenerate.
691
692 2008-02-14 Nathan Sidwell <nathan@codesourcery.com>
693
694 * dwarf1.c (struct dwarf1_debug): Add syms member.
695 (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory.
696 (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate
697 section contents, check for out of memory.
698
699 * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte.
700 (parse_die): Change data pointers to bfd_byte.
701 (parse_line_table, parse_functions_in_unit): Likewise.
702
703 2008-02-14 Alan Modra <amodra@bigpond.net.au>
704
705 * elflink.c (compute_bucket_count): Warning fixes.
706
707 2008-02-12 DJ Delorie <dj@redhat.com>
708
709 * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
710 relocation pointing to local symbol in merged section.
711
712 * elf32-iq2000.c (iq2000_elf_relocate_offset16): New.
713 (iq2000_elf_relocate_section): Call it.
714
715 2008-02-12 Nick Clifton <nickc@redhat.com>
716
717 PR ld/5692
718 * elf-bfd.h (enum elf_object_id): New enum, used to identify
719 target specific extensions to the elf_obj_tdata structure.
720 (struct elf_obj_tdata): New field 'object_id'.
721 (elf_object_id, elf_program_header_size, elf_symtab_hdr): New
722 macros for accessing fields in the elf_obj_tdata structure.
723 (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object.
724 (bfd_elf_allocate_object): New function.
725 * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object
726 and implement by calling bfd_elf_allocate_object.
727 (bfd_elf_allocate_object): New function: Allocates an
728 elf_obj_tdata structure, possibly with a target specific
729 extension.
730 * elfxx-target.h (bfd_elfNN_mkobject): Use
731 bfd_elf_make_generic_object as the default value.
732 * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata
733 for consistency with other, similar structures.
734 (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM
735 ELF bfd.
736 (elf32_arm_mkobject): Call bfd_elf_allocate_object.
737 (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check
738 the bfd being processed.
739 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
740 (bfd_elf32_arm_set_target_relocs): Likewise.
741 (bfd_elf32_arm_final_link_relocate): Likewise.
742 (bfd_elf32_arm_copy_private_bfd_data): Likewise.
743 (bfd_elf32_arm_merge_eabi_attributes): Likewise.
744 (bfd_elf32_arm_merge_private_bfd_data): Likewise.
745 (bfd_elf32_arm_check_relocs): Likewise.
746 (bfd_elf32_arm_gc_mark_extra_sections): Likewise.
747 (bfd_elf32_arm_size_dynamic_sections): Likewise.
748 (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr.
749 (bfd_elf32_arm_init_maps): Likewise.
750 (bfd_elf32_arm_final_link_relocate): Likewise.
751 (bfd_elf32_arm_relocate_section): Likewise.
752 (bfd_elf32_arm_gc_sweep_hook): Likewise.
753 (bfd_elf32_arm_check_relocs): Likewise.
754 (bfd_elf32_arm_size_dynamic_sections): Likewise.
755 * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object.
756 (is_i386_elf): New macro. Checks a BFD to make sure that is an x86
757 ELF bfd.
758 (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd
759 being processed.
760 (elf_i386_size_dynamic_sections): Likewise.
761 (elf_i386_relocate_section): Likewise.
762 (elf_i386_check_relocs): Use elf_symtab_hdr.
763 (elf_i386_gc_sweep_hook): Likewise.
764 (elf_i386_size_dynamic_sections): Likewise.
765 (elf_i386_relocate_section): Likewise.
766 * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object.
767 (elf_create_pointer_linker_section): Use is_ppc_elf_target to
768 verify that the bfd before accessing target specific fields.
769 (ppc_elf_check_relocs): Likewise.
770 (elf_finish_pointer_linker_section): Likewise.
771 (elf_create_pointer_linker_section): Use elf_symtab_hdr.
772 (ppc_elf_check_relocs): Likewise.
773 (ppc_elf_gc_sweep_hook): Likewise.
774 (ppc_elf_tls_optimize): Likewise.
775 (ppc_elf_size_dynamic_sections): Likewise.
776 (ppc_elf_relax_section): Likewise.
777 (ppc_elf_relocate_section): Likewise.
778 * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment
779 reminding programmers to keep this structure in sync with the one
780 defined in elf64-s390.c.
781 (elf_s390_mkobject): Call bfd_elf_allocate_object.
782 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
783 ELF bfd.
784 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
785 being processed.
786 (elf_s390_size_dynamic_sections): Likewise.
787 (elf_s390_relocate_section): Likewise.
788 (elf_s390_check_relocs): Use elf_symtab_hdr.
789 (elf_s390_gc_sweep_hook): Likewise.
790 (elf_s390_size_dynamic_sections): Likewise.
791 (elf_s390_relocate_section): Likewise.
792 * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
793 (is_sh_elf): New macro. Checks a BFD to make sure that is an SH
794 ELF bfd.
795 (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the
796 bfd being processed.
797 (sh_elf_relocate_section): Likewise.
798 (sh_elf_check_relocs): Likewise.
799 (sh_elf_copy_private_data): Likewise.
800 (sh_elf_relax_section): Use elf_symtab_hdr.
801 (sh_elf_size_dynamic_sections): Likewise.
802 (sh_elf_relocate_section): Likewise.
803 (sh_elf_get_relocated_section_contents): Likewise.
804 (sh_elf_gc_sweep_hook): Likewise.
805 (sh_elf_check_relocs): Likewise.
806 * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object.
807 (is_alpha_elf): New macro. Checks a BFD to make sure that is an
808 Alpha ELF bfd.
809 (elf64_alpha_create_got_section): Use is_alpha_elf macro to check
810 the bfd being processed.
811 (elf64_alpha_create_dynamic_section): Likewise.
812 (elf64_alpha_check_relocs): Likewise.
813 (elf64_alpha_size_got_sections): Likewise.
814 (elf64_alpha_relax_section): Likewise.
815 (elf64_alpha_relocate_section): Likewise.
816 (elf64_alpha_final_link): Likewise.
817 (elf64_alpha_check_relocs): Use elf_symtab_hdr.
818 (elf64_alpha_relax_section): Likewise.
819 (elf64_alpha_relocate_section_r): Likewise.
820 (elf64_alpha_relocate_section): Likewise.
821 * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object.
822 (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd
823 being processed.
824 (opd_entry_value): Likewise.
825 (allocate_dynrelocs): Likewise.
826 (ppc64_elf_relocate_section): Likewise.
827 (ppc64_elf_check_relocs): Use elf_symtab_hdr.
828 (opd_entry_value): Likewise.
829 (ppc64_elf_gc_sweep_hook): Likewise.
830 (get_sym_h): Likewise.
831 (ppc64_elf_edit_opd): Likewise.
832 (ppc64_elf_tls_optimize): Likewise.
833 (ppc64_elf_edit_toc): Likewise.
834 (ppc64_elf_size_dynamic_sections): Likewise.
835 (toc_adjusting_stub_needed): Likewise.
836 (ppc64_elf_size_stubs): Likewise.
837 (ppc64_elf_relocate_section): Likewise.
838 * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment
839 reminding programmers to keep this structure in sync with the one
840 defined in elf32-s390.c.
841 (elf_s390_mkobject): Call bfd_elf_allocate_object.
842 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
843 ELF bfd.
844 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
845 being processed.
846 (elf_s390_size_dynamic_sections): Likewise.
847 (elf_s390_relocate_section): Likewise.
848 (elf_s390_check_relocs): Use elf_symtab_hdr.
849 (elf_s390_gc_sweep_hook): Likewise.
850 (elf_s390_size_dynamic_sections): Likewise.
851 (elf_s390_relocate_section): Likewise.
852 * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object.
853 (is_x86_64_elf): New macro. Checks a BFD to make sure that is an
854 x86_64 ELF bfd.
855 (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd
856 being processed.
857 (elf64_x86_64_size_dynamic_sections): Likewise.
858 (elf64_x86_64_relocate_section): Likewise.
859 (elf64_x86_64_check_relocs): Use elf_symtab_hdr.
860 (elf64_x86_64_gc_sweep_hook): Likewise.
861 (elf64_x86_64_size_dynamic_sections): Likewise.
862 (elf64_x86_64_relocate_section): Likewise.
863 * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object.
864 (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc
865 ELF bfd.
866 (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the
867 bfd being processed.
868 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
869 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
870 (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
871 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
872 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
873 (_bfd_sparc_elf_relocate_section): Likewise.
874
875 2008-02-12 Alan Modra <amodra@bigpond.net.au>
876
877 PR 5303, 5755
878 * arange-set.c: Delete.
879 * arange-set.h: Delete.
880 * dwarf2.c: Revert 2007-09-21 changes.
881 * Makefile.am: Likewise.
882 * Makefile.in: Regenerate.
883 * po/SRC-POTFILES.in: Regenerate.
884
885 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com>
886
887 * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
888 if necessary.
889 (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type
890 mismatches are detected.
891
892 * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
893 emit invalid relocs or rofixup entries for deleted .eh_frame entries.
894
895 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com>
896
897 * cache.c (cache_bread): Set bfd_error_file_truncated if EOF
898 was reached.
899 * srec.c (srec_scan): Calculate the checksum. Complain on mismatch.
900
901 2008-02-07 Alan Modra <amodra@bigpond.net.au>
902
903 * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling
904 of _ovly_buf_table size.
905 (spu_elf_build_stubs): Use low bit of .size as "present" bit.
906 Adjust initialisations relating to _ovly_buf_table.
907
908 2008-02-04 Bob Wilson <bob.wilson@acm.org>
909
910 * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
911 relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND
912 relocations against dynamic symbols.
913 (elf_xtensa_finish_dynamic_sections): Do not fail if there is no
914 .xt.lit section.
915
916 2008-02-04 Kai Tietz <kai.tietz@onevision.com>
917 H.J. Lu <hongjiu.lu@intel.com>
918
919 PR 5715
920 * warning.m4: Enable -Wno-format by default when using gcc on
921 mingw.
922 * configure: Regenerated.
923
924 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
925
926 * archures.c: Update copyright.
927 (bfd_mach_mips_octeon): New macro.
928 * bfd-in2.h: Regenerate.
929 * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon.
930 (mips_set_isa_flags): Likewise.
931 (mips_mach_extensions): Add Octeon.
932 * cpu-mips.c: Update copyright.
933 (I_mipsocteon): New enum constant.
934 (arch_info_struct): Add Octeon.
935
936 2008-02-04 Alan Modra <amodra@bigpond.net.au>
937
938 * elf32-spu.c (spu_elf_relocate_section): Correct return type.
939 Return error status on unexpected relocation errors.
940
941 2008-02-04 Alan Modra <amodra@bigpond.net.au>
942
943 PR ld/5692
944 * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort
945 on non-ELF input.
946 * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue
947 processing on non-ELF input.
948
949 2008-01-31 Marc Gauthier <marc@tensilica.com>
950
951 * config.bfd (xtensa*-*-*): Recognize processor variants.
952
953 2008-01-31 Nick Clifton <nickc@redhat.com>
954
955 PR ld/5692
956 * elf.c (bfd_elf_get_elf_syms): Check the return value of
957 get_elf_backend_data.
958
959 2008-01-28 Fabian Groffen <grobian@gentoo.org>
960
961 * config.bfd (x86_64-*-solaris2): Add support for this target.
962
963 2008-01-28 Alan Modra <amodra@bigpond.net.au>
964
965 Rewrite SPU overlay handling code. Put overlay calls stubs in the
966 overlays where possible. Use a faster call stub, or optionally at
967 compile time, a more compact stub. Double size of _ovly_buf_table
968 so that low bit of _ovly_table.buf can be used as a "present" bit.
969 Reserve an extra _ovly_table entry for index zero.
970 * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields,
971 add new ones.
972 (struct got_entry): New.
973 (struct spu_stub_hash_entry): Delete.
974 (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete.
975 (spu_elf_link_hash_table_create): Adjust for struct changes.
976 (spu_stub_name): Delete.
977 (spu_elf_find_overlays): Don't track sections from overlay regions.
978 Instead set ovl_buf number in spu elf section data. Error if
979 overlays in one region don't start at the same address. Adjust
980 for struct _spu_elf_section_data changes.
981 (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete.
982 (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define.
983 (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes.
984 (enum _insn_type): New.
985 (count_stub, build_stub): New functions.
986 (allocate_spuear_stubs): Use count_stub.
987 (build_spuear_stubs): Use build_stub.
988 (populate_stubs, sort_stubs): Delete.
989 (process_stubs): New function.
990 (write_one_stub): Delete.
991 (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite.
992 (alloc_stack_info): Adjust for struct _spu_elf_section_data changes.
993 (maybe_insert_function, check_function_ranges): Likewise.
994 (find_function, pasted_function, build_call_tree): Likewise.
995 (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise.
996 (spu_elf_modify_program_headers): Likewise.
997 (interesting_section): Detect stub sections differently. Delete
998 htab param, adjust all callers.
999 (spu_elf_relocate_section): Rewrite stub handling.
1000 (spu_elf_output_symbol_hook): Likewise.
1001 (bfd_elf32_bfd_link_hash_table_free): Delete.
1002 * elf32-spu.h (struct _spu_elf_section_data): Move input-only and
1003 output-only fields into a union. Add ovl_buf.
1004 (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes.
1005
1006 2008-01-25 DJ Delorie <dj@redhat.com>
1007
1008 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
1009
1010 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
1011
1012 * bfd-in.h: Add mingw I64 support.
1013 * bfd-in2.h: Regenerated.
1014 * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64.
1015
1016 2008-01-21 Alan Modra <amodra@bigpond.net.au>
1017
1018 PR 4453
1019 * format.c (bfd_check_format_matches): Don't accept archives as
1020 fully matching unless they have a map.
1021
1022 2008-01-21 Alan Modra <amodra@bigpond.net.au>
1023
1024 * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
1025
1026 2008-01-21 Alan Modra <amodra@bigpond.net.au>
1027
1028 * ecoff.c (_bfd_ecoff_archive_p): Delete.
1029 * libecoff.h (_bfd_ecoff_archive_p): Delete.
1030 * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
1031 * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
1032 (ecoff_biglittle_vec): Likewise.
1033
1034 2008-01-19 Alan Modra <amodra@bigpond.net.au>
1035
1036 PR 5646
1037 * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
1038 non-NULL before dereferencing.
1039
1040 2008-01-15 Alan Modra <amodra@bigpond.net.au>
1041
1042 PR 5604
1043 * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param
1044 names from others.
1045 (_bfd_elf_gc_keep): Declare.
1046 * elfxx-target.h (elf_backend_gc_keep): Define.
1047 (elfNN_bed): Init new field.
1048 * elflink.c (_bfd_elf_gc_keep): New function.
1049 (bfd_elf_gc_sections): Call gc_keep.
1050 * elf64-ppc.c (elf_backend_gc_keep): Define.
1051 (struct _ppc64_elf_section_data): Move .opd related fields to
1052 a struct so they don't occupy the same storage. Adjust accesses
1053 throughout file.
1054 (ppc64_elf_gc_keep): New function, split out from..
1055 (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark
1056 to mark .opd section, just set gc_mark.
1057 (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust
1058 unless we are changing .opd. Test non-NULL opd->adjust at all
1059 accesses throughout file.
1060 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
1061
1062 2008-01-15 Alan Modra <amodra@bigpond.net.au>
1063
1064 * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
1065 * bfd-in2.h: Regenerate.
1066
1067 2008-01-11 Tristan Gingold <gingold@adacore.com>
1068 Eric Botcazou <ebotcazou@adacore.com>
1069
1070 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
1071 relocatable.
1072 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
1073 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
1074 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
1075 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
1076 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
1077 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
1078 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
1079 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
1080 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
1081 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
1082 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
1083 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
1084 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
1085 * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
1086 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1087 * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
1088 or executable output with relocations.
1089
1090 2008-01-09 Nick Clifton <nickc@redhat.com>
1091
1092 PR gas/5552
1093 * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field
1094 to FALSE for all relocs.
1095
1096 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk>
1097
1098 PR ld/5526
1099 * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
1100 fields. Rename u.cie.u.merged to u.cie.u.merged_with.
1101 (eh_frame_sec_info): Add a cies field.
1102 (eh_frame_hdr_info): Add a merge_cies field.
1103 * elf-eh-frame.c (cie): Add a reloc_index member to the personality
1104 union.
1105 (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
1106 of hdr_info->cies.
1107 (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of
1108 cie structures in all cases and use it instead of extended_cies.
1109 If merging, store the cie array in sec_info->cies and point each
1110 CIE's eh_fde_cie at the associated element. Do not try to
1111 calculate the value of the personality routine here; record the
1112 offset of the relocation instead. Do not merge CIEs here.
1113 (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
1114 (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
1115 (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
1116 (find_merged_cie): New function.
1117 (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies.
1118
1119 2008-01-07 Nick Clifton <nickc@redhat.com>
1120
1121 PR binutils/5535
1122 * vms.c (vms_close_and_cleanup): Check for the presence of a
1123 vms_private_data_struct before examining any of its fields.
1124
1125 2008-01-07 H.J. Lu <hongjiu.lu@intel.com>
1126
1127 PR ld/5522
1128 * elflink.c (elf_link_input_bfd): Don't write out a section if
1129 its output section is marked with SEC_NEVER_LOAD.
1130
1131 For older changes see ChangeLog-2007
1132 \f
1133 Local Variables:
1134 mode: change-log
1135 left-margin: 8
1136 fill-column: 74
1137 version-control: never
1138 End:
This page took 0.051925 seconds and 4 git commands to generate.