summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* merge from gccDJ Delorie2013-03-282-1/+7
|
* daily updateAlan Modra2013-03-271-1/+1
|
* Properly check address mode for SIBH.J. Lu2013-03-275-4/+17
| | | | | | | | | | | | | gas/testsuite/ * gas/i386/addr32.s: Add an SIB test. * gas/i386/addr32.d: Updated. opcodes/ * i386-dis.c (get_sib): Add the sizeflag argument. Properly check address mode. (print_insn): Pass sizeflag to get_sib.
* * elf-bfd.h (enum elf_reloc_type_class): Add reloc_class_ifunc.Alan Modra2013-03-2734-51/+138
| | | | | | | | | | | | | | | | | | | | | | | (struct elf_backend_data <elf_backed_reloc_type_class>): Add bfd_link_info* and asection* params. (_bfd_elf_reloc_type_class): Likewise. * elf.c (_bfd_elf_reloc_type_class): Likewise. * elflink.c (elf_link_sort_cmp2): Sort first on reloc class. (elf_link_sort_relocs): Update elf_backed_reloc_type_class call. * elf32-ppc.c (ppc_elf_reloc_type_class): Return reloc_class_ifunc for any reliplt reloc. Don't return reloc_class_plt for R_PPC_REL24 and R_PPC_ADDR24. * elf64-ppc.c (allocate_got): Formatting. (ppc64_elf_reloc_type_class): Return reloc_class_ifunc for any reliplt reloc. * elf-m10300.c, * elf32-arm.c, * elf32-bfin.c, * elf32-cr16.c, * elf32-cris.c, * elf32-hppa.c, * elf32-i386.c, * elf32-lm32.c, * elf32-m32r.c, * elf32-m68k.c, * elf32-metag.c, * elf32-nios2.c, * elf32-s390.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilepro.c, * elf32-vax.c, * elf32-xtensa.c, * elf64-aarch64.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c, * elfnn-ia64.c, * elfxx-tilegx.c, * elfxx-tilegx.h: Add extra params to the various reloc_type_class functions.
* * elf32-ppc.c (ppc_elf_check_relocs): Set PLT_IFUNC in local gotAlan Modra2013-03-272-13/+32
| | | | | | | masks for all local ifunc syms. (allocate_dynrelocs): Don't use htab->relgot for ifunc. (ppc_elf_size_dynamic_sections): Likewise. (ppc_elf_relocate_section): Likewise.
* PR ld/13812Nick Clifton2013-03-272-2/+10
| | | | * scripttempl/avr.sc: Place trampolines before .progmem section.
* PR binutils/13409Nick Clifton2013-03-272-5/+11
| | | | | | * winduni.c (codepages[]): Use UTF-16LE. (wind_MultiByteToWideChar): Likewise. (wind_WideCharToMultiByte): Likewise.
* PR binutils/15068Nick Clifton2013-03-2729-96/+4941
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tic6x-dis.c: Add support for displaying 16-bit insns. * tic6xc-insn-formats.h (FLD): Add use of bitfield array. Add 16-bit opcodes. * tic6xc-opcode-table.h: Add 16-bit insns. * tic6x.h: Add support for 16-bit insns. * config/tc-tic6x.c (tic6x_try_encode): Add use of bitfields array. * gas/tic6x/insns16-d-unit.s: New test. * gas/tic6x/insns16-d-unit.d: Expected disassembly. * gas/tic6x/insns16-ddec.s: New test. * gas/tic6x/insns16-ddec.d: Expected disassembly. * gas/tic6x/insns16-dinc.s: New test. * gas/tic6x/insns16-dinc.d: Expected disassembly. * gas/tic6x/insns16-dind.s: New test. * gas/tic6x/insns16-dind.d: Expected disassembly. * gas/tic6x/insns16-doff4.s: New test. * gas/tic6x/insns16-doff4.d: Expected disassembly. * gas/tic6x/insns16-l-unit.s: New test. * gas/tic6x/insns16-l-unit.d: Expected disassembly. * gas/tic6x/insns16-lsd-unit.s: New test. * gas/tic6x/insns16-lsd-unit.d: Expected disassembly. * gas/tic6x/insns16-m-unit.s: New test. * gas/tic6x/insns16-m-unit.d: Expected disassembly. * gas/tic6x/insns16-s-unit-pcrel.s: New test. * gas/tic6x/insns16-s-unit-pcrel.d: Expected disassembly. * gas/tic6x/insns16-s-unit: New test. * gas/tic6x/insns16-s-unit.d: Expected disassembly.
* bfd/ChangeLog:willnewton2013-03-272-2/+9
| | | | | | | | | 2013-03-20 Will Newton <will.newton@linaro.org> * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a dynamic reloc for symbols with dynindx == -1. (allocate_dynrelocs_for_symbol): Avoid allocating space for a dynamic reloc for symbols with dynindx == -1.
* bfd/ChangeLog:willnewton2013-03-272-2/+12
| | | | | | | | | 2013-03-20 Will Newton <will.newton@linaro.org> * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a dynamic reloc for symbols with dynindx == -1. (allocate_dynrelocs_for_symbol): Avoid allocating space for a dynamic reloc for symbols with dynindx == -1.
* PR binutils/15206Alan Modra2013-03-262-1/+6
| | | | * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
* daily updateAlan Modra2013-03-261-1/+1
|
* oops - fix PR attributationNick Clifton2013-03-261-1/+1
|
* PR binutils/15205Nick Clifton2013-03-262-277/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer space before calling byte_get. (SAFE_BYTE_GET_AND_INC): New macro. (SAFE_SIGNED_BYTE_GET): New macro. (SAFE_SIGNED_BYTE_GET_AND_INC): New macro. (SAFE_BYTE_GET64): New macro. (process_extened_line_op): Use new macros. Use strnlen when appropriate. (fetch_indirect_string): Likewise. (get_FORM_name): Likewise. (decode_location_expression): Likewise. (read_and_display_attr_value): Likewise. (process_debug_info): Likewise. (display_debug_lines_raw): Likewise. (display_debug_lines_decoded): Likewise. (display_debug_pubnames): Likewise. (display_debug_macinfo): Likewise. (get_line_filename_and_dirname): Likewise. (display_debug_macro): Likewise. (display_loc_list): Likewise. (display_loc_list_dwo): Likewise. (display_debug_aranges): Likewise. (display_debug_ranges): Likewise. (frame_display_row): Likewise. (display_debug_frames): Likewise.
* PR gas/15295Nick Clifton2013-03-262-25/+65
| | | | | * listing.c (rebuffer_line): Rewrite to avoid seeking back to the start of the file each time.
* PR gas/15178Nick Clifton2013-03-262-1/+7
| | | | | * config/tc-sparc.h (ELF_TARGET_FORMAT): Set to elf32-sparc for FreeBSD targets.
* Fix typo in added CL entry.Tristan Gingold2013-03-261-1/+1
|
* gas/Tristan Gingold2013-03-267-14/+43
| | | | | | | | | | | | | | 2013-03-26 Douglas B Rupp <rupp@gnat.com> * config/tc-ia64.c (emit_one_bundle): Move last_slot adjustment after fixup. gas/testsuite/ 2013-03-26 Douglas B Rupp <rupp@adacore.com * gas/ia64/ia64.exp: Add new test reloc-mlx * gas/ia64/reloc-mlx.[sd]: New test for X-unit reloc. * gas/ia64/pcrel.d: Fix output for X-unit reloc.
* * elflink.c (_bfd_elf_add_default_symbol): Preserve sectionAlan Modra2013-03-262-2/+10
| | | | over _bfd_elf_merge_symbol calls.
* * elflink.c (elf_link_add_object_symbols): Add assertion forAlan Modra2013-03-262-1/+10
| | | | common override alignment check code. Formatting.
* daily updateAlan Modra2013-03-251-1/+1
|
* * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.Kai Tietz2013-03-252-1/+5
|
* PR binutils/15202Nick Clifton2013-03-254-301/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dwarf.c (read_leb128): Add END parameter. Do not read at or beyond end. (read_sleb128): Add END parameter. (read_uleb128): New function. (process_extended_line_op): Pass END to leb128 functions. (process_abbrev_section): Likewise. (decode_location_expression): Likewise. (read_and_display_attr_value): Likewise. (read_and_display_attr): Likewise. (process_debug_info): Likewise. (display_debug_lines_raw): Likewise. (display_debug_lines_decoded): Likewise. (display_debug_macinfo): Likewise. (get_line_filename_and_dirname): Likewise. (display_debug_macro): Likewise. (display_loc_list_dwo): Likewise. (display_debug_ranges): Likewise. * dwarf.h (read_leb128): Update prototype. * readelf.c (read_uleb128): Add END parameter. (decode_arm_unwind_bytecode): Pass END to read_uleb128. (decode_tic6x_unwind_bytecode): Likewise. (display_tag_value): New function. (display_arm_attribute): Add END parameter. Pass END to read_uleb128. Use display_tag_value. (display_gnu_attribute): Likewise. (display_power_gnu_attribute): Likewise. (display_sparc_gnu_attribute): Likewise. (display_mips_gnu_attribute): Likewise. (display_tic6x_attribute): Likewise. (process_attributes): Likewise. (display_raw_attribute): New function.
* * elflink.c (_bfd_elf_merge_symbol): Set old_alignment forAlan Modra2013-03-252-156/+121
| | | | | | | | | | | usual common symbols as well as for dynamic. Add poldbfd param. Save old bfd. Adjust callers. (_bfd_elf_add_default_symbol): Add poldbfd param. Pass "section" and "value" by value, not pointer. Adjust caller. (elf_link_add_object_symbols): Combine undef_bfd and old_bfd vars. Delete code to set same. Use old_bfd and old_alignment from _bfd_elf_merge_symbol instead. Add default symbol before alignment and size checks. Wrap overlong lines.
* * elflink.c (_bfd_elf_add_default_symbol): Delete "override" param.Alan Modra2013-03-252-23/+11
| | | | | (elf_link_add_object_symbols): Don't call _bfd_elf_add_default_symbol when override is true.
* * elflink.c (_bfd_elf_merge_symbol): Use local var holding valueAlan Modra2013-03-252-12/+15
| | | | of *sym_hash.
* * elflink.c (_bfd_elf_merge_symbol): Don't discard TLS symbols here.Alan Modra2013-03-252-13/+22
| | | | | | Wrap long lines. (elf_link_add_object_symbols): Discard TLS symbols for --just-syms early in symbol loop.
* * elf-bfd.h (struct elf_backend_data <merge_symbol>): Update proto.Alan Modra2013-03-255-53/+32
| | | | | | | | (_bfd_elf_init_reloc_shdr): Delete. * elf.c (_bfd_elf_init_reloc_shdr): Make static. * elf64-x86-64.c (elf_x86_64_merge_symbol): Trim parameters to just what is needed. * elflink.c (_bfd_elf_merge_symbol): Update bed->merge_symbol call.
* daily updateAlan Modra2013-03-241-1/+1
|
* daily updateAlan Modra2013-03-231-1/+1
|
* * elf-bfd.h (_bfd_elf_merge_symbol): Delete declaration.Alan Modra2013-03-234-43/+29
| | | | | | * elflink.c (_bfd_elf_merge_symbol): Make static. * elf32-sh-symbian.c (sh_symbian_relocate_section): Don't call _bfd_elf_merge_symbol, call _bfd_generic_link_add_one_symbol.
* PR ld/15270Alan Modra2013-03-222-6/+16
| | | | | | | | * elflink.c (elf_link_add_object_symbols): Don't set def_regular or ref_regular for BFD_PLUGIN owned syms, or have them affect def_dynamic/ref_dynamic. (_bfd_elf_fix_symbol_flags): Don't set def_regular for BFD_PLUGIN owned syms.
* src-release: fix version look up for bfd based projectsMike Frysinger2013-03-222-1/+6
|
* daily updateAlan Modra2013-03-221-1/+1
|
* PR binutils/15201Nick Clifton2013-03-221-0/+4
| | | | | * dwarf.c (display_debug_ranges): Add checks for reading beyond the end of the section.
* PR binutils/15157Nick Clifton2013-03-222-1/+7
| | | | | * readelf.c (apply_relocations): Catch relocations with negative offsets.
* Fix attribute section output on sparc.David S. Miller2013-03-222-0/+6
| | | | | | | bfd/ * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Set type of hwcaps attribute.
* PR ld/14902Nick Clifton2013-03-222-6/+11
| | | | | * elf32-h8300.c (elf32_h8_relax_delete_bytes): Fix off by one errors adjusting relocs and symbols.
* * ld-elf/init0.s: Add alloc attribute to .section directive.Nick Clifton2013-03-2211-10/+23
| | | | | | | | | | | | * ld-elf/fini1.s: Likewise. * ld-elf/fini2.s: Likewise. * ld-elf/fini3.s: Likewise. * ld-elf/finin.s: Likewise. * ld-elf/init0.s: Likewise. * ld-elf/init1.s: Likewise. * ld-elf/init2.s: Likewise. * ld-elf/init3.s: Likewise. * ld-elf/initn.s: Likewise.
* daily updatebinutils_latest_snapshotAlan Modra2013-03-211-1/+1
|
* gas/ChangeLog:willnewton2013-03-218-96/+53
| | | | | | | | | | | | | | | | | | | | 2013-03-21 Will Newton <will.newton@linaro.org> * config/tc-arm.c (encode_thumb32_addr_mode): Emit an error for all pc-relative str instructions in Thumb mode. gas/testsuite/ChangeLog: 2013-03-21 Will Newton <will.newton@linaro.org> * gas/arm/thumb2_relax.d: Strip out invalid pc-relative strs. * gas/arm/thumb2_relax.s: Likewise. * gas/arm/thumb32.d: Likewise. * gas/arm/thumb32.l: Likewise. * gas/arm/thumb32.s: Likewise. * gas/arm/thumb2_str-bad.d: New file. * gas/arm/thumb2_str-bad.l: Likewise. * gas/arm/thumb2_str-bad.s: Likewise.
* * elf32-h8300 (h8_relax_section): Add new relaxation of movNick Clifton2013-03-2122-83/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | @(disp:32,ERx) to mov @(disp:16,ERx). (R_H8_DISP32A16): New reloc. Comments added and corrected. * reloc.c (BFD_RELOC_H8_DISP32A16): New reloc. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * ld.texinfo (H8/300): Add description of relaxation of mov @(disp:32,ERx) to mov @(disp:16,ERx). * ld-h8300/h8300.exp: Add new relax-7 test on ELF. * ld-h8300/relax-2.s: Add other direction and .w/.l variants of mov insns. * ld-h8300/relax-2.d: Update expected disassembly. * ld-h8300/relax-7a.s: New: tests for mov @(disp:32,ERx) -> mov @(disp:16,ERx). * ld-h8300/relax-7b.s: New: Likewise. * ld-h8300/relax-7.d: New: expected disassembly. * config/tc-h8300.c (do_a_fix_imm): Add relaxation of mov @(disp:32,ERx) to mov @(disp:16,ERx) insns by new reloc R_H8_DISP32A16. * config/tc-h8300.h: Remove duplicated defines.
* PR gas/15282Nick Clifton2013-03-212-3/+19
| | | | | | * tc-avr.c (mcu_has_3_byte_pc): New function. (tc_cfi_frame_initial_instructions): Call it to find return address size.
* * coffgen.c (coff_real_object_p): Make global.Kai Tietz2013-03-214-10/+56
| | | | | | | | | * peicode.h (coff_real_object_p): Add prototype. (FILHDR): Defined for COFF_IMAGE_WITH_PE as external_PEI_IMAGE_hdr structure. (coff_swap_filehdr_in): Handle variable header-size. * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Just handle amount of directory-entiries as specified in pe-header.
* * pe-dll.c (process_def_file_and_drectve): Don't handle VCKai Tietz2013-03-212-2/+10
| | | | generated C++-symbols as stdcall/fastcall.
* PR sim/15286Nick Clifton2013-03-212-0/+20
| | | | | * elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale, iWMMXt and iWMMXt2 processors from attributes.
* * layout.cc (Layout::set_segment_offsets): Accept writable .textAlan Modra2013-03-212-1/+7
| | | | segment when omagic.
* * dwp.cc (Dwp_output_file::add_contribution): Avoid signed/unsignedAlan Modra2013-03-213-4/+9
| | | | | | comparison warning. * layout.cc (Layout::create_dynamic_symtab): Avoid "may be used uninitialized" warning.
* daily updateAlan Modra2013-03-201-1/+1
|
* PR gas/15082Nick Clifton2013-03-207-9/+30
| | | | | | | | | | | | | | | | * tic6x-opcode-table.h: Rename mpydp's specific operand type macro from ORREGD1324 to ORXREGD1324 and make it cross-path-able through tic6x_operand_xregpair operand coding type. Make mpydp instruction cross-path-able, ie: remove the FIXed 'x' opcode field, usu ORXREGD1324 for the src2 operand and remove the TIC6X_FLAG_NO_CROSS. * gas/tic6x/insns-bad-1.s: Remove test-case for mpydp with cross-path. * gas/tic6x/insns-bad-1.l: Update expected output. * gas/tic6x/insns-c674x.s: Add a test-case for mpydp with cross-path. * gas/tic6x/insns-c674x.d: Update expected output.