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