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