summaryrefslogtreecommitdiff
path: root/bfd
Commit message (Collapse)AuthorAgeFilesLines
* bfd/Tristan Gingold2013-07-243-56/+68
| | | | | | | | | | | | | | | | | | | | | | | | 2013-07-24 Tristan Gingold <gingold@adacore.com> * coff-rs6000.c (xcoff_howto_table): Fix masks and pc_relative for R_RBR. Add numbers in comments. (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_PPC_B16. * coff64-rs6000.c: Likewise. gas/ 2013-07-24 Tristan Gingold <gingold@adacore.com> * config/tc-ppc.c (md_apply_fix): Adjust BFD_RELOC_PPC_B16 on xcoff targets. gas/testsuite/ 2013-07-24 Tristan Gingold <gingold@adacore.com> * gas/ppc/test2xcoff32.s, gas/ppc/test2xcoff32.d: New files * gas/ppc/ppc.exp: Add new test. * gas/ppc/xcoff-br16-1.s, gas/ppc/xcoff-br16-1.d, gas/ppc/xcoff-br16-2.s, gas/ppc/xcoff-br16-2.d: New files * gas/ppc/aix.exp: Add new tests.
* daily updateAlan Modra2013-07-241-1/+1
|
* daily updateAlan Modra2013-07-231-1/+1
|
* daily updateAlan Modra2013-07-221-1/+1
|
* daily updateAlan Modra2013-07-211-1/+1
|
* PR ld/15762Alan Modra2013-07-202-1/+8
| | | | | | PR ld/12761 * elflink.c (elf_link_add_object_symbols): Don't clobber .gnu.warning.symbol sections when shared.
* daily updateAlan Modra2013-07-201-1/+1
|
* * elf32-rx.c (rx_elf_relocate_section): Fix typo: moveNick Clifton2013-07-192-1/+6
| | | | saw_subtract from R_RX_OPdiv to R_RX_OPneg.
* daily updateAlan Modra2013-07-191-1/+1
|
* PR ld/15721Nick Clifton2013-07-182-12/+21
| | | | | | | | * elf32-msp430.c (R_MSP430_10_PCREL): Use 10-bit source and destination masks. * R_MSP430_2X_PCREL: Likewise. * R_MSP430X_10_PCREL: Likewise. * R_MSP430X_2X_PCREL: Likewise.
* * elf32-arm.c (arm_type_of_stub): Don't use ST_BRANCH_TO_ARM forNick Clifton2013-07-182-0/+20
| | | | | | | | thumb only targets. (elf32_arm_final_link_relocate): Likewise. * ld-arm/thumb-b-lks-sym.d: Updated to be more flexible. * ld-arm/thumb-bl-lks-sym.d: Likewise.
* * mach-o.c (mach_o_section_name_xlat dw): Add entry forNick Clifton2013-07-182-0/+8
| | | | .debug_gdb_scripts
* * elf32-arm.c (elf32_arm_stub_long_branch_arm_nacl): New variable.Nick Clifton2013-07-184-18/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (elf32_arm_stub_long_branch_arm_nacl_pic): New variable. (arm_build_one_stub): Increase MAXRELOCS to 3. (arm_type_of_stub): Use them if GLOBALS->nacl_p. (struct elf32_arm_link_hash_table): Give add_stub_section member's pointee type a third argument. (elf32_arm_create_or_find_stub_sec): Update caller. (elf32_arm_size_stubs): Update argument type. * bfd-in.h (elf32_arm_size_stubs): Update decl. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * emultempl/armelf.em (elf32_arm_add_stub_section): Take third argument ALIGNMENT_POWER, use it instead of constant 3. * ld-arm/farcall-arm-nacl.d: New file. * ld-arm/farcall-arm-nacl-pic.d: New file. * ld-arm/farcall-data-nacl.d: New file. * ld-arm/arm-elf.exp (armeabitests_common): Add extra element to "action" lists for those cases to use a different dump file for NaCl targets. Massage $armeabitests_common to drop the extra element or the one before it, depending on [istarget "arm*-*-nacl*"]. * ld-arm/arm-elf.exp (armelftests_common): Move all "Cortex-A8 erratum fix", Thumb-only and interworking cases to ... (armelftests_nonacl): ... here. (armeabitests_common): Move all "erratum 760522 fix", Thumb-only and interworking cases to ... (armeabitests_nonacl): ... here.
* daily updateAlan Modra2013-07-181-1/+1
|
* daily updateAlan Modra2013-07-171-1/+1
|
* daily updateAlan Modra2013-07-161-1/+1
|
* include/elf/Maciej W. Rozycki2013-07-152-23/+28
| | | | | | | | | | | | | | | | | | | * mips.h (Tag_GNU_MIPS_ABI_FP): Remove comment. (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE, Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT, Val_GNU_MIPS_ABI_FP_64): New enum. bfd/ * elfxx-mips.c (mips_elf_merge_obj_attributes): Replace hardcoded magic numbers with enum values. binutils/ * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic numbers with enum values. gdb/ * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic numbers with enum values.
* daily updateAlan Modra2013-07-151-1/+1
|
* daily updateAlan Modra2013-07-141-1/+1
|
* daily updateAlan Modra2013-07-131-1/+1
|
* bfd/Roland McGrath2013-07-122-1/+25
| | | | | | | | * reloc.c: Add BFD_RELOC_390_PC12DBL, BFD_RELOC_390_PLT12DBL, BFD_RELOC_390_PC24DBL, BFD_RELOC_390_PLT24DBL (should have been added here with 2013-07-05 elf32-s390.c change). * bfd-in2.h: Regenerate (no-op). * libbfd.h: Regenerate (no-op).
* include/elf/Maciej W. Rozycki2013-07-122-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mips.h (EF_MIPS_NAN2008): New macro. bfd/ * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Handle EF_MIPS_NAN2008. (_bfd_mips_elf_print_private_bfd_data): Likewise. binutils/ * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008. gas/ * config/tc-mips.c (mips_flag_nan2008): New variable. (options): Add OPTION_NAN enum value. (md_longopts): Handle it. (md_parse_option): Likewise. (s_nan): New function. (mips_elf_final_processing): Handle EF_MIPS_NAN2008. (md_show_usage): Add -mnan. * doc/as.texinfo (Overview): Add -mnan. * doc/c-mips.texi (MIPS Opts): Document -mnan. (MIPS NaN Encodings): New node. Document .nan directive. (MIPS-Dependent): List the new node. gas/testsuite/ * gas/mips/nan-2008-1.d: New test. * gas/mips/nan-2008-2.d: New test. * gas/mips/nan-2008-3.d: New test. * gas/mips/nan-2008-4.d: New test. * gas/mips/nan-legacy-1.d: New test. * gas/mips/nan-legacy-2.d: New test. * gas/mips/nan-legacy-3.d: New test. * gas/mips/nan-legacy-4.d: New test. * gas/mips/nan-legacy-5.d: New test. * gas/mips/nan-error-1.l: New list test. * gas/mips/nan-error-2.l: New list test. * gas/mips/nan-2008-override.s: New test source. * gas/mips/nan-2008.s: New test source. * gas/mips/nan-legacy-override.s: New test source. * gas/mips/nan-legacy.s: New test source. * gas/mips/nan-error-1.s: New test source. * gas/mips/nan-error-2.s: New test source. * gas/mips/mips.exp: Run the new tests. ld/testsuite/ * ld-mips-elf/nan-2008.d: New test. * ld-mips-elf/nan-legacy.d: New test. * ld-mips-elf/nan-mixed-1.d: New test. * ld-mips-elf/nan-mixed-2.d: New test. * ld-mips-elf/nan-2008.s: New test source. * ld-mips-elf/nan-legacy.s: New test source.
* daily updateAlan Modra2013-07-121-1/+1
|
* daily updateAlan Modra2013-07-111-1/+1
|
* daily updateAlan Modra2013-07-101-1/+1
|
* 2013-07-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold2013-07-092-141/+26
| | | | | | | | | | | | * vms-alpha.c (struct vms_private_data_struct): Remove flag_hash_long_names and flag_show_after_trunc. (hash_string): Remove. (_bfd_vms_length_hash_symbol): Remove. (alpha_vms_write_exec): Remove call to _bfd_vms_length_hash_symbol. (_bfd_vms_write_egsd): Likewise. Rewrite condition. (_bfd_vms_write_ehdr): Remove code that set removed flags. (_bfd_vms_write_etir): Remove call to _bfd_vms_length_hash_symbol. (vms_bfd_is_local_label_name): Remove trace call.
* 2013-07-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold2013-07-094-69/+35
| | | | | | | * hosts/alphavms.h: Include config.h and ansidecl.h, remove useless macros. * configure.com: Adjust to match changes in configure. * makefile.vms (OBJS): Update list.
* daily updateAlan Modra2013-07-091-1/+1
|
* daily updateAlan Modra2013-07-081-1/+1
|
* daily updateAlan Modra2013-07-071-1/+1
|
* daily updateAlan Modra2013-07-061-1/+1
|
* 2013-07-05 Tristan Gingold <gingold@adacore.com>Tristan Gingold2013-07-052-1/+6
| | | | | * coffcode.h (coff_write_object_contents): Use ".ovrflo" name for overflow sections.
* 2013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2013-07-052-0/+61
| | | | | | | | | | | | | | bfd/ * elf32-s390.c: Rewrite GOT accesses using larl if possible. * elf64-s390.c: Likewise. ld/testsuite/ * ld-s390/gotreloc-1.s: New file. * ld-s390/gotreloc-1.ver: New file. * ld-s390/gotreloc_31-1.dd: New file. * ld-s390/gotreloc_64-1.dd: New file. * ld-s390/s390.exp: Run the new tests. Run 31 bit tests also on 64 bit.
* 2013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2013-07-055-3/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | opcodes/ * s390-opc.c (J12_12, J24_24): New macros. (INSTR_MII_UPI): Rename to INSTR_MII_UPP. (MASK_MII_UPI): Rename to MASK_MII_UPP. * s390-opc.txt: Rename MII_UPI to MII_UPP for bprp instruction. include/elf/ * s390.h: Add new relocs R_390_PC12DBL, R_390_PLT12DBL, R_390_PC24DBL, and R_390_PLT24DBL. gas/testsuite/ * gas/s390/zarch-zEC12.s: Change bprp second operand and add variants requiring relocations. * gas/s390/zarch-zEC12.d: Likewise. gas/ * config/tc-s390.c (md_gather_operands, md_apply_fix): Support new relocs. bfd/ * elf32-s390.c: Add new relocation definitions R_390_PC12DBL, R_390_PLT12DBL, R_390_PC24DBL, and R_390_PLT24DBL. (elf_s390_reloc_type_lookup, elf_s390_check_relocs) (elf_s390_gc_sweep_hook, elf_s390_relocate_section): Support new relocations. * elf64-s390.c: See elf32-s390.c * bfd-in2.h: Add new relocs to enum bfd_reloc_code_real. * libbfd.h: Add new reloc strings.
* daily updateAlan Modra2013-07-051-1/+1
|
* daily updateAlan Modra2013-07-041-1/+1
|
* [AArch64] Tidy up switch statements in elfnn-aarch64.cMarcus Shawcroft2013-07-032-30/+38
|
* * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't hide .TOC.Alan Modra2013-07-032-6/+10
| | | | | when relocatable. Don't change root.type or type here. (ppc64_elf_set_toc): Set type of .TOC. to STT_OBJECT.
* bfd/Alan Modra2013-07-032-43/+77
| | | | | | | | | | | | * elf64-ppc.c (struct ppc_stub_hash_entry): Delete "addend". (ppc64_elf_size_stubs): Don't set "addend". (ppc64_elf_relocate_section): Don't allow calls via toc-adjusting stubs without a following nop even in an executable, except for self-calls and both libc_start_main and .libc_start_main. gold/ * powerpc.cc (Target_powerpc::Relocate::relocate): Update self-call comment.
* * elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.".Alan Modra2013-07-032-1/+12
|
* daily updateAlan Modra2013-07-031-1/+1
|
* 2013-07-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2013-07-022-0/+6
| | | | | * coff-rs6000.c (xcoff_find_nearest_line_discriminator): Add missing line.
* 2013-07-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2013-07-022-0/+27
| | | | | * vms-alpha.c (_bfd_generic_find_nearest_line_discriminator): Define. (_bfd_vms_find_nearest_line_discriminator): New function.
* 2013-07-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2013-07-022-8/+13
| | | | * coff-rs6000.c (xcoff_create_csect_from_smclas): Handle more smclas.
* 2013-07-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2013-07-022-1/+22
| | | | | * coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function. (rs6000coff_vec): Reference it.
* [AArch64] Fix creation of .got and placement of _GLOBAL_OFFSET_TABLE_Marcus Shawcroft2013-07-022-19/+79
|
* [AArch64] Adjust testcases for move of &_DYNAMIC to got[0].Marcus Shawcroft2013-07-021-0/+12
|
* bfd/Alan Modra2013-07-022-7/+13
| | | | | | | * elf64-ppc.c (ppc64_elf_relocate_section): Set "relocation" for .TOC. after relocatable check. gas/ * config/tc-ppc.c (ppc_elf_adjust_symtab): Don't make .TOC. weak.
* daily updateAlan Modra2013-07-021-1/+1
|
* bfd/Alan Modra2013-07-013-16/+49
| | | | | | | | | | | | | | | | | | | | | | * elf64-ppc.h (ppc64_elf_toc): Delete. (ppc64_elf_set_toc): Declare. * elf64-ppc.c (ppc64_elf_toc_reloc): Replace call to ppc64_elf_toc with call the ppc64_elf_set_toc. (ppc64_elf_toc_ha_reloc, ppc64_elf_toc64_reloc): Likewise. (ppc64_elf_start_multitoc_partition): Likewise. (struct ppc_link_hash_table): Delete dot_toc_dot. Replace all uses with elf.hgot. (ppc64_elf_process_dot_syms): Don't make a fake function descriptor for ".TOC.". (ppc64_elf_check_relocs): Mark sections with a reference to .TOC. as needing a toc pointer. (ppc64_elf_size_stubs): Don't set dot_toc_dot here. (ppc64_elf_set_toc): Rename from ppc64_elf_toc. Add info param. Set elf.hgot value. ld/ * emultempl/ppc64elf.em: (ppc_layout_sections_again): Call ppc64_elf_set_toc rather than ppc64_elf_toc/_bfd_set_gp_value. (gld${EMULATION_NAME}_after_allocation): Likewise.