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