1 2017-04-07 Alan Modra <amodra@gmail.com>
3 * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
4 * testsuite/ld-elf/mbind1b.d: Likewise.
5 * testsuite/ld-elf/mbind1c.d: Likewise.
7 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
10 * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
11 indentation issue introduced with last commit.
13 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
16 * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
17 first test for cris*-*-*.
19 2017-04-04 Maciej W. Rozycki <macro@imgtec.com>
22 * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
23 * testsuite/ld-elf/pr21233.sd: New test.
24 * testsuite/ld-elf/pr21233-l.sd: New test.
25 * testsuite/ld-elf/pr21233.ld: New test linker script.
26 * testsuite/ld-elf/pr21233-e.ld: New test linker script.
27 * testsuite/ld-elf/pr21233.s: New test source.
28 * testsuite/ld-elf/pr21233-l.s: New test source.
29 * testsuite/ld-elf/shared.exp: Run the new tests.
31 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
33 * NEWS: Mention support for ELF SHF_GNU_MBIND and
35 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
36 input GNU_MBIND sections with the same type, attributes and
37 sh_info field into a single output GNU_MBIND section.
38 * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
39 * testsuite/ld-elf/mbind1.s: New file.
40 * testsuite/ld-elf/mbind1a.d: Likewise.
41 * testsuite/ld-elf/mbind1b.d: Likewise.
42 * testsuite/ld-elf/mbind1c.d: Likewise.
43 * testsuite/ld-elf/mbind2a.s: Likewise.
44 * testsuite/ld-elf/mbind2b.c: Likewise.
46 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
48 * NEWS: Mention support for ELF GNU program properties.
49 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
50 ELF setup_gnu_properties.
51 * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
52 * testsuite/ld-i386/pass.c: New file.
53 * testsuite/ld-i386/property-1.r: Likewise.
54 * testsuite/ld-i386/property-2.r: Likewise.
55 * testsuite/ld-i386/property-3.r: Likewise.
56 * testsuite/ld-i386/property-4.r: Likewise.
57 * testsuite/ld-i386/property-5.r: Likewise.
58 * testsuite/ld-i386/property-6.r: Likewise.
59 * testsuite/ld-i386/property-6a.c: Likewise.
60 * testsuite/ld-i386/property-6b.c: Likewise.
61 * testsuite/ld-i386/property-6c.S: Likewise.
62 * testsuite/ld-i386/property-7.r: Likewise.
63 * testsuite/ld-i386/property-no-copy.S: Likewise.
64 * testsuite/ld-i386/property-stack.S: Likewise.
65 * testsuite/ld-i386/property-unsorted-1.S: Likewise.
66 * testsuite/ld-i386/property-unsorted-2.S: Likewise.
67 * testsuite/ld-i386/property-x86-1.S: Likewise.
68 * testsuite/ld-i386/property-x86-2.S: Likewise.
69 * testsuite/ld-x86-64/pass.c: Likewise.
70 * testsuite/ld-x86-64/property-1.r: Likewise.
71 * testsuite/ld-x86-64/property-2.r: Likewise.
72 * testsuite/ld-x86-64/property-3.r: Likewise.
73 * testsuite/ld-x86-64/property-4.r: Likewise.
74 * testsuite/ld-x86-64/property-5.r: Likewise.
75 * testsuite/ld-x86-64/property-6.r: Likewise.
76 * testsuite/ld-x86-64/property-6a.c: Likewise.
77 * testsuite/ld-x86-64/property-6b.c: Likewise.
78 * testsuite/ld-x86-64/property-6c.S: Likewise.
79 * testsuite/ld-x86-64/property-7.r: Likewise.
80 * testsuite/ld-x86-64/property-no-copy.S: Likewise.
81 * testsuite/ld-x86-64/property-stack.S: Likewise.
82 * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
83 * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
84 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
85 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
86 * testsuite/ld-x86-64/x86-64.exp: Run property tests for
89 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
92 * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
93 testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
95 2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
97 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
98 false for nios2-*-elf.
100 2017-03-21 gingold <gingold@gingold-Precision-7510>
102 * ldlang.c (lang_check_section_addresses): Check only for
105 2017-03-17 Alan Modra <amodra@gmail.com>
107 * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
109 2017-03-15 Tristan Gingold <gingold@adacore.com>
111 * testsuite/ld-checks/checks.exp (overflow_check): Disable for
114 2017-03-14 H.J. Lu <hongjiu.lu@intel.com>
116 * ldlang.c (lang_check_section_addresses): Use addr_mask to
119 2017-03-13 Nick Clifton <nickc@redhat.com>
122 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
124 2017-03-13 Tristan Gingold <gingold@adacore.com>
126 * ldlang.c (lang_check_section_addresses): Check for address space
128 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
129 * testsuite/ld-checks/over.s: New test source.
130 * testsuite/ld-checks/over.d: New test.
131 * testsuite/ld-checks/over2.s: New test source.
132 * testsuite/ld-checks/over2.d: New test.
134 2017-03-13 Alexey Neyman <stilor@att.net>
136 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
139 2017-03-11 Alan Modra <amodra@gmail.com>
141 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
142 sysroot for -rpath search.
144 2017-03-11 Alan Modra <amodra@gmail.com>
146 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
147 Only prefix absolute paths with sysroot. Handle DOS paths.
148 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
149 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
150 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
151 searches. Rename variable. Simplify get_runpath search.
153 2017-03-11 Alan Modra <amodra@gmail.com>
155 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
158 2017-03-11 Alan Modra <amodra@gmail.com>
160 * ld.texinfo (Orphan Sections): Mention that not all targets
162 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
163 * testsuite/ld-elf/orphan-10.d: Likewise.
165 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
167 * ldlang.c (lang_size_sections_1): Shortcut loop only after
168 tracking changes to the default regions LMA.
169 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
170 * testsuite/ld-elf/orphan-10.d: New file.
171 * testsuite/ld-elf/orphan-10.s: New file.
172 * NEWS: Mention change in behaviour.
174 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
176 * ldlang.c (lang_leave_output_section_statement): Move lma_region
178 (lang_propagate_lma_regions): ...this new function.
179 (lang_process): Call new function.
180 * testsuite/ld-elf/orphan-9.d: New file.
181 * testsuite/ld-elf/orphan-9.ld: New file.
182 * testsuite/ld-elf/orphan-9.s: New file.
183 * NEWS: Mention change in behaviour.
185 2017-03-07 Alan Modra <amodra@gmail.com>
187 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
188 is not an assert before referencing defsym.
190 2017-03-05 Alan Modra <amodra@gmail.com>
192 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
193 * testsuite/ld-elf/eh6.d: Likewise.
194 * testsuite/ld-alpha/tlsbin.dd: Likewise.
195 * testsuite/ld-alpha/tlsbin.td: Likewise.
196 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
197 * testsuite/ld-alpha/tlspic.dd: Likewise.
198 * testsuite/ld-alpha/tlspic.rd: Likewise.
199 * testsuite/ld-alpha/tlspic.sd: Likewise.
200 * testsuite/ld-alpha/tlspic.td: Likewise.
201 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
202 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
203 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
204 * testsuite/ld-x86-64/pr20830a.d: Likewise.
205 * testsuite/ld-x86-64/pr21038a.d: Likewise.
206 * testsuite/ld-x86-64/pr21038b.d: Likewise.
207 * testsuite/ld-x86-64/pr21038c.d: Likewise.
209 2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
212 * pe-dll.c (generate_edata): Fail if the input file(s) require too
215 2017-03-02 Alan Modra <amodra@gmail.com>
217 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
220 2017-02-28 Alan Modra <amodra@gmail.com>
222 * testsuite/ld-elf/merge.d: xfail for nios.
224 2017-02-28 Alan Modra <amodra@gmail.com>
226 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
227 limits of addpcis range.
229 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
231 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
233 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
234 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
236 2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
239 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
240 (.rodata): New section.
241 (.data): Remove .rodata*.
243 2017-02-25 Alan Modra <amodra@gmail.com>
245 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
246 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
247 defining HPUX where necessary. Define HPUX for implib tests.
248 * testsuite/ld-elf/comm-data4.d: Run for hpux.
249 * testsuite/ld-elf/endsym.d: Likewise.
250 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
251 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
252 * testsuite/ld-elf/comm-data5.s: Likewise.
253 * testsuite/ld-elf/endsym.s: Likewise.
254 * testsuite/ld-elf/pr14170c.s: Likewise.
255 * testsuite/ld-elf/symbol3.s: Likewise.
256 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
258 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
259 * testsuite/ld-elf/warn3.d: Run for hpux.
260 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
261 * testsuite/ld-scripts/rgn-at11.d: Likewise.
262 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
264 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
266 * testsuite/ld-elf/ver_def.vd: New test.
267 * testsuite/ld-elf/ver_def-tic6x.vd: New test.
268 * testsuite/ld-elf/ver_def.ld: New test linker script.
269 * testsuite/ld-elf/ver_def.ver: New test version script.
270 * testsuite/ld-elf/ver_def.s: New test source.
271 * testsuite/ld-elf/readelf.exp: New test script.
273 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
275 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
277 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
278 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
279 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
281 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
283 * testsuite/ld-mips-elf/jalr4.dd: New test.
284 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
286 2017-02-23 Alan Modra <amodra@gmail.com>
289 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
291 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
292 and sdarel reloc fix.
294 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
297 * testsuite/ld-elf/pr20828-d.sd: New test.
298 * testsuite/ld-elf/pr20828-e.sd: New test.
299 * testsuite/ld-elf/pr20828-v.od: New test.
300 * testsuite/ld-elf/pr20828-v.ver: New test version script.
301 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
302 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
304 * testsuite/ld-elf/shared.exp: Run the new tests.
306 2017-02-21 Nick Clifton <nickc@redhat.com>
308 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
309 about non-void function returning without a result.
311 2017-02-17 Alan Modra <amodra@gmail.com>
314 * scripttempl/pe.sc: Don't combine sections for ld -r.
315 * scripttempl/pep.sc: Likewise.
317 2017-02-17 Alan Modra <amodra@gmail.com>
320 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
321 rather than using OTHER_SECTIONS.
322 * emulparams/elf32mt.sh: Likewise.
323 * emulparams/elf32rx.sh: Likewise.
324 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
326 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
327 rather than using OTHER_SECTIONS.
328 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
329 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
330 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
331 * emulparams/shelf_uclinux.sh: Likewise.
332 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
333 to define _stack, not OTHER_SECTIONS.
334 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
335 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
336 * scripttempl/arclinux.sc: Likewise.
337 * scripttempl/elf64hppa.sc: Likewise.
338 * scripttempl/elfxtensa.sc: Likewise.
339 * scripttempl/nds32elf.sc: Likewise.
340 * scripttempl/armbpabi.sc: Move STACK before debug sections.
341 * scripttempl/elf_chaos.sc: Likewise.
342 * scripttempl/elfarc.sc: Delete STACK.
343 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
344 TINY_BSS_SECTION, and .stack before debug sections.
346 2017-02-17 Nick Clifton <nickc@redhat.com>
349 * ld.texinfo (Options): Add missing @item entry for --pop-state.
351 2017-02-17 Alan Modra <amodra@gmail.com>
353 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
354 multiple definition errors.
356 2017-02-17 Alan Modra <amodra@gmail.com>
358 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
359 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
361 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
363 * testsuite/ld-elf/shared.exp: Update expected results.
364 * testsuite/ld-elf/dwarf2.err: Likewise
366 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
368 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
369 * testsuite/ld-elf/dwarf2.err: New file.
370 * testsuite/ld-elf/dwarf2a.c: New file.
371 * testsuite/ld-elf/dwarf2b.c: New file.
372 * testsuite/ld-elf/dwarf3.c: New file.
373 * testsuite/ld-elf/dwarf3.err: New file.
375 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
377 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
378 error, warning_output, and error_output actions. Remove separate
380 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
382 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
384 2017-02-16 Alan Modra <amodra@gmail.com>
386 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
387 from void pointers to function pointers.
388 * testsuite/ld-elf/pr18718.c: Update to suit.
389 * testsuite/ld-elf/pr18720a.c: Update to suit.
391 2017-02-16 Alan Modra <amodra@gmail.com>
394 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
395 * testsuite/ld-elf/loadaddr2.d: Likewise.
396 * testsuite/ld-elf/loadaddr3a.d: Likewise.
397 * testsuite/ld-scripts/rgn-at5.d: Likewise.
399 2017-02-16 Alan Modra <amodra@gmail.com>
401 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
402 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
404 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
407 * testsuite/ld-i386/i386.exp: Run pr21168.
408 * testsuite/ld-i386/pr21168a.c: New file.
409 * testsuite/ld-i386/pr21168b.S: Likewise.
411 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
414 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
416 * testsuite/ld-i386/pr20244-4.s: New file.
417 * testsuite/ld-i386/pr20244-4a.d: Likewise.
418 * testsuite/ld-i386/pr20244-4b.d: Likewise.
419 * testsuite/ld-i386/pr20244-4c.d: Likewise.
421 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
423 * ldmisc.c (vfinfo): Don't print the function name again either
424 if no source file name has been found both now and previously.
425 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
426 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
427 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
428 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
429 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
430 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
431 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
432 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
433 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
434 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
436 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
438 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
440 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
441 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
443 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
445 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
446 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
447 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
448 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
449 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
450 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
451 * testsuite/ld-powerpc/tocopt.out: Likewise.
452 * testsuite/ld-powerpc/tocopt7.out: Likewise.
454 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
456 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
458 2017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
460 * testsuite/ld-scripts/sysroot-prefix.exp
461 (get_base_dir_for_scripts): New function.
462 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
464 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
466 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
467 _gp to __global_pointer$
469 2017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
471 * configure.tgt (arc*-*-linux*): Change the default linker
472 emulation based on --with-cpu selection.
473 * NEWS: Mention new configuration option.
475 2017-02-06 Jiong Wang <jiong.wang@arm.com>
477 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
480 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
482 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
484 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
486 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
489 2017-02-02 Jiong Wang <jiong.wang@arm.com>
491 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
492 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
493 dlopen support into "dlopen_run_tests". These tests include dl1*main
495 (dlopen_run_tests): New and only run it when check_libdl_available
496 returns true. XFAIL on *-*-netbsdelf*.
498 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
500 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
501 presentation of relocation addends.
502 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
503 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
504 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
506 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
508 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
510 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
511 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
513 2017-02-01 Jiong Wang <jiong.wang@arm.com>
515 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
516 Append $board_cflags to link commands.
518 2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
520 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
521 check for digit in second decimal place.
523 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
526 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
529 2017-01-31 Nick Clifton <nickc@redhat.com>
531 * ldmain.c (add_archive_element): Eliminate string buffer.
532 * ldlang.c (lang_print_asneeded): Likewise.
534 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
536 * emultempl/mipself.em (ignore_branch_isa): New variable.
537 (mips_create_output_section_statements): Rename
538 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
539 add `ignore_branch_isa' argument.
540 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
541 OPTION_NO_IGNORE_BRANCH_ISA enum values.
542 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
543 "no-ignore-branch-isa" options.
544 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
545 `--no-ignore-branch-isa'.
546 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
547 OPTION_NO_IGNORE_BRANCH_ISA.
549 * ld.texinfo (Options specific to MIPS targets): Add
550 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
551 (ld and the MIPS family): Likewise.
553 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
554 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
555 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
556 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
557 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
558 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
560 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
562 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
564 2017-01-29 Hans-Peter Nilsson <hp@axis.com>
567 Fix long-standing buglet and fallout from now-default initfini-array.
568 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
569 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
571 2017-01-27 Jiong Wang <jiong.wang@arm.com>
573 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
576 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
577 Nick Clifton <nickc@redhat.com>
580 * ld.texinfo (Options): Extend documentation of the --plugin
581 option. Include a description of where the plugins should be
584 2017-01-27 Nick Clifton <nickc@redhat.com>
586 * po/sr.po: New Serbian translation.
587 * configure.ac (ALL_LINGUAS): Add sr.
588 * configure: Regenerate.
590 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
592 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
593 (bfin-*-rtems*): Move to (bfin*-*-elf*).
594 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
595 (m68*-*-rtems*): Move to (m68*-*-elf*).
596 (mips*-*-rtems*): Move to (mips*-*-elf*).
597 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
598 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
599 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
600 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
602 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
604 * configure.tgt (h8300-*-rtemscoff*): Remove.
605 (i960-*-rtems*): Likewise.
606 (m68*-*-rtemscoff*): Likewise.
607 (sh-*-rtemscoff*): Likewise.
609 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
611 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
612 add implicit version nodes if an anonymous version tag is being
615 2017-01-24 Jiong Wang <jiong.wang@arm.com>
617 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
618 "Compile 8a", "Compile 8b"...
619 (lto_compile_elf_tests): ...to here. Always run these tests.
620 (lto_run_elf_tests): Move "LTO 7"...
621 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
622 environment where share library is supported.
624 2017-01-24 Alan Modra <amodra@gmail.com>
626 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
628 * testsuite/ld-powerpc/tlsexe.d: Likewise.
629 * testsuite/ld-powerpc/tlsexe.g: Likewise.
631 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
633 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
634 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
635 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
636 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
637 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
638 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
639 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
640 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
641 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
642 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
643 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
644 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
645 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
647 2017-01-23 Nick Clifton <nickc@redhat.com>
649 * po/ga.po: Updated Irish translation.
651 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
654 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
656 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
659 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
660 `fdata' and `edata' respectively.
661 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
662 * testsuite/ld-elf/pr20828-a.sd: Likewise.
663 * testsuite/ld-elf/pr20828-b.sd: Likewise.
664 * testsuite/ld-elf/pr20828-c.sd: Likewise.
666 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
669 * testsuite/ld-elf/pr20828-1.sd: Remove test.
670 * testsuite/ld-elf/pr20828-a.sd: New test.
671 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
672 * testsuite/ld-elf/pr20828-b.sd: ... this.
673 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
674 * testsuite/ld-elf/pr20828-c.sd: ... this.
675 * testsuite/ld-elf/shared.exp: Adjust accordingly.
677 2017-01-23 Jiong Wang <jiong.wang@arm.com>
679 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
680 board_cflags as gcc is used as linker driver.
681 * testsuite/ld-unique/unique.exp: Likewise
683 2017-01-20 Jiong Wang <jiong.wang@arm.com>
685 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
686 * testsuite/ld-aarch64/func-in-so.s: New test source file.
687 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
688 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
690 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
692 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
694 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
697 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
698 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
700 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
703 * testsuite/ld-elf/pr20828-1.sd: New test.
704 * testsuite/ld-elf/pr20828-2a.sd: New test.
705 * testsuite/ld-elf/pr20828-2b.sd: New test.
706 * testsuite/ld-elf/pr20828.ld: New test linker script.
707 * testsuite/ld-elf/pr20828.ver: New test version script.
708 * testsuite/ld-elf/pr20828.s: New test source.
709 * testsuite/ld-elf/shared.exp: Run the new test.
711 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
714 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
715 relocation pairing link test.
717 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
719 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
720 uniqeue.exp, as not all targets have such support.
722 2017-01-16 Nick Clifton <nickc@redhat.com>
724 * po/sv.po: Updated Swedish translation.
726 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
729 * testsuite/ld-x86-64/pr21038b.d: Updated.
730 * testsuite/ld-x86-64/pr21038c.d: New file.
731 * testsuite/ld-x86-64/pr21038c.s: Likewise.
732 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
734 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
737 * testsuite/ld-x86-64/pr21038a.d: New file.
738 * testsuite/ld-x86-64/pr21038a.s: Likewise.
739 * testsuite/ld-x86-64/pr21038b.d: Likewise.
740 * testsuite/ld-x86-64/pr21038b.s: Likewise.
741 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
743 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
745 * configure.tgt: Add entries for x86-redox and x86_64-redox.
747 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
749 * testsuite/ld-x86-64/pr20830b.d: Updated.
751 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
753 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
754 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
755 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
756 * testsuite/ld-x86-64/pr20830b.d: New file.
757 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
760 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
763 * testsuite/ld-i386/i386.exp: Run pr20830.
764 * testsuite/ld-x86-64/x86-64.exp: Likewise.
765 * testsuite/ld-i386/pr20830.d: New file.
766 * testsuite/ld-i386/pr20830.s: Likewise.
767 * testsuite/ld-x86-64/pr20830.d: Likewise.
768 * testsuite/ld-x86-64/pr20830.s: Likewise.
770 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
772 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
773 -Wl,--as-needed to $CC.
774 * testsuite/ld-i386/tls.exp: Likewise.
776 2017-01-10 Nick Clifton <nickc@redhat.com>
778 * po/sv.po: Updated Swedish translation.
780 2016-12-09 Graham Markall <graham.markall@embecosm.com>
781 Andrew Burgess <andrew.burgess@embecosm.com>
783 * Makefile.am: Add earclinux_nps.c target and add to
784 ALL_EMULATION_SOURCES.
785 * Makefile.in: Likewise, regenerated.
786 * configure.tgt: Add arclinux_nps as an extra emulation for
787 arc*-*-elf* and arc*-*-linux*.
788 * emulparams/arc-nps.sh: New file.
789 * emulparams/arclinux_nps.sh: New file.
790 * testsuite/ld-arc/arclinux-nps.d,
791 * testsuite/ld-arc/arclinux-nps.s: New test.
793 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
796 * ldlex.l (option): Add noyywrap
798 * ldlex.h (yywrap): Delete prototype.
800 2017-01-04 Alan Modra <amodra@gmail.com>
802 * testsuite/ld-elf/audit.exp: Check for shared lib support.
803 * testsuite/ld-elf/compress.exp: Likewise.
804 * testsuite/ld-elf/dwarf.exp: Likewise.
805 * testsuite/ld-elf/shared.exp: Likewise.
806 * testsuite/ld-elf/wrap.exp: Likewise.
807 * testsuite/ld-ifunc/ifunc.exp: Likewise.
808 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
810 2017-01-03 Alan Modra <amodra@gmail.com>
812 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
813 allow test to continue after compilation errors.
814 (run_cc_link_tests): Likewise.
816 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
818 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
819 (epruelf.c): Remove unneeded dependencies.
820 * Makefile.in: Regenerate
822 2017-01-03 Alan Modra <amodra@gmail.com>
824 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
826 * testsuite/ld-elfweak/elfweak.exp: Likewise.
827 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
829 2017-01-03 Alan Modra <amodra@gmail.com>
831 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
832 * testsuite/ld-pie/pie.exp: Likewise.
833 * testsuite/ld-plugin/lto.exp: Likewise.
835 2017-01-02 Alan Modra <amodra@gmail.com>
837 * Makefile.am (bootstrap): Delete rule.
838 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
839 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
840 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
841 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
842 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
843 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
844 * Makefile.in: Regenerate.
845 * configure: Regenerate.
846 * testsuite/config/default.exp (get_link_files): Delete.
847 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
849 (ld_simple_link): Delete.
850 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
851 (default_ld_simple_link): Rename to default_ld_link.
852 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
853 (run_ld_link_tests): Use ld_link, not ld_simple_link.
854 (run_cc_link_tests): Likewise.
855 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
856 Don't run exe when not native, and return unsupported.
857 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
858 Link ld1 etc. using $CC.
859 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
860 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
861 * testsuite/ld-cygwin/exe-export.exp: Likewise.
862 * testsuite/ld-elf/binutils.exp: Likewise.
863 * testsuite/ld-elf/eh-group.exp: Likewise.
864 * testsuite/ld-elf/exclude.exp: Likewise.
865 * testsuite/ld-elf/frame.exp: Likewise.
866 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
867 * testsuite/ld-elf/tls_common.exp: Likewise.
868 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
869 * testsuite/ld-fastcall/fastcall.exp: Likewise.
870 * testsuite/ld-gc/gc.exp: Likewise.
871 * testsuite/ld-ifunc/binutils.exp: Likewise.
872 * testsuite/ld-mep/mep.exp: Likewise.
873 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
874 * testsuite/ld-mn10300/mn10300.exp: Likewise.
875 * testsuite/ld-nios2/nios2.exp: Likewise.
876 * testsuite/ld-pe/pe-compile.exp: Likewise.
877 * testsuite/ld-pe/pe-run.exp: Likewise.
878 * testsuite/ld-pe/pe-run2.exp: Likewise.
879 * testsuite/ld-plugin/plugin.exp: Likewise.
880 * testsuite/ld-scripts/align.exp: Likewise.
881 * testsuite/ld-scripts/alignof.exp: Likewise.
882 * testsuite/ld-scripts/assert.exp: Likewise.
883 * testsuite/ld-scripts/defined.exp: Likewise.
884 * testsuite/ld-scripts/extern.exp: Likewise.
885 * testsuite/ld-scripts/log2.exp: Likewise.
886 * testsuite/ld-scripts/map-address.exp: Likewise.
887 * testsuite/ld-scripts/phdrs.exp: Likewise.
888 * testsuite/ld-scripts/phdrs2.exp: Likewise.
889 * testsuite/ld-scripts/script.exp: Likewise.
890 * testsuite/ld-scripts/section-flags.exp: Likewise.
891 * testsuite/ld-scripts/sizeof.exp: Likewise.
892 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
893 * testsuite/ld-scripts/weak.exp: Likewise.
894 * testsuite/ld-selective/selective.exp: Likewise.
895 * testsuite/ld-sh/sh.exp: Likewise.
896 * testsuite/ld-sh/sh64/relax.exp: Likewise.
897 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
898 * testsuite/ld-srec/srec.exp: Likewise.
899 * testsuite/ld-tic6x/tic6x.exp: Likewise.
900 * testsuite/ld-undefined/weak-undef.exp: Likewise.
901 * testsuite/ld-versados/versados.exp: Likewise.
902 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
903 * testsuite/ld-xtensa/coalesce.exp: Likewise.
904 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
905 * testsuite/ld-xtensa/lcall.exp: Likewise.
906 * testsuite/ld-elf/audit.exp: Run non-native too.
907 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
909 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
910 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
911 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
912 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
913 -Wl,--no-as-needed to most tests.
914 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
915 to simplify quoting. Set run_tests using [list] rather than
916 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
917 to many test. Prefix ld options with -Wl,.
918 (mix_pic_and_non_pic): Don't run exe if not native.
919 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
920 -Wl,--no-as-needed and prefix ld options with -Wl,.
921 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
923 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
924 (visibility_test): Don't run exe if not native.
925 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
927 (build_exec): Don't run exe if not native.
928 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
929 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
930 to some tests and prefix ld options with -Wl,. Expect GNU
931 for hppa-linux even when no ifuncs. Delete cleanup.
932 * testsuite/ld-pie/pie.exp: Run non-native too.
933 * testsuite/ld-plugin/lto.exp: Likewise.
934 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
936 (shared_test): Don't run exe if not native.
937 * testsuite/ld-size/size.exp: Run non-native too. Add
938 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
939 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
940 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
941 to some tests and prefix ld options with -Wl,. Expect GNU
942 for hppa-linux even when no unique syms. Delete cleanup.
943 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
944 tests and prefix ld options with -Wl,.
945 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
946 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
948 2017-01-02 Alan Modra <amodra@gmail.com>
950 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
952 2017-01-02 Alan Modra <amodra@gmail.com>
955 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
956 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
957 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
960 2017-01-02 Alan Modra <amodra@gmail.com>
962 Update year range in copyright notice of all files.
964 For older changes see ChangeLog-2016
966 Copyright (C) 2017 Free Software Foundation, Inc.
968 Copying and distribution of this file, with or without modification,
969 are permitted in any medium without royalty provided the copyright
970 notice and this notice are preserved.
976 version-control: never