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