summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * ld-size/size.exp (build_tests <size-7, size-8>): PassAlan Modra2013-01-212-2/+7
| | | | --no-as-needed in cflags.
* daily updateAlan Modra2013-01-201-1/+1
|
* daily updateAlan Modra2013-01-191-1/+1
|
* Add HOSTING_SCRT0 for PIE testH.J. Lu2013-01-199-5/+39
| | | | | | | | | | | | | | | | | | | ld/ * Makefile.am (HOSTING_SCRT0): New. * configure.host (HOSTING_SCRT0): New. Used for PIE. * configure.in (HOSTING_SCRT0): New AC_SUBST. * Makefile.in: Regenerated. * configure: Likewise. ld/testsuite/ * config/default.exp (get_target_emul): Also set HOSTING_SCRT0. * lib/ld-lib.exp (default_ld_link): Use HOSTING_SCRT0 for -pie.
* daily updateAlan Modra2013-01-181-1/+1
|
* Resolve size relocation against non-zero TLS symbolH.J. Lu2013-01-1811-41/+102
| | | | | | | | | | | | | | | | | | | | | | | bfd/ * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for non-zero TLS symbol. (elf_i386_relocate_section): Resolve size relocation against non-zero TLS symbol. * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count for non-zero TLS symbol. (elf_x86_64_relocate_section): Resolve size relocation against non-zero TLS symbol. ld/testsuite/ * ld-size/size-10.rd: Updated. * ld-size/size-8.rd: Likewise. * ld-size/size32-2-i386.d: Likewise. * ld-size/size32-2-x32.d: Likewise. * ld-size/size32-2-x86-64.d: Likewise. * ld-size/size64-2-x32.d: Likewise. * ld-size/size64-2-x86-64.d: Likewise.
* gold: enable new dtags by defaultMike Frysinger2013-01-182-1/+5
| | | | | | | | | | | The "new" dtags options have been around for 14+ years, and for all the targets that gold supports, these flags have always existed. So enable them by default. Having behavior be different from ld.bfd isn't new, and this behavior is the "better" one, so there shouldn't be a problem based on that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ld: change --enable-new-dtags to only generate new dtagsMike Frysinger2013-01-187-11/+29
| | | | | | | The "new" dtags options have been around for 14+ years, so there shouldn't be a need to generate both new & old tags anymore. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Support size relocation only for ELFH.J. Lu2013-01-182-0/+13
| | | | | | | * config/tc-i386.c (reloc): Support size relocation only for ELF. (tc_i386_fix_adjustable): Likewise. (lex_got): Likewise. (tc_gen_reloc): Likewise.
* PR binutils/15026Nick Clifton2013-01-182-1/+12
| | | | | * addr2line.c (translate_addresses): When pretty printing, print unknown function names on the same line as unknown symbol names.
* Verify run-time size relocations if supportedH.J. Lu2013-01-1812-0/+103
| | | | | | | | | | | | | | | | | | * ld-size/size-7.out: New file. * ld-size/size-8.out: Likewise. * ld-size/size-9.out: Likewise. * ld-size/size-9.rd: Likewise. * ld-size/size-9a.c: Likewise. * ld-size/size-9b.c: Likewise. * ld-size/size-10.out: Likewise. * ld-size/size-10.rd: Likewise. * ld-size/size-10a.c: Likewise. * ld-size/size-10b.c: Likewise. * ld-size/size.exp (build_tests): Build libsize-9.so and libsize-10.so. Run-time size relocation tests if supported. (run_time_tests): New.
* Add size-1 and size-2 testsH.J. Lu2013-01-1810-0/+70
| | | | | | | | | | | | | | | * ld-size/size-1.c: New file. * ld-size/size-1.out: Likewise. * ld-size/size-1a.c: Likewise. * ld-size/size-1b.c: Likewise. * ld-size/size-2.c: Likewise. * ld-size/size-2.out: Likewise. * ld-size/size-2a.c: Likewise. * ld-size/size-2b.c: Likewise. * ld-size/size.exp (build_tests): Build libsize-1.so and libsize-2.so. (run_tests): Run size-1 and size-2.
* Add missing filesH.J. Lu2013-01-176-1/+42
|
* Count size relocation as PC-relative relocationH.J. Lu2013-01-174-2/+24
| | | | | | | | | | | | | | | | bfd/ * elf32-i386.c (elf_i386_check_relocs): Count size relocation as PC-relative relocation. * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation as PC-relative relocation. ld/testsuite/ * ld-size/size32-3-i386.d: New file. * ld-size/size32-3-x32.d: Likewise. * ld-size/size32-3-x86-64.d: Likewise. * ld-size/size32-3.s: Likewise.
* * powerpc.cc (Stub_table::find_plt_call_entry): Make typesAlan Modra2013-01-172-6/+12
| | | | | used in declaration and definition consistent. (Target_powerpc::symval_for_branch): Ditto.
* daily updateAlan Modra2013-01-171-1/+1
|
* include/opcode/Yufeng Zhang2013-01-1714-41/+585
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-01-17 Yufeng Zhang <yufeng.zhang@arm.com> * aarch64.h (aarch64_op): Remove OP_V_MOVI_B. opcodes/ 2013-01-17 Yufeng Zhang <yufeng.zhang@arm.com> * aarch64-asm.c (aarch64_ins_advsimd_imm_modified): Handle 8-bit MOVI. * aarch64-dis.c (aarch64_ext_advsimd_imm_modified): Likewise. * aarch64-opc.c (operand_general_constraint_met_p): For AARCH64_MOD_LSL, move the range check on the shift amount before the alignment check; change to call set_sft_amount_out_of_range_error instead of set_imm_out_of_range_error. * aarch64-tbl.h (QL_SIMD_IMM_B): Replace NIL with LSL. (aarch64_opcode_table): Remove the OP enumerator from the asimdimm 8-bit MOVI entry; change the 2nd operand from SIMD_IMM to SIMD_IMM_SFT. gas/ 2013-01-17 Yufeng Zhang <yufeng.zhang@arm.com> * config/tc-aarch64.c (output_operand_error_record): Change to output the out-of-range error message as value-expected message if there is only one single value in the expected range. (programmer_friendly_fixup): Remove the handling of 8-bit MOVI with LSL #0 as a programmer-friendly feature. gas/testsuite/ 2013-01-17 Yufeng Zhang <yufeng.zhang@arm.com> * gas/aarch64/diagnostic.l: Update. * gas/aarch64/movi.s: Add tests. * gas/aarch64/movi.d: Update. * gas/aarch64/programmer-friendly.s: Add comment.
* Add x86 size relocation support to gasH.J. Lu2013-01-1761-3/+1165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gas/ * config/tc-i386.c (reloc): Support BFD_RELOC_SIZE32. (tc_i386_fix_adjustable): Keep symbol for BFD_RELOC_32_SIZE and BFD_RELOC_64_SIZE relocations. (lex_got): Support "symbol@SIZE" and don't create GOT symbol for it. (tc_gen_reloc): Resolve BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64 relocations against local symbols. gas/testsuite/ * gas/i386/i386.exp: Run size-1, size-2, size-3, size-4, x86-64-size-1, x86-64-size-2, x86-64-size-3, x86-64-size-4, x86-64-size-5 and x86-64-size-inval-1. * gas/i386/size-1.d: New file. * gas/i386/size-1.s: Likewise. * gas/i386/size-2.d: Likewise. * gas/i386/size-2.s: Likewise. * gas/i386/size-3.d: Likewise. * gas/i386/size-3.s: Likewise. * gas/i386/size-4.d: Likewise. * gas/i386/size-4.s: Likewise. * gas/i386/x86-64-size-1.d: Likewise. * gas/i386/x86-64-size-2.d: Likewise. * gas/i386/x86-64-size-3.d: Likewise. * gas/i386/x86-64-size-4.d: Likewise. * gas/i386/x86-64-size-5.d: Likewise. * gas/i386/x86-64-size-5.s: Likewise. * gas/i386/x86-64-size-inval-1.l: Likewise. * gas/i386/x86-64-size-inval-1.s: Likewise. * gas/i386/ilp32/x86-64-size-1.d: Likewise. * gas/i386/ilp32/x86-64-size-2.d: Likewise. * gas/i386/ilp32/x86-64-size-3.d: Likewise. * gas/i386/ilp32/x86-64-size-4.d: Likewise. * gas/i386/ilp32/x86-64-size-5.d: Likewise. ld/testsuite/ * ld-size/size.exp: New file. * ld-size/size32-1-i386.d: Likewise. * ld-size/size32-1-x32.d: Likewise. * ld-size/size32-1-x86-64.d: Likewise. * ld-size/size32-1.s: Likewise. * ld-size/size32-2-i386.d: Likewise. * ld-size/size32-2-x32.d: Likewise. * ld-size/size32-2-x86-64.d: Likewise. * ld-size/size32-2.s: Likewise. * ld-size/size64-1-x32.d: Likewise. * ld-size/size64-1-x86-64.d: Likewise. * ld-size/size64-1.s: Likewise. * ld-size/size64-2-x32.d: Likewise. * ld-size/size64-2-x86-64.d: Likewise. * ld-size/size64-2.s: Likewise. * ld-size/size-3.c: Likewise. * ld-size/size-3.out: Likewise. * ld-size/size-3a.c: Likewise. * ld-size/size-3b.c: Likewise. * ld-size/size-3c.c: Likewise. * ld-size/size-4.out: Likewise. * ld-size/size-4a.c: Likewise. * ld-size/size-4b.c: Likewise. * ld-size/size-5.out: Likewise. * ld-size/size-5a.c: Likewise. * ld-size/size-5b.c: Likewise. * ld-size/size-6.out: Likewise. * ld-size/size-6a.c: Likewise. * ld-size/size-6b.c: Likewise. * ld-size/size-7.rd: Likewise. * ld-size/size-7a.c: Likewise. * ld-size/size-7b.c: Likewise. * ld-size/size-8.rd: Likewise. * ld-size/size-8a.c: Likewise. * ld-size/size-8b.c: Likewise.
* * objdump.c (dump_target_specific): Fix NULL pointer test.Alan Modra2013-01-172-1/+5
|
* 2013-01-16 Sriraman Tallam <tmsriram@google.com>Sriraman Tallam2013-01-172-1/+5
| | | | * testsuite/plugin_final_layout.cc: Fix comment.
* daily updateAlan Modra2013-01-161-1/+1
|
* 2013-01-16 Sriraman Tallam <tmsriram@google.com>Sriraman Tallam2013-01-163-1/+17
| | | | | | | | * layout.cc (Layout::layout): Do not do default sorting for text sections when section ordering is specified. (make_output_section): Ditto. * testsuite/plugin_final_layout.cc: Name the function sections to catch reordering issues.
* Update x86 size relocation checkH.J. Lu2013-01-163-31/+20
| | | | | | | | | | | * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32 check. (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32. * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32 and R_X86_64_SIZE64 check. (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32 nor R_X86_64_SIZE64.
* Add OPERAND_TYPE_IMM32_64H.J. Lu2013-01-164-2/+16
| | | | | | | * i386-gen.c (operand_type_init): Add OPERAND_TYPE_IMM32_64. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
* Add x86 size relocation support to bfdH.J. Lu2013-01-166-12/+123
| | | | | | | | | | | | | | | | | | | | | | | | * bfd-in2.h: Regenerated. * libbfd.h: Likewise. * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry. (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32. (elf_i386_check_relocs): Handle R_386_SIZE32. (elf_i386_gc_sweep_hook): Likewise. (elf_i386_relocate_section): Likewise. * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32 and R_X86_64_SIZE64 entries. (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64, (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32. (elf_x86_64_reloc_name_lookup): Likewise. (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and R_X86_64_SIZE64. (elf_x86_64_gc_sweep_hook): Likewise. (elf_x86_64_relocate_section): Likewise. * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64.
* Define R_386_SIZE32/R_X86_64_SIZE32/R_X86_64_SIZE64H.J. Lu2013-01-163-2/+9
| | | | | | * i386.h (R_386_SIZE32): Fill it. * x86-64.h (R_X86_64_SIZE32): Likewise. (R_X86_64_SIZE64): Likewise.
* * ld-plugin/lto.exp (lto-9.o, pr13229.o): Pass -finline.Alan Modra2013-01-162-2/+6
|
* * gas/ppc/htm.d: Ignore padding at end of section.Alan Modra2013-01-162-0/+5
|
* * config/tc-ppc.c (md_assemble <TE_PE>): Ignore line afterAlan Modra2013-01-162-3/+8
| | | | | finding some sort of toc syntax error, and break to avoid compiler uninit warning.
* daily updateAlan Modra2013-01-151-1/+1
|
* * configure.ac: Sync with GCC repo.Jan-Benedict Glaw2013-01-155-16/+118
| | | | | | * configure: Ditto. * Makefile.def: Ditto. * Makefile.in: Ditto.
* Increment length by 1 if the relocation token is removedH.J. Lu2013-01-159-4/+40
| | | | | | | | | | | | | | | | | | | gas/ PR gas/15019 * config/tc-i386.c (lex_got): Increment length by 1 if the relocation token is removed. gas/testsuite/ PR gas/15019 * gas/i386/reloc32.s: Add tests for "xtrn@got -/+ 4". * gas/i386/reloc64.s: Likewise. * gas/i386/ilp32/reloc64.s: Likewise. * gas/i386/reloc32.d: Updated. * gas/i386/reloc64.d: Likewise. * gas/i386/ilp32/reloc64.d: Likewise.
* Define R_X86_64_standard with R_X86_64_RELATIVE64H.J. Lu2013-01-152-1/+6
| | | | | * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE with R_X86_64_RELATIVE64.
* PR binutils/15018Alan Modra2013-01-152-6/+10
| | | | | | * stabs.c (parse_stab_members): Always set physname here to avoid gcc warning.. (parse_stab_argtypes): ..and don't duplicate the init here.
* * config/tc-v850.c (md_assemble): Allow signed values forNick Clifton2013-01-1510-13/+37
| | | | | | | | | | | | | | V850E_IMMEDIATE. * gas/v850/basic.exp: Allow for variations in reloc names. * gas/v850/split-lo16.d: Likewise. * gas/v850/v850e1.s: Add more tests of the PREPARE insn. * gas/v850/v850e1.d: Update expected disassembly. * v850-dis.c (get_operand_value): Sign extend V850E_IMMEDIATE values. * v850-opc.c (IMM16LO): Add V850_OPERAND_SIGNED attribute.
* Fix spelling typo.Nick Clifton2013-01-152-4/+7
|
* bfd/Alan Modra2013-01-1510-26/+57
| | | | | | | | | | | | | | * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to plt-thread-safe. gold/ * powerpc.cc (Target_powerpc::do_relax): Default shared libs to plt-thread-safe. ld/testsuite/ * ld-powerpc/tlsso.d: Adjust for plt-thread-safe stubs. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlstocso.d: Likewise. * ld-powerpc/tlstocso.g: Likewise.
* * ld-plugin/lto-16a.d: Match powerpc64 function symbol type.Alan Modra2013-01-155-4/+11
| | | | | | * ld-plugin/lto-16b.d: Likewise. * ld-plugin/lto-17a.d: Likewise. * ld-plugin/lto-17b-2.d: Likewise.
* * testsuite/Makefile.am (final_layout_script.lds): Handle .got section.Alan Modra2013-01-143-2/+7
| | | | * testsuite/Makefile.in: Regenerate.
* daily updateAlan Modra2013-01-141-1/+1
|
* * ld.texinfo (-Tldata-segment): Describe.Alan Modra2013-01-145-0/+30
| | | | | | | * ldlex.h (OPTION_TLDATA_SEGMENT): New enum value. * lexsup.c (ld_options): Add -Tldata-segment. (parse_args): Handle OPTION_TLDATA_SEGMENT. * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
* * ld-elf/pr14926.d: Disable for d10v, msp, xstormy.Alan Modra2013-01-143-1/+8
| | | | | * ld-elf/sec-to-seg.exp: Choose correct variant output to suit updated microblaze page size.
* PR binutils/14813Alan Modra2013-01-146-11/+21
| | | | | | | | | * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06. (memory_bclose): Likewise. Return 0 on success. * cache.c (cache_bclose): Likewise. * opncls.c (opncls_bclose, bfd_close): Likewise. * vms-lib.c (vms_lib_bclose): Likewise. * libbfd.h: Regenerate.
* * gas/v850/basic.exp (reloc part 1): Pass -mgcc-abi to gas.Alan Modra2013-01-143-3/+8
| | | | * gas/v850/split-lo16.d: Likewise.
* * testsuite/Makefile.am (MOSTLYCLEANFILES): Add various output files.Alan Modra2013-01-143-25/+46
| | | | * testsuite/Makefile.in: Regenerate.
* * metag-dis.c (REG_WIDTH): Increase to 64.Nick Clifton2013-01-144-7/+15
| | | | * gas/metag/metadsp21.d: Fix expected MMOV disassembly.
* * gas/ppc/htm.s: Use .text rather than .section ".text".Alan Modra2013-01-145-4/+11
| | | | | | * gas/ppc/power8.s: Likewise. * gas/ppc/htm.d: Don't match file format. * gas/ppc/power8.d: Likewise.
* daily updateAlan Modra2013-01-131-1/+1
|
* * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.Alan Modra2013-01-133-51/+45
| | | | | | | | | | | Add ref_dynamic_nonweak. * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete. (_bfd_elf_merge_symbol): Don't call above function. Move setting of ref_dynamic_nonweak and dynamic_def earlier. Don't clear dynamic_def. (elf_link_add_object_symbols): Delete redundant "override" test. Don't set dynamic_def here. (elf_link_output_extsym): Update.
* Set bfd errror for normal and TLS symbol accessH.J. Lu2013-01-133-0/+8
| | | | | | * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for normal and TLS symbol access. * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.