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