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