1. 09 Jul, 2020 14 commits
    • Vivek Das Mohapatra's avatar
    • Vivek Das Mohapatra's avatar
    • Vivek Das Mohapatra's avatar
      Handle DT_GNU_FLAGS_1 in readelf · 8cc81204
      Vivek Das Mohapatra authored
    • Vivek Das Mohapatra's avatar
    • Vivek Das Mohapatra's avatar
      Handle -z unique/-z nounique in ld · 88348d3f
      Vivek Das Mohapatra authored
      Add (or suppress) a DT_GNU_FLAGS_1 dynamic section
      with a bit flag value of DF_GNU_1_UNIQUE.
    • Vivek Das Mohapatra's avatar
      Define a new DT_GNU_FLAGS_1 dynamic section for ld, readelf et al · c3640d22
      Vivek Das Mohapatra authored
      DT_GNU_FLAGS_1 added to the DT_VALRNGLO-DT_VALRNGHI range.
      DT_GNU_FLAGS_1 value DF_GNU_1_UNIQUE added.
    • Alan Modra's avatar
      Remove powerpc PE support · fe49679d
      Alan Modra authored
      Plus some leftover powerpc lynxos support.
      	* coff-ppc.c: Delete.
      	* pe-ppc.c: Delete.
      	* pei-ppc.c: Delete.
      	* Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Remove PE PPC.
      	* coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Remove
      	PPCMAGIC code.
      	(coff_write_object_contents): Remove PPC_PE code.
      	* config.bfd: Move powerpcle-pe to removed targets.
      	* configure.ac: Remove powerpc PE entries.
      	* libcoff-in.h (ppc_allocate_toc_section): Delete.
      	(ppc_process_before_allocation): Delete.
      	* peXXigen.c: Remove POWERPC_LE_PE code and comments.
      	* targets.c: Remove powerpc PE vectors.
      	* po/SRC-POTFILES.in: Regenerate.
      	* libcoff.h: Regenerate.
      	* Makefile.in: Regenerate.
      	* configure: Regenerate.
      	* dlltool.c: Remove powerpc PE support and comments.
      	* configure.ac: Remove powerpc PE dlltool config.
      	* configure: Regenerate.
      	* config/obj-coff.h: Remove TE_PE support.
      	* config/tc-ppc.c: Likewise.
      	* config/tc-ppc.h: Likewise.
      	* configure.tgt: Remove powerpc PE and powerpc lynxos.
      	* testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
      	* testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
      	* coff/powerpc.h: Delete.
      	* emulparams/ppcpe.sh: Delete.
      	* scripttempl/ppcpe.sc: Delete.
      	* emulparams/ppclynx.sh: Delete.
      	* Makefile.am (ALL_EMULATION_SOURCES): Remove ppc PE and lynxos.
      	* configure.tgt: Likewise.
      	* emultempl/beos.em: Remove powerpc PE support.
      	* emultempl/pe.em: Likewise.
      	* po/BLD-POTFILES.in: Regenerate.
      	* Makefile.in: Regenerate.
    • Alan Modra's avatar
      powerpc garbage collect test · c560184e
      Alan Modra authored
      ld's garbage collection test on powerpc64 catered for old compilers
      (pre -mcmodel=medium support), setting options that caused the test to
      fail.  Which meant the test wasn't really testing anything.  Get rid
      of that old compiler support, and avoid -fPIE fails on ppc32.
      	* testsuite/ld-gc/gc.exp: Don't set -mminimal-toc for powerpc64,
      	and remove powerpc64 xfail.  Use -fno-PIE for ppc32.
    • Alan Modra's avatar
      pr18841 tests on powerpc64 · 470cd0fa
      Alan Modra authored
      The PR18841 test does cross-module calls from within an ifunc
      resolver, which is nasty, and not supported in general since the
      called function may not be relocated.  In this case the called
      function (zoo) is just a stub so doesn't need relocating, but on ppc64
      the function descriptor for zoo in the executable won't be relocated
      at the time the shared library ifunc resolver runs.  That means the
      test will fail if your compiler generates PIEs by default.
      	PR 18841
      	* testsuite/ld-ifunc/ifunc.exp: Run pr18841 tests non-pie.
    • Nick Clifton's avatar
    • Nick Clifton's avatar
    • Nick Clifton's avatar
      Update the Windows Resource compiler (windres) to support the OWNERDRAW and BITMAP menuitem flags. · d90171de
      Nick Clifton authored
      binutils* rclex.c: Add OWNERDRAW keyword.
      	* rcparse.y: Add OWNERDRAW token.
      	(menuitem_flag) Add BITMAP and OWNERDRAW entries.
      	* resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
      	BITMAP flags.
      	* windres.c (extended_menuitems): Likewise.
      	* testsuite/binutils-all/windres/menuitem_flags.rc: New test.
    • Alan Modra's avatar
      asan: readelf: heap buffer overflow in slurp_hppa_unwind_table · e3fdc001
      Alan Modra authored
      This one isn't just a weird corner case requiring multiple
      .PARISC.unwind sections in an object file to trigger the buffer
      overflow, it's also a simple bug that would prevent relocations being
      applied in the normal case of a single .PARISC.unwind section.
      	* readelf (slurp_hppa_unwind_table): Set table_len before use
      	in relocation sanity checks.
    • GDB Administrator's avatar
      Automatic date update in version.in · a6978338
      GDB Administrator authored
  2. 08 Jul, 2020 11 commits
    • Hannes Domani's avatar
      Handle Windows drives in auto-load script paths · 6e2469ff
      Hannes Domani authored
      Fixes this testsuite fail on Windows:
      FAIL: gdb.base/auto-load.exp: print $script_loaded
      Converts the debugfile path from c:/dir/file to /c/dir/file, so it can be
      appended to the auto-load path.
      2020-07-08  Hannes Domani  <ssbssa@yahoo.de>
      	* auto-load.c (auto_load_objfile_script_1): Convert drive part
      	of debugfile path on Windows.
      2020-07-08  Hannes Domani  <ssbssa@yahoo.de>
      	* gdb.texinfo: Document Windows drive conversion of
      	'set auto-load scripts-directory'.
    • John Baldwin's avatar
      Rename the 'obfd' argument to fbsd_nat_target::find_memory_regions. · d1076c41
      John Baldwin authored
      The argument is passed as a generic cookie value to the supplied
      callback and is not necessarily a pointer to a bfd.
      	* fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
      	argument to 'data'.
    • Tom Tromey's avatar
      Use read_memory in ada_exception_message_1 · 15f3b077
      Tom Tromey authored
      Testing using the internal AdaCore test suite showed a regression from
      the target string reading changes.  In particular, now
      ada_exception_message_1 can get the wrong answer in some cases.  In
      particular, when an Ada exception catchpoint is hit, sometimes the
      exception name will be incorrect.  The case I was seeing changed from
      the correct:
          Catchpoint 2, CONSTRAINT_ERROR (catch C_E) at [...]
          Catchpoint 2, CONSTRAINT_ERROR (catch C_EE) at [...]
      I was not able to reproduce this failure with the Fedora gnat.
      Perhaps it is related to some local change to gnat; I do not know.
      Meanwhile, because ada_exception_message_1 knows the length of the
      string to read, we can use read_memory here.  This fixes the bug.
      I've updated the test suite to at least exercise this code path.
      However, as mentioned above, the new test does not actually provoke
      the failure.
      2020-07-08  Tom Tromey  <tromey@adacore.com>
      	* ada-lang.c (ada_exception_message_1): Use read_memory.
      2020-07-08  Tom Tromey  <tromey@adacore.com>
      	* gdb.ada/catch_ex/foo.adb: Pass string to raise.
      	* gdb.ada/catch_ex.exp: Examine catchpoint text.
    • Nick Clifton's avatar
      Commit: Fix GOLD testsuite failures for 2.35 branch. · a7f987e8
      Nick Clifton authored
      	* testsuite/script_test_7.sh: Adjust expected address of the .bss
      	* testsuite/script_test_9.sh: Do not expect the .init section to
      	immediately follow the .text section in the mapping of sections to
    • Jan Beulich's avatar
      x86: various XOP insns lack L and/or W bit decoding · 467bbef0
      Jan Beulich authored
      While some insns support both XOP.W based operand swapping and 256-bit
      operation (XOP.L=1), many others don't support one or both.
      For {L,S}LWPCB also fix the so far not decoded ModRM.mod == 3
      Take the opportunity and replace the custom OP_LWP_E() and OP_LWPCB_E()
      routines by suitable other, non-custom operanbd specifiers.
    • Jan Beulich's avatar
      x86: FMA4 scalar insns ignore VEX.L · 6384fd9e
      Jan Beulich authored
      Just like other VEX-encoded scalar insns do.
      Besides a testcase for this behavior also introduce one to verify that
      XOP scalar insns don't honor -mavxscalar=256, as they don't ignore
    • Jan Beulich's avatar
      x86: re-work operand swapping for XOP shift/rotate insns · e6123d0c
      Jan Beulich authored
      There's no need for custom operand handling here, except for the VEX.W
      controlled operand swapping.
    • Jan Beulich's avatar
      x86: re-work operand handling for 5-operand XOP insns · 93abb146
      Jan Beulich authored
      There's no need for custom operand handling here, except for the VEX.W
      controlled operand swapping and the printing of the remaining 4-bit
      immediate. VEX.W can be handled just like 4-operand insns.
      Also take the opportunity and drop the stray indirection through
    • Jan Beulich's avatar
      x86: re-work operand swapping for FMA4 and 4-operand XOP insns · b13b1bc0
      Jan Beulich authored
      There's no need for custom operand handling here, except for the VEX.W
      controlled operand swapping. The latter can be easily integrated into
    • Alan Modra's avatar
      powerpc-aix5.2 tests · babcb2ea
      Alan Modra authored
      git commit bbd0c8e2 broke many of these tests, and there have been
      other changes that caused failures too.
      	* testsuite/lib/ld-lib.exp (ar_simple_create): Pass options before
      	ar command.
      	* testsuite/ld-powerpc/aix52.exp: Run for rs6000-aix5.2.  Update
      	match files.
      	* testsuite/ld-powerpc/aix-abs-branch-1.dd: Update.
      	* testsuite/ld-powerpc/aix-core-sec-1.hd: Update.
      	* testsuite/ld-powerpc/aix-gc-1-32.dd: Update.
      	* testsuite/ld-powerpc/aix-gc-1-64.dd: Update.
      	* testsuite/ld-powerpc/aix-glink-1-32.dd: Update.
      	* testsuite/ld-powerpc/aix-glink-1-64.dd: Update.
      	* testsuite/ld-powerpc/aix-glink-2-32.dd: Update.
      	* testsuite/ld-powerpc/aix-glink-2-64.dd: Update.
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-rel.rd: Update.
      	* testsuite/ld-powerpc/aix-ref-1-32.od: Update.
      	* testsuite/ld-powerpc/aix-ref-1-64.od: Update.
      	* testsuite/ld-powerpc/aix-toc-1-32.dd: Update.
      	* testsuite/ld-powerpc/aix-toc-1-64.dd: Update.
      	* testsuite/ld-powerpc/aix-weak-3-32.dd: Update.
      	* testsuite/ld-powerpc/aix-weak-3-64.dd: Update.
      	* testsuite/ld-powerpc/aix-abs-branch-1.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-abs-branch-1-32.nd,
      	* testsuite/ld-powerpc/aix-abs-branch-1-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-abs-reloc-1.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-abs-reloc-1-32.nd,
      	* testsuite/ld-powerpc/aix-abs-reloc-1-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-abs-reloc-1.od: Delete, replace with..
      	* testsuite/ld-powerpc/aix-abs-reloc-1-32.od,
      	* testsuite/ld-powerpc/aix-abs-reloc-1-64.od: ..these new files.
      	* testsuite/ld-powerpc/aix-export-1-all.dd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-export-1-all-32.dd,
      	* testsuite/ld-powerpc/aix-export-1-all-64.dd: ..these new files.
      	* testsuite/ld-powerpc/aix-export-1-full.dd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-export-1-full-32.dd,
      	* testsuite/ld-powerpc/aix-export-1-full-64.dd: ..these new files.
      	* testsuite/ld-powerpc/aix-export-2.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-export-2-32.nd,
      	* testsuite/ld-powerpc/aix-export-2-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-gc-1.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-gc-1-32.nd,
      	* testsuite/ld-powerpc/aix-gc-1-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-glink-3.dd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-glink-3-32.dd,
      	* testsuite/ld-powerpc/aix-glink-3-64.dd: ..these new files.
      	* testsuite/ld-powerpc/aix-lineno-1a.dd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-lineno-1a-32.dd,
      	* testsuite/ld-powerpc/aix-lineno-1a-64.dd: ..these new files.
      	* testsuite/ld-powerpc/aix-lineno-1a.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-lineno-1a-32.nd,
      	* testsuite/ld-powerpc/aix-lineno-1a-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-lineno-1b.dd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-lineno-1b-32.dd,
      	* testsuite/ld-powerpc/aix-lineno-1b-64.dd: ..these new files.
      	* testsuite/ld-powerpc/aix-lineno-1b.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-lineno-1b-32.nd,
      	* testsuite/ld-powerpc/aix-lineno-1b-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.dnd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.dnd,
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.dnd: ..these new files.
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.drd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.drd,
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.drd: ..these new files.
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.nd,
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso.rd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.rd,
      	* testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.rd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-1-dso.dnd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-1-dso-32.dnd,
      	* testsuite/ld-powerpc/aix-weak-1-dso-64.dnd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-1-dso.hd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-1-dso-32.hd,
      	* testsuite/ld-powerpc/aix-weak-1-dso-64.hd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-1-dso.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-1-dso-32.nd,
      	* testsuite/ld-powerpc/aix-weak-1-dso-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-1-gcdso.dnd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-1-gcdso-32.dnd,
      	* testsuite/ld-powerpc/aix-weak-1-gcdso-64.dnd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-1-gcdso.hd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-1-gcdso-32.hd,
      	* testsuite/ld-powerpc/aix-weak-1-gcdso-64.hd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-1-gcdso.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-1-gcdso-32.nd,
      	* testsuite/ld-powerpc/aix-weak-1-gcdso-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-2a.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-2a-32.nd,
      	* testsuite/ld-powerpc/aix-weak-2a-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-2b.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-2b-32.nd,
      	* testsuite/ld-powerpc/aix-weak-2b-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-2c.nd: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-2c-32.nd,
      	* testsuite/ld-powerpc/aix-weak-2c-64.nd: ..these new files.
      	* testsuite/ld-powerpc/aix-weak-2c.od: Delete, replace with..
      	* testsuite/ld-powerpc/aix-weak-2c-32.od,
      	* testsuite/ld-powerpc/aix-weak-2c-64.od: ..these new files.
    • GDB Administrator's avatar
      Automatic date update in version.in · 08534be9
      GDB Administrator authored
  3. 07 Jul, 2020 15 commits
    • Claudiu Zissulescu's avatar
      arc: Improve error messages when assembling · 3128916d
      Claudiu Zissulescu authored
      xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>
      	* config/tc-arc.c (find_opcode_match): Add error messages.
      	* testsuite/gas/arc/add_s-err.s: Update test.
      	* testsuite/gas/arc/asm-errors.err: Likewise.
      	* testsuite/gas/arc/cpu-em-err.s: Likewise.
      	* testsuite/gas/arc/hregs-err.s: Likewise.
      	* testsuite/gas/arc/warn.s: Likewise.
    • Claudiu Zissulescu's avatar
      arc: Update vector instructions. · f337259f
      Claudiu Zissulescu authored
      Update vadd2, vadd4h, vmac2h, vmpy2h, vsub4h vector instructions
      arguments to discriminate between double/single register operands.
      xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>
      	* arc-opc.c (insert_rbd): New function.
      	(RBD): Define.
      	(RBDdup): Likewise.
      	* arc-tbl.h (vadd2, vadd4h, vmac2h, vmpy2h, vsub4h): Update
      Signed-off-by: default avatarClaudiu Zissulescu <claziss@gmail.com>
    • Alan Modra's avatar
      Re: Use is_xcoff_format in ld testsuite · 35097e10
      Alan Modra authored
      git commit 7193487f took h8300 out of the notarget list, resulting in
      h8300-elf  +FAIL: ld-scripts/section-match-1
      h8300-linux  +FAIL: ld-scripts/section-match-1
      	* testsuite/ld-scripts/section-match-1.d: xfail h8300.
    • H.J. Lu's avatar
      x86: Remove an incorrect AVX2 entry · dbdba9b0
      H.J. Lu authored
      The upper 16 vector registers were added by AVX512.
      	PR gas/26212
      	* doc/c-i386.texi: Remove an incorrect AVX2 entry.
    • Alan Modra's avatar
      XCOFF ld testsuite fixes · e553d5b2
      Alan Modra authored
      	* testsuite/ld-scripts/align.exp: Don't exclude xcoff.  Pass
      	-bnogc ld option for xcoff.
      	* testsuite/ld-scripts/provide.exp: Likewise.
      	* testsuite/ld-scripts/data.exp: Pass -bnogc ld option for xcoff.
      	* testsuite/ld-scripts/default-script.exp: Likewise.
      	* testsuite/ld-scripts/defined.exp: Likewise.
      	* testsuite/ld-scripts/empty-address.exp: Likewise.
      	* testsuite/ld-scripts/expr.exp: Likewise.
      	* testsuite/ld-scripts/include.exp: Likewise.
      	* testsuite/ld-scripts/script.exp: Likewise.
      	* testsuite/ld-scripts/assign-loc.d: Don't exclude xcoff.
      	* testsuite/ld-scripts/defined3.d: Likewise.
      	* testsuite/ld-scripts/defined4.d: Likewise.
      	* testsuite/ld-scripts/pr18963.d: Likewise.
      	* testsuite/ld-scripts/sane1.d: Likewise.
      	* testsuite/ld-scripts/segment-start.d: Likewise.
      	* testsuite/ld-scripts/include-1.d: Likewise, and relax text vma.
      	* testsuite/ld-scripts/defined5.d: Update xfail and comment.
      	* testsuite/ld-scripts/defined5.s: Tweak "defined" to be at
      	non-zero section offset.
      	* testsuite/ld-scripts/fill16.d: xfail for xcoff.
      	* testsuite/ld-scripts/provide-2.d: Accept more symbols.
      	* testsuite/ld-scripts/provide-4.d: Likewise.
      	* testsuite/ld-scripts/provide-5.d: Likewise.
      	* testsuite/ld-scripts/provide-6.d: Likewise.
      	* testsuite/ld-scripts/provide-7.d: Likewise.
      	* testsuite/ld-scripts/align.t: Accept xcoff mapped .text and .data.
      	* testsuite/ld-scripts/defined3.t: Likewise.
      	* testsuite/ld-scripts/defined4.t: Likewise.
      	* testsuite/ld-scripts/defined5.t: Likewise.
      	* testsuite/ld-scripts/fill.t: Likewise.
      	* testsuite/ld-scripts/include-subdata.t: Likewise.
      	* testsuite/ld-scripts/provide-1.t: Likewise.
      	* testsuite/ld-scripts/provide-2.t: Likewise.
      	* testsuite/ld-scripts/provide-3.t: Likewise.
      	* testsuite/ld-scripts/provide-4.t: Likewise.
      	* testsuite/ld-scripts/provide-5.t: Likewise.
      	* testsuite/ld-scripts/provide-6.t: Likewise.
      	* testsuite/ld-scripts/provide-7.t: Likewise.
      	* testsuite/ld-scripts/provide-8.t: Likewise.
      	* testsuite/ld-scripts/assign-loc.t: Add required xcoff sections.
      	* testsuite/ld-scripts/sizeof.t: Likewise.
      	* testsuite/ld-scripts/align2.t: Likewise, and mapped sections.
      	* testsuite/ld-scripts/align5.t: Likewise.
      	* testsuite/ld-scripts/default-script.t: Likewise.
      	* testsuite/ld-scripts/empty-address-1.t: Likewise.
      	* testsuite/ld-scripts/empty-address-2a.t: Likewise.
      	* testsuite/ld-scripts/empty-address-2b.t: Likewise.
      	* testsuite/ld-scripts/empty-address-3a.t: Likewise.
      	* testsuite/ld-scripts/empty-address-3b.t: Likewise.
      	* testsuite/ld-scripts/empty-address-3c.t: Likewise.
      	* testsuite/ld-scripts/include-sections.t: Likewise.
      	* testsuite/ld-scripts/pr14962.t: Likewise.
      	* testsuite/ld-scripts/sane1.t: Likewise.
    • Alan Modra's avatar
      Use is_pecoff_format in ld testsuite · 231b7382
      Alan Modra authored
      --image-base 0 is not just for x86_64 mingw.  This patch fixes that,
      and a case where a changed LDFLAGS leaked out of one script to the next.
      	* testsuite/ld-scripts/align.exp: Use is_pecoff_format.
      	* testsuite/ld-scripts/defined.exp: Likewise.
      	* testsuite/ld-scripts/provide.exp: Likewise.
      	* testsuite/ld-scripts/weak.exp: Likewise.
      	* testsuite/ld-scripts/empty-address.exp: Likewise.  Reset LDFLAGS
      	on exit.
      	* testsuite/ld-scripts/expr.exp: Set LDFLAGS earlier, and with
      	--image-base for PE.
      	* testsuite/ld-scripts/include.exp: Set LDFLAGS for PE.
      	* testsuite/ld-scripts/script.exp: Use is_pecoff_format, and
      	set LDFLAGS as well as flags.
    • Alan Modra's avatar
      Use is_xcoff_format in ld testsuite · 7193487f
      Alan Modra authored
      	* testsuite/ld-checks/checks.exp: Use is_xcoff_format.
      	* testsuite/ld-powerpc/powerpc.exp: Likewise.
      	* testsuite/ld-scripts/print-memory-usage.exp: Likewise.
      	* testsuite/ld-srec/srec.exp: Likewise.
      	* testsuite/ld-undefined/require-defined.exp: Likewise.
      	* testsuite/ld-scripts/expr2.d: Likewise.
      	* testsuite/ld-scripts/section-match-1.d: Only run for ELF.
      	* testsuite/ld-elfvers/vers.exp: Delete dead code.
      	* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
      	* testsuite/ld-elfweak/elfweak.exp: Likewise.
    • Alan Modra's avatar
      Use is_xcoff_format in gas testsuite · 34e79798
      Alan Modra authored
      	* testsuite/gas/all/gas.exp: Use is_xcoff_format.
      	* testsuite/gas/ppc/ppc.exp: Likewise.
      	* testsuite/gas/all/weakref1l.d: Likewise.
    • Alan Modra's avatar
      Use is_xcoff_format in binutils testsuite · 5a2296ac
      Alan Modra authored
      and restrict some other tests using is_*_format.
      	* testsuite/binutils-all/ar.exp: Use is_xcoff_format.
      	* testsuite/binutils-all/nm.exp: Likewise.
      	* testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
      	* testsuite/binutils-all/copy-3.d: Run only for elf targets.
      	* testsuite/binutils-all/set-section-alignment.d: Likewise.
      	* testsuite/binutils-all/copy-4.d: Don't run for xcoff.
    • Alan Modra's avatar
      XCOFF binutils testsuite fix · efd0ed58
      Alan Modra authored
      Avoid an UNRESOLVED test due to "Error: the XCOFF file format does not
      support arbitrary sections".
      	* testsuite/lib/binutils-common.exp (is_xcoff_format): New.
      	* testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
    • Alan Modra's avatar
      XCOFF linker script PROVIDE support · fb3dc213
      Alan Modra authored
      Fixes bit rot from git commit b46a87b1.
      	* emultempl/aix.em (gld${EMULATION_NAME}_find_exp_assignment): Handle
    • Alan Modra's avatar
      XCOFF ld segfaults when running ld testsuite · 23f5e55e
      Alan Modra authored
      The binutils XCOFF support doesn't handle random linker scripts very
      well at all.  These tweaks to final_link fix segfaults when some
      linker created sections are discarded due to "/DISCARD/ : { *(.*) }"
      in scripts.  The xcoff_mark change is necessary to not segfault on
      symbols defined in scripts, which may be bfd_link_hash_defined yet
      have u.def.section set to bfd_und_section_ptr.  (Which might seem odd,
      but occurs during early stages of linking before input sections are
      	* xcofflink.c (xcoff_mark): Don't mark const sections.
      	(bfd_xcoff_record_link_assignment): Add FIXME.
      	(_bfd_xcoff_bfd_final_link): Don't segfault on assorted magic
      	sections being discarded by linker script.
    • Alan Modra's avatar
      XCOFF deterministic archives · c8001886
      Alan Modra authored
      Adds support for "ar -D".
      	* coff-rs6000.c (xcoff_write_archive_contents_old): Set default
      	time, uid, gid and mode for deterministic archive.
      	(xcoff_write_archive_contents_big): Likewise.
    • Alan Modra's avatar
      XCOFF C_HIDEXT and C_AIX_WEAKEXT classification · 8af7926f
      Alan Modra authored
      If C_HIDEXT and C_AIX_WEAKEXT symbols aren't handled as globals by
      coff_classify_symbol then we run into "warning: .. local symbol `some
      garbage name' has no section".  These are of course both global
      symbols, but C_HIDEXT is like a local in some respects and returning
      COFF_SYMBOL_LOCAL for C_HIDEXT keeps nm output looking the same.
      Fixes these fails on rs6000-aix5.1:
      -FAIL: weakref tests, relocations
      -FAIL: weakref tests, global syms
      -FAIL: weakref tests, strong undefined syms
      -FAIL: weakref tests, weak undefined syms
      	* coffcode.h (coff_classify_symbol): Handle C_HIDEXT and
    • Alan Modra's avatar
      sh vxworks tests · 3bde5ad1
      Alan Modra authored
      These tests were failing only due to not being updated for readelf
      output changes.
      	* testsuite/ld-sh/vxworks1-lib.rd: Update expected output.
      	* testsuite/ld-sh/vxworks4.d: Likewise.