1 2009-04-05 Kai Tietz <kai.tietz@onevision.com>
3 * coff-x86_64.c (bfd_pe_print_pdata): Define as
4 _bfd_pep_print_x64_pdata.
5 * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
6 * peXXigen.c (_bfd_pep_print_x64_pdata): New.
8 2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
10 * elf32-xtensa.c (relax_property_section): Always set r_offset
13 2009-04-02 Christophe Lyon <christophe.lyon@st.com>
15 * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
16 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
18 (elf32_arm_stub_type): New enum values for the two new stubs.
19 (arm_type_of_stub): Make use of the two new stubs.
20 (arm_size_one_stub): Handle the two new stubs.
22 2009-04-01 Matt Thomas <matt@netbsd.org>
24 * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
25 hidden symbols into the GOT or PLT.GOT.
26 (elf_vax_relocate_section): Do not emit a PCREL reloc
27 into a shared object if it is against a hidden symbol.
29 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
31 * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
32 and know_contains_shared_object_p.
33 (xcoff_archive_contains_shared_object_p): Add an "info" parameter.
34 Cache the result in the archive_info table.
35 (xcoff_auto_export_p): Add an "info" parameter and update the
36 call to xcoff_archive_contains_shared_object_p.
37 (xcoff_mark_auto_exports): Update accordingly.
38 (xcoff_post_gc_symbol): Likewise.
40 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
42 * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
45 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
47 * coff-rs6000.c (member_layout): New structure.
48 (archive_iterator): Likewise.
49 (member_layout_init): New function.
50 (archive_iterator_begin): Likewise.
51 (archive_iterator_next): Likewise.
52 (xcoff_write_armap_old): Use the new iterator functions.
53 (do_shared_object_padding): Delete.
54 (xcoff_write_armap_big): Use the new iterator functions. Simplify
55 handling of arch_info.
56 (xcoff_write_archive_contents_old): Allocate arelt_data in the
57 first loop rather than the second. Allocate a member header if
58 there isn't one, then work out the stat information and length
59 in the first loop too. Use the new iterators for the second loop.
60 (xcoff_write_archive_contents_big): Likewise.
62 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
64 * bfd-in.h (bfd_xcoff_split_import_path): Declare.
65 (bfd_xcoff_set_archive_import_path): Likewise.
66 * bfd-in2.h: Regenerate.
67 * xcofflink.c: Include libiberty.h.
68 (xcoff_archive_info): New structure.
69 (xcoff_archive_info_hash): New function.
70 (xcoff_archive_info_eq): Likewise.
71 (xcoff_get_archive_info): Likewise.
72 (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
73 (bfd_xcoff_split_import_path): New function.
74 (bfd_xcoff_set_archive_import_path): Likewise.
75 (xcoff_set_import_path): Move earlier in file.
76 (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
77 object to the the directory part of the bfd's filename. Get the
78 import path and filename of an archive object from the archive's
79 xcoff_tdata, initializing it if necessary. Update use of
81 (bfd_link_input_bfd): Update use of import_file_id.
82 (xcoff_write_global_symbol): Likewise.
84 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
86 * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
88 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
90 * xcofflink.c (xcoff_link_create_extra_sections): Don't create
91 a .loader section for relocatable links.
92 (xcoff_need_ldrel_p): New function.
94 (bfd_xcoff_link_count_reloc): Only count loader relocs if there's
96 (xcoff_build_ldsym): New function, split out from...
97 (xcoff_build_ldsyms): ...here. Rename to...
98 (xcoff_post_gc_symbol): ...this. Only export symbols, and only
99 call xcoff_build_ldsym, if there's a loader section.
100 (xcoff_build_loader_section): New function, extracted verbatim from...
101 (bfd_xcoff_size_dynamic_sections): ...here. Only call it if
102 there's a loader section. Only add an __rtinit loader symbol
103 if there's a loader section. Update after above name change.
104 (xcoff_symbol_section, xcoff_create_ldrel): New functions.
105 (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
106 and xcoff_create_ldrel.
107 (xcoff_write_global_symbol): Use xcoff_create_ldrel.
108 (xcoff_reloc_link_order): Likewise, but only call it if there's
109 a loader section. Use xcoff_symbol_section.
110 (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
111 if there's a loader section.
113 2009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
115 * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
117 2009-04-01 Christophe Lyon <christophe.lyon@st.com>
119 * elf32-arm.c (group_sections): Rewrite loops for better
122 2009-03-30 DJ Delorie <dj@redhat.com>
124 * elflink.c (elf_link_input_bfd): Don't try to resolve complex
125 relocs when doing a relocatable link.
127 2009-03-28 Mark Mitchell <mark@codesourcery.com>
129 * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
130 "ERROR:", in error messages.
131 * cpu-arm.c (bfd_arm_merge_machines): Likewise.
132 * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
133 * elf32-arm.c (tag_cpu_arch_combine): Likewise.
134 (elf32_arm_merge_eabi_attributes): Likewise.
135 (elf32_arm_merge_private_bfd_data): Likewise.
137 2009-03-27 Nick Clifton <nickc@redhat.com>
139 * section.c (bfd_get_section_contents): Detect and handle the case
140 where a section has the SEC_IN_MEMORY flag set but no actual
143 2009-03-26 Alan Modra <amodra@bigpond.net.au>
146 * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
147 p_filesz and p_memsz are equal. Use p_memsz as the segment size.
148 (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
149 if we don't find matching PT_LOAD when copying.
151 2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
153 * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
154 the reloc descriptions.
156 2009-03-25 Hans-Peter Nilsson <hp@axis.com>
158 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
159 <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
160 <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
162 2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
164 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
165 (bfd_i386_arch_intel_syntax): Likewise.
166 (i8086_arch): Likewise.
167 (bfd_x86_64_arch): Likewise.
169 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
171 * elf32-cris.c (cris_elf_relocate_section): <case
172 R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
173 symbols for non-allocated sections. Don't check whether to
174 generate R_CRIS_DTPMOD for non-allocated sections.
175 (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
176 handle relocation GC:ing if applied to non-allocated section.
177 (cris_elf_check_relocs): Similar.
179 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
180 <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
181 when emitting a known TP offset in the GOT.
183 2009-03-23 Alan Modra <amodra@bigpond.net.au>
185 * elf64-ppc.c (synthetic_opd): Delete.
186 (compare_symbols): Look for .opd name rather than section match.
187 (ppc64_elf_get_synthetic_symtab): Likewise.
189 2009-03-21 Alan Modra <amodra@bigpond.net.au>
191 * elf32-ppc.c (is_pic_glink_stub): Delete.
192 (is_nonpic_glink_stub): New function.
193 (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
195 (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
197 2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
198 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
200 * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
201 macros for visibilty and locality checks.
202 (elf_s390_adjust_dynamic_symbol): Likewise.
203 (allocate_dynrelocs): Likewise.
204 (elf_s390_relocate_section): Likewise.
205 (elf_s390_finish_dynamic_symbol): Likewise.
206 * elf64-s390.c (elf_s390_check_relocs): Likewise.
207 (elf_s390_adjust_dynamic_symbol): Likewise.
208 (allocate_dynrelocs): Likewise.
209 (elf_s390_relocate_section): Likewise.
210 (elf_s390_finish_dynamic_symbol): Likewise.
212 2009-03-19 Kai Tietz <kai.tietz@onevision.com>
214 * bfd-in2.h: Regenerated.
215 * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
216 for debugging sections and map memory read/write dependent on
218 (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
219 without memory read flags set.
220 * section.c: Add SEC_COFF_NOREAD to section flags.
222 2009-03-19 Andreas Schwab <schwab@linux-m68k.org>
224 * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
227 2009-03-19 Alan Modra <amodra@bigpond.net.au>
229 * elf32-spu.c (spu_elf_find_overlays): Separate error return from
230 "no overlays" return. If there are overlays, create overlay
231 manager entry symbols here, so that..
232 (spu_elf_build_stubs): ..we don't need to set them up here.
233 Simplify entry symbol tests.
234 * elf32-spu.h (spu_elf_find_overlays): Update prototype.
236 2009-03-18 Mark Kettenis <kettenis@gnu.org>
238 * elf.c (elfcore_grok_openbsd_procinfo)
239 (elfcore_grok_openbsd_note): New functions.
240 (elf_parse_notes): Handle notes from OpenBSD ELF core files.
242 2009-03-18 Alan Modra <amodra@bigpond.net.au>
244 * vms-hdr.c: Don't include alloca.h.
245 * elf32-m68hc1x.c: Include alloca-conf.h.
247 * elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
249 * Makefile.am: Run "make dep-am".
250 * Makefile.in: Regenerate.
252 2009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
254 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
256 2009-03-17 Alan Modra <amodra@bigpond.net.au>
258 * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
260 (emum _ovly_flavour): Delete ovly_compact, ovly_none.
261 * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
262 ovly_return fields with ovly_entry[2]. Adjust all users.
263 (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
265 (spu_elf_build_stubs): Likewise.
266 (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
267 ovly_flavour changes. Update all callers.
268 (ovl_stub_size_log2): New function.
269 (build_stub): Handle compact icache stubs. Use different manager
270 entry point for stubs in non-icache area.
271 (spu_elf_size_stubs): Don't allocate space for indirect branch
273 (spu_elf_build_stubs): And don't built them.
275 2009-03-16 Andrew Stubbs <ams@codesourcery.com>
277 * dwarf2.c (read_section): Always use rawsize, if available.
279 2009-03-16 Alan Modra <amodra@bigpond.net.au>
281 * simple.c (bfd_simple_get_relocated_section_contents): Use larger
282 of rawsize and size for buffer.
284 2009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
286 * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
287 parameter just because fixed sections fit into local store.
288 (spu_elf_auto_overlay): Do not declare as "noreturn". Skip
289 generating overlays if fixed sections plus reserved stack
290 and heap space fit into local store.
292 2009-03-15 Alan Modra <amodra@bigpond.net.au>
294 * elf32-spu.c (build_stub): Correct icache set_id.
295 (spu_elf_relocate_section): Likewise.
297 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
299 * xcofflink.c (xcoff_link_check_archive_element): Only free the
300 symbol table if it was created by the current call.
302 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
304 * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
305 class XMC_DS rather than XMC_UA.
307 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
309 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
310 bfd_boolean export_defineds parameter with an unsigned int
311 auto_export_flags parameter.
312 * bfd-in2.h: Regenerate.
313 * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
314 split out from xcoff_build_ldsyms.
315 (xcoff_covered_by_expall_p): New function.
316 (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
317 but with extra code to handle -bexpfull and -bexpall.
318 (xcoff_mark_auto_exports): New function.
319 (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
320 a function should be automatically exported.
321 (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
322 parameter with an auto_export_flags parameter. Update ldinfo
323 accordingly. Use xcoff_mark_auto_exports to mark all automatically-
326 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
328 * xcofflink.c (xcoff_mark_symbol_by_name): New function.
329 (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
330 init and fini functions. Do garbage collection for objects
331 without an entry point too.
333 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
335 * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
336 check whether a symbol has csect information.
337 (coff_print_aux): Likewise.
338 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
339 information for C_AIX_WEAKEXT too.
340 (_bfd_xcoff_swap_aux_out): Likewise.
341 (xcoff_reloc_type_br): Handle defweak symbols too.
342 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
343 information for C_AIX_WEAKEXT too.
344 (_bfd_xcoff64_swap_aux_out): Likewise.
345 (xcoff64_reloc_type_br): Handle defweak symbols too.
346 * coffgen.c (coff_print_symbol): Handle auxillary function
347 information for C_AIX_WEAKEXT too.
348 * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
349 instead of BSF_GLOBAL if the L_WEAK flag is set.
350 (xcoff_dynamic_definition_p): New function.
351 (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
352 defines h. Don't change h if ldsym isn't the definition. Otherwise,
353 always take the symbol class from the ldsym. Use weak bfd symbol
354 types for weak ldsyms.
355 (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
356 Fix the check for whether a definition is from a shared object.
357 Allow redefinitions of weak symbols.
358 (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
359 (xcoff_keep_symbol_p): Likewise.
360 (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
361 (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
362 Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
363 but mark them as L_WEAK.
364 (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
365 instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
367 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
369 * xcofflink.c (xcoff_mark): When walking the relocations,
370 only mark the target symbol or the target section, not both.
371 (xcoff_final_definition_p): New function.
372 (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
373 symbol is a valid definition of the associated output symbol.
374 Use XCOFF_ALLOCATED to stop the same hash table entry having
376 (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
378 (xcoff_link_input_bfd): Use xcoff_final_definition_p.
380 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
382 * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
385 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
387 * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
388 * libcoff.h: Regenerate.
389 * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
390 line-number counts in the bfd's lineno_counts field.
391 Don't keep per-csect line-number counts.
392 (xcoff_sweep): Don't update per-csect line-number counts.
393 (bfd_xcoff_size_dynamic_sections): Count the number of line-number
394 entries in each output section.
395 (xcoff_link_input_bfd): Get the number of line numbers from
396 the bfd's lineno_counts field, rather than recalculating it
397 from scratch. Fix the range check when updating C_BINCL and
399 (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
400 here. Don't expect csects to have line-number counts.
402 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
404 * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
405 * libcoff.h: Regenerate.
406 * xcofflink.c (xcoff_keep_symbol_p): New function, using the
407 "skip" logic from xcoff_link_input_bfd.
408 (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
409 objects in a dynamic link, rather than checking whether csectpp
410 is null. Always allocate debug_index for other objects,
411 and always go through the loop. Update the type of debug_index
412 after the change above. Read the auxillary csect information
413 and use xcoff_keep_symbol_p to decide whether a symbol should
414 be kept. Set its debug_index to -2 if not.
415 (xcoff_link_input_bfd): Update the type of debug_index after
416 the change above and always expect it to be nonnull. Use it to
417 test whether a symbol should be stripped, rather than making the
418 decision here. Postpone all symbol creation to the second pass.
420 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
422 * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
423 creating a descriptor.
424 (xcoff_sweep): Don't mark toc_section unless it's needed.
425 (bfd_xcoff_size_dynamic_sections): Skip the toc_section
426 when marking every bfd.
427 (xcoff_link_input_bfd): Skip all TOC anchors.
428 (xcoff_toc_section_p, xcoff_find_tc0): New functions.
429 (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
430 to -1; call xcoff_find_tc0 instead.
432 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
434 * libcoff-in.h (xcoff_section_tdata): Update commentary.
435 * libcoff.h: Regenerate.
436 * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
437 symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
438 the previous symbol's csect. Treat last_symndx as an inclusive value
439 and simplify its handling.
440 (xcoff_mark): Treat last_symndx as an inclusive value. Only mark
441 symbols with the right csect. Don't mark rsec when processing
442 relocations against undefined or absolute sections.
443 (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
444 of bfd_und_section_ptr.
445 (xcoff_link_input_bfd): Likewise.
447 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
449 * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
450 against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
451 flag is set. Assert that all undefined symbols are either
452 imported or defined by a dynamic object.
453 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
454 * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
455 handling to all relocations. Only set XCOFF_CALLED for function
457 (xcoff_find_function): New function, split out from...
458 (bfd_xcoff_export_symbol) ...here.
459 (xcoff_set_import_path): New function, split out from...
460 (bfd_xcoff_import_symbol): ...here. Remove assertion for old
461 meaning of XCOFF_CALLED.
462 (xcoff_mark_symbol): If we mark an undefined and unimported
463 symbol, find some way of defining it. If the symbol is a function
464 descriptor, fill in its definition automatically. If the symbol
465 is a function, mark its descriptor and allocate room for global
466 linkage code. Otherwise mark the symbol as implicitly imported.
467 Move the code for creating function descriptors from...
468 (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
469 check for symbols that were implicitly defined.
470 (xcoff_mark): Don't count any dynamic relocations against
472 (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
473 in the xcoff link info.
474 (xcoff_link_input_bfd): Remove handling of undefined and
477 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
479 * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
480 if the target is absolute. Fix comment typo.
481 (xcoff_ppc_relocate_section): Remove FIXME.
482 * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
483 if the target is absolute.
485 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
487 * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
488 R_POS and R_NEG relocations against absolute symbols to the
491 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
493 * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
494 to 2 for bfd_mach_ppc_620.
496 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
498 * config.bfd: Treat AIX 6+ in the same way as AIX 5.
499 * configure.in: Likewise.
500 * configure: Regenerate.
502 2009-03-13 H.J. Lu <hongjiu.lu@intel.com>
505 * elf.c (assign_section_numbers): Generate symbol table if there
506 is any relocation in output.
507 (_bfd_elf_compute_section_file_positions): Likewise.
509 2009-03-13 Nick Clifton <nickc@redhat.com>
512 * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
513 * elflink.c (elf_link_read_relocs_from_section): Use
514 NUM_SHDR_ENTRIES. Gracefully handle the case where there are
515 relocs but no symbol table.
516 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
518 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
521 * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
522 to check ___tls_get_addr.
524 * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
525 strncmp to check __tls_get_addr.
527 2009-03-12 Andrew Stubbs <ams@codesourcery.com>
529 * dwarf2.c (read_section): Always check the offset, even when the
530 section has been read before.
532 2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
534 * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
537 2009-03-11 Chris Demetriou <cgd@google.com>
539 * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
540 * bfd-in2.h: Regenerate.
541 * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
542 flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
544 (bsd_write_armap): Likewise.
545 (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
546 flag is set, do nothing.
547 (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
550 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
552 * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
553 used to update stack pointer.
555 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
558 * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
559 for unknown symbols in absolute section.
561 2009-03-06 Nick Clifton <nickc@redhat.com>
563 * po/es.po: Updated Spanish translation.
565 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
567 * elf32-arm.c (group_sections): Take next section size into
568 account before accepting to group it.
570 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
572 * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
574 (elf32_arm_final_link_relocate): Likewise.
576 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
579 * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
581 2009-03-04 Alan Modra <amodra@bigpond.net.au>
583 * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
584 * section.c (struct bfd_section): Add has_tls_get_addr_call.
585 (BFD_FAKE_SECTION): Init new flag.
586 * ecoff.c (bfd_debug_section): Likewise.
587 * bfd-in2.h: Regenerate.
588 * libbfd.h: Regenerate.
589 * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
590 (ppc_elf_reloc_type_lookup): Handle new relocs.
591 (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
592 without marker relocs.
593 (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
594 if section has no old-style calls.
595 (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
596 Don't try to optimize new-style __tls_get_addr call when handling
597 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
599 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
600 (ppc64_elf_reloc_type_lookup): Handle new relocs.
601 (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
602 without marker relocs.
603 (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
604 if section has no old-style calls. Set toc_ref for new relocs as
606 (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
607 Don't try to optimize new-style __tls_get_addr call when handling
608 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
611 2009-03-04 Alan Modra <amodra@bigpond.net.au>
614 * configure.in: Test for ld --as-needed support. Link shared
616 * configure: Regenerate.
618 2009-03-03 Alan Modra <amodra@bigpond.net.au>
620 * Makefile.am: Run "make dep-am".
621 * Makefile.in: Regenerate.
623 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
625 * elf32-score7.c: New file.
626 * elf32-score.h: New file.
627 * elf32-score.c: Add code to support score 7. Set score7 as the
629 * cpu-score.c: Add score7 architecure.
630 (compatibile): New function.
631 * Makefile.am: Add rules for building elf32-score7 object.
632 * Makefile.in: Regenerate.
633 * configure.in: Add elf32-score7 object to score vectors.
634 * configure: Regenerate.
635 * reloc.c: Add score7 relocs.
636 * archures.c: Add score3 and score7 machine numbers.
637 * bfd-in2.h: Regenerate.
638 * libbfd.h: Regenerate.
640 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
642 * configure: Regenerate.
644 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
646 * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
647 (elf32_hppa_check_relocs): Use it.
649 * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
651 (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
652 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
653 (elf_hppa_is_dynamic_loader_symbol): Likewise.
654 (elf_hppa_record_segment_addrs): Likewise.
655 (elf_hppa_final_link): Likewise.
656 (elf_hppa_relocate_insn): Likewise.
657 (elf_hppa_final_link_relocate): Likewise.
658 (elf64_hppa_relocate_section): Likewise.
659 * elf64-hppa.c: Insert above.
661 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
663 * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
664 (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
665 (elf_hppa_relocate_section): Likewise.
666 * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
667 from struct elf_link_hash_entry. Add count field.
668 (struct elf64_hppa_dyn_hash_table): Delete.
669 (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
670 (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
671 (hppa_elf_hash_entry, eh_name): Define.
672 (elf64_hppa_new_dyn_hash_entry): Delete.
673 (elf64_hppa_dyn_hash_lookup): Delete.
674 (elf64_hppa_dyn_hash_traverse): Delete.
675 (get_dyn_name): Delete.
676 (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
677 of struct elf64_hppa_dyn_hash_entry *.
678 (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
679 allocate_global_data_plt, allocate_global_data_stub,
680 allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
682 (hppa64_link_hash_newfunc): New.
683 (elf64_hppa_hash_table_create): Rework.
684 (count_dyn_reloc): Likewise.
685 (hppa64_elf_local_refcounts): New.
686 (elf64_hppa_check_relocs): Rework using standard technique for recording
687 local DLT, PLT and OPD reference counts.
688 (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
689 elf_link_hash_entry *.
690 (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
691 allocate_global_data_plt, allocate_global_data_stub,
692 allocate_global_data_opd, allocate_dynrel_entries,
693 elf64_hppa_adjust_dynamic_symbol,
694 elf64_hppa_mark_milli_and_exported_functions): Likewise.
695 (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
696 Use hppa_link_hash_table. Rework.
697 (elf64_hppa_link_output_symbol_hook): Rework.
698 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
699 elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
700 elf64_hppa_finish_dynamic_sections): Likewise.
702 2009-02-26 Christophe Lyon <christophe.lyon@st.com>
704 * elf32-arm.c (stub_reloc_type): Removed.
705 (insn_sequence): Renamed reloc_type field to r_type.
706 (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
707 (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
708 (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
709 (elf32_arm_stub_type): Add new enum entries for the new stubs.
710 (arm_stub_is_thumb): Catch new stubs.
711 (arm_type_of_stub): Handle new stubs.
712 (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
713 (bfd_elf32_arm_process_before_allocation): Remove useless
716 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
718 * elf.c (elf_find_function): Use is_function_type to check
721 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
723 * xtensa-modules.c: Revert to previous version 1.11 due
724 to inadvertant commit.
726 2009-02-24 Sterling Augustine <sterling@tensilica.com>
728 * elf32-xtensa.c (text_action_add): Separate test for action
729 type. Break if saved action is ta_widen_insn at same offset.
731 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
733 * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
734 to elf32_arm_stub_long_branch_any_arm_pic.
735 (elf32_arm_stub_long_branch_any_thumb_pic): New.
736 (enum elf32_arm_stub_type, arm_type_of_stub)
737 (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
740 2009-02-24 Joseph Myers <joseph@codesourcery.com>
742 * elf32-arm.c (PREV_SEC): Update comment.
743 (group_sections): Rename argument to stubs_always_after_branch.
744 Reverse the list and place stubs at the end of input sections.
746 (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
748 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
750 * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
752 (arm_size_one_stub): Remove unnecessary break.
753 (arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
755 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
757 * elf32-arm.c (stub_insn_type): New type.
758 (stub_reloc_type): Likewise.
759 (insn_sequence): Likewise.
760 (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
761 (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
762 (elf32_arm_stub_long_branch_thumb_only): Likewise.
763 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
764 (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
765 (elf32_arm_stub_long_branch_any_any_pic): Likewise.
766 (elf32_arm_stub_hash_entry): Add new helper fields.
767 (stub_hash_newfunc): Initialize these new fields.
768 (arm_build_one_stub): Encode Arm and Thumb instructions separately
769 to take endianness into account.
770 (arm_size_one_stub): Compute size of stubs using insn_sequence.
771 (arm_map_one_stub): Code is now more generic, thanks to
774 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
776 * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
778 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
779 (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
780 BLX is not available. Fix typo in warning message. Add comments
781 and improve formatting.
782 (arm_build_one_stub): Adjust to new
783 elf32_arm_stub_long_branch_v4t_thumb_arm stub.
784 (arm_map_one_stub): Likewise.
786 2009-02-23 Tristan Gingold <gingold@adacore.com>
787 Eric Botcazou <ebotcazou@adacore.com>
788 Douglas B Rupp <rupp@gnat.com>
790 * vms.h: Update copyright year, fix comments, reorder declarations.
791 (_bfd_save_vms_section): Remove the prototype.
792 (EGPS_S_V_NO_SHIFT): New constant.
793 (bfd_vms_set_section_flags): New prototype.
794 (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
796 (EGSY_S_W_FLAGS): Ditto.
797 (EGSY_S_V_QUAD_VAL): Ditto.
798 (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
799 (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
800 EGST_S_B_NAMLNG): Ditto.
801 (ESRF_S_B_NAMLNG): Ditto.
802 (ETIR_S_C_HEADER_SIZE): Ditto.
803 (EGPS_S_V_ALLOC_64BIT): Ditto.
804 (DST_S_C_EPILOG): Ditto.
805 (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
806 (DST_S_C_SRC_INCRLNUM_B): Ditto.
807 (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
808 (DST_S_L_PCLINE_UNSLONG): Ditto.
809 (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
810 (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
811 (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
812 (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
813 (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
814 (DST_S_B_SRC_UNSBYTE): Ditto.
815 (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
817 (vms_section, vms_reloc): Remove types.
818 (hdr_struc): Replaced by ...
819 (hdr_struct): ... new type.
820 (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
821 (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
822 (EMH_DATE_LENGTH): Ditto.
823 (eom_struc): Replaced by ...
824 (eom_struct): ... new type.
825 (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
826 (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
827 (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
828 (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
829 (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
830 (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
831 (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
832 (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
833 (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
834 (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
835 (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
836 (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
837 (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
838 (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
839 (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
840 (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
841 (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
842 (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
843 (DBG_S_C_DMT_PSECT_SIZE): Ditto.
844 (enum file_type_enum): New type.
845 (struct location_struct): Removed.
846 (struct fileinfo, struct srecinfo, struct lineinfo): New types.
847 (struct funcinfo, struct module): Ditto.
848 (struct vms_private_data_struct): Update fields.
849 (struct vms_section_data_struct): New type.
851 * vms.c: Update copyright year, fix comments,
852 Fix includes for DECC, add prototypes.
853 (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
855 Use flavour to set is_vax, location_stack is removed.
856 (struct pair): Declare.
857 (fill_section_ptr): Initialize variables at declaration.
858 Add guard to set SECTION_SYM flag, handlde und section.
859 (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
860 (_bfd_vms_slurp_object_records): New function, replaces previous
862 (vms_slurp_module): New function.
863 (vms_slurp_image): Ditto.
864 (vms_object_p): Complete rewrite.
865 (vms_mkobject): Use is_vax field to slect architecture.
866 (free_reloc_stream): New function.
867 (vms_convert_to_var): Ditto.
868 (vms_convert_to_var_1): Ditto.
869 (vms_convert_to_var_unix_filename): Ditto.
870 (vms_close_and_cleanup): Call free_reloc_stream, convert file to
872 (vms_new_section_hook): Set alignment to 0, allocate private data.
873 (vms_get_section_contents): Load content.
874 (vms_get_symbol_info): Handle undefined section.
875 (vms_find_nearest_line): Handle.
876 (alloc_reloc_stream): New function.
877 (vms_slurp_reloc_table): Ditto.
878 (vms_get_reloc_upper_bound): Make it real.
879 (vms_canonicalize_reloc): Do the real work.
880 (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
882 (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
883 (vms_set_arch_mach): Check arch.
884 (vms_set_section_contents): Copy the content after allocation.
885 (vms_alpha_vec): Update object flags.
887 * vms-tir.c: Update copyright year, fix comments,
888 add prototypes for new functions.
889 (dst_define_location): New function.
890 (dst_restore_location): New function.
891 (dst_retrieve_location): New function.
892 (dst_check_allocation): New function.
893 (image_dump): Call dst_check_allocation.
894 (image_write_b): Ditto.
895 (image_write_w): Ditto.
896 (image_write_l): Ditto.
897 (image_write_q): Ditto.
898 (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
899 STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
901 Call error handler instead of abort if name is not known.
902 (etir_sta): Add quarter_relocs argument and set it.
905 (etir_opr): Ditto, return FALSE in case of error.
906 (etir_ctl): Add quarter_relocs argument and set it, fix cast.
907 Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
908 (etir_stc): Add quarter_relocs argument and set it, fix cast.
909 Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
910 Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
911 Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
912 Return FALSE in case of error.
913 (tir_sta): Change sign of psect.
915 (tir_cmd): Fix cast. Makes tir_table static const.
916 (etir_cmd): Add quarter_relocs argument, makes etir_table const,
917 add argument to explain.
918 (analyze_etir): Initialize maxptr, add quarter_relocs
919 declaration, move some declarations into inner scopes.
920 Handle quarter_relocs and STO_IMM.
921 (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
922 (_bfd_vms_slurp_relocs): New function.
923 (_bfd_vms_decode_relocs): New function.
924 (sto_imm): Rewritten.
925 (start_first_etbt_record): New function.
926 (start_another_etbt_record): Ditto.
927 (etir_output_check): Ditto.
928 (defer_reloc_p): Ditto.
929 (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
930 a for-loop. Correctly deals with contents, deals with .vmsdebug,
931 rewritte relocations handling.
932 (_bfd_vms_write_tbt): Removed.
933 (_bfd_vms_write_dbg): Ditto.
935 * vms-misc.c: Update copyright year, Fix comments.
936 (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
937 (maybe_adjust_record_pointer_for_object): New function.
938 (_bfd_vms_get_first_record): New function, replaces ...
939 (_bfd_vms_get_record): .. removed.
940 (_bfd_vms_get_object_record): New function.
941 (_bfd_vms_get_object_record): New function.
942 (vms_get_remaining_object_record): New function, replaces ...
943 (_bfd_vms_get_next_record): ... removed.
944 (add_new_contents): Removed.
945 (_bfd_save_vms_section): Removed.
946 (_bfd_get_vms_section): Removed.
947 (_bfd_vms_output_flush): Write in VAR format.
948 (new_symbol): Don't make UND section.
950 * vms-hdr.c: Update copyright year, update list of record handled.
951 (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
952 (_bfd_vms_write_hdr): Strip vms and unix patches,
953 add comments, truncate module name at 31 characters,
954 use constants instead of hard-coded value,
955 write BFD version instead of a fixed string.
956 (_bfd_vms_slurp_ihd): New function.
957 (_bfd_vms_slurp_isd): Ditto.
958 (_bfd_vms_slurp_ihs): Ditto.
960 (parse_module): Ditto
961 (build_module_list): Ditto.
962 (module_find_nearest_line): Ditto.
963 (_bfd_vms_find_nearest_dst_line): Ditto.
964 (vms_slurp_debug): Ditto.
965 (_bfd_vms_slurp_dbg): Ditto.
966 (_bfd_vms_slurp_tbt): Ditto.
967 (_bfd_vms_write_dbg): Ditto.
968 (_bfd_vms_write_tbt): Ditto.
970 * vms-gsd.c: Update copyright year, update list of records handled.
971 (EVAX_LITERALS_NAME): New macro.
972 (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
973 (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
974 (register_universal_symbol): New function and prototype.
975 (_bfd_vms_slurp_gsd): Fix indentations and casts,
976 improve debug messages,
977 use constants instead of hard-coded value,
978 fix missing endianness conversion,
979 handle global symbol (SYMG).
980 (bfd_vms_set_section_flags): New function.
981 (_bfd_vms_write_gsd): Don't write .vmsdebug section,
982 handle section literals,
984 handle section bfd and vms flags,
985 don't output LIB$INITIALIZE symbol,
986 fix handling of weak symbols,
987 fix evax vs vax procedure descriptor,
988 handle absolute symbols.
990 * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
991 BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
993 * makefile.vms (DEFS): Fix flags for VMS.
995 * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
997 * bfd-in2.h: Regenerated.
998 * libbfd.h: Regenerated.
1000 2009-02-20 Cary Coutant <ccoutant@google.com>
1002 * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
1005 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
1008 * coffcode.h (coff_write_object_contents): Don't let the string
1009 table offset overflow the s_name field when using long section names.
1011 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
1013 * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
1014 control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
1015 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1016 * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
1017 control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
1018 (bfd_pmac_xcoff_backend_data): Likewise.
1019 * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
1020 (bfd_xcoff_aix5_backend_data): Likewise.
1021 (xcoff64_write_object_contents): Delete unused long_section_names
1023 * coff-sh.c (bfd_coff_small_swap_table): Initialise long section
1024 name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
1026 * coffcode.h (documentation): Update to describe long section names.
1027 (COFFLONGSECTIONCATHELPER): New helper macro.
1028 (BLANKOR1TOODD): Likewise.
1029 (COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
1030 (COFF_LONG_SECTION_NAMES_SETTER): Likewise.
1031 (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
1032 (bfd_coff_set_long_section_names_allowed): New function.
1033 (bfd_coff_set_long_section_names_disallowed): Likewise.
1034 (struct bfd_coff_backend_data): Add new backend hook function
1035 pointer _bfd_coff_set_long_section_names.
1036 (bfd_coff_set_long_section_names): New backend hook.
1037 (coff_write_object_contents): Only generate long section names if
1038 bfd_coff_long_section_names() indicates they are currently enabled.
1039 (bfd_coff_std_swap_table): Make non-const, and initialise long
1040 section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
1041 (ticoff0_swap_table): Likewise to both.
1042 (ticoff1_swap_table): Again, likewise to both.
1043 * coffgen.c (make_a_section_from_file): Allow long section names
1044 as inputs even if not currently allowed for outputs.
1045 * ecoff.c (_bfd_ecoff_no_long_sections): New function.
1046 * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
1047 * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1048 * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1049 * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
1050 * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1051 * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1052 * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
1053 * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1054 * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1055 * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
1056 * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
1057 * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
1058 * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
1059 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
1060 * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
1061 * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1062 * libcoff-in.h: Update copyright year to cause updated copyright
1063 year in generated libcoff.h, and fix typo.
1064 * libcoff.h: Regenerated.
1065 * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
1066 (_bfd_ecoff_no_long_sections): Add prototype.
1067 * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
1068 * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
1069 defined by an including .c file.
1070 * ticoff.h (ticoff0_swap_table): Make non-const, and initialise
1071 long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
1072 (ticoff1_swap_table): Likewise to both.
1074 2009-02-18 Christophe Lyon <christophe.lyon@st.com>
1076 * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
1077 stub. Catch default case error.
1078 (arm_map_one_stub): Add missing Thumb mapping symbol.
1080 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
1083 * elf32-avr.c: Handle case where no local symbos exist correctly.
1085 2009-02-16 Christophe Lyon <christophe.lyon@st.com>
1088 * elf32-arm.c (arm_long_branch_stub,
1089 arm_thumb_v4t_long_branch_stub,
1090 arm_thumb_thumb_long_branch_stub,
1091 arm_thumb_arm_v4t_long_branch_stub,
1092 arm_thumb_arm_v4t_short_branch_stub,
1093 arm_pic_long_branch_stub):
1094 Renamed to elf32_arm_stub_long_branch_any_any,
1095 elf32_arm_stub_long_branch_v4t_arm_thumb,
1096 elf32_arm_stub_long_branch_thumb_only,
1097 elf32_arm_stub_long_branch_v4t_thumb_arm,
1098 elf32_arm_stub_short_branch_v4t_thumb_arm,
1099 elf32_arm_stub_long_branch_any_any_pic.
1100 (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
1101 arm_thumb_thumb_stub_long_branch,
1102 arm_thumb_arm_v4t_stub_long_branch,
1103 arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
1104 Renamed to arm_stub_long_branch_any_any,
1105 arm_stub_long_branch_v4t_arm_thumb,
1106 arm_stub_long_branch_thumb_only,
1107 arm_stub_long_branch_v4t_thumb_arm,
1108 arm_stub_short_branch_v4t_thumb_arm,
1109 arm_stub_long_branch_any_any_pic.
1111 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1113 * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
1114 in branch offset check.
1116 2009-02-15 Alan Modra <amodra@bigpond.net.au>
1118 * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
1119 add toc.symndx and toc.add.
1120 (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
1122 (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
1124 (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
1125 (branch_reloc_hash_match): New function, extracted from..
1126 (ppc64_elf_tls_optimize): ..here.
1127 (ppc64_elf_relocate_section): Properly set addends when optimizing
1128 tls sequences. Avoid unnecessary reading and writing of insns.
1129 Only redo reloc when symbol changed. Bypass symbol checks when
1131 * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
1132 (branch_reloc_hash_match): New function, extracted from..
1133 (ppc_elf_tls_optimize): ..here.
1134 (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
1135 Don't clear addend on zapped __tls_get_addr reloc.
1137 2009-02-12 Nick Clifton <nickc@redhat.com>
1140 * elflink.c (bfd_elf_final_link): When counting the relocations,
1141 if the header size has not been set yet then assume that it will
1142 match the output section's reloc type.
1144 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
1146 * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
1149 2009-02-09 Alan Modra <amodra@bigpond.net.au>
1151 * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
1152 (find_function): Likewise.
1153 (pasted_function): Don't error if no prior function found.
1154 (discover_functions): Revert 2008-12-10 change. Extend first
1155 function range to start of section.
1157 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1159 * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
1161 * elf64-hppa.h: Likewise.
1163 2009-02-06 Joseph Myers <joseph@codesourcery.com>
1165 * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
1168 2009-02-04 Alan Modra <amodra@bigpond.net.au>
1170 * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
1171 Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
1173 2009-02-03 Sandip Matte <sandip@rmicorp.com>
1175 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
1176 * archures.c (bfd_mach_mips_xlr): Define.
1177 * bfd-in2.h: Regenerate.
1178 * cpu-mips.c (I_xlr): Define.
1179 (arch_info_struct): Add XLR entry.
1180 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
1181 (mips_set_isa_flags): Handle bfd_mach_mips_xlr
1182 (mips_mach_extensions): Add XLR entry.
1184 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
1186 * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
1188 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
1190 * configure.in: AC_SUBST pdfdir.
1191 * Makefile.am: Add install-pdf, install-pdf-am
1192 and install-pdf-recursive targets. Define pdfdir.
1193 * doc/Makefile.am: Define pdf__strip_dir. Add
1194 install-pdf and install-pdf-am targets.
1195 * po/Make-in: Add install-pdf target.
1196 * configure: Regenerate.
1197 * Makefile.in: Regenerate
1198 * doc/Makefile.in: Regenerate.
1200 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
1202 * bfd-in2.h: Regenerate.
1203 * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
1204 fields from n_entries to n_slots where appropriate, update comments.
1205 (HOWTO): Add TLS relocations.
1206 (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
1207 (enum elf_m68k_got_offset_size): New enum.
1208 (struct elf_m68k_got_entry.type): Move field to ...
1209 (struct elf_m68k_got_entry_key): ... here. Update all uses.
1210 (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
1212 (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
1214 (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
1215 fields into n_entries array. Update comments.
1216 (elf_m68k_init_got): Simplify, update all uses.
1217 (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
1218 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
1219 GOT entries; update name, update all uses.
1220 (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
1221 (elf_m68k_get_got_entry): Update.
1222 (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
1224 (elf_m68k_remove_got_entry_type): Simplify.
1225 (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
1226 (elf_m68k_can_merge_gots): Update.
1227 (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
1228 (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
1229 GOT entries, simplify.
1230 (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
1231 (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
1232 field, remove obsoleted local_n_entries field.
1233 (elf_m68k_partition_multi_got_2): New static function.
1234 (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
1236 (elf_m68k_remove_got_entry_type): Update.
1237 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
1238 (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
1239 update of sgot->size and srelgot->size.
1240 (elf_m68k_gc_sweep_hook): Update.
1241 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
1242 (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
1244 * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
1245 * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
1247 2009-02-02 DJ Delorie <dj@redhat.com>
1249 * elf32-mep.c (config_names): Regenerate configuration.
1251 2009-02-02 Alan Modra <amodra@bigpond.net.au>
1253 * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
1254 (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
1255 * elf.c (bfd_elf_get_str_section): Make static.
1256 (bfd_elf_find_section): Delete.
1257 * libbfd.h: Regenerate.
1259 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1261 * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
1262 (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
1264 2009-01-31 Alan Modra <amodra@bigpond.net.au>
1266 * elflink.c (on_needed_list): New function.
1267 (elf_link_add_object_symbols): Link in --as-needed libs if they
1268 satisfy undefined symbols in other libs.
1270 2009-01-30 Julian Brown <julian@codesourcery.com>
1272 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
1273 EXEC_P or DYNAMIC flags, and skip sections which are being linked
1274 with --just-symbols (-R).
1276 2009-01-29 Adam Nemet <anemet@caviumnetworks.com>
1278 * dwarf2.c (read_rangelist): Use read_address to read low_pc and
1279 high_pc in order to properly sign-extend VMAs.
1281 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1282 Mark Shinwell <shinwell@codesourcery.com>
1283 Catherine Moore <clm@codesourcery.com>
1285 * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
1287 2009-01-28 Catherine Moore <clm@codesourcery.com>
1289 * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
1290 SEC_LOAD for dynamic relocation sections.
1292 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
1294 * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
1295 (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
1296 the size of local TLS data.
1298 2009-01-27 Andreas Schwab <schwab@suse.de>
1300 * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
1301 architectures in the archive.
1303 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
1305 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
1306 <R_CRIS_32_DTPREL>: Correct relocation value.
1308 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
1309 <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
1310 symbols with non-default visibility.
1312 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
1314 * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
1315 describing the trampolines.
1316 (ppc_elf_relocate_section): Update relocs to describe the
1319 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1321 * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
1322 branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
1323 and R_PARISC_PCREL12F relocations.
1325 2009-01-24 Alan Modra <amodra@bigpond.net.au>
1328 * elflink.c (find_version_for_sym): New function split out from,
1329 but without export_dynamic test, ..
1330 (_bfd_elf_link_assign_sym_version): ..here.
1331 (_bfd_elf_export_symbol): Use it.
1333 2009-01-23 Alan Modra <amodra@bigpond.net.au>
1335 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
1336 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
1337 * elflink.c: ..here, somewhat modified.
1338 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
1339 _bfd_elf_link_find_version_dependencies,
1340 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
1341 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
1342 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
1344 * elflink.c: ..and make static here.
1345 (_bfd_elf_link_find_version_dependencies): Adjust for removal
1346 of output_bfd from struct elf_find_verdep_info.
1347 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
1348 struct elf_info_failed.
1349 (bfd_elf_size_dynamic_sections): Adjust.
1351 2009-01-22 Alan Modra <amodra@bigpond.net.au>
1354 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
1355 after comp_unit_find_line call.
1357 2009-01-21 Nick Clifton <nickc@redhat.com>
1360 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
1361 tm_gmtoff field in struct tm.
1363 2009-01-21 Alan Modra <amodra@bigpond.net.au>
1365 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
1366 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
1367 sections in soft-icache lines unless non_ia_text. Don't add
1368 rodata if doing so would exceed line size.
1370 2009-01-19 Hans-Peter Nilsson <hp@axis.com>
1372 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
1373 types than bfd_link_hash_indirect, before early return, call
1374 _bfd_elf_link_hash_copy_indirect.
1376 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1378 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
1379 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
1380 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
1381 (elf_backend_obj_attrs_order): New define.
1382 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
1383 (elfNN_bed): Add elf_backend_obj_attrs_order.
1385 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1387 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
1388 (obj_attr_size): Likewise.
1389 (write_obj_attribute): Likewise.
1390 (_bfd_elf_copy_obj_attributes): Likewise.
1391 (_bfd_elf_parse_attributes): Likewise.
1392 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
1393 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
1394 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
1395 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
1396 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
1399 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1401 * elf-attrs.c (is_default_attr): Support defaultless attributes.
1402 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
1403 (bfd_elf_add_obj_attr_string): Likewise.
1404 (bfd_elf_add_obj_attr_int_string): Likewise.
1405 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
1406 * elf-bfd.h (struct obj_attribute): Document new flag bit.
1407 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
1408 Tag_nodefaults has no default value.
1409 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
1410 comment to reflect the new state.
1412 2009-01-19 Alan Modra <amodra@bigpond.net.au>
1415 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
1416 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
1417 (adjust_z_magix): Delete dead code handling QMAGIC.
1419 2009-01-16 Kai Tietz <kai.tietz@onevision.com>
1421 * coffcode.h (styp_to_sec_flags): Correct interpretation of
1422 IMAGE_SCN_MEM_DISCARDABLE.
1424 2009-01-16 Alan Modra <amodra@bigpond.net.au>
1426 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
1427 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
1428 * configure.in (commonbfdlib): Delete.
1429 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
1430 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
1431 is available, not just for linux.
1432 * po/SRC-POTFILES.in: Regenerate.
1433 * Makefile.in: Regenerate.
1434 * configure: Regenerate.
1436 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
1437 Julian Brown <julian@codesourcery.com>
1439 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
1440 ARM attributes in ABI 2.07.
1441 * elf32-arm.c (get_secondary_compatible_arch): New function.
1442 (set_secondary_compatible_arch): New function.
1443 (tag_cpu_arch_combine): New function.
1444 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
1445 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
1446 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
1447 make it fit with order_01243.
1448 Add support for Tag_also_compatible_with,
1449 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
1450 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
1451 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
1452 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
1453 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
1454 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
1455 Rework the way unknown attributes are handled.
1456 Defer errors until all attributes have been processed.
1458 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
1460 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
1461 bfd_elf_add_obj_attr_int_string.
1462 Read Tag_compatibility from its new location in the attribute array,
1463 rather than the attribute list.
1464 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
1465 bfd_elf_add_obj_attr_int_string.
1466 (_bfd_elf_parse_attributes): Likewise.
1467 (_bfd_elf_merge_object_attributes): There's now only one
1468 Tag_compatibility, and it's in the array, not the list.
1469 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
1471 (bfd_elf_add_obj_attr_compat): Rename to
1472 bfd_elf_add_obj_attr_int_string.
1473 (bfd_elf_add_proc_attr_compat): Rename to
1474 bfd_elf_add_proc_attr_int_string.
1475 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
1478 2009-01-15 Douglas B Rupp <rupp@gnat.com>
1480 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
1481 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
1482 (vmsutil.lo): Add dependency rule.
1483 * Makefile.in: Regenerate.
1484 * config.bfd (ia64*-*-*vms*): Add case.
1485 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
1486 * configure: Regenerate.
1487 * vmsutil.c: New file.
1488 * vmsutil.h: New file.
1489 * elf-bfd.h (struct bfd_elf_special_section): Change type of
1491 * elfxx-ia64.c (elfNN_vms_post_process_headers,
1492 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
1493 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
1494 elfNN_vms_object_p): New functions
1495 * targets.c (bfd_elf64_ia64_vms_vec): New target.
1497 2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
1500 * elflink.c (elf_gc_sweep): Exclude the group section if the
1501 first member of the section group is excluded.
1503 2009-01-14 Alan Modra <amodra@bigpond.net.au>
1506 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
1507 saved filename, use bfd_alloc rather than bfd_malloc for it.
1509 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1511 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
1513 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1515 * elf32-spu.c (remove_cycles): Always set call->max_depth.
1517 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1519 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
1521 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1523 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
1525 (struct got_entry): Add br_addr.
1526 (struct call_info): Add priority.
1527 (struct function_info): Add lr_store and sp_adjust.
1528 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
1529 (spu_elf_find_overlays): For soft-icache, mark any section within cache
1530 area as an overlay, and check that no other overlays exist. Look up
1531 icache overlay manager entry sym.
1532 (BRA_STUBS, BRA, BRASL): Define.
1533 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
1534 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
1536 (count_stub, build_stub): Support soft-icache.
1537 (build_spuear_stubs, process_stubs): Adjust build_stub call.
1538 (spu_elf_size_stubs): Size soft-icache stubs.
1539 (overlay_index): New function.
1540 (spu_elf_build_stubs): Make static. Support soft-icache.
1541 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
1542 (find_function_stack_adjust): Save lr store and stack adjust insn
1544 (maybe_insert_function): Adjust find_function_stack_adjust call.
1545 (mark_functions_via_relocs): Retrieve priority.
1546 (remove_cycles): Only warn about pruned arcs when stack_analysis.
1547 (sort_calls): Sort by priority first.
1548 (mark_overlay_section): Ignore .ovl.init.
1549 (sum_stack): Only print when stack_analysis.
1550 (print_one_overlay_section): New function, extracted from..
1551 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
1552 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
1553 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
1554 analysis. Call spu_elf_build_stubs.
1555 (spu_elf_relocate_section): For soft-icache encode overlay index
1557 (spu_elf_output_symbol_hook): Support soft-icache.
1558 (spu_elf_modify_program_headers: Likewise.
1560 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
1561 num_regions to num_lines. Add line_size and max_branch.
1562 (enum _ovly_flavour): Add ovly_soft_icache.
1563 (spu_elf_build_stubs): Delete.
1565 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1567 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
1568 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
1570 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
1572 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
1573 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
1574 the program, the known offset starts at the negative size of the
1576 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
1579 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
1581 * config.bfd: Add lm32-*-rtems*.
1583 2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
1585 * coff-ppc.c: Add 2009 to Copyright.
1586 * elf32-cris.c: Likewise.
1587 * elflink.c: Likewise.
1589 2009-01-03 Hans-Peter Nilsson <hp@axis.com>
1591 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
1592 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
1594 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
1597 * elflink.c (elf_merge_st_other): New.
1598 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
1599 hide them if needed.
1600 (elf_link_add_object_symbols): Updated.
1602 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
1605 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
1606 ref_dynamic and dynamic_def fields when setting def_regular
1609 2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
1612 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
1615 For older changes see ChangeLog-2008
1621 version-control: never