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