Re: Have the linker report an error if the same script is used twice
[external/binutils.git] / ld / ChangeLog
index 9ca4a4e..d46fd95 100644 (file)
@@ -1,3 +1,120 @@
+2019-05-23  Alan Modra  <amodra@gmail.com>
+
+       PR 24576
+       * ldfile.c (enum script_open_style): New.
+       (struct script_name_list): New.
+       (ldfile_open_command_file_1): Take a script_open_style param
+       rather than booleans.  Adjust callers.  Only fail when -T or
+       default -T script is invoked twice.
+       (ldfile_try_open_bfd): Revert last change.
+
+2019-05-22  Julius Werner  <jwerner@chromium.org>
+           Nick Clifton  <nickc@redhat.com>
+
+       PR 24576
+       * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
+       is_script.  If true check that the file has not already been
+       parsed as a linker script.
+       (ldfile_open_script_file): New function.
+       (ldfile_try_open_bfd): Use the new function in place of
+       ldfile_open_command_line.
+       * ldmain.c (main): Likewise.
+       * lexsup.c (parse_args): Use the new function for opening linker
+       scripts with the -T option.
+       * ldfile.h (ldfile_open_script_file): Add prototype.
+
+2019-05-21  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
+       %tprel_hi and %tprel_lo relocations.
+       * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
+       * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
+       * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
+       * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
+       script file.
+
+2019-05-21  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
+       * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
+       * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
+       * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
+       * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
+       * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2019-05-21  Matthew Fortune  <matthew.fortune@mips.com>
+           Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * emultempl/mipself.em (compact_branches): New static variable.
+       (mips_create_output_section_statements): Call
+       _bfd_mips_elf_compact_branches.
+       (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
+       OPTION_NO_COMPACT_BRANCHES.
+       (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
+       no-compact-branches.
+       (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
+       --no-compact-branches.
+       (PARSE_AND_LIST_ARGS_CASES): Handle the above.
+       * ld.texinfo: Document --compact-branches, --no-compact-branches.
+       * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
+       * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
+       * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
+       * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
+       * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
+       * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2019-05-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
+
+       * testsuite/ld-arm/arm-elf.exp: Add tests
+       * testsuite/ld-arm/bfs-0.s: New test.
+       * testsuite/ld-arm/bfs-1.s: New test.
+       * testsuite/ld-arm/branch-futures.d: New test.
+
+2019-05-21  Tamar Christina  <tamar.christina@arm.com>
+
+       PR ld/24373
+       * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
+       to flags.
+       * NEWS: Add changes to flag.
+       (PARSE_AND_LIST_OPTIONS): Update help descriptions.
+       (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
+       * testsuite/ld-aarch64/erratum843419-adr.d: New test.
+       * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
+       * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
+       * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
+       * testsuite/ld-aarch64/erratum843419-far.s: New test.
+       * testsuite/ld-aarch64/erratum843419-full.d: New test.
+       * testsuite/ld-aarch64/erratum843419-near.s: New test.
+       * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
+
+2019-05-21  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
+
+       PR ld/24571
+       * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
+       * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
+
+2019-05-21  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
+
+       PR ld/24564
+       * testsuite/ld-avr/wraparound-range-boundary.d: New test.
+       * testsuite/ld-avr/wraparound-range-boundary.s: New test.
+
+2019-05-20  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       PR 14798
+       * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
+       global code symbols.
+       * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
+
+2019-05-17  Alan Modra  <amodra@gmail.com>
+
+       PR 24567
+       * plugin.c (plugin_notice): Do not let a common symbol override
+       a non-common definition in IR.
+
 2019-05-09  Dimitar Dimitrov  <dimitar@dinux.eu>
 
        * scripttempl/pru.sc (__init_array_begin, __init_array_begin):