X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2FChangeLog;h=291e6bda7e0ac58042ada0780689b3ff6b9e520d;hb=0c66ea4c5e46372c7411f67b0ba21d7de5215958;hp=da0c79c86a42dfcdbf1d0397179c6372551d7af7;hpb=4041bc9b02df6404d7b2b3ff04d4e9f8bcfd43af;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ChangeLog b/ld/ChangeLog index da0c79c86a..291e6bda7e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,389 @@ +2016-07-21 Alan Modra + + * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Replace + "targets_to_xfail" parameter with "args". + * testsuite/ld-elf/compress.exp: Remove empty list of xfails on + all calls to run_ld_link_exec_tests. + * testsuite/ld-elf/dwarf.exp: Likewise. + * testsuite/ld-elf/indirect.exp: Likewise. + * testsuite/ld-elf/wrap.exp: Likewise. + * testsuite/ld-i386/i386.exp: Likewise. + * testsuite/ld-i386/no-plt.exp: Likewise. + * testsuite/ld-i386/tls.exp: Likewise. + * testsuite/ld-ifunc/ifunc.exp: Likewise. + * testsuite/ld-pie/pie.exp: Likewise. + * testsuite/ld-plugin/lto.exp: Likewise. + * testsuite/ld-size/size.exp: Likewise. + * testsuite/ld-x86-64/mpx.exp: Likewise. + * testsuite/ld-x86-64/no-plt.exp: Likewise. + * testsuite/ld-x86-64/tls.exp: Likewise. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-elf/elf.exp: Likewise. Reorder args when providing + xfails and simplify lists. + * testsuite/ld-elf/shared.exp: Likewise. + +2016-07-21 Alan Modra + + * testsuite/lib/ld-lib.exp (run_ld_link_tests): Add optional + parameter to pass list of xfails. + * testsuite/ld-elf/elf.exp: Add xfails for implib tests. Tidy + implib test formatting. Don't set .data start address. + * testsuite/ld-elf/implib.s: Remove first .bss directive and + replace second one with equivalent .section directive. + * testsuite/ld-elf/empty-implib.out: Add expected final error. + * testsuite/ld-elf/implib.rd: Update. + +2016-07-20 H.J. Lu + + PR ld/20376 + * elf.c (assign_file_positions_for_load_sections): Also check + p_paddr for program header space. + +2016-07-20 Alan Modra + + * ldexp.c (exp_unop, exp_binop, exp_trinop, exp_nameop): Don't + fold expression. + * testsuite/ld-elf/maxpage3b.d: Expect correct maxpagesize. + +2016-07-19 Roland McGrath + + * emulparams/aarch64elf.sh (GENERATE_PIE_SCRIPT): Set to yes. + * emulparams/aarch64elf32.sh: Likewise. + +2016-07-19 Maciej W. Rozycki + + * testsuite/ld-mips-elf/unaligned-branch-2.d: Update error + messages expected. + * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise. + * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise. + * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise. + * testsuite/ld-mips-elf/bal-jalx-addend.d: New test. + * testsuite/ld-mips-elf/bal-jalx-local.d: New test. + * testsuite/ld-mips-elf/bal-jalx-pic.d: New test. + * testsuite/ld-mips-elf/bal-jalx-addend-n32.d: New test. + * testsuite/ld-mips-elf/bal-jalx-local-n32.d: New test. + * testsuite/ld-mips-elf/bal-jalx-pic-n32.d: New test. + * testsuite/ld-mips-elf/bal-jalx-addend-n64.d: New test. + * testsuite/ld-mips-elf/bal-jalx-local-n64.d: New test. + * testsuite/ld-mips-elf/bal-jalx-pic-n64.d: New test. + * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test. + * testsuite/ld-mips-elf/unaligned-jalx-3.d: New test. + * testsuite/ld-mips-elf/unaligned-jalx-addend-2.d: New test. + * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: New test. + * testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source. + * testsuite/ld-mips-elf/unaligned-jalx-3.s: New test source. + * testsuite/ld-mips-elf/unaligned-jalx-addend-2.s: New test + source. + * testsuite/ld-mips-elf/unaligned-jalx-addend-3.s: New test + source. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests. + +2016-07-19 Maciej W. Rozycki + + * testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error message + expected. + * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise. + * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d: + Likewise. + * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d: + Likewise. + * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise. + * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise. + * testsuite/ld-mips-elf/undefweak-overflow.s: Add jumps, + microMIPS BAL and MIPS16 instructions. + * testsuite/ld-mips-elf/undefweak-overflow.d: Update + accordingly. + * testsuite/ld-mips-elf/unaligned-branch-2.d: New test. + * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: New test. + * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: New test. + * testsuite/ld-mips-elf/unaligned-branch-mips16.d: New test. + * testsuite/ld-mips-elf/unaligned-branch-micromips.d: New test. + * testsuite/ld-mips-elf/unaligned-jump-mips16.d: New test. + * testsuite/ld-mips-elf/unaligned-jump-micromips.d: New test. + * testsuite/ld-mips-elf/unaligned-jump.d: New test. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests. + +2016-07-19 Andrew Burgess + + * plugin.c (plugin_call_claim_file): Restore the file offset after + an unsuccessful attempt to claim a file. + * testplug.c (bytes_to_read_before_claim): New global. + (record_read_length): New function, sets new global + bytes_to_read_before_claim. + (parse_option): Handle 'read:' option. + (onclaim_file): Read file content before checking for claim. + * testsuite/ld-plugin/plugin-30.d: New file. + * testsuite/ld-plugin/plugin.exp: Add new test. + +2016-07-16 Alan Modra + + * plugin.c: Don't include libbfd.h. Include plugin-api.h + before bfd/plugin.h. + (plugin_object_p): Use bfd_plugin_open_input. + +2016-07-16 Alan Modra + + * ldlang.c (open_output): Replace bfd_search_for_target with + bfd_iterate_over_targets. Localize vars. + +2016-07-16 Alan Modra + + * ldlang.c: Don't include libbfd.h. + * emultempl/nds32elf.em: Likewise. + * emultempl/ppc64elf.em: Likewise. + * emultempl/ppc32elf.em: Likewise. + (pagesize): Delete. + (params): Update init. + (ppc_after_open_output): Use params.pagesize. Don't call bfd_log2. + (PARSE_AND_LIST_ARGS_CASES): Use params.pagesize. + * emultempl/sh64elf.em: Don't include libbfd.h. + (after_allocation): Use ASSERT, not BFD_ASSERT. + * emultempl/xtensaelf.em: Don't include libbfd.h. + (replace_insn_sec_with_prop_sec): Use xmalloc, not bfd_malloc. + * Makefile.am: Update dependencies. + * Makefile.in: Regenerate. + +2016-07-15 Thomas Preud'homme + Nick Clifton + + * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Open import + library file for writing and initialize implib_bfd field of link_info + structure. + * emultempl/pe.em (pe_implib_filename): Remove variable declaration. + (OPTION_IMPLIB_FILENAME): Remove macro definition. + (gld${EMULATION_NAME}_add_options): Remove --out-implib option. + (gld_${EMULATION_NAME}_list_options): Likewise. + (gld${EMULATION_NAME}_handle_option): Likewise. + (gld_${EMULATION_NAME}_finish): Use command_line.out_implib_filename + instead of pe_implib_filename. + * emultempl/pep.em (pep_implib_filename): Remove variable declaration. + (OPTION_IMPLIB_FILENAME): Remove enumerator. + (gld${EMULATION_NAME}_add_options): Remove --out-implib option. + (gld_${EMULATION_NAME}_list_options): Likewise. + (gld${EMULATION_NAME}_handle_option): Likewise. + (gld_${EMULATION_NAME}_finish): Use command_line.out_implib_filename + instead of pep_implib_filename. + * ld.h (args_type): Declare new out_implib_filename field. + * ld.texinfo (--out-implib): Move documentation to arch-independent + part and rephrase to apply to ELF targets. + * ldexp.c (exp_fold_tree_1): Set ldscript_def field to 1 for symbols + defined in linker scripts. + * ldlex.h (enum option_values): Declare new OPTION_OUT_IMPLIB + enumerator. + * lexsup.c (ld_options): Add entry for new --out-implib switch. + (parse_args): Handle OPTION_OUT_IMPLIB case. + * testsuite/ld-elf/elf.exp (Generate empty import library): New test. + (Generate import library): Likewise. + * testsuite/ld-elf/implib.s: Likewise. + * testsuite/ld-elf/implib.rd: New file. + * testsuite/ld-elf/empty-implib.out: Likewise + +2016-07-15 Nick Clifton + + * testsuite/ld-arc/arc.exp: Always run the sda-relocs test in + little endian mode. + +2016-07-14 Maciej W. Rozycki + + * testsuite/ld-mips-elf/mips-elf.exp: Run + `branch-absolute-addend', `mips16-branch-absolute', + `mips16-branch-absolute-addend' and + `micromips-branch-absolute-addend'. + +2016-07-14 Maciej W. Rozycki + + * testsuite/ld-mips-elf/mips16-branch-absolute.d: New test. + * testsuite/ld-mips-elf/mips16-branch-absolute-n32.d: New test. + * testsuite/ld-mips-elf/mips16-branch-absolute-n64.d: New test. + * testsuite/ld-mips-elf/mips16-branch-absolute-addend.d: New + test. + * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d: New + test. + * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d: New + test. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except + from `mips16-branch-absolute' and + `mips16-branch-absolute-addend', referred indirectly only. + +2016-07-14 Maciej W. Rozycki + + * testsuite/ld-mips-elf/branch-absolute.d: New test. + * testsuite/ld-mips-elf/branch-absolute-n32.d: New test. + * testsuite/ld-mips-elf/branch-absolute-n64.d: New test. + * testsuite/ld-mips-elf/branch-absolute-addend.d: New test. + * testsuite/ld-mips-elf/branch-absolute-addend-n32.d: New test. + * testsuite/ld-mips-elf/branch-absolute-addend-n64.d: New test. + * testsuite/ld-mips-elf/micromips-branch-absolute.d: New test. + * testsuite/ld-mips-elf/micromips-branch-absolute-n32.d: New + test. + * testsuite/ld-mips-elf/micromips-branch-absolute-n64.d: New + test. + * testsuite/ld-mips-elf/micromips-branch-absolute-addend.d: New + test. + * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d: + New test. + * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d: + New test. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except + from `branch-absolute-addend' and + `micromips-branch-absolute-addend', referred indirectly only. + +2016-07-14 Claudiu Zissulescu + + * emulparams/arcelf.sh (SDATA_START_SYMBOLS): Add offset. + * testsuite/ld-arc/sda-relocs.dd: New file. + * testsuite/ld-arc/sda-relocs.ld: Likewise. + * testsuite/ld-arc/sda-relocs.rd: Likewise. + * testsuite/ld-arc/sda-relocs.s: Likewise. + * testsuite/ld-arc/arc.exp: Add SDA tests. + +2016-07-11 Claudiu Zissulescu + + * testsuite/ld-arc/nps-1b.err: Update test to handle more + verbosity. + +2016-07-09 Alan Modra + + * testsuite/ld-powerpc/elfv2exe.d: Update. + +2016-07-06 James Bowman + + * scripttempl/ft32.sc (__PMSIZE): Correct __PMSIZE_. + (DATA): add ALIGN. + (BSS): add ALIGN + +2016-07-05 H.J. Lu + + * testsuite/ld-plugin/lto.exp: Add -flto to PR ld/20321 test. + +2016-07-05 Andre Vieria + + * testsuite/ld-arm/farcall-thumb2-purecode.d: New test result. + * testsuite/ld-arm/farcall-thumb2-purecode.s: New test. + * testsuite/ld-arm/arm-elf.exp: Run it. + +2016-07-05 Andre Vieria + + * testsuite/ld-arm/arm_noread.ld: Renamed to ... + testsuite/ld-arm/arm_purecode.ld: ... this, and replaced + all noread's by purecode. + +2016-07-05 Jan Beulich + + * ldexp.c (exp_fold_tree_1): Set linker_def field based on + assignment line number. + * ldlex.l (lineno): Drop initializer. + (<>): Set lineno to zero after reaching top of stack. + +2016-07-04 H.J. Lu + + PR ld/20321 + * plugin.c (plugin_opt_plugin): Warn and return if plugin has + been loaded already. + * testsuite/ld-plugin/lto.exp: Run PR ld/20321 test. + * testsuite/ld-plugin/pr20321.c: New file. + +2016-07-04 Nick Clifton + + * scripttempl/ft32.sc (__PMSIZE_): If not defined, set to 256K. + (__RAMSIZE): If not defined, set to 64K. + (MEMORY): Set the flash region size to __PMSIZE and the ram region + size to __RAMSIZE. + +2016-07-02 Maciej W. Rozycki + + * testsuite/ld-mips-elf/branch-misc-2.d: New test. + * testsuite/ld-mips-elf/mips-elf.exp: Run it. + +2016-07-01 Thomas Preud'homme + + * testsuite/ld-arm/arm-elf.exp (Thumb-2 BL): Assemble for ARMv7. + (Thumb-2 BL on ARMv6-M): New testcase. + * testsuite/ld-arm/thumb2-bl.d: Do not try to match testcase filename. + * testsuite/ld-arm/thumb2-bl.s: Do not select architecture. + +2016-07-01 Tristan Gingold + + * NEWS: Add marker for 2.27. + +2016-06-28 H.J. Lu + + * testsuite/ld-gc/gc.exp: Run pr20306 test. + * ld-gc/pr20306.c: New file. + * ld-gc/pr20306.d: Likewise. + +2016-06-28 Nick Clifton + + * testsuite/ld-elf/comm-data.exp: Expect comm-data2 test to fail + for bfin. + * testsuite/ld-elf/elf.exp: Expect pr14170 and symbolic function + tests to fail for bfin. + * testsuite/ld-elf/endsym.d: Expect to fail with cr16, crx, dlx, + nds32 and visium. + * testsuite/ld-elf/var1.d: Expect to fail with d30v, dlx, ft32 and + microblaze. + * testsuite/ld-pe/pe.exp: Expect foreign symbol test to fail for + mcore-pe. + +2016-06-28 Nick Clifton + + * testsuite/ld-elf/merge.d: Add m68hc11 to list of targets that + expect to fail this test. + * testsuite/ld-scripts/overlay-size.d: Skip the entire test for + RX. + * testsuite/ld-scripts/rgn-at10.d: No longer expect this test to + fail for the RX. + * testsuite/ld-scripts/rgn-at11.d: Likewise. + * testsuite/ld-scripts/rgn-at2.d: Likewise. + * testsuite/ld-scripts/rgn-at6.d: Likewise. + * testsuite/ld-scripts/rgn-at7.d: Likewise. + * testsuite/ld-scripts/rgn-at8.d: Likewise. + +2016-06-28 James Clarke + + * testsuite/ld-elf/symbolic-func.r: Allow non-zero offsets from + .text. + +2016-06-28 Maciej W. Rozycki + + * testsuite/ld-mips-elf/attr-gnu-4-10.d: Match any UNIX OS/ABI. + * testsuite/ld-mips-elf/attr-gnu-4-50.d: Likewise. + * testsuite/ld-mips-elf/attr-gnu-4-60.d: Likewise. + * testsuite/ld-mips-elf/attr-gnu-4-70.d: Likewise. + +2016-06-28 Alan Modra + + PR ld/20302 + * testsuite/ld-scripts/pr20302.d: Exclude *-*-*aout. + +2016-06-28 Maciej W. Rozycki + + * testsuite/ld-mips-elf/mips16-branch-2.d: New test. + * testsuite/ld-mips-elf/mips16-branch-3.d: New test. + * testsuite/ld-mips-elf/mips16-branch-addend-2.d: New test. + * testsuite/ld-mips-elf/mips16-branch-addend-3.d: New test. + * testsuite/ld-mips-elf/mips16-branch.s: New test source. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests. + +2016-06-27 Nick Clifton + + PR ld/20302 + * lexsup.c (set_segment_start): If resetting the start address of + a section, remember to generate a new script element as well. + * testsuite/ld-scripts/pr20302.d: New test. + * testsuite/ld-scripts/scripts.exp: Run the new test. + +2016-06-24 Alan Modra + + * testsuite/ld-aarch64/aarch64-elf.exp (aarch64_choose_ilp32_emul): + Don't error out, always return an emulation. + +2016-06-24 Dilyan Palauzov + H.J. Lu + + * lexsup.c (elf_shlib_list_options): Check DEFAULT_LD_Z_RELRO + for -z relro help message. + 2016-06-22 Maciej W. Rozycki * testsuite/ld-mips-elf/undefweak-overflow.d: Use wildcard @@ -717,7 +1103,7 @@ * testsuite/ld-plugin/pr20103c.c: Likewise. 2016-05-24 Maciej W. Rozycki - + * testsuite/ld-mips-elf/jalx-local.d: New test. * testsuite/ld-mips-elf/jalx-local-n32.d: New test. * testsuite/ld-mips-elf/jalx-local-n64.d: New test.