aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2010-07-08daily updateAlan Modra1-1/+1
2010-07-07daily updateAlan Modra1-1/+1
2010-07-06Initialize prev_line.H.J. Lu2-0/+5
2010-07-06 H.J. Lu <hongjiu.lu@intel.com> * dwarf2.c (add_line_info): Initialize prev_line.
2010-07-06bfd/Alan Modra2-6/+17
* elf32-ppc.c (ppc_elf_relax_section): Insert branch around trampolines only for .init and .fini sections. ld/testsuite/ * ld-powerpc/relax.s: Add branch back to _start. * ld-powerpc/relax.d: Update. * ld-powerpc/relaxr.d: Update.
2010-07-06daily updateAlan Modra1-1/+1
2010-07-05 * elf32-ppc.c: Formatting.Alan Modra2-24/+29
(ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
2010-07-05daily updateAlan Modra1-1/+1
2010-07-04daily updateAlan Modra1-1/+1
2010-07-03bfd/ChangeLog:Cary Coutant3-37/+64
* compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED. * dwarf2.c (read_and_uncompress_section): New function. (read_section): Call it. (find_line): Likewise. binutils/ChangeLog: * objdump.c (load_specific_debug_section): Decompress section contents before applying relocations. * readelf.c (load_specific_debug_section): Update section size after decompression. gas/ChangeLog: * Makefile.am: Add compress-debug.c and compress-debug.h. * Makefile.in: Regenerate. * config.in: Add HAVE_ZLIB_H. * configure.in: Check for zlib.h. * configure: Regenerate. * as.c (parse_args): Add --compress-debug-sections and --nocompress-debug-sections. * as.h (flag_compress_debug): New variable. * compress-debug.c: New file. * compress-debug.h: New file. * write.c: Include compress-debug.h. (compress_frag): New function. (compress_debug): New function. (write_object_file): Compress debug sections if requested.
2010-07-03daily updateAlan Modra1-1/+1
2010-07-02daily updateAlan Modra1-1/+1
2010-07-01 * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL ratherAlan Modra2-3/+9
than SYMBOL_REFERENCES_LOCAL. (ppc64_elf_relocate_section): Likewise.
2010-07-01 * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.Alan Modra2-2/+14
2010-07-01daily updateAlan Modra1-1/+1
2010-06-30daily updateAlan Modra1-1/+1
2010-06-29remove maxq-coff portAlan Modra14-585/+42
2010-06-29daily updateAlan Modra1-1/+1
2010-06-28 * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSEDAlan Modra2-5/+8
to silence gcc warning.
2010-06-28daily updateAlan Modra1-1/+1
2010-06-27 * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.Alan Modra2-3/+12
(group_sections): Likewise.
2010-06-27fix set but unused variable warningsAlan Modra60-409/+195
2010-06-27daily updateAlan Modra1-1/+1
2010-06-26daily updateAlan Modra1-1/+1
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-11/+36
* vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with its flags. Create an absolute section if needed.
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-46/+53
* vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create dummy psect anymore. Adjust. (_bfd_vms_write_eeom): Adjust (use target_index instead of index) (_bfd_vms_write_etir): Ditto. (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of section name. Adjust.
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+14
* vms-alpha.c (alpha_vms_write_exec): Set linktime field.
2010-06-25include/elf/Alan Modra2-19/+177
* ppc64.h (R_PPC64_LO_DS_OPT): Define. bfd/ * elf64-ppc.c (toc_skip_enum): Define. (ppc64_elf_edit_toc): Use two low bits of skip array as markers. Optimize largetoc sequences. (adjust_toc_syms): Update for skip array change. (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT. ld/ * emultempl/ppc64elf.em (prelim_size_sections): New function. (ppc_before_allocation): Use it. Size sections before toc edit too.
2010-06-25 * elf64-ppc.c (is_static_defined): New function.Alan Modra2-61/+115
(get_tls_mask, ppc_type_of_stub): Use it here. (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input. (ppc64_elf_tls_setup): Typo fix. (adjust_toc_syms): Correctly handle symbols defined past the end of the toc. Move syms on removed entries to next entry rather than to start of toc. (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to edit ppc64 input. Allocate one extra word in skip array. Honour info->keep_memory when reading relocs if we can. Adjust toc relocs after adjusting symbols.
2010-06-25daily updateAlan Modra1-1/+1
2010-06-24daily updateAlan Modra1-1/+1
2010-06-23 * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrunNathan Sidwell2-6/+11
when scaning map.
2010-06-23daily updateAlan Modra1-1/+1
2010-06-22daily updateAlan Modra1-1/+1
2010-06-21daily updateAlan Modra1-1/+1
2010-06-20daily updateAlan Modra1-1/+1
2010-06-19daily updateAlan Modra1-1/+1
2010-06-18daily updateAlan Modra1-1/+1
2010-06-172010-06-17 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-8/+16
* Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ... (BFD64_BACKENDS_CFILES): ... here. (BFD32_BACKENDS): Move vms-alpha.lo to ... (BFD64_BACKENDS): ... here. * Makefile.in: Regenerate.
2010-06-17daily updateAlan Modra1-1/+1
2010-06-16bfd:Joseph Myers4-1/+103
* elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2. * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type, elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes, elf32_tic6x_merge_private_bfd_data): New. (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section, elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor): Define. * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare. binutils: * readelf.c (display_tic6x_attribute, process_tic6x_specific): New. (process_arch_specific): Call process_tic6x_specific for EM_TI_C6000. gas: * config/tc-tic6x.c: Include elf/tic6x.h. (tic6x_arch_attribute, tic6x_seen_insns): New. (tic6x_arch_table, tic6x_arches): Add attribute values. (tic6x_use_arch): Handle attribute settings. (tic6x_attributes_set_explicitly, s_tic6x_c6xabi_attribute, tic6x_attribute_table, tic6x_attributes, tic6x_convert_symbolic_attribute): New. (md_pseudo_table): Add c6xabi_attribute. (md_assemble): Set tic6x_seen_insns and tic6x_arch_attribute. (tic6x_set_attribute_int, tic6x_set_attributes): New. (tic6x_end): Call tic6x_set_attributes. * config/tc-tic6x.h (CONVERT_SYMBOLIC_ATTRIBUTE): Define. (tic6x_convert_symbolic_attribute): Declare. gas/testsuite: * gas/elf/elf.exp: Set target_machine for tic6x-*-*. * gas/elf/section2.e-tic6x, gas/tic6x/attr-arch-directive-1.d, gas/tic6x/attr-arch-directive-1.s, gas/tic6x/attr-arch-directive-2.d, gas/tic6x/attr-arch-directive-2.s, gas/tic6x/attr-arch-directive-3.d, gas/tic6x/attr-arch-directive-3.s, gas/tic6x/attr-arch-directive-4.d, gas/tic6x/attr-arch-directive-4.s, gas/tic6x/attr-arch-directive-5.d, gas/tic6x/attr-arch-directive-5.s, gas/tic6x/attr-arch-opts-c62x.d, gas/tic6x/attr-arch-opts-c64x+.d, gas/tic6x/attr-arch-opts-c64x.d, gas/tic6x/attr-arch-opts-c674x.d, gas/tic6x/attr-arch-opts-c67x+.d, gas/tic6x/attr-arch-opts-c67x.d, gas/tic6x/attr-arch-opts-none-1.d, gas/tic6x/attr-arch-opts-none-2.d, gas/tic6x/attr-arch-opts-override-1.d, gas/tic6x/attr-arch-opts-override-2.d, gas/tic6x/empty.s: New. include/elf: * tic6x-attrs.h: New. * tic6x.h: Include elf/tic6x-attrs.h for attribute table. (C6XABI_Tag_CPU_arch_none, C6XABI_Tag_CPU_arch_C62X, C6XABI_Tag_CPU_arch_C67X, C6XABI_Tag_CPU_arch_C67XP, C6XABI_Tag_CPU_arch_C64X, C6XABI_Tag_CPU_arch_C64XP, C6XABI_Tag_CPU_arch_C674X): Define. ld: * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define. ld/testsuite: * ld-elf/orphan3.d: Allow section names starting '_'. * ld-tic6x/attr-arch-c62x-c62x.d, ld-tic6x/attr-arch-c62x-c64x+.d, ld-tic6x/attr-arch-c62x-c64x.d, ld-tic6x/attr-arch-c62x-c674x.d, ld-tic6x/attr-arch-c62x-c67x+.d, ld-tic6x/attr-arch-c62x-c67x.d, ld-tic6x/attr-arch-c62x.s, ld-tic6x/attr-arch-c64x+-c62x.d, ld-tic6x/attr-arch-c64x+-c64x+.d, ld-tic6x/attr-arch-c64x+-c64x.d, ld-tic6x/attr-arch-c64x+-c674x.d, ld-tic6x/attr-arch-c64x+-c67x+.d, ld-tic6x/attr-arch-c64x+-c67x.d, ld-tic6x/attr-arch-c64x+.s, ld-tic6x/attr-arch-c64x-c62x.d, ld-tic6x/attr-arch-c64x-c64x+.d, ld-tic6x/attr-arch-c64x-c64x.d, ld-tic6x/attr-arch-c64x-c674x.d, ld-tic6x/attr-arch-c64x-c67x+.d, ld-tic6x/attr-arch-c64x-c67x.d, ld-tic6x/attr-arch-c64x.s, ld-tic6x/attr-arch-c674x-c62x.d, ld-tic6x/attr-arch-c674x-c64x+.d, ld-tic6x/attr-arch-c674x-c64x.d, ld-tic6x/attr-arch-c674x-c674x.d, ld-tic6x/attr-arch-c674x-c67x+.d, ld-tic6x/attr-arch-c674x-c67x.d, ld-tic6x/attr-arch-c674x.s, ld-tic6x/attr-arch-c67x+-c62x.d, ld-tic6x/attr-arch-c67x+-c64x+.d, ld-tic6x/attr-arch-c67x+-c64x.d, ld-tic6x/attr-arch-c67x+-c674x.d, ld-tic6x/attr-arch-c67x+-c67x+.d, ld-tic6x/attr-arch-c67x+-c67x.d, ld-tic6x/attr-arch-c67x+.s, ld-tic6x/attr-arch-c67x-c62x.d, ld-tic6x/attr-arch-c67x-c64x+.d, ld-tic6x/attr-arch-c67x-c64x.d, ld-tic6x/attr-arch-c67x-c674x.d, ld-tic6x/attr-arch-c67x-c67x+.d, ld-tic6x/attr-arch-c67x-c67x.d, ld-tic6x/attr-arch-c67x.s: New.
2010-06-16daily updateAlan Modra1-1/+1
2010-06-15 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.Joseph Myers4-13/+35
(struct elf_backend_data): Update comment on obj_attrs_order. * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents, _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE instead of hardcoded 4. * elf32-arm.c (elf32_arm_obj_attrs_order): Use LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1 instead of hardcoded 4 and 5. (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE instead of hardcoded 4.
2010-06-15daily updateAlan Modra1-1/+1
2010-06-14 * elf32-h8300.c (elf_symbol_leading_char): Define.Kevin Buettner2-0/+5
2010-06-14daily updateAlan Modra1-1/+1
2010-06-13daily updateAlan Modra1-1/+1
2010-06-12daily updateAlan Modra1-1/+1
2010-06-11bfd/Jan Kratochvil2-1/+5
* vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
2010-06-112010-06-11 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-6/+17
* vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute sections to 0.
2010-06-112010-06-11 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+8
* vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.