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