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