aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2008-07-10bfd/Craig Silverstein14-621/+897
* Makefile.am (BFD32_LIBS): Add compress.lo. (BFD32_LIBS_CFILES): Add compress.c. (BFD_H_FILES): Likewise. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * config.in: Add HAVE_ZLIB_H * configure.in: Add test for libz and zlib.h * configure: Regenerate. * dwarf2.c (read_section): New function. (read_indirect_string): Call new function read_section. (read_abbrevs): Likewise. (decode_line_info): Likewise. (read_debug_ranges): Likewise. (find_line): Call new function read_section when just one .zdebug_info section is found, otherwise read and compress multiple sections. (_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr. * elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix. (special_sections_z): New struct. (special_sections): Refer to special_sections_z. * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize sections named .zdebug_*. (_bfd_mips_elf_fake_sections): Likewise. * compress.c: New file. (bfd_uncompress_section_contents): New function. bfd/doc/ * Makefile.am (BFD_H_DEP): Add ../compress.c. * Makefile.in: Regenerate. binutils/ * config.in: Add HAVE_ZLIB_H * configure.in: Add test for libz and zlib.h * configure: Regenerate. * dwarf.c (debug_displays): Add .zdebug_* strings. * dwarf.h (struct dwarf_section): Add fields uncompressed_namd and compressed_name. * objdump.c (load_debug_section): Call bfd_uncompress_section_contents when loading a compressed section. (dump_dwarf_section): Recognize compressed section name. (mach_o_dwarf_sections): Rename as mach_o_uncompressed_dwarf_sections. (mach_o_compressed_dwarf_sections): New variable. (generic_dwarf_section): Rename as generic_uncompressed_dwarf_sections. (generic_compressed_dwarf_sections): New variable. (check_mach_o_dwarf): Save and restore mach_o_compressed_dwarf_sections. * readelf.c: Add #include for config.h and zlib.h (process_section_headers): Recognize compressed section name. (uncompress_section_contents): New function. (load_debug_section): Call uncompress_section_contents when loading a compressed section. (display_debug_section): Recognize compressed section name. binutils/testsuite: * binutils-all/objdump.exp: Add test for objdump -s on a file with a compressed debug section. Add test for objdump -W on a file that contains a compressed debug section. * binutils-all/readelf.exp: Call readelf_compressed_wa_test. (readelf_compressed_wa_test): New function. * binutils-all/dw2-compressed.S: New file. * binutils-all/objdump.W: New file. * binutils-all/objdump.s: New file. * binutils-all/readelf.wa: New file.
2008-07-10daily updateAlan Modra1-1/+1
2008-07-09daily updateAlan Modra1-1/+1
2008-07-08daily updateAlan Modra1-1/+1
2008-07-07 * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols inNick Clifton2-1/+6
the presence of a PLT.
2008-07-07 * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.Alan Modra2-4/+21
2008-07-07daily updateAlan Modra1-1/+1
2008-07-06daily updateAlan Modra1-1/+1
2008-07-05daily updateAlan Modra1-1/+1
2008-07-04daily updateAlan Modra1-1/+1
2008-07-03daily updateAlan Modra1-1/+1
2008-07-02 * elf32-ppc.c (is_pic_glink_stub): New function.Alan Modra2-2/+41
(ppc_elf_get_synthetic_symtab): Don't generate symbols when multiple shared/pie stubs per plt entry.
2008-07-02daily updateAlan Modra1-1/+1
2008-07-01daily updateAlan Modra1-1/+1
2008-06-30bfd/Richard Sandiford2-2/+7
* elf.c (_bfd_elf_get_synthetic_symtab): Increment p by bed->s->int_rels_per_ext_rel.
2008-06-30bfd/Richard Sandiford7-5/+32
* syms.c (BSF_SYNTHETIC): New flag. * elf.c (_bfd_elf_get_synthetic_symtab): Set it. * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour for synthetic symbols. * bfd-in2.h: Regenerate. opcodes/ * mips-dis.c (_print_insn_mips): Use bfd_asymbol_flavour to check for ELF symbols.
2008-06-30 * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):Daniel Jacobowitz2-3/+14
Expand comments. (arm_map_one_stub): Use | 1 when setting the low bit.
2008-06-30daily updateAlan Modra1-1/+1
2008-06-29 * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existingAndreas Schwab2-3/+6
addend on _GLOBAL_OFFSET_TABLE_. ld/testsuite/: * ld-m68k/got-1.s: New file. * ld-m68k/got-1.d: New dump test. * ld-m68k/m68k.exp: Run it.
2008-06-29daily updateAlan Modra1-1/+1
2008-06-28daily updateAlan Modra1-1/+1
2008-06-27daily updateAlan Modra1-1/+1
2008-06-26daily updateAlan Modra1-1/+1
2008-06-25 * elf32-arm.c (STUB_ENTRY_NAME): Define.Daniel Jacobowitz2-54/+143
(arm_thumb_thumb_long_branch_stub): Use bx instead of b.n. (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of R_ARM_ABS32. (struct elf32_arm_stub_hash_entry): Add output_name. (arm_build_one_stub): Move offsets into the offset argument of _bfd_final_link_relocate. Correct offset for arm_thumb_arm_v4t_stub_long_branch. (elf32_arm_size_stubs): Set stub_entry->output_name. (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym. Update all callers. (elf32_arm_output_stub_sym): New. (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym. * ld-arm/farcall-arm-arm-be8.d, ld-arm/farcall-arm-arm-pic-veneer.d, ld-arm/farcall-arm-arm.d, ld-arm/farcall-arm-thumb-blx-pic-veneer.d, ld-arm/farcall-arm-thumb-blx.d, ld-arm/farcall-arm-thumb-pic-veneer.d, ld-arm/farcall-arm-thumb.d, ld-arm/farcall-group-size2.d, ld-arm/farcall-group.d, ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d, ld-arm/farcall-thumb-arm-blx-pic-veneer.d, ld-arm/farcall-thumb-arm-blx.d, ld-arm/farcall-thumb-arm.d, ld-arm/farcall-thumb-thumb-blx-pic-veneer.d, ld-arm/farcall-thumb-thumb-blx.d, ld-arm/farcall-thumb-thumb-m.d, ld-arm/thumb2-bl-as-thumb1-bad.d, ld-arm/thumb2-bl-bad.d: Update for stub symbols and stub corrections.
2008-06-25daily updateAlan Modra1-1/+1
2008-06-24daily updateAlan Modra1-1/+1
2008-06-19 * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub forAlan Modra2-1/+6
non-branch insns.
2008-06-19 * elf32-spu.c (build_stub): Allow wraparound on stub branches.Alan Modra2-13/+18
(allocate_spuear_stubs, build_spuear_stubs): Return value from count_stub/build_stub. (spu_elf_build_stubs): Correct location of stub reloc error message.
2008-06-19daily updateAlan Modra1-1/+1
2008-06-18 elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.M R Swami Reddy1-0/+4
2008-06-18 elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.M R Swami Reddy1-0/+1
2008-06-18daily updateAlan Modra1-1/+1
2008-06-17 * configure: Regenerate.Ralf Wildenhues2-71/+149
config/ * override.m4: Use m4_version_prereq throughout. (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE): Backport from git Autoconf: output pwd along with fatal errors, so the right config.log file is hinted at more prominently. (PARSE_ARGS): Push setting of ac_pwd in this diversion. (_GCC_AUTOCONF_VERSION): New, define to 2.59 if not defined. (_GCC_AUTOCONF_VERSION_CHECK): New macro, require use of Autoconf version _GCC_AUTOCONF_VERSION throughout the tree. (m4_wrap): New override, fix for Posix semantics of m4wrap. binutils/ * configure: Regenerate. opcodes/ * configure: Regenerate. bfd/ * configure: Regenerate. gas/ * configure: Regenerate. gprof/ * configure: Regenerate. ld/ * config.in: Regenerate. * configure: Regenerate.
2008-06-17daily updateAlan Modra1-1/+1
2008-06-16bfd/Alan Modra3-5/+28
* elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space. (spu_elf_check_vma): Add extra_stack_space param, copy to htab. (spu_elf_auto_overlay): Use it. (RECURSE_UNMARK): Define as 0. (unmark_overlay_section): Heed RECURSE_UNMARK. * elf32-spu.h (spu_elf_check_vma): Update prototype. ld/ * emultempl/spuelf.em (extra_stack_space): New variable. (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space. * emultempl/spu_ovl.S: Mask interrupts during dma and update of overlay manager structures. * emultempl/spu_ovl.o: Regenerate.
2008-06-16daily updateAlan Modra1-1/+1
2008-06-15daily updateAlan Modra1-1/+1
2008-06-14daily updateAlan Modra1-1/+1
2008-06-13daily updateAlan Modra1-1/+1
2008-06-12* common.h (EM_M32C_NEW): Rename to EM_M32C.DJ Delorie2-0/+5
(EM_M32C): Rename to EM_M32C_OLD. * elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD. * readelf.c (guess_is_rela): Add EM_M32C_OLD. (dump_relocations): Likewise. (process_section_headers): Likewise. (is_32bit_abs_reloc): Likewise. (is_16bit_abs_reloc): Likewise.
2008-06-12daily updateAlan Modra1-1/+1
2008-06-11daily updateAlan Modra1-1/+1
2008-06-10daily updateAlan Modra1-1/+1
2008-06-092008-06-09 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+7
bfd/ * elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared libraries.
2008-06-092008-06-03 Christophe Lyon <christophe.lyon@st.com>Daniel Jacobowitz2-3/+32
bfd/ * elf32-arm.c (arm_stub_is_thumb): Define. (elf32_arm_final_link_relocate): Handle near mode switching stubs. ld/testsuite/ * ld-arm/farcall-thumb-thumb-m.d: Fix branch type. * ld-arm/farcall-thumb-arm.d: Likewise.
2008-06-09daily updateAlan Modra1-1/+1
2008-06-08daily updateAlan Modra1-1/+1
2008-06-07 * elf32-spu.c (spu_elf_auto_overlay): Add valid area below spAlan Modra2-1/+6
to stack calculation.
2008-06-07daily updateAlan Modra1-1/+1
2008-06-062008-06-06 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+16
bfd/ * elf32-arm.c (elf32_arm_merge_private_bfd_data): Reject BE8 input.