Avoid gcc-7 warning killing ld testcases
[external/binutils.git] / ld / ChangeLog
1 2017-03-02  Alan Modra  <amodra@gmail.com>
2
3         * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
4         and dl3.cc.
5
6 2017-02-28  Alan Modra  <amodra@gmail.com>
7
8         * testsuite/ld-elf/merge.d: xfail for nios.
9
10 2017-02-28  Alan Modra  <amodra@gmail.com>
11
12         * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
13         limits of addpcis range.
14
15 2017-02-28  Maciej W. Rozycki  <macro@imgtec.com>
16
17         * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
18         instructions.
19         * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
20         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
21
22 2017-02-27   Georg-Johann Lay  <gjl@gcc.gnu.org>
23
24         PR target/20849
25         * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
26         (.rodata): New section.
27         (.data): Remove .rodata*.
28
29 2017-02-25  Alan Modra  <amodra@gmail.com>
30
31         * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
32         Set up HPUX defsym.  Run pr14170 tests and build symbol3 objects,
33         defining HPUX where necessary.  Define HPUX for implib tests.
34         * testsuite/ld-elf/comm-data4.d: Run for hpux.
35         * testsuite/ld-elf/endsym.d: Likewise.
36         * testsuite/ld-elf/linkoncerdiff.d: Likewise.
37         * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
38         * testsuite/ld-elf/comm-data5.s: Likewise.
39         * testsuite/ld-elf/endsym.s: Likewise.
40         * testsuite/ld-elf/pr14170c.s: Likewise.
41         * testsuite/ld-elf/symbol3.s: Likewise.
42         * testsuite/ld-elf/implib.s: Likewise.  Don't start directives
43         in first column.
44         * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
45         * testsuite/ld-elf/warn3.d: Run for hpux.
46         * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
47         * testsuite/ld-scripts/rgn-at11.d: Likewise.
48         * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
49
50 2017-02-24  Maciej W. Rozycki  <macro@imgtec.com>
51
52         * testsuite/ld-elf/ver_def.d: New test.
53         * testsuite/ld-elf/ver_def.ld: New test linker script.
54         * testsuite/ld-elf/ver_def.ver: New test version script.
55         * testsuite/ld-elf/ver_def.s: New test source.
56         * testsuite/ld-elf/readelf.exp: New test script.
57
58 2017-02-23  Maciej W. Rozycki  <macro@imgtec.com>
59
60         * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
61         option.
62         * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
63         * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
64         * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
65
66 2017-02-23  Maciej W. Rozycki  <macro@imgtec.com>
67
68         * testsuite/ld-mips-elf/jalr4.dd: New test.
69         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
70
71 2017-02-23  Alan Modra  <amodra@gmail.com>
72
73         PR 20744
74         * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
75         each group.
76         * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
77         and sdarel reloc fix.
78
79 2017-02-22  Maciej W. Rozycki  <macro@imgtec.com>
80
81         PR ld/20828
82         * testsuite/ld-elf/pr20828-d.sd: New test.
83         * testsuite/ld-elf/pr20828-e.sd: New test.
84         * testsuite/ld-elf/pr20828-v.od: New test.
85         * testsuite/ld-elf/pr20828-v.ver: New test version script.
86         * testsuite/ld-elf/pr20828-v.ld: New test linker script.
87         * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
88         `.gnu.version_d'.
89         * testsuite/ld-elf/shared.exp: Run the new tests.
90
91 2017-02-21  Nick Clifton  <nickc@redhat.com>
92
93         * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
94         about non-void function returning without a result.
95
96 2017-02-17  Alan Modra  <amodra@gmail.com>
97
98         PR 15041
99         * scripttempl/pe.sc: Don't combine sections for ld -r.
100         * scripttempl/pep.sc: Likewise.
101
102 2017-02-17  Alan Modra  <amodra@gmail.com>
103
104         PR 21099
105         * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
106         rather than using OTHER_SECTIONS.
107         * emulparams/elf32mt.sh: Likewise.
108         * emulparams/elf32rx.sh: Likewise.
109         * emulparams/elf32rl78.sh: Likewise.  Use OTHER_SYMBOLS to
110         define __rl78_abs__.
111         * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
112         rather than using OTHER_SECTIONS.
113         * emulparams/shelf32.sh: Likewise.  Use OTHER_SECTIONS for .cranges.
114         * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
115         * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
116         * emulparams/shelf_uclinux.sh: Likewise.
117         * emulparams/shlsymbian.sh: Unset STACK_ADDR.  Use OTHER_SYMBOLS
118         to define _stack, not OTHER_SECTIONS.
119         * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
120         TINY_BSS_SECTION before debug sections.  Add STACK_SENTINEL.
121         * scripttempl/arclinux.sc: Likewise.
122         * scripttempl/elf64hppa.sc: Likewise.
123         * scripttempl/elfxtensa.sc: Likewise.
124         * scripttempl/nds32elf.sc: Likewise.
125         * scripttempl/armbpabi.sc: Move STACK before debug sections.
126         * scripttempl/elf_chaos.sc: Likewise.
127         * scripttempl/elfarc.sc: Delete STACK.
128         * scripttempl/epiphany_4x4.sc: Delete STACK.  Move TINY_DATA_SECTION,
129         TINY_BSS_SECTION, and .stack before debug sections.
130
131 2017-02-17  Nick Clifton  <nickc@redhat.com>
132
133         PR ld/20825
134         * ld.texinfo (Options): Add missing @item entry for --pop-state.
135
136 2017-02-17  Alan Modra  <amodra@gmail.com>
137
138         * testsuite/ld-elf/dwarf2.err: Accept other errors between the
139         multiple definition errors.
140
141 2017-02-17  Alan Modra  <amodra@gmail.com>
142
143         * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
144         * testsuite/ld-elf/dwarf3.err: Likewise.  Allow match without filename.
145
146 2017-02-16  Andrew Burgess  <andrew.burgess@embecosm.com>
147
148         * testsuite/ld-elf/shared.exp: Update expected results.
149         * testsuite/ld-elf/dwarf2.err: Likewise
150
151 2017-02-16  Andrew Burgess  <andrew.burgess@embecosm.com>
152
153         * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
154         * testsuite/ld-elf/dwarf2.err: New file.
155         * testsuite/ld-elf/dwarf2a.c: New file.
156         * testsuite/ld-elf/dwarf2b.c: New file.
157         * testsuite/ld-elf/dwarf3.c: New file.
158         * testsuite/ld-elf/dwarf3.err: New file.
159
160 2017-02-16  Andrew Burgess  <andrew.burgess@embecosm.com>
161
162         * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
163         error, warning_output, and error_output actions.  Remove separate
164         warnings parameter.
165         * testsuite/ld-elf/shared.exp (build_tests): Updated to use
166         'warning' action.
167         * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
168
169 2017-02-16  Alan Modra  <amodra@gmail.com>
170
171         * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
172         from void pointers to function pointers.
173         * testsuite/ld-elf/pr18718.c: Update to suit.
174         * testsuite/ld-elf/pr18720a.c: Update to suit.
175
176 2017-02-16  Alan Modra  <amodra@gmail.com>
177
178         PR 21000
179         * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
180         * testsuite/ld-elf/loadaddr2.d: Likewise.
181         * testsuite/ld-elf/loadaddr3a.d: Likewise.
182         * testsuite/ld-scripts/rgn-at5.d: Likewise.
183
184 2017-02-16  Alan Modra  <amodra@gmail.com>
185
186         * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
187         * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
188
189 2017-02-15  H.J. Lu  <hongjiu.lu@intel.com>
190
191         PR ld/21168
192         * testsuite/ld-i386/i386.exp: Run pr21168.
193         * testsuite/ld-i386/pr21168a.c: New file.
194         * testsuite/ld-i386/pr21168b.S: Likewise.
195
196 2017-02-15  H.J. Lu  <hongjiu.lu@intel.com>
197
198         PR ld/20244
199         * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
200         pr20244-4c.
201         * testsuite/ld-i386/pr20244-4.s: New file.
202         * testsuite/ld-i386/pr20244-4a.d: Likewise.
203         * testsuite/ld-i386/pr20244-4b.d: Likewise.
204         * testsuite/ld-i386/pr20244-4c.d: Likewise.
205
206 2017-02-15  Maciej W. Rozycki  <macro@imgtec.com>
207
208         * ldmisc.c (vfinfo): Don't print the function name again either
209         if no source file name has been found both now and previously.
210         * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
211         * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
212         * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
213         * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
214         * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
215         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
216         * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
217         * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
218         * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
219         * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
220         Likewise.
221         * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
222         Likewise.
223         * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
224         Likewise.
225         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
226         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
227         Likewise.
228         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
229         Likewise.
230         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
231         * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
232         * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
233         * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
234         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
235         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
236         * testsuite/ld-powerpc/tocopt.out: Likewise.
237         * testsuite/ld-powerpc/tocopt7.out: Likewise.
238
239 2017-02-15  Maciej W. Rozycki  <macro@imgtec.com>
240
241         * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
242
243 2017-02-15  Igor Kudrin  <ikudrin@accesssoftek.com>
244
245         * testsuite/ld-scripts/sysroot-prefix.exp
246         (get_base_dir_for_scripts): New function.
247         (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
248
249 2017-02-13  Palmer Dabbelt  <palmer@dabbelt.com>
250
251         * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
252         _gp to __global_pointer$
253
254 2017-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
255
256         * configure.tgt (arc*-*-linux*): Change the default linker
257         emulation based on --with-cpu selection.
258         * NEWS: Mention new configuration option.
259
260 2017-02-06  Jiong Wang  <jiong.wang@arm.com>
261
262         * testsuite/ld-elf/compress.exp: Don't print to stdout for all
263         "readelf -w".
264
265 2017-02-02  Maciej W. Rozycki  <macro@imgtec.com>
266
267         * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
268
269 2017-02-02  Maciej W. Rozycki  <macro@imgtec.com>
270
271         * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
272         s/regexp/regex/.
273
274 2017-02-02  Jiong Wang  <jiong.wang@arm.com>
275
276         * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
277         * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
278         dlopen support into "dlopen_run_tests".  These tests include dl1*main
279         and dl6*main.
280         (dlopen_run_tests): New and only run it when check_libdl_available
281         returns true.  XFAIL on *-*-netbsdelf*.
282
283 2017-02-01  Maciej W. Rozycki  <macro@imgtec.com>
284
285         * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
286         presentation of relocation addends.
287         * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
288         * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
289         * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
290
291 2017-02-01  Maciej W. Rozycki  <macro@imgtec.com>
292
293         * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
294         in `.tdata' section.
295         * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
296         * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
297
298 2017-02-01  Jiong Wang  <jiong.wang@arm.com>
299
300         * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
301         Append $board_cflags to link commands.
302
303 2017-02-01  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
304
305         * testsuite/ld-scripts/print-memory-usage-1.l: Relax
306         check for digit in second decimal place.
307
308 2017-02-01  Maciej W. Rozycki  <macro@imgtec.com>
309
310         PR ld/20828
311         * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
312         indentation.
313
314 2017-01-31  Nick Clifton  <nickc@redhat.com>
315
316         * ldmain.c (add_archive_element): Eliminate string buffer.
317         * ldlang.c (lang_print_asneeded): Likewise.
318
319 2017-01-30  Maciej W. Rozycki  <macro@imgtec.com>
320
321         * emultempl/mipself.em (ignore_branch_isa): New variable.
322         (mips_create_output_section_statements): Rename
323         `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
324         add `ignore_branch_isa' argument.
325         (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
326         OPTION_NO_IGNORE_BRANCH_ISA enum values.
327         (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
328         "no-ignore-branch-isa" options.
329         (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
330         `--no-ignore-branch-isa'.
331         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
332         OPTION_NO_IGNORE_BRANCH_ISA.
333
334         * ld.texinfo (Options specific to MIPS targets): Add
335         `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
336         (ld and the MIPS family): Likewise.
337
338         * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
339         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
340         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
341         * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
342         * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
343         * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
344         test.
345         * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
346         test.
347         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
348
349 2017-01-29  Hans-Peter Nilsson  <hp@axis.com>
350
351         PR binutils/19935
352         Fix long-standing buglet and fallout from now-default initfini-array.
353         * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
354         (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
355
356 2017-01-27  Jiong Wang  <jiong.wang@arm.com>
357
358         * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
359         arm*-*-eabi*.
360
361 2017-01-27  Dilyan Palauzov  <dilyan.palauzov@aegee.org>
362             Nick Clifton  <nickc@redhat.com>
363
364         PR 20343
365         * ld.texinfo (Options): Extend documentation of the --plugin
366         option.  Include a description of where the plugins should be
367         located.
368
369 2017-01-27  Nick Clifton  <nickc@redhat.com>
370
371         * po/sr.po: New Serbian translation.
372         * configure.ac (ALL_LINGUAS): Add sr.
373         * configure: Regenerate.
374
375 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
376
377         * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
378         (bfin-*-rtems*): Move to (bfin*-*-elf*).
379         (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
380         (m68*-*-rtems*): Move to (m68*-*-elf*).
381         (mips*-*-rtems*): Move to (mips*-*-elf*).
382         (or1k*-*-rtems*): Move to (or1k*-*-elf*).
383         (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
384         (sparc*-*-rtems*): Move to (sparc*-*-elf*).
385         (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
386
387 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
388
389         * configure.tgt (h8300-*-rtemscoff*): Remove.
390         (i960-*-rtems*): Likewise.
391         (m68*-*-rtemscoff*): Likewise.
392         (sh-*-rtemscoff*): Likewise.
393
394 2017-01-24  Maciej W. Rozycki  <macro@imgtec.com>
395
396         * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
397         add implicit version nodes if an anonymous version tag is being
398         used.
399
400 2017-01-24  Jiong Wang  <jiong.wang@arm.com>
401
402         * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
403         "Compile 8a", "Compile 8b"...
404         (lto_compile_elf_tests): ...to here.  Always run these tests.
405         (lto_run_elf_tests): Move "LTO 7"...
406         (lto_run_elf_shared_tests): ...to here.  Restrict these tests on
407         environment where share library is supported.
408
409 2017-01-24  Alan Modra  <amodra@gmail.com>
410
411         * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
412         and symbols.
413         * testsuite/ld-powerpc/tlsexe.d: Likewise.
414         * testsuite/ld-powerpc/tlsexe.g: Likewise.
415
416 2017-01-23  Yury Norov  <ynorov@caviumnetworks.com>
417
418         * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
419         * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
420         * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
421         * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
422         * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
423         * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
424         * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
425         * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
426         * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
427         * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
428         * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
429         * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
430         * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
431
432 2017-01-23  Nick Clifton  <nickc@redhat.com>
433
434         * po/ga.po: Updated Irish translation.
435
436 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
437
438         PR ld/20828
439         * testsuite/ld-elf/pr20828.ld: Add `.plt'.
440
441 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
442
443         PR ld/20828
444         * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
445         `fdata' and `edata' respectively.
446         * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
447         * testsuite/ld-elf/pr20828-a.sd: Likewise.
448         * testsuite/ld-elf/pr20828-b.sd: Likewise.
449         * testsuite/ld-elf/pr20828-c.sd: Likewise.
450
451 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
452
453         PR ld/20828
454         * testsuite/ld-elf/pr20828-1.sd: Remove test.
455         * testsuite/ld-elf/pr20828-a.sd: New test.
456         * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
457         * testsuite/ld-elf/pr20828-b.sd: ... this.
458         * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
459         * testsuite/ld-elf/pr20828-c.sd: ... this.
460         * testsuite/ld-elf/shared.exp: Adjust accordingly.
461
462 2017-01-23  Jiong Wang  <jiong.wang@arm.com>
463
464         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
465         board_cflags as gcc is used as linker driver.
466         * testsuite/ld-unique/unique.exp: Likewise
467
468 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
469
470         * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
471         * testsuite/ld-aarch64/func-in-so.s: New test source file.
472         * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
473         * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
474
475 2017-01-20  Andrew Burgess  <andrew.burgess@embecosm.com>
476
477         * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
478
479 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
480
481         PR ld/20995
482         * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
483         `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
484
485 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
486
487         PR ld/20828
488         * testsuite/ld-elf/pr20828-1.sd: New test.
489         * testsuite/ld-elf/pr20828-2a.sd: New test.
490         * testsuite/ld-elf/pr20828-2b.sd: New test.
491         * testsuite/ld-elf/pr20828.ld: New test linker script.
492         * testsuite/ld-elf/pr20828.ver: New test version script.
493         * testsuite/ld-elf/pr20828.s: New test source.
494         * testsuite/ld-elf/shared.exp: Run the new test.
495
496 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
497
498         PR gas/20649
499         * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
500         relocation pairing link test.
501
502 2017-01-17  Dimitar Dimitrov  <dimitar@dinux.eu>
503
504         * testsuite/ld-unique/unique.exp: Filter shared lib cases in
505         uniqeue.exp, as not all targets have such support.
506
507 2017-01-16  Nick Clifton  <nickc@redhat.com>
508
509         * po/sv.po: Updated Swedish translation.
510
511 2017-01-12  H.J. Lu  <hongjiu.lu@intel.com>
512
513         PR ld/21038
514         * testsuite/ld-x86-64/pr21038b.d: Updated.
515         * testsuite/ld-x86-64/pr21038c.d: New file.
516         * testsuite/ld-x86-64/pr21038c.s: Likewise.
517         * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
518
519 2017-01-11  H.J. Lu  <hongjiu.lu@intel.com>
520
521         PR ld/21038
522         * testsuite/ld-x86-64/pr21038a.d: New file.
523         * testsuite/ld-x86-64/pr21038a.s: Likewise.
524         * testsuite/ld-x86-64/pr21038b.d: Likewise.
525         * testsuite/ld-x86-64/pr21038b.s: Likewise.
526         * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
527
528 2017-01-11  Jeremy Soller  <jackpot51@gmail.com>
529
530         * configure.tgt: Add entries for x86-redox and x86_64-redox.
531
532 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
533
534         * testsuite/ld-x86-64/pr20830b.d: Updated.
535
536 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
537
538         * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
539         * testsuite/ld-x86-64/pr20830.d: Renamed to ...
540         * testsuite/ld-x86-64/pr20830a.d: This.  Updated.
541         * testsuite/ld-x86-64/pr20830b.d: New file.
542         * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
543         Run pr20830b.
544
545 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
546
547         PR ld/20830
548         * testsuite/ld-i386/i386.exp: Run pr20830.
549         * testsuite/ld-x86-64/x86-64.exp: Likewise.
550         * testsuite/ld-i386/pr20830.d: New file.
551         * testsuite/ld-i386/pr20830.s: Likewise.
552         * testsuite/ld-x86-64/pr20830.d: Likewise.
553         * testsuite/ld-x86-64/pr20830.s: Likewise.
554
555 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
556
557         * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
558         -Wl,--as-needed to $CC.
559         * testsuite/ld-i386/tls.exp: Likewise.
560
561 2017-01-10  Nick Clifton  <nickc@redhat.com>
562
563         * po/sv.po: Updated Swedish translation.
564
565 2016-12-09  Graham Markall  <graham.markall@embecosm.com>
566             Andrew Burgess  <andrew.burgess@embecosm.com>
567
568         * Makefile.am: Add earclinux_nps.c target and add to
569         ALL_EMULATION_SOURCES.
570         * Makefile.in: Likewise, regenerated.
571         * configure.tgt: Add arclinux_nps as an extra emulation for
572         arc*-*-elf* and arc*-*-linux*.
573         * emulparams/arc-nps.sh: New file.
574         * emulparams/arclinux_nps.sh: New file.
575         * testsuite/ld-arc/arclinux-nps.d,
576         * testsuite/ld-arc/arclinux-nps.s: New test.
577
578 2017-01-04  Dilan Palauzov  <dilyan.palauzov@aegee.org>
579
580         PR 20958
581         * ldlex.l (option): Add noyywrap
582         (yywrap): Delete.
583         * ldlex.h (yywrap): Delete prototype.
584
585 2017-01-04  Alan Modra  <amodra@gmail.com>
586
587         * testsuite/ld-elf/audit.exp: Check for shared lib support.
588         * testsuite/ld-elf/compress.exp: Likewise.
589         * testsuite/ld-elf/dwarf.exp: Likewise.
590         * testsuite/ld-elf/shared.exp: Likewise.
591         * testsuite/ld-elf/wrap.exp: Likewise.
592         * testsuite/ld-ifunc/ifunc.exp: Likewise.
593         * testsuite/ld-plugin/lto.exp: Check $CXX exists.
594
595 2017-01-03  Alan Modra  <amodra@gmail.com>
596
597         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
598         allow test to continue after compilation errors.
599         (run_cc_link_tests): Likewise.
600
601 2017-01-03  Dimitar Dimitrov  <dimitar@dinux.eu>
602
603         * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
604         (epruelf.c): Remove unneeded dependencies.
605         * Makefile.in: Regenerate
606
607 2017-01-03  Alan Modra  <amodra@gmail.com>
608
609         * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
610         to various tests.
611         * testsuite/ld-elfweak/elfweak.exp: Likewise.
612         * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
613
614 2017-01-03  Alan Modra  <amodra@gmail.com>
615
616         * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
617         * testsuite/ld-pie/pie.exp: Likewise.
618         * testsuite/ld-plugin/lto.exp: Likewise.
619
620 2017-01-02  Alan Modra  <amodra@gmail.com>
621
622         * Makefile.am (bootstrap): Delete rule.
623         (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
624         (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
625         (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
626         * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
627         (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
628         * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
629         * Makefile.in: Regenerate.
630         * configure: Regenerate.
631         * testsuite/config/default.exp (get_link_files): Delete.
632         (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
633         define.
634         (ld_simple_link): Delete.
635         * testsuite/lib/ld-lib.exp (default_ld_link): Delete
636         (default_ld_simple_link): Rename to default_ld_link.
637         (ld_simple_link_defsyms): Rename to ld_link_defsyms.
638         (run_ld_link_tests): Use ld_link, not ld_simple_link.
639         (run_cc_link_tests): Likewise.
640         (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
641         Don't run exe when not native, and return unsupported.
642         * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
643         Link ld1 etc. using $CC.
644         * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
645         * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
646         * testsuite/ld-cygwin/exe-export.exp: Likewise.
647         * testsuite/ld-elf/binutils.exp: Likewise.
648         * testsuite/ld-elf/eh-group.exp: Likewise.
649         * testsuite/ld-elf/exclude.exp: Likewise.
650         * testsuite/ld-elf/frame.exp: Likewise.
651         * testsuite/ld-elf/sec-to-seg.exp: Likewise.
652         * testsuite/ld-elf/tls_common.exp: Likewise.
653         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
654         * testsuite/ld-fastcall/fastcall.exp: Likewise.
655         * testsuite/ld-gc/gc.exp: Likewise.
656         * testsuite/ld-ifunc/binutils.exp: Likewise.
657         * testsuite/ld-mep/mep.exp: Likewise.
658         * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
659         * testsuite/ld-mn10300/mn10300.exp: Likewise.
660         * testsuite/ld-nios2/nios2.exp: Likewise.
661         * testsuite/ld-pe/pe-compile.exp: Likewise.
662         * testsuite/ld-pe/pe-run.exp: Likewise.
663         * testsuite/ld-pe/pe-run2.exp: Likewise.
664         * testsuite/ld-plugin/plugin.exp: Likewise.
665         * testsuite/ld-scripts/align.exp: Likewise.
666         * testsuite/ld-scripts/alignof.exp: Likewise.
667         * testsuite/ld-scripts/assert.exp: Likewise.
668         * testsuite/ld-scripts/defined.exp: Likewise.
669         * testsuite/ld-scripts/extern.exp: Likewise.
670         * testsuite/ld-scripts/log2.exp: Likewise.
671         * testsuite/ld-scripts/map-address.exp: Likewise.
672         * testsuite/ld-scripts/phdrs.exp: Likewise.
673         * testsuite/ld-scripts/phdrs2.exp: Likewise.
674         * testsuite/ld-scripts/script.exp: Likewise.
675         * testsuite/ld-scripts/section-flags.exp: Likewise.
676         * testsuite/ld-scripts/sizeof.exp: Likewise.
677         * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
678         * testsuite/ld-scripts/weak.exp: Likewise.
679         * testsuite/ld-selective/selective.exp: Likewise.
680         * testsuite/ld-sh/sh.exp: Likewise.
681         * testsuite/ld-sh/sh64/relax.exp: Likewise.
682         * testsuite/ld-sh/sh64/relfail.exp: Likewise.
683         * testsuite/ld-srec/srec.exp: Likewise.
684         * testsuite/ld-tic6x/tic6x.exp: Likewise.
685         * testsuite/ld-undefined/weak-undef.exp: Likewise.
686         * testsuite/ld-versados/versados.exp: Likewise.
687         * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
688         * testsuite/ld-xtensa/coalesce.exp: Likewise.
689         * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
690         * testsuite/ld-xtensa/lcall.exp: Likewise.
691         * testsuite/ld-elf/audit.exp: Run non-native too.
692         * testsuite/ld-elf/compress.exp: Likewise.  Replace ld options with
693         gcc -Wl, options.
694         * testsuite/ld-elf/dwarf.exp: Run non-native too.  Use ld_link,
695         not ld_simple_link.  Add -Wl,--no-as-needed to some tests.
696         * testsuite/ld-elf/elf.exp: Run non-native too.  Formatting.
697         * testsuite/ld-elf/indirect.exp: Run non-native too.  Add
698         -Wl,--no-as-needed to most tests.
699         * testsuite/ld-elf/shared.exp: Run non-native too.  Use braces
700         to simplify quoting.  Set run_tests using [list] rather than
701         brace assignment to expand $extralibs.  Add -Wl,--no-as-needed
702         to many test.  Prefix ld options with -Wl,.
703         (mix_pic_and_non_pic): Don't run exe if not native.
704         * testsuite/ld-elf/wrap.exp: Run non-native too.  Add
705         -Wl,--no-as-needed and prefix ld options with -Wl,.
706         * testsuite/ld-elfvers/vers.exp: Run non-native too.  Use ld_link,
707         not ld_simple_link.
708         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
709         (visibility_test): Don't run exe if not native.
710         * testsuite/ld-elfweak/elfweak.exp: Run non-native too.  Use ld_link,
711         not ld_simple_link.
712         (build_exec): Don't run exe if not native.
713         * testsuite/ld-ifunc/ifunc.exp: Run non-native too.  Use ld_link,
714         not ld_simple_link.  Link using $CC.  Add -Wl,--no-as-needed
715         to some tests and prefix ld options with -Wl,.  Expect GNU
716         for hppa-linux even when no ifuncs.  Delete cleanup.
717         * testsuite/ld-pie/pie.exp: Run non-native too.
718         * testsuite/ld-plugin/lto.exp: Likewise.
719         * testsuite/ld-shared/shared.exp: Likewise.  Use ld_link,
720         not ld_simple_link.
721         (shared_test): Don't run exe if not native.
722         * testsuite/ld-size/size.exp: Run non-native too.  Add
723         -Wl,--no-as-needed to some tests.  Prefix ld options with -Wl,.
724         * testsuite/ld-unique/unique.exp: Run non-native too.  Use ld_link,
725         not ld_simple_link.  Link using $CC.  Add -Wl,--no-as-needed
726         to some tests and prefix ld options with -Wl,.  Expect GNU
727         for hppa-linux even when no unique syms.  Delete cleanup.
728         * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
729         tests and prefix ld options with -Wl,.
730         * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
731         Add -Wl,--no-as-needed to some tests.  Prefix ld options with -Wl,.
732
733 2017-01-02  Alan Modra  <amodra@gmail.com>
734
735         * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
736
737 2017-01-02  Alan Modra  <amodra@gmail.com>
738
739         PR ld/21000
740         * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
741         (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
742         * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
743         is already defined.
744
745 2017-01-02  Alan Modra  <amodra@gmail.com>
746
747         Update year range in copyright notice of all files.
748
749 For older changes see ChangeLog-2016
750 \f
751 Copyright (C) 2017 Free Software Foundation, Inc.
752
753 Copying and distribution of this file, with or without modification,
754 are permitted in any medium without royalty provided the copyright
755 notice and this notice are preserved.
756
757 Local Variables:
758 mode: change-log
759 left-margin: 8
760 fill-column: 74
761 version-control: never
762 End: