summaryrefslogtreecommitdiff
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
* daily updatereverse-20080717-branchpointAlan Modra2008-07-181-1/+1
|
* daily updateAlan Modra2008-07-171-1/+1
|
* * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,Bernd Schmidt2008-07-162-618/+624
| | | | | | | bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook, ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE, struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code separate from non-FD-PIC.
* daily updateAlan Modra2008-07-161-1/+1
|
* * elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflowDJ Delorie2008-07-152-9/+25
| | | | | | | checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16 relocs. (mn10300_elf_relax_section): Correct jump offset check when target is in a different section.
* Add missing ChangeLog entries forH.J. Lu2008-07-151-0/+12
| | | | http://sourceware.org/ml/binutils-cvs/2008-05/msg00092.html
* bfd/Jie Zhang2008-07-152-0/+14
| | | | | | | | * elf32-bfin.c (elf32_bfin_special_sections[]): New. (elf_backend_special_sections): Define. ld/ * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
* daily updateAlan Modra2008-07-151-1/+1
|
* Mention "PR binutils/6743" in ChangeLog.H.J. Lu2008-07-141-0/+1
|
* 2008-07-13 Craig Silverstein <csilvers@google.com>Craig Silverstein2008-07-142-5/+20
| | | | | | * dwarf2.c (struct dwarf2_debug): New variable info_ptr_memory. (find_line): Use info_ptr_memory instead of sec_info_ptr. (_bfd_dwarf2_cleanup_debug_info): Likewise.
* daily updateAlan Modra2008-07-141-1/+1
|
* daily updateAlan Modra2008-07-131-1/+1
|
* Revert my last change since it has not been approved.Jie Zhang2008-07-123-44/+14
|
* daily updateAlan Modra2008-07-121-1/+1
|
* bfd/Jie Zhang2008-07-113-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf.c (_bfd_elf_map_sections_to_segments): Don't put executable sections into the same segment with other read only sections if --sep-code. * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. (elf32_bfin_data_in_l1): New variable. (elf32_bfin_final_write_processing): New. (elf32_bfin_special_sections[]): New. (elf_backend_final_write_processing): Define. (elf_backend_special_sections): Define. binutils/ * readelf.c (get_machine_flags): Deal with Blackfin specific flags. include/ * bfdlink.h (struct bfd_link_info): Add sep_code member variable. * elf/bfin.h (EF_BFIN_CODE_IN_L1): Define. (EF_BFIN_DATA_IN_L1): Define. ld/ * Makefile.am (eelf32bfin.c): Depend on bfin.em. (eelf32bfinfd.c): Likewise. * Makefile.in: Regenerate. * gen-doc.texi: Set Blackfin. * ld.texinfo: Document --sep-code and Blackfin specific options. * ldmain.c (main): Initialize link_info.sep_code. * lexsup.c (enum option_values): Add OPTION_SEP_CODE. (ld_options[]): Add --sep-code. (parse_args): Deal with --sep-code. * emulparams/bfin.sh (EXTRA_EM_FILE): Define. * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. * emultempl/bfin.em: New file.
* (read_section): Take pointer to bfd_size_type insteadAndreas Schwab2008-07-112-5/+13
| | | | | | | of unsigned long as last parameter. (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size, dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of unsigned long.
* daily updateAlan Modra2008-07-111-1/+1
|
* bfd/Richard Sandiford2008-07-102-25/+19
| | | | | | | | | | | | | | | * elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0 for all relocation types. Allow any type of relocation to refer to __gnu_local_gp. ld/testsuite/ * ld-mips-elf/no-shared-1-o32.s, ld-mips-elf/no-shared-1-o32.d, ld-mips-elf/no-shared-1-n32.d, ld-mips-elf/no-shared-1-n64.s, ld-mips-elf/no-shared-1-n64.d, ld-mips-elf/no-shared-1.ld: New tests. * ld-mips-elf/mips-elf.exp: Run them.
* include/elf/Richard Sandiford2008-07-102-9/+17
| | | | | | | | | | | | | | | | | | | | | | | * mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros. bfd/ * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16. (mips_elf_calculate_relocation): Likewise. (_bfd_mips_elf_add_symbol_hook): Likewise. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. opcodes/ * mips-dis.c (_print_insn_mips): Use ELF_ST_IS_MIPS16. gas/ * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16. (mips_fix_adjustable): Likewise. (mips_frob_file_after_relocs): Likewise. gas/testsuite/ * gas/mips/mips16-vis-1.d, gas/mips/mips16-vis-1.s: New tests. * gas/mips/mips.exp: Run them.
* (_bfd_mips_elf_section_from_shdr): Add missingAndreas Schwab2008-07-102-1/+6
| | | | paren.
* bfd/Craig Silverstein2008-07-1014-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.
* daily updateAlan Modra2008-07-101-1/+1
|
* daily updateAlan Modra2008-07-091-1/+1
|
* daily updateAlan Modra2008-07-081-1/+1
|
* * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols inNick Clifton2008-07-072-1/+6
| | | | the presence of a PLT.
* * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.Alan Modra2008-07-072-4/+21
|
* daily updateAlan Modra2008-07-071-1/+1
|
* daily updateAlan Modra2008-07-061-1/+1
|
* daily updateAlan Modra2008-07-051-1/+1
|
* daily updateAlan Modra2008-07-041-1/+1
|
* daily updateAlan Modra2008-07-031-1/+1
|
* * elf32-ppc.c (is_pic_glink_stub): New function.Alan Modra2008-07-022-2/+41
| | | | | (ppc_elf_get_synthetic_symtab): Don't generate symbols when multiple shared/pie stubs per plt entry.
* daily updateAlan Modra2008-07-021-1/+1
|
* daily updatesid-snapshot-20080701Alan Modra2008-07-011-1/+1
|
* bfd/Richard Sandiford2008-06-302-2/+7
| | | | | * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by bed->s->int_rels_per_ext_rel.
* bfd/Richard Sandiford2008-06-307-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.
* * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):Daniel Jacobowitz2008-06-302-3/+14
| | | | | Expand comments. (arm_map_one_stub): Use | 1 when setting the low bit.
* daily updateAlan Modra2008-06-301-1/+1
|
* * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existingAndreas Schwab2008-06-292-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.
* daily updateAlan Modra2008-06-291-1/+1
|
* daily updateAlan Modra2008-06-281-1/+1
|
* daily updateAlan Modra2008-06-271-1/+1
|
* daily updateAlan Modra2008-06-261-1/+1
|
* * elf32-arm.c (STUB_ENTRY_NAME): Define.Daniel Jacobowitz2008-06-252-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.
* daily updateAlan Modra2008-06-251-1/+1
|
* daily updateAlan Modra2008-06-241-1/+1
|
* * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub forAlan Modra2008-06-192-1/+6
| | | | non-branch insns.
* * elf32-spu.c (build_stub): Allow wraparound on stub branches.Alan Modra2008-06-192-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.
* daily updateAlan Modra2008-06-191-1/+1
|
* elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.M R Swami Reddy2008-06-181-0/+4
|