1. 11 Nov, 2013 1 commit
  2. 07 Nov, 2013 1 commit
    • Roland McGrath's avatar
      Set CPU type in BFD backend for x86_64-nacl* and i?86-nacl* targets · 26812141
      Roland McGrath authored
      bfd/
      	* archures.c (bfd_mach_i386_nacl): Fix definition so it doesn't
      	collide with bfd_mach_l1om.
      	* bfd-in2.h: Regenerate.
      
      	* elf32-i386.c (elf32_i386_nacl_elf_object_p): New function.
      	(elf_backend_object_p): Use that in elf32-i386-nacl definition.
      	* elf64-x86-64.c (elf64_x86_64_nacl_elf_object_p): New function.
      	(elf_backend_object_p): Use that in elf64-x86-64-nacl definition.
      	(elf32_x86_64_nacl_elf_object_p): New function.
      	(elf_backend_object_p): Use that in elf32-x86-64-nacl definition.
      
      binutils/
      	* objdump.c (dump_dwarf): Grok bfd_mach_x86_64_nacl and
      	bfd_mach_x64_32_nacl as equivalent to bfd_mach_x86_64.
      
      ld/testsuite/
      	* ld-x86-64/x86-64.exp (mixed1, mixed2): Loosen error string match
      	so it accepts "i386:nacl" in place of "i386".
      	* ld-x86-64/ilp32-2.d: Likewise.
      	* ld-x86-64/ilp32-3.d: Likewise.
      	* ld-x86-64/lp64-2.d: Likewise.
      	* ld-x86-64/lp64-3.d: Likewise.
      
      (cherry picked from commit 64b384e1e821cedccefa24f6d5bb82d353546ca1)
      26812141
  3. 01 Nov, 2013 1 commit
  4. 29 Oct, 2013 1 commit
  5. 17 Oct, 2013 1 commit
    • Alan Modra's avatar
      PR 16056 · f66c0e4c
      Alan Modra authored
      	* elf.c (copy_elf_program_header): Only consider SEC_ALLOC sections
      	when finding lowest_section.
      f66c0e4c
  6. 09 Oct, 2013 3 commits
    • Roland McGrath's avatar
      bfd/ · 70513f8e
      Roland McGrath authored
      	* elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Cast switch
      	expression to int to silence over-eager compiler warnings.
      70513f8e
    • Roland McGrath's avatar
      bfd/ · ee895fb2
      Roland McGrath authored
      	* xcofflink.c (_bfd_xcoff_bfd_final_link): Don't touch EREL in
      	loop that doesn't use (or initialize) it.
      ee895fb2
    • Roland McGrath's avatar
      bfd/ · 85da0456
      Roland McGrath authored
      	* elfxx-tilegx.c (tilegx32_plt_tail_entry, tilegx32_plt_tail_entry):
      	Move second const qualifier so it applies to the pointer.
      85da0456
  7. 05 Oct, 2013 1 commit
    • Richard Sandiford's avatar
      bfd/ · 1a45ade0
      Richard Sandiford authored
      2013-10-05  Gregory Fong  <gregory.0xf0@gmail.com>
      
      	* elfxx-mips.c (mips_elf_create_got_section): Hide
      	_GLOBAL_OFFSET_TABLE_.
      
      ld/testsuite/
      2013-10-05  Gregory Fong  <gregory.0xf0@gmail.com>
      
      	* ld-mips-elf/eh-frame5.d, ld-mips-elf/jalx-2.dd,
      	ld-mips-elf/mips-elf.exp, ld-mips-elf/mips16-pic-2.ad,
      	ld-mips-elf/mips16-pic-2.nd, ld-mips-elf/pic-and-nonpic-3a.dd,
      	ld-mips-elf/pic-and-nonpic-3b.ad, ld-mips-elf/pic-and-nonpic-3b.dd,
      	ld-mips-elf/pic-and-nonpic-3b.nd, ld-mips-elf/pic-and-nonpic-4b.ad,
      	ld-mips-elf/pic-and-nonpic-4b.nd, ld-mips-elf/pic-and-nonpic-4b.rd,
      	ld-mips-elf/pic-and-nonpic-5b.ad, ld-mips-elf/pic-and-nonpic-5b.nd,
      	ld-mips-elf/pic-and-nonpic-6-n32.ad,
      	ld-mips-elf/pic-and-nonpic-6-n32.dd,
      	ld-mips-elf/pic-and-nonpic-6-n32.nd,
      	ld-mips-elf/pic-and-nonpic-6-n64.ad,
      	ld-mips-elf/pic-and-nonpic-6-n64.dd,
      	ld-mips-elf/pic-and-nonpic-6-n64.nd,
      	ld-mips-elf/pic-and-nonpic-6-o32.ad,
      	ld-mips-elf/pic-and-nonpic-6-o32.dd,
      	ld-mips-elf/pic-and-nonpic-6-o32.nd, ld-mips-elf/rel32-n32.d,
      	ld-mips-elf/rel32-o32.d, ld-mips-elf/rel64.d,
      	ld-mips-elf/tls-multi-got-1.got, ld-mips-elf/tls-multi-got-1.r,
      	ld-mips-elf/tlsdyn-o32-1.d, ld-mips-elf/tlsdyn-o32-1.got,
      	ld-mips-elf/tlsdyn-o32-2.d, ld-mips-elf/tlsdyn-o32-2.got,
      	ld-mips-elf/tlsdyn-o32-3.d, ld-mips-elf/tlsdyn-o32-3.got,
      	ld-mips-elf/tlsdyn-o32.d, ld-mips-elf/tlsdyn-o32.got,
      	ld-mips-elf/tlslib-o32-ver.got, ld-mips-elf/tlslib-o32.got: Update
      	for removal of _GLOBAL_OFFSET_TABLE_ from .dynsym.
      1a45ade0
  8. 04 Oct, 2013 1 commit
    • Will Newton's avatar
      aarch64: Add support for GNU indirect functions. · 8bfafef5
      Will Newton authored
      Add support for STT_GNU_IFUNC symbols to the AArch64 bfd backend. The tests
      are ported from the ld-ifunc tests but are enabled for cross builds so can
      be run easily without hardware or a simulator.
      
      bfd/ChangeLog:
      
      2013-10-04  Will Newton  <will.newton@linaro.org>
      
      	* configure: Regenerate.
      	* configure.in: Build elf-ifunc.o for AArch64.
      	* elfnn-aarch64.c: Include objalloc.h.
      	(elfNN_aarch64_local_htab_hash): New function.
      	(elfNN_aarch64_local_htab_eq): New function.
      	(elfNN_aarch64_get_local_sym_hash): New function.
      	(elfNN_aarch64_link_hash_table_create): Initialize local STT_GNU_IFUNC
      	symbol hash.
      	(elfNN_aarch64_hash_table_free): Free local STT_GNU_IFUNC symbol hash.
      	(elfNN_aarch64_final_link_relocate): Add sym argument.  Add support
      	for handling STT_GNU_IFUNC symbols.
      	(elfNN_aarch64_gc_sweep_hook): Add support for garbage collecting
      	references to STT_GNU_IFUNC symbols.
      	(elfNN_aarch64_adjust_dynamic_symbol): Add support for handling
      	STT_GNU_IFUNC symbols.
      	(elfNN_aarch64_check_relocs): Add support for handling STT_GNU_IFUNC
      	symbols.  Ensure we don't increase plt.refcount from -1 to 0.
      	(elfNN_aarch64_post_process_headers): Call _bfd_elf_set_osabi.
      	(elfNN_aarch64_is_function_type): Remove function.
      	(elfNN_aarch64_allocate_dynrelocs): Handle STT_GNU_IFUNC symbols.
      	(elfNN_aarch64_allocate_ifunc_dynrelocs): New function.
      	(elfNN_aarch64_allocate_local_dynrelocs): New function.
      	(elfNN_aarch64_allocate_local_ifunc_dynrelocs): New function.
      	(elfNN_aarch64_size_dynamic_sections): Call
      	elfNN_aarch64_allocate_local_dynrelocs.
      	(elfNN_aarch64_create_small_pltn_entry): Add info argument.
      	Add support for creating .iplt entries for STT_GNU_IFUNC symbols.
      	(elfNN_aarch64_finish_dynamic_symbol): Add support for handling
      	STT_GNU_IFUNC symbols and .iplt.
      	(elfNN_aarch64_finish_local_dynamic_symbol): New function.
      	(elfNN_aarch64_finish_dynamic_sections): Call
      	elfNN_aarch64_finish_local_dynamic_symbol.
      
      ld/ChangeLog:
      
      2013-10-04  Will Newton  <will.newton@linaro.org>
      
      	* emulparams/aarch64elf.sh: Add IREL_IN_PLT.
      	* emulparams/aarch64elf32.sh: Likewise.
      
      ld/testsuite/ChangeLog:
      
      2013-10-04  Will Newton  <will.newton@linaro.org>
      
      	* ld-ifunc/ifunc.exp: Enable ifunc tests for AArch64.
      	* ld-aarch64/aarch64-elf.exp: Run ifunc tests.
      	* ld-aarch64/ifunc-1-local.d: New file.
      	* ld-aarch64/ifunc-1-local.s: Likewise.
      	* ld-aarch64/ifunc-1.d: Likewise.
      	* ld-aarch64/ifunc-1.s: Likewise.
      	* ld-aarch64/ifunc-10.d: Likewise.
      	* ld-aarch64/ifunc-10.s: Likewise.
      	* ld-aarch64/ifunc-11.d: Likewise.
      	* ld-aarch64/ifunc-11.s: Likewise.
      	* ld-aarch64/ifunc-12.d: Likewise.
      	* ld-aarch64/ifunc-12.s: Likewise.
      	* ld-aarch64/ifunc-13.d: Likewise.
      	* ld-aarch64/ifunc-13a.s: Likewise.
      	* ld-aarch64/ifunc-13b.s: Likewise.
      	* ld-aarch64/ifunc-14a.d: Likewise.
      	* ld-aarch64/ifunc-14a.s: Likewise.
      	* ld-aarch64/ifunc-14b.d: Likewise.
      	* ld-aarch64/ifunc-14b.s: Likewise.
      	* ld-aarch64/ifunc-14c.d: Likewise.
      	* ld-aarch64/ifunc-14c.s: Likewise.
      	* ld-aarch64/ifunc-14d.d: Likewise.
      	* ld-aarch64/ifunc-14e.d: Likewise.
      	* ld-aarch64/ifunc-14f.d: Likewise.
      	* ld-aarch64/ifunc-15.d: Likewise.
      	* ld-aarch64/ifunc-15.s: Likewise.
      	* ld-aarch64/ifunc-16.d: Likewise.
      	* ld-aarch64/ifunc-16.s: Likewise.
      	* ld-aarch64/ifunc-17a.d: Likewise.
      	* ld-aarch64/ifunc-17a.s: Likewise.
      	* ld-aarch64/ifunc-17b.d: Likewise.
      	* ld-aarch64/ifunc-17b.s: Likewise.
      	* ld-aarch64/ifunc-18a.d: Likewise.
      	* ld-aarch64/ifunc-18a.s: Likewise.
      	* ld-aarch64/ifunc-18b.d: Likewise.
      	* ld-aarch64/ifunc-18b.s: Likewise.
      	* ld-aarch64/ifunc-19a.d: Likewise.
      	* ld-aarch64/ifunc-19a.s: Likewise.
      	* ld-aarch64/ifunc-19b.d: Likewise.
      	* ld-aarch64/ifunc-19b.s: Likewise.
      	* ld-aarch64/ifunc-2-local.d: Likewise.
      	* ld-aarch64/ifunc-2-local.s: Likewise.
      	* ld-aarch64/ifunc-2.d: Likewise.
      	* ld-aarch64/ifunc-2.s: Likewise.
      	* ld-aarch64/ifunc-20.d: Likewise.
      	* ld-aarch64/ifunc-20.s: Likewise.
      	* ld-aarch64/ifunc-3.s: Likewise.
      	* ld-aarch64/ifunc-3a.d: Likewise.
      	* ld-aarch64/ifunc-3b.d: Likewise.
      	* ld-aarch64/ifunc-4.d: Likewise.
      	* ld-aarch64/ifunc-4.s: Likewise.
      	* ld-aarch64/ifunc-4a.d: Likewise.
      	* ld-aarch64/ifunc-5-local.s: Likewise.
      	* ld-aarch64/ifunc-5.s: Likewise.
      	* ld-aarch64/ifunc-5a-local.d: Likewise.
      	* ld-aarch64/ifunc-5a.d: Likewise.
      	* ld-aarch64/ifunc-5b-local.d: Likewise.
      	* ld-aarch64/ifunc-5b.d: Likewise.
      	* ld-aarch64/ifunc-5r-local.d: Likewise.
      	* ld-aarch64/ifunc-6.s: Likewise.
      	* ld-aarch64/ifunc-6a.d: Likewise.
      	* ld-aarch64/ifunc-6b.d: Likewise.
      	* ld-aarch64/ifunc-7.s: Likewise.
      	* ld-aarch64/ifunc-7a.d: Likewise.
      	* ld-aarch64/ifunc-7b.d: Likewise.
      	* ld-aarch64/ifunc-7c.d: Likewise.
      	* ld-aarch64/ifunc-8.d: Likewise.
      	* ld-aarch64/ifunc-8a.s: Likewise.
      	* ld-aarch64/ifunc-8b.s: Likewise.
      	* ld-aarch64/ifunc-9.d: Likewise.
      	* ld-aarch64/ifunc-9.s: Likewise.
      8bfafef5
  9. 25 Sep, 2013 1 commit
  10. 20 Sep, 2013 1 commit
  11. 18 Sep, 2013 1 commit
    • Tristan Gingold's avatar
      bfd/ · 8b197180
      Tristan Gingold authored
      2013-09-18  Tristan Gingold  <gingold@adacore.com>
      
      	* configure.in: Bump version to 2.23.90
      	* configure: Regenerate.
      8b197180
  12. 17 Sep, 2013 1 commit
  13. 31 Aug, 2013 1 commit
  14. 29 Aug, 2013 1 commit
    • Jakub Jelinek's avatar
      * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow · 5c98a14e
      Jakub Jelinek authored
      	64-bit -mcmodel=large -fpic TLS GD and LD sequences.
      	(elf_x86_64_relocate_section): Handle -mcmodel=large -fpic
      	TLS GD and LD sequences in GD->LE, GD->IE and LD->LE transitions.
      ld/testsuite/
      	* ld-x86-64/x86-64.exp: Add tlsld3, tlsgd7 and tlsgd8 tests.
      	* ld-x86-64/tlspic1.s: Add -mcmodel=large -fpic TLS GD and LD
      	sequences.
      	* ld-x86-64/tlspic.dd: Adjusted.
      	* ld-x86-64/tlspic.rd: Adjusted.
      	* ld-x86-64/tlspic-nacl.rd: Adjusted.
      	* ld-x86-64/tlsld3.dd: New test.
      	* ld-x86-64/tlsld3.s: New file.
      	* ld-x86-64/tlsgd7.dd: New test.
      	* ld-x86-64/tlsgd7.s: New file.
      	* ld-x86-64/tlsgd8.dd: New test.
      	* ld-x86-64/tlsgd8.s: New file.
      5c98a14e
  15. 27 Aug, 2013 1 commit
    • Alan Modra's avatar
      * elf-bfd.h (struct elf_backend_data): Remove as_needed_cleanup. · e5034e59
      Alan Modra authored
      	Add notice_as_needed.
      	* elf64-ppc.c (elf_backend_as_needed_cleanup): Don't define.
      	(elf_backend_notice_as_needed): Define.
      	(ppc64_elf_as_needed_cleanup): Rename and adjust..
      	(ppc64_elf_notice_as_needed): ..to this.
      	* elflink.c (_bfd_elf_notice_as_needed): New function, extracted..
      	(elf_link_add_object_symbols): ..from here.
      	* elfxx-target.h (elf_backend_as_needed_cleanup): Don't define.
      	(elf_backend_notice_as_needed): Define..
      	(elfNN_bed): ..and use here.
      e5034e59
  16. 26 Aug, 2013 2 commits
    • Roland McGrath's avatar
      bfd/ · 1098fd41
      Roland McGrath authored
      	* archures.c (bfd_mach_i386_nacl, bfd_mach_i386_i386_nacl): New macros.
      	(bfd_mach_x86_64_nacl, bfd_mach_x64_32_nacl): New macros.
      	* cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): New function.
      	(bfd_i386_nacl_arch): New variable.
      	(bfd_x86_64_nacl_arch, bfd_x64_32_nacl_arch): New variables.
      	(bfd_x64_32_arch_intel_syntax): Link them into the list.
      	* bfd-in2.h: Regenerate.
      
      ld/
      	* emulparams/elf_i386_nacl.sh (ARCH): Set to i386:nacl.
      	* emulparams/elf_x86_64_nacl.sh (ARCH): Set to i386:x86-64:nacl.
      	* emulparams/elf32_x86_64_nacl.sh (ARCH): Set to i386:x64-32:nacl.
      
      ld/testsuite/
      	* ld-x86-64/x86-64.exp (Mixed x86_64 and i386 input test 1):
      	Loosen string match to admit i386:x86-64*.
      	(Mixed x86_64 and i386 input test 2): Likewise.
      	* ld-x86-64/ilp32-2.d: Likewise.
      	* ld-x86-64/ilp32-3.d: Likewise.
      	* ld-x86-64/lp64-2.d: Likewise.
      	* ld-x86-64/lp64-3.d: Likewise.
      	* ld-x86-64/ia32-2.d: Likewise, and i386.* too.
      	* ld-x86-64/ia32-3.d: Likewise.
      1098fd41
    • Roland McGrath's avatar
      bfd/ · 887badb3
      Roland McGrath authored
      	* elf-nacl.c (nacl_modify_segment_map): Fix logic reordering the
      	elf_segment_map list.  If an executable segment is page-aligned
      	but does not end with a full page, then append a fake section into
      	the segment map entry that pads out the page.
      	(nacl_final_write_processing): New function.  Write the code fill
      	laid out in nacl_modify_segment_map.
      	* elf-nacl.h: Declare it.
      	* elf32-arm.c (elf32_arm_nacl_final_write_processing): New function.
      	(elf_backend_final_write_processing): Define it for NaCl backend.
      	* elf32-i386.c (elf_backend_final_write_processing): Likewise.
      	* elf64-x86-64.c (elf_backend_final_write_processing): Likewise.
      
      	* elf-nacl.c (segment_eligible_for_headers): Rename MAXPAGESIZE
      	parameter to MINPAGESIZE.
      	(nacl_modify_segment_map): Use minpagesize instead of maxpagesize.
      
      	* elf32-arm.c (ELF_MINPAGESIZE, ELF_COMMONPAGESIZE): Set to
      	0x10000	for NaCl targets.
      
      ld/testsuite/
      	* ld-x86-64/ilp32-4-nacl.d: Loosen .shstrtab line regexp to match
      	any file offset.
      	* ld-x86-64/tlsbin-nacl.rd: Update expected code segment PT_LOAD.
      	* ld-x86-64/tlsbindesc-nacl.rd: Likewise.
      	* ld-scripts/rgn-at3.d: XFAIL for *-*-nacl* targets.
      	* ld-scripts/rgn-over8-ok.d: Likewise.
      887badb3
  17. 24 Aug, 2013 1 commit
  18. 23 Aug, 2013 2 commits
    • H.J. Lu's avatar
      Add get_elf_x86_64_arch_data · f8222080
      H.J. Lu authored
      	* elf64-x86-64.c (get_elf_x86_64_arch_data): New.
      	(get_elf_x86_64_backend_data): Use it.
      	(elf_x86_64_size_dynamic_sections): Likewise.
      f8222080
    • Nick Clifton's avatar
      PR binutils/15834 · 9aff4b7a
      Nick Clifton authored
      	Fix typos:
      ---
       bfd/bfdio.c                                  |  2 +-
       bfd/elf32-spu.c                              |  2 +-
       bfd/elfnn-aarch64.c                          |  2 +-
       binutils/od-xcoff.c                          |  2 +-
       config/tcl.m4                                |  2 +-
       gas/config/tc-ia64.c                         |  2 +-
       gas/config/tc-sparc.c                        |  2 +-
       gas/config/tc-z80.c                          | 12 ++++++------
       gas/doc/c-i386.texi                          |  6 +++---
       gas/doc/c-m32r.texi                          |  2 +-
       gas/testsuite/gas/d10v/instruction_packing.d |  2 +-
       gas/testsuite/gas/z80/atend.d                |  2 +-
       gold/object.h                                |  2 +-
       include/gdb/remote-sim.h                     |  2 +-
       include/opcode/ChangeLog                     |  2 +-
       include/opcode/i960.h                        |  2 +-
       ld/testsuite/ld-mips-elf/mips16-pic-1.inc    |  2 +-
       opcodes/aarch64-asm.c                        |  2 +-
       opcodes/aarch64-dis.c                        |  2 +-
       opcodes/msp430-dis.c                         |  2 +-
      9aff4b7a
  19. 21 Aug, 2013 3 commits
  20. 14 Aug, 2013 1 commit
    • Nick Clifton's avatar
      PR ld/15787 · 62c34db3
      Nick Clifton authored
      	* elf32-arm.c (elf32_arm_final_link_relocate): Use origin of output
      	segment containing the relocating symbol instead of assuming 0 for
      	sb group relocations.
      
      	* ld-arm/group-relocs-ldr-bad.s: Redefine bar into foo section
      	beyond 16 bit offset width.
      	* ld-arm/group-relocs-ldrs-bad.s: Likewise.
      	* ld-arm/group-relocs-ldr-bad.d: Adjust expected result.
      	* ld-arm/group-relocs-ldrs-bad.d: Likewise.
      	* ld-arm/group-relocs.s: Add comments.  Move symbols used for sb
      	group relocations into .data section.  Drop section zero.  Use pc/r0
      	as base register when pc/sb group relocations are used.
      	* ld-arm/group-relocs.d: Adjust expected result.
      	* ld-arm/group-relocs-alu-bad-2.d: New test for sb group relocation.
      	* ld-arm/group-relocs-ldc-bad-2.d: Likewise.
      	* ld-arm/group-relocs-ldr-bad-2.d: New test for pc group relocation.
      	* ld-arm/group-relocs-ldrs-bad-2.d: Likewise.
      	* ld-arm/unresolved-2.d: Add sb relocation failure test.
      	* ld-arm/group-relocs-alu-bad-2.s: New test source.
      	* ld-arm/group-relocs-ldr-bad-2.s: Likewise.
      	* ld-arm/group-relocs-ldrs-bad-2.s: Likewise.
      	* ld-arm/group-relocs-ldc-bad-2.s: Likewise.
      	* ld-arm/unresolved-2.s: Likewise.
      	* ld-arm/arm-elf.exp: For group-relocs, drop section zero start
      	definition.  Run the new tests.
      62c34db3
  21. 09 Aug, 2013 1 commit
    • Nick Clifton's avatar
      * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if G10 · 4046d87a
      Nick Clifton authored
      	flag bits do not match.
      	(rl78_elf_print_private_bfd_data): Describe G10 flag.
      
      	* readelf.c (get_machine_flags): Handle RL78 G10 flag.
      
      	* config/tc-rl78.c (elf_flags): New variable.
      	(enum options): Add OPTION_G10.
      	(md_longopts): Add mg10.
      	(md_parse_option): Parse -mg10.
      	(rl78_elf_final_processing): New function.
      	* config/tc-rl78.c (tc_final_processing): Define.
      	* doc/c-rl78.texi: Document -mg10 option.
      
      	* rl78.c (E_FLAG_RL78_G10): Define.
      
      	* lib/ld-lib.exp (check_shared_lib_support): Note that the RL78
      	does not support shared library generation.
      4046d87a
  22. 05 Aug, 2013 1 commit
    • Richard Sandiford's avatar
      bfd/ · 13896403
      Richard Sandiford authored
      2013-08-05  John Tytgat  <john@bass-software.com>
      
      	* po/BLD-POTFILES.in: Regenerate.
      	* po/SRC-POTFILES.in: Likewise.
      
      gas/
      2013-08-05  John Tytgat  <john@bass-software.com>
      
      	* po/POTFILES.in: Regenerate.
      
      gprof/
      2013-08-05  John Tytgat  <john@bass-software.com>
      
      	* po/POTFILES.in: Regenerate.
      13896403
  23. 31 Jul, 2013 1 commit
    • Nick Clifton's avatar
      PR ld/15787 · 31a91d61
      Nick Clifton authored
      	* elf32-arm.c (elf32_arm_final_link_relocate): Base SB on the
      	output section VMA.
      
      	* ld-arm/group-relocs-alu-bad-2.d; New.
      	* ld-arm/group-relocs-alu-bad-2.s: New.
      	* ld-arm/group-relocs-ldc-bad-2.d: New.
      	* ld-arm/group-relocs-ldc-bad-2.s: New.
      	* ld-arm/group-relocs-ldr-bad-2.d: New.
      	* ld-arm/group-relocs-ldr-bad-2.s: New.
      	* ld-arm/group-relocs-ldrs-bad-2.d: New.
      	* ld-arm/group-relocs-ldrs-bad-2: New.
      	* ld-arm/arm-elf.exp: Add the new tests.
      	* ld-arm/group-relocs-ldr-bad.d: Update expected output.
      	* ld-arm/group-relocs-ldr-bad.s: Likewise.
      	* ld-arm/group-relocs-ldrs-bad.d: Likewise.
      	* ld-arm/group-relocs-ldrs-bad.s: Likewise.
      	* ld-arm/group-relocs.d: Likewise.
      	* ld-arm/group-relocs.s: Likewise.
      31a91d61
  24. 28 Jul, 2013 2 commits
  25. 27 Jul, 2013 5 commits
    • Andrew Pinski's avatar
      2013-07-27 Andrew Pinski <apinski@cavium.com> · 54757ed1
      Andrew Pinski authored
      	* elfnn-aarch64.c (elfNN_aarch64_howto_from_bfd_reloc): Handle
      	BFD_RELOC_AARCH64_NONE explicitly.
      54757ed1
    • Maciej W. Rozycki's avatar
      * elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's · f6518c48
      Maciej W. Rozycki authored
      	entry size if there is no ELF section data.
      f6518c48
    • Maciej W. Rozycki's avatar
      bfd/ · 125b5bac
      Maciej W. Rozycki authored
      	* elf32-vax.c (elf_vax_check_relocs) <R_VAX_GOT32, R_VAX_PLT32>:
      	Don't check symbol visibility here.  Remove a check already
      	asserted for.
      	(elf_vax_instantiate_got_entries): Use SYMBOL_REFERENCES_LOCAL
      	instead of individual checks.
      	(elf_vax_relocate_section) <R_VAX_GOT32, R_VAX_PLT32>: Only
      	check the offset to decide if produce a GOT or PLT entry.
      	Remove redundant assertions.  Remove code to produce GOT entries
      	for local symbols.  Remove a duplicate comment and add a comment
      	on GOT relocations.
      	(elf_vax_finish_dynamic_symbol): Remove code to produce RELATIVE
      	dynamic relocs.
      
      	ld/testsuite/
      	* ld-vax-elf/got-local-exe.xd: New test.
      	* ld-vax-elf/got-local-lib.xd: New test.
      	* ld-vax-elf/got-local-aux.s: New test source.
      	* ld-vax-elf/got-local-def.s: New test source.
      	* ld-vax-elf/got-local-ref.s: New test source.
      	* ld-vax-elf/vax-elf.exp: Run the new tests.
      125b5bac
    • Maciej W. Rozycki's avatar
    • Maciej W. Rozycki's avatar
      * elf32-vax.c (elf_vax_discard_got_entries): New function. · fac3d241
      Maciej W. Rozycki authored
      	(elf_vax_always_size_sections): Likewise.
      	(elf_vax_size_dynamic_sections): Remove code moved to
      	elf_vax_always_size_sections.  Make comment on
      	elf_vax_instantiate_got_entries match reality.
      	(elf_vax_instantiate_got_entries): Assert that rather than check
      	if dynobj is null.  Don't check for dynamic_sections_created.
      	Make function description match reality.
      	(elf_backend_always_size_sections): New macro.
      fac3d241
  26. 25 Jul, 2013 2 commits
  27. 24 Jul, 2013 1 commit
    • Tristan Gingold's avatar
      bfd/ · 7fa9fcb6
      Tristan Gingold authored
      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.
      7fa9fcb6
  28. 20 Jul, 2013 1 commit
    • Alan Modra's avatar
      PR ld/15762 · 436e1eba
      Alan Modra authored
      	PR ld/12761
      	* elflink.c (elf_link_add_object_symbols): Don't clobber
      	.gnu.warning.symbol sections when shared.
      436e1eba