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