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