1 2017-03-13 Nick Clifton <nickc@redhat.com>
4 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
6 2017-03-13 Tristan Gingold <gingold@adacore.com>
8 * ldlang.c (lang_check_section_addresses): Check for address space
10 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
11 * testsuite/ld-checks/over.s: New test source.
12 * testsuite/ld-checks/over.d: New test.
13 * testsuite/ld-checks/over2.s: New test source.
14 * testsuite/ld-checks/over2.d: New test.
16 2017-03-13 Alexey Neyman <stilor@att.net>
18 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
21 2017-03-11 Alan Modra <amodra@gmail.com>
23 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
24 sysroot for -rpath search.
26 2017-03-11 Alan Modra <amodra@gmail.com>
28 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
29 Only prefix absolute paths with sysroot. Handle DOS paths.
30 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
31 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
32 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
33 searches. Rename variable. Simplify get_runpath search.
35 2017-03-11 Alan Modra <amodra@gmail.com>
37 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
40 2017-03-11 Alan Modra <amodra@gmail.com>
42 * ld.texinfo (Orphan Sections): Mention that not all targets
44 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
45 * testsuite/ld-elf/orphan-10.d: Likewise.
47 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
49 * ldlang.c (lang_size_sections_1): Shortcut loop only after
50 tracking changes to the default regions LMA.
51 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
52 * testsuite/ld-elf/orphan-10.d: New file.
53 * testsuite/ld-elf/orphan-10.s: New file.
54 * NEWS: Mention change in behaviour.
56 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
58 * ldlang.c (lang_leave_output_section_statement): Move lma_region
60 (lang_propagate_lma_regions): ...this new function.
61 (lang_process): Call new function.
62 * testsuite/ld-elf/orphan-9.d: New file.
63 * testsuite/ld-elf/orphan-9.ld: New file.
64 * testsuite/ld-elf/orphan-9.s: New file.
65 * NEWS: Mention change in behaviour.
67 2017-03-07 Alan Modra <amodra@gmail.com>
69 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
70 is not an assert before referencing defsym.
72 2017-03-05 Alan Modra <amodra@gmail.com>
74 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
75 * testsuite/ld-elf/eh6.d: Likewise.
76 * testsuite/ld-alpha/tlsbin.dd: Likewise.
77 * testsuite/ld-alpha/tlsbin.td: Likewise.
78 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
79 * testsuite/ld-alpha/tlspic.dd: Likewise.
80 * testsuite/ld-alpha/tlspic.rd: Likewise.
81 * testsuite/ld-alpha/tlspic.sd: Likewise.
82 * testsuite/ld-alpha/tlspic.td: Likewise.
83 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
84 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
85 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
86 * testsuite/ld-x86-64/pr20830a.d: Likewise.
87 * testsuite/ld-x86-64/pr21038a.d: Likewise.
88 * testsuite/ld-x86-64/pr21038b.d: Likewise.
89 * testsuite/ld-x86-64/pr21038c.d: Likewise.
91 2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
94 * pe-dll.c (generate_edata): Fail if the input file(s) require too
97 2017-03-02 Alan Modra <amodra@gmail.com>
99 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
102 2017-02-28 Alan Modra <amodra@gmail.com>
104 * testsuite/ld-elf/merge.d: xfail for nios.
106 2017-02-28 Alan Modra <amodra@gmail.com>
108 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
109 limits of addpcis range.
111 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
113 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
115 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
116 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
118 2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
121 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
122 (.rodata): New section.
123 (.data): Remove .rodata*.
125 2017-02-25 Alan Modra <amodra@gmail.com>
127 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
128 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
129 defining HPUX where necessary. Define HPUX for implib tests.
130 * testsuite/ld-elf/comm-data4.d: Run for hpux.
131 * testsuite/ld-elf/endsym.d: Likewise.
132 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
133 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
134 * testsuite/ld-elf/comm-data5.s: Likewise.
135 * testsuite/ld-elf/endsym.s: Likewise.
136 * testsuite/ld-elf/pr14170c.s: Likewise.
137 * testsuite/ld-elf/symbol3.s: Likewise.
138 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
140 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
141 * testsuite/ld-elf/warn3.d: Run for hpux.
142 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
143 * testsuite/ld-scripts/rgn-at11.d: Likewise.
144 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
146 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
148 * testsuite/ld-elf/ver_def.d: New test.
149 * testsuite/ld-elf/ver_def.ld: New test linker script.
150 * testsuite/ld-elf/ver_def.ver: New test version script.
151 * testsuite/ld-elf/ver_def.s: New test source.
152 * testsuite/ld-elf/readelf.exp: New test script.
154 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
156 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
158 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
159 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
160 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
162 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
164 * testsuite/ld-mips-elf/jalr4.dd: New test.
165 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
167 2017-02-23 Alan Modra <amodra@gmail.com>
170 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
172 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
173 and sdarel reloc fix.
175 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
178 * testsuite/ld-elf/pr20828-d.sd: New test.
179 * testsuite/ld-elf/pr20828-e.sd: New test.
180 * testsuite/ld-elf/pr20828-v.od: New test.
181 * testsuite/ld-elf/pr20828-v.ver: New test version script.
182 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
183 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
185 * testsuite/ld-elf/shared.exp: Run the new tests.
187 2017-02-21 Nick Clifton <nickc@redhat.com>
189 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
190 about non-void function returning without a result.
192 2017-02-17 Alan Modra <amodra@gmail.com>
195 * scripttempl/pe.sc: Don't combine sections for ld -r.
196 * scripttempl/pep.sc: Likewise.
198 2017-02-17 Alan Modra <amodra@gmail.com>
201 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
202 rather than using OTHER_SECTIONS.
203 * emulparams/elf32mt.sh: Likewise.
204 * emulparams/elf32rx.sh: Likewise.
205 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
207 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
208 rather than using OTHER_SECTIONS.
209 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
210 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
211 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
212 * emulparams/shelf_uclinux.sh: Likewise.
213 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
214 to define _stack, not OTHER_SECTIONS.
215 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
216 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
217 * scripttempl/arclinux.sc: Likewise.
218 * scripttempl/elf64hppa.sc: Likewise.
219 * scripttempl/elfxtensa.sc: Likewise.
220 * scripttempl/nds32elf.sc: Likewise.
221 * scripttempl/armbpabi.sc: Move STACK before debug sections.
222 * scripttempl/elf_chaos.sc: Likewise.
223 * scripttempl/elfarc.sc: Delete STACK.
224 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
225 TINY_BSS_SECTION, and .stack before debug sections.
227 2017-02-17 Nick Clifton <nickc@redhat.com>
230 * ld.texinfo (Options): Add missing @item entry for --pop-state.
232 2017-02-17 Alan Modra <amodra@gmail.com>
234 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
235 multiple definition errors.
237 2017-02-17 Alan Modra <amodra@gmail.com>
239 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
240 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
242 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
244 * testsuite/ld-elf/shared.exp: Update expected results.
245 * testsuite/ld-elf/dwarf2.err: Likewise
247 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
249 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
250 * testsuite/ld-elf/dwarf2.err: New file.
251 * testsuite/ld-elf/dwarf2a.c: New file.
252 * testsuite/ld-elf/dwarf2b.c: New file.
253 * testsuite/ld-elf/dwarf3.c: New file.
254 * testsuite/ld-elf/dwarf3.err: New file.
256 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
258 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
259 error, warning_output, and error_output actions. Remove separate
261 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
263 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
265 2017-02-16 Alan Modra <amodra@gmail.com>
267 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
268 from void pointers to function pointers.
269 * testsuite/ld-elf/pr18718.c: Update to suit.
270 * testsuite/ld-elf/pr18720a.c: Update to suit.
272 2017-02-16 Alan Modra <amodra@gmail.com>
275 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
276 * testsuite/ld-elf/loadaddr2.d: Likewise.
277 * testsuite/ld-elf/loadaddr3a.d: Likewise.
278 * testsuite/ld-scripts/rgn-at5.d: Likewise.
280 2017-02-16 Alan Modra <amodra@gmail.com>
282 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
283 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
285 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
288 * testsuite/ld-i386/i386.exp: Run pr21168.
289 * testsuite/ld-i386/pr21168a.c: New file.
290 * testsuite/ld-i386/pr21168b.S: Likewise.
292 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
295 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
297 * testsuite/ld-i386/pr20244-4.s: New file.
298 * testsuite/ld-i386/pr20244-4a.d: Likewise.
299 * testsuite/ld-i386/pr20244-4b.d: Likewise.
300 * testsuite/ld-i386/pr20244-4c.d: Likewise.
302 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
304 * ldmisc.c (vfinfo): Don't print the function name again either
305 if no source file name has been found both now and previously.
306 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
307 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
308 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
309 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
310 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
311 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
312 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
313 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
314 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
315 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
317 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
319 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
321 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
322 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
324 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
326 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
327 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
328 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
329 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
330 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
331 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
332 * testsuite/ld-powerpc/tocopt.out: Likewise.
333 * testsuite/ld-powerpc/tocopt7.out: Likewise.
335 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
337 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
339 2017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
341 * testsuite/ld-scripts/sysroot-prefix.exp
342 (get_base_dir_for_scripts): New function.
343 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
345 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
347 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
348 _gp to __global_pointer$
350 2017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
352 * configure.tgt (arc*-*-linux*): Change the default linker
353 emulation based on --with-cpu selection.
354 * NEWS: Mention new configuration option.
356 2017-02-06 Jiong Wang <jiong.wang@arm.com>
358 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
361 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
363 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
365 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
367 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
370 2017-02-02 Jiong Wang <jiong.wang@arm.com>
372 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
373 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
374 dlopen support into "dlopen_run_tests". These tests include dl1*main
376 (dlopen_run_tests): New and only run it when check_libdl_available
377 returns true. XFAIL on *-*-netbsdelf*.
379 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
381 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
382 presentation of relocation addends.
383 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
384 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
385 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
387 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
389 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
391 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
392 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
394 2017-02-01 Jiong Wang <jiong.wang@arm.com>
396 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
397 Append $board_cflags to link commands.
399 2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
401 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
402 check for digit in second decimal place.
404 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
407 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
410 2017-01-31 Nick Clifton <nickc@redhat.com>
412 * ldmain.c (add_archive_element): Eliminate string buffer.
413 * ldlang.c (lang_print_asneeded): Likewise.
415 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
417 * emultempl/mipself.em (ignore_branch_isa): New variable.
418 (mips_create_output_section_statements): Rename
419 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
420 add `ignore_branch_isa' argument.
421 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
422 OPTION_NO_IGNORE_BRANCH_ISA enum values.
423 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
424 "no-ignore-branch-isa" options.
425 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
426 `--no-ignore-branch-isa'.
427 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
428 OPTION_NO_IGNORE_BRANCH_ISA.
430 * ld.texinfo (Options specific to MIPS targets): Add
431 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
432 (ld and the MIPS family): Likewise.
434 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
435 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
436 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
437 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
438 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
439 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
441 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
443 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
445 2017-01-29 Hans-Peter Nilsson <hp@axis.com>
448 Fix long-standing buglet and fallout from now-default initfini-array.
449 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
450 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
452 2017-01-27 Jiong Wang <jiong.wang@arm.com>
454 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
457 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
458 Nick Clifton <nickc@redhat.com>
461 * ld.texinfo (Options): Extend documentation of the --plugin
462 option. Include a description of where the plugins should be
465 2017-01-27 Nick Clifton <nickc@redhat.com>
467 * po/sr.po: New Serbian translation.
468 * configure.ac (ALL_LINGUAS): Add sr.
469 * configure: Regenerate.
471 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
473 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
474 (bfin-*-rtems*): Move to (bfin*-*-elf*).
475 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
476 (m68*-*-rtems*): Move to (m68*-*-elf*).
477 (mips*-*-rtems*): Move to (mips*-*-elf*).
478 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
479 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
480 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
481 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
483 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
485 * configure.tgt (h8300-*-rtemscoff*): Remove.
486 (i960-*-rtems*): Likewise.
487 (m68*-*-rtemscoff*): Likewise.
488 (sh-*-rtemscoff*): Likewise.
490 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
492 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
493 add implicit version nodes if an anonymous version tag is being
496 2017-01-24 Jiong Wang <jiong.wang@arm.com>
498 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
499 "Compile 8a", "Compile 8b"...
500 (lto_compile_elf_tests): ...to here. Always run these tests.
501 (lto_run_elf_tests): Move "LTO 7"...
502 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
503 environment where share library is supported.
505 2017-01-24 Alan Modra <amodra@gmail.com>
507 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
509 * testsuite/ld-powerpc/tlsexe.d: Likewise.
510 * testsuite/ld-powerpc/tlsexe.g: Likewise.
512 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
514 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
515 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
516 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
517 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
518 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
519 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
520 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
521 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
522 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
523 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
524 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
525 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
526 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
528 2017-01-23 Nick Clifton <nickc@redhat.com>
530 * po/ga.po: Updated Irish translation.
532 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
535 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
537 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
540 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
541 `fdata' and `edata' respectively.
542 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
543 * testsuite/ld-elf/pr20828-a.sd: Likewise.
544 * testsuite/ld-elf/pr20828-b.sd: Likewise.
545 * testsuite/ld-elf/pr20828-c.sd: Likewise.
547 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
550 * testsuite/ld-elf/pr20828-1.sd: Remove test.
551 * testsuite/ld-elf/pr20828-a.sd: New test.
552 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
553 * testsuite/ld-elf/pr20828-b.sd: ... this.
554 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
555 * testsuite/ld-elf/pr20828-c.sd: ... this.
556 * testsuite/ld-elf/shared.exp: Adjust accordingly.
558 2017-01-23 Jiong Wang <jiong.wang@arm.com>
560 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
561 board_cflags as gcc is used as linker driver.
562 * testsuite/ld-unique/unique.exp: Likewise
564 2017-01-20 Jiong Wang <jiong.wang@arm.com>
566 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
567 * testsuite/ld-aarch64/func-in-so.s: New test source file.
568 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
569 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
571 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
573 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
575 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
578 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
579 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
581 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
584 * testsuite/ld-elf/pr20828-1.sd: New test.
585 * testsuite/ld-elf/pr20828-2a.sd: New test.
586 * testsuite/ld-elf/pr20828-2b.sd: New test.
587 * testsuite/ld-elf/pr20828.ld: New test linker script.
588 * testsuite/ld-elf/pr20828.ver: New test version script.
589 * testsuite/ld-elf/pr20828.s: New test source.
590 * testsuite/ld-elf/shared.exp: Run the new test.
592 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
595 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
596 relocation pairing link test.
598 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
600 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
601 uniqeue.exp, as not all targets have such support.
603 2017-01-16 Nick Clifton <nickc@redhat.com>
605 * po/sv.po: Updated Swedish translation.
607 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
610 * testsuite/ld-x86-64/pr21038b.d: Updated.
611 * testsuite/ld-x86-64/pr21038c.d: New file.
612 * testsuite/ld-x86-64/pr21038c.s: Likewise.
613 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
615 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
618 * testsuite/ld-x86-64/pr21038a.d: New file.
619 * testsuite/ld-x86-64/pr21038a.s: Likewise.
620 * testsuite/ld-x86-64/pr21038b.d: Likewise.
621 * testsuite/ld-x86-64/pr21038b.s: Likewise.
622 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
624 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
626 * configure.tgt: Add entries for x86-redox and x86_64-redox.
628 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
630 * testsuite/ld-x86-64/pr20830b.d: Updated.
632 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
634 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
635 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
636 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
637 * testsuite/ld-x86-64/pr20830b.d: New file.
638 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
641 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
644 * testsuite/ld-i386/i386.exp: Run pr20830.
645 * testsuite/ld-x86-64/x86-64.exp: Likewise.
646 * testsuite/ld-i386/pr20830.d: New file.
647 * testsuite/ld-i386/pr20830.s: Likewise.
648 * testsuite/ld-x86-64/pr20830.d: Likewise.
649 * testsuite/ld-x86-64/pr20830.s: Likewise.
651 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
653 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
654 -Wl,--as-needed to $CC.
655 * testsuite/ld-i386/tls.exp: Likewise.
657 2017-01-10 Nick Clifton <nickc@redhat.com>
659 * po/sv.po: Updated Swedish translation.
661 2016-12-09 Graham Markall <graham.markall@embecosm.com>
662 Andrew Burgess <andrew.burgess@embecosm.com>
664 * Makefile.am: Add earclinux_nps.c target and add to
665 ALL_EMULATION_SOURCES.
666 * Makefile.in: Likewise, regenerated.
667 * configure.tgt: Add arclinux_nps as an extra emulation for
668 arc*-*-elf* and arc*-*-linux*.
669 * emulparams/arc-nps.sh: New file.
670 * emulparams/arclinux_nps.sh: New file.
671 * testsuite/ld-arc/arclinux-nps.d,
672 * testsuite/ld-arc/arclinux-nps.s: New test.
674 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
677 * ldlex.l (option): Add noyywrap
679 * ldlex.h (yywrap): Delete prototype.
681 2017-01-04 Alan Modra <amodra@gmail.com>
683 * testsuite/ld-elf/audit.exp: Check for shared lib support.
684 * testsuite/ld-elf/compress.exp: Likewise.
685 * testsuite/ld-elf/dwarf.exp: Likewise.
686 * testsuite/ld-elf/shared.exp: Likewise.
687 * testsuite/ld-elf/wrap.exp: Likewise.
688 * testsuite/ld-ifunc/ifunc.exp: Likewise.
689 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
691 2017-01-03 Alan Modra <amodra@gmail.com>
693 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
694 allow test to continue after compilation errors.
695 (run_cc_link_tests): Likewise.
697 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
699 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
700 (epruelf.c): Remove unneeded dependencies.
701 * Makefile.in: Regenerate
703 2017-01-03 Alan Modra <amodra@gmail.com>
705 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
707 * testsuite/ld-elfweak/elfweak.exp: Likewise.
708 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
710 2017-01-03 Alan Modra <amodra@gmail.com>
712 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
713 * testsuite/ld-pie/pie.exp: Likewise.
714 * testsuite/ld-plugin/lto.exp: Likewise.
716 2017-01-02 Alan Modra <amodra@gmail.com>
718 * Makefile.am (bootstrap): Delete rule.
719 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
720 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
721 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
722 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
723 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
724 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
725 * Makefile.in: Regenerate.
726 * configure: Regenerate.
727 * testsuite/config/default.exp (get_link_files): Delete.
728 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
730 (ld_simple_link): Delete.
731 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
732 (default_ld_simple_link): Rename to default_ld_link.
733 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
734 (run_ld_link_tests): Use ld_link, not ld_simple_link.
735 (run_cc_link_tests): Likewise.
736 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
737 Don't run exe when not native, and return unsupported.
738 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
739 Link ld1 etc. using $CC.
740 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
741 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
742 * testsuite/ld-cygwin/exe-export.exp: Likewise.
743 * testsuite/ld-elf/binutils.exp: Likewise.
744 * testsuite/ld-elf/eh-group.exp: Likewise.
745 * testsuite/ld-elf/exclude.exp: Likewise.
746 * testsuite/ld-elf/frame.exp: Likewise.
747 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
748 * testsuite/ld-elf/tls_common.exp: Likewise.
749 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
750 * testsuite/ld-fastcall/fastcall.exp: Likewise.
751 * testsuite/ld-gc/gc.exp: Likewise.
752 * testsuite/ld-ifunc/binutils.exp: Likewise.
753 * testsuite/ld-mep/mep.exp: Likewise.
754 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
755 * testsuite/ld-mn10300/mn10300.exp: Likewise.
756 * testsuite/ld-nios2/nios2.exp: Likewise.
757 * testsuite/ld-pe/pe-compile.exp: Likewise.
758 * testsuite/ld-pe/pe-run.exp: Likewise.
759 * testsuite/ld-pe/pe-run2.exp: Likewise.
760 * testsuite/ld-plugin/plugin.exp: Likewise.
761 * testsuite/ld-scripts/align.exp: Likewise.
762 * testsuite/ld-scripts/alignof.exp: Likewise.
763 * testsuite/ld-scripts/assert.exp: Likewise.
764 * testsuite/ld-scripts/defined.exp: Likewise.
765 * testsuite/ld-scripts/extern.exp: Likewise.
766 * testsuite/ld-scripts/log2.exp: Likewise.
767 * testsuite/ld-scripts/map-address.exp: Likewise.
768 * testsuite/ld-scripts/phdrs.exp: Likewise.
769 * testsuite/ld-scripts/phdrs2.exp: Likewise.
770 * testsuite/ld-scripts/script.exp: Likewise.
771 * testsuite/ld-scripts/section-flags.exp: Likewise.
772 * testsuite/ld-scripts/sizeof.exp: Likewise.
773 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
774 * testsuite/ld-scripts/weak.exp: Likewise.
775 * testsuite/ld-selective/selective.exp: Likewise.
776 * testsuite/ld-sh/sh.exp: Likewise.
777 * testsuite/ld-sh/sh64/relax.exp: Likewise.
778 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
779 * testsuite/ld-srec/srec.exp: Likewise.
780 * testsuite/ld-tic6x/tic6x.exp: Likewise.
781 * testsuite/ld-undefined/weak-undef.exp: Likewise.
782 * testsuite/ld-versados/versados.exp: Likewise.
783 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
784 * testsuite/ld-xtensa/coalesce.exp: Likewise.
785 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
786 * testsuite/ld-xtensa/lcall.exp: Likewise.
787 * testsuite/ld-elf/audit.exp: Run non-native too.
788 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
790 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
791 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
792 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
793 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
794 -Wl,--no-as-needed to most tests.
795 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
796 to simplify quoting. Set run_tests using [list] rather than
797 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
798 to many test. Prefix ld options with -Wl,.
799 (mix_pic_and_non_pic): Don't run exe if not native.
800 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
801 -Wl,--no-as-needed and prefix ld options with -Wl,.
802 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
804 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
805 (visibility_test): Don't run exe if not native.
806 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
808 (build_exec): Don't run exe if not native.
809 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
810 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
811 to some tests and prefix ld options with -Wl,. Expect GNU
812 for hppa-linux even when no ifuncs. Delete cleanup.
813 * testsuite/ld-pie/pie.exp: Run non-native too.
814 * testsuite/ld-plugin/lto.exp: Likewise.
815 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
817 (shared_test): Don't run exe if not native.
818 * testsuite/ld-size/size.exp: Run non-native too. Add
819 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
820 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
821 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
822 to some tests and prefix ld options with -Wl,. Expect GNU
823 for hppa-linux even when no unique syms. Delete cleanup.
824 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
825 tests and prefix ld options with -Wl,.
826 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
827 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
829 2017-01-02 Alan Modra <amodra@gmail.com>
831 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
833 2017-01-02 Alan Modra <amodra@gmail.com>
836 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
837 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
838 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
841 2017-01-02 Alan Modra <amodra@gmail.com>
843 Update year range in copyright notice of all files.
845 For older changes see ChangeLog-2016
847 Copyright (C) 2017 Free Software Foundation, Inc.
849 Copying and distribution of this file, with or without modification,
850 are permitted in any medium without royalty provided the copyright
851 notice and this notice are preserved.
857 version-control: never