ld: Set non_ir_ref_regular on symbols referenced in regular objects
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/22502
4 * testsuite/ld-plugin/lto.exp: Run PR ld/22502 test.
5 * testsuite/ld-plugin/pr22502a.c: New file.
6 * testsuite/ld-plugin/pr22502b.c: Likewise.
7
8 2017-11-24 H.J. Lu <hongjiu.lu@intel.com>
9
10 * testsuite/ld-elf/pr21562c.t: Also provide ___start_scnfoo and
11 ___stop_scnfoo.
12 * testsuite/ld-elf/pr21562d.t: Likewise.
13
14 2017-11-23 Martin Storsjo <martin@martin.st>
15
16 * pe-dll.c (autofilter_liblist): Add libmsvcrt, libmsvcrt-os and
17 libucrtbase.
18
19 2017-11-23 Jan Beulich <jbeulich@suse.com>
20
21 PR gas/22441
22 * testsuite/ld-x86-64/apic.{s,d}: New.
23 * testsuite/ld-x86-64/x86-64.exp: Run new test.
24
25 2017-11-21 Nick Clifton <nickc@redhat.com>
26
27 PR 22419
28 * emultempl/v850elf.em (v850_create_output_section_statements):
29 New function. Generate an error if attempting to convert the
30 format of the output file.
31 * testsuite/ld-unique/pr21529.d: Skip for the V850.
32 * testsuite/ld-elf/pr21884.d: Skip for the V850.
33
34 2017-11-21 Claudiu Zissulescu <claziss@synopsys.com>
35
36 * testsuite/ld-arc/jli-simple.d: Update test.
37
38 2017-11-20 Nick Clifton <nickc@redhat.com>
39
40 PR 22450
41 * testsuite/ld-elf/elf.exp: Add --defsym ALIGN=2|3 to assembler
42 command line depending upon the size of the target address space.
43 * testsuite/ld-elf/pr22450.s: New test file.
44 * testsuite/ld-elf/pr22450.d: New test driver.
45 * testsuite/config/default.exp: Add note that LD_CLASS refers to
46 the size of the host linker not the size of the target linker.
47
48 2017-11-15 Nick Clifton <nickc@redhat.com>
49
50 PR 15152
51 * testsuite/ld-avr/gc-section-debugline.d: Update expected
52 output.
53
54 2017-11-15 Alan Modra <amodra@gmail.com>
55
56 * ldmisc.c (vfinfo): Support up to 9 positional args.
57
58 2017-11-14 Jim Wilson <jimw@sifive.com>
59
60 * testsuite/ld-elf/compress1-alt.s: New.
61 * testsuite/ld-elf/compressed1d-alt.d: New.
62 * testsuite/ld-elf/compressed1d.d: Add riscv*-*-* to notarget list.
63
64 2017-11-14 Alan Modra <amodra@gmail.com>
65
66 * testsuite/ld-elf/note-3.t: Don't discard .got.
67
68 2017-11-14 Alan Modra <amodra@gmail.com>
69
70 * testsuite/ld-ifunc/ifunc.exp: Ensure non-PIC tests are really
71 not PIE by default gcc options.
72
73 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
74
75 * emultempl/ppc32elf.em (ppc_before_allocation): Replace
76 exp_dataseg_none with exp_seg_none.
77 * emultempl/ppc64elf.em (prelim_size_sections): Likewise.
78 * emultempl/spuelf.em (spu_before_allocation): Likewise.
79
80 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
81
82 * ldlang.c (lang_size_sections_1): Extract GNU_RELRO region check
83 into ...
84 (ldlang_check_relro_region): New function.
85 (lang_find_relro_sections_1): Add an argument for pointer to
86 seg_align_type and replace expld.dataseg with the pointer.
87 (lang_find_relro_sections): Pass address of expld.dataseg to
88 lang_find_relro_sections_1.
89
90 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
91
92 * ldlang.c (lang_size_segment): New function.
93 (lang_size_relro_segment_1): Likewise.
94 (lang_size_relro_segment): Likewise.
95 (lang_size_sections): Rewrite to call lang_size_relro_segment.
96
97 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
98
99 * ldexp.c (fold_unary): Extract the DATA_SEGMENT_END case to ...
100 (fold_segment_end): New function.
101 (fold_binary): Extract the DATA_SEGMENT_ALIGN case to ...
102 (fold_segment_align): New function.
103 (fold_binary): Extract the DATA_SEGMENT_RELRO_END case to ...
104 (fold_segment_relro_end): New function.
105
106 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
107
108 * ldexp.h (phase_enum): Rename exp_dataseg_none,
109 exp_dataseg_align_seen, exp_dataseg_relro_seen,
110 exp_dataseg_end_seen, exp_dataseg_relro_adjust,
111 exp_dataseg_adjust and exp_dataseg_done to exp_seg_none,
112 exp_seg_align_seen, exp_seg_relro_seen, exp_seg_end_seen,
113 exp_seg_relro_adjust, exp_seg_adjust and exp_seg_done.
114 (relro_enum): Rename exp_dataseg_relro_none,
115 exp_dataseg_relro_start and exp_dataseg_relro_end to
116 exp_seg_relro_none, exp_seg_relro_start and exp_seg_relro_end.
117 (seg_align_type): New struct type.
118 (ldexp_control): Use seg_align_type.
119 * ldexp.c (fold_unary): Updated.
120 (fold_binary): Likewise.
121 * ldlang.c (strip_excluded_output_sections): Likewise.
122 (lang_size_sections_1): Likewise.
123 (lang_size_sections): Likewise.
124
125 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
126
127 PR ld/22423
128 * testsuite/ld-alpha/tlsbin.rd: Replace "R E " with "R +" for
129 PT_PHDR segment.
130 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
131 * testsuite/ld-ia64/tlsbin.rd: Likewise.
132 * testsuite/ld-powerpc/tlsexe.r: Likewise.
133 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
134 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
135 * testsuite/ld-s390/tlsbin.rd: Likewise.
136 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
137 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
138 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
139 * testsuite/ld-elf/pr22423.d: New test.
140
141 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
142
143 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): Renamed
144 to ...
145 (OTHER_PLT_SECTIONS): This.
146 * emulparams/elf_i386.sh: Likewise.
147 * emulparams/elf_iamcu.sh: Likewise.
148 * emulparams/elf_x86_64.sh: Likewise.
149 * scripttempl/elf.sc: Place ${OTHER_PLT_SECTIONS} just after
150 .plt.
151
152 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
153
154 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Reformat
155 to generate consistent codes.
156
157 2017-11-07 Alan Modra <amodra@gmail.com>
158
159 * testsuite/ld-aarch64/ifunc-13.d,
160 * testsuite/ld-aarch64/ifunc-15.d,
161 * testsuite/ld-aarch64/ifunc-20.d,
162 * testsuite/ld-alpha/tlsbin.rd,
163 * testsuite/ld-alpha/tlspic.rd,
164 * testsuite/ld-arm/ifunc-3.rd,
165 * testsuite/ld-arm/ifunc-9.rd,
166 * testsuite/ld-arm/unwind-mix.d,
167 * testsuite/ld-arm/unwind-rel.d,
168 * testsuite/ld-cris/hiddef1.d,
169 * testsuite/ld-cris/libdso-13.d,
170 * testsuite/ld-cris/libdso-2.d,
171 * testsuite/ld-cris/pr16044.d,
172 * testsuite/ld-cris/tls-local-63.d,
173 * testsuite/ld-cris/tls-local-64.d,
174 * testsuite/ld-cris/tls-und-38.d,
175 * testsuite/ld-cris/tls-und-42.d,
176 * testsuite/ld-cris/tls-und-46.d,
177 * testsuite/ld-cris/tls-und-50.d,
178 * testsuite/ld-cris/weakref3.d,
179 * testsuite/ld-cris/weakref4.d,
180 * testsuite/ld-elf/comm-data2r.rd,
181 * testsuite/ld-elf/discard1.d,
182 * testsuite/ld-elf/discard2.d,
183 * testsuite/ld-elf/pr19539.d,
184 * testsuite/ld-elf/pr22374-1.r,
185 * testsuite/ld-elf/pr22374-2.r,
186 * testsuite/ld-i386/combreloc.d,
187 * testsuite/ld-i386/emit-relocs-nacl.rd,
188 * testsuite/ld-i386/emit-relocs.rd,
189 * testsuite/ld-i386/pr13302.d,
190 * testsuite/ld-i386/pr17709-nacl.rd,
191 * testsuite/ld-i386/pr17709.rd,
192 * testsuite/ld-i386/pr19539.d,
193 * testsuite/ld-i386/pr19615.d,
194 * testsuite/ld-i386/pr19636-1a.d,
195 * testsuite/ld-i386/pr19636-1e.d,
196 * testsuite/ld-i386/pr19636-1f.d,
197 * testsuite/ld-i386/pr19636-2a.d,
198 * testsuite/ld-i386/pr19636-2b.d,
199 * testsuite/ld-i386/pr19636-2d-nacl.d,
200 * testsuite/ld-i386/pr19636-2e-nacl.d,
201 * testsuite/ld-i386/pr19636-3a.d,
202 * testsuite/ld-i386/pr19636-3d.d,
203 * testsuite/ld-i386/pr19636-3e.d,
204 * testsuite/ld-i386/pr19636-4a.d,
205 * testsuite/ld-i386/pr19645.d,
206 * testsuite/ld-i386/pr19827-nacl.rd,
207 * testsuite/ld-i386/pr19827.rd,
208 * testsuite/ld-i386/pr20253-4a.d,
209 * testsuite/ld-i386/pr20253-4b.d,
210 * testsuite/ld-i386/pr20253-5.d,
211 * testsuite/ld-i386/tlsbin-nacl.rd,
212 * testsuite/ld-i386/tlsbin.rd,
213 * testsuite/ld-i386/tlspic-nacl.rd,
214 * testsuite/ld-i386/tlspic.rd,
215 * testsuite/ld-i386/undefweakb.d,
216 * testsuite/ld-ia64/tlsbin.rd,
217 * testsuite/ld-ia64/tlspic.rd,
218 * testsuite/ld-ifunc/ifunc-13-i386.d,
219 * testsuite/ld-ifunc/ifunc-13-x86-64.d,
220 * testsuite/ld-ifunc/ifunc-15-i386.d,
221 * testsuite/ld-ifunc/ifunc-15-x86-64.d,
222 * testsuite/ld-ifunc/ifunc-20-i386.d,
223 * testsuite/ld-ifunc/ifunc-20-x86-64.d,
224 * testsuite/ld-ifunc/ifunc-23a-x86.d,
225 * testsuite/ld-ifunc/ifunc-23b-x86.d,
226 * testsuite/ld-ifunc/ifunc-23c-x86.d,
227 * testsuite/ld-ifunc/ifunc-24a-x86.d,
228 * testsuite/ld-ifunc/ifunc-24b-x86.d,
229 * testsuite/ld-ifunc/ifunc-24c-x86.d,
230 * testsuite/ld-ifunc/ifunc-25a-x86.d,
231 * testsuite/ld-ifunc/ifunc-25b-x86.d,
232 * testsuite/ld-ifunc/ifunc-25c-x86.d,
233 * testsuite/ld-m68k/got-1.d,
234 * testsuite/ld-mips-elf/vxworks1.rd,
235 * testsuite/ld-powerpc/ambiguousv1.d,
236 * testsuite/ld-powerpc/ambiguousv1b.d,
237 * testsuite/ld-powerpc/ambiguousv2.d,
238 * testsuite/ld-powerpc/ambiguousv2b.d,
239 * testsuite/ld-powerpc/tlsexe.r,
240 * testsuite/ld-powerpc/tlsexe32.r,
241 * testsuite/ld-powerpc/tlsexetoc.r,
242 * testsuite/ld-powerpc/tlsso.r,
243 * testsuite/ld-powerpc/tlsso32.r,
244 * testsuite/ld-powerpc/tlstocso.r,
245 * testsuite/ld-powerpc/vle-multiseg-1.d,
246 * testsuite/ld-powerpc/vle-multiseg-2.d,
247 * testsuite/ld-powerpc/vle-multiseg-3.d,
248 * testsuite/ld-s390/tlsbin.rd,
249 * testsuite/ld-s390/tlsbin_64.rd,
250 * testsuite/ld-s390/tlspic.rd,
251 * testsuite/ld-s390/tlspic_64.rd,
252 * testsuite/ld-sh/ld-r-1.d,
253 * testsuite/ld-sh/sh64/gotplt.d,
254 * testsuite/ld-sh/shared-1.d,
255 * testsuite/ld-sh/tlsbin-2.d,
256 * testsuite/ld-sh/tlspic-2.d,
257 * testsuite/ld-sparc/gotop32.rd,
258 * testsuite/ld-sparc/gotop64.rd,
259 * testsuite/ld-sparc/tlssunpic32.rd,
260 * testsuite/ld-sparc/tlssunpic64.rd,
261 * testsuite/ld-sparc/vxworks1-lib.rd,
262 * testsuite/ld-tic6x/shlib-app-1.rd,
263 * testsuite/ld-tic6x/shlib-app-1b.rd,
264 * testsuite/ld-tic6x/shlib-app-1r.rd,
265 * testsuite/ld-tic6x/shlib-app-1rb.rd,
266 * testsuite/ld-tic6x/shlib-noindex.rd,
267 * testsuite/ld-vax-elf/export-class-data.rd,
268 * testsuite/ld-x86-64/pr13082-1a.d,
269 * testsuite/ld-x86-64/pr13082-1b.d,
270 * testsuite/ld-x86-64/pr13082-2a.d,
271 * testsuite/ld-x86-64/pr13082-2b.d,
272 * testsuite/ld-x86-64/pr13082-3a.d,
273 * testsuite/ld-x86-64/pr13082-3c.d,
274 * testsuite/ld-x86-64/pr13082-4a.d,
275 * testsuite/ld-x86-64/pr13082-5a.d,
276 * testsuite/ld-x86-64/pr13082-5b.d,
277 * testsuite/ld-x86-64/pr13082-6a.d,
278 * testsuite/ld-x86-64/pr13082-6b.d,
279 * testsuite/ld-x86-64/pr17709-nacl.rd,
280 * testsuite/ld-x86-64/pr17709.rd,
281 * testsuite/ld-x86-64/pr19539a.d,
282 * testsuite/ld-x86-64/pr19539b.d,
283 * testsuite/ld-x86-64/pr19615.d,
284 * testsuite/ld-x86-64/pr19636-1a.d,
285 * testsuite/ld-x86-64/pr19636-1d.d,
286 * testsuite/ld-x86-64/pr19636-1e.d,
287 * testsuite/ld-x86-64/pr19636-2a.d,
288 * testsuite/ld-x86-64/pr19636-2e.d,
289 * testsuite/ld-x86-64/pr19636-2f.d,
290 * testsuite/ld-x86-64/pr19636-3a.d,
291 * testsuite/ld-x86-64/pr19645.d,
292 * testsuite/ld-x86-64/pr19807-2b.d,
293 * testsuite/ld-x86-64/pr19807-2d.d,
294 * testsuite/ld-x86-64/pr19827-nacl.rd,
295 * testsuite/ld-x86-64/pr19827.rd,
296 * testsuite/ld-x86-64/pr20253-4a.d,
297 * testsuite/ld-x86-64/pr20253-4b.d,
298 * testsuite/ld-x86-64/pr20253-4d.d,
299 * testsuite/ld-x86-64/pr20253-4e.d,
300 * testsuite/ld-x86-64/pr20253-5a.d,
301 * testsuite/ld-x86-64/pr20253-5b.d,
302 * testsuite/ld-x86-64/tlsbin-nacl.rd,
303 * testsuite/ld-x86-64/tlsbin.rd,
304 * testsuite/ld-x86-64/tlspic-nacl.rd,
305 * testsuite/ld-x86-64/tlspic.rd,
306 * testsuite/ld-x86-64/tlspic2-nacl.rd: Update for
307 pluralization fixes.
308
309 2017-11-07 Alan Modra <amodra@gmail.com>
310
311 * ldlang.c (lang_size_sections_1): Properly pluralize messages.
312 (lang_check_section_addresses): Likewise.
313
314 2017-11-07 Alan Modra <amodra@gmail.com>
315
316 * ld.h (textdomain, bindtextdomain): Use safer "do nothing".
317 (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
318
319 2017-11-01 Alan Modra <amodra@gmail.com>
320
321 * testsuite/ld-powerpc/ambiguousv2.d: Remove FIXME.
322
323 2017-11-01 Alan Modra <amodra@gmail.com>
324
325 PR 22374
326 * testsuite/ld-elf/pr22374a.s,
327 * testsuite/ld-elf/pr22374b.s,
328 * testsuite/ld-elf/pr22374-1.r,
329 * testsuite/ld-elf/pr22374-2.r: New test.
330 * testsuite/ld-elf/elf.exp: Run it.
331
332 2017-11-01 Alan Modra <amodra@gmail.com>
333
334 * testsuite/ld-elf/elf.exp: Merge some conditionals, a better
335 name than "shared library for next test", and use xfail arg
336 of run_ld_link_tests in a few places.
337
338 2017-10-26 Renlin Li <renlin.li@arm.com>
339
340 * testsuite/ld-elf/elf.exp: xfail pr21703 tests on specific targets.
341 Only run shared lib test for targets which support it.
342 * testsuite/ld-elf/pr21703-r.sd: Adjust the expected output.
343 * testsuite/ld-elf/pr21703-shared.sd: Likewise.
344
345 2017-10-26 James Greenhalgh <james.greenhalgh@arm.com>
346
347 * testsuite/ld-arm/cortex-a8-far.d: Update expected disassembly.
348 * testsuite/ld-arm/farcall-group-size2: Likewise.
349 * testsuite/ld-arm/farcall-group.d: Likewise.
350
351 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
352
353 * ld.texinfo: Correct -z ibt.
354
355 2017-10-25 Alan Modra <amodra@gmail.com>
356
357 * testsuite/ld-plugin/lto-3r.d: Match "__gnu_lto_v" optionally
358 prefixed with "_".
359 * testsuite/ld-plugin/lto-5r.d: Likewise.
360
361 2017-10-25 Hans-Peter Nilsson <hp@axis.com>
362
363 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Fix typo for istarget.
364
365 2017-10-24 Andrew Waterman <andrew@sifive.com>
366
367 * testsuite/ld-riscv-elf/c-lui.d: New testcase.
368 * testsuite/ld-riscv-elf/c-lui.s: Likewise.
369 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: New test suite.
370
371 2017-10-24 Renlin Li <renlin.li@arm.com>
372
373 PR ld/21703
374 * testsuite/ld-elf/elf.exp: Run new tests.
375 * testsuite/ld-elf/pr21703-1.s: New.
376 * testsuite/ld-elf/pr21703-2.s: New.
377 * testsuite/ld-elf/pr21703-3.s: New.
378 * testsuite/ld-elf/pr21703-4.s: New.
379 * testsuite/ld-elf/pr21703-r.sd: New.
380 * testsuite/ld-elf/pr21703-shared.sd: New.
381 * testsuite/ld-elf/pr21703.sd: New.
382 * testsuite/ld-elf/pr21703.ver: New.
383
384 2017-10-23 H.J. Lu <hongjiu.lu@intel.com>
385
386 * configure.tgt (i[3-7]86-*-linux-*): Move elf32_x86_64 from
387 targ_extra_libpath to targ64_extra_libpath.
388
389 2017-10-23 Nick Clifton <nickc@redhat.com>
390
391 PR 22310
392 * testsuite/ld-elf/pr22310.s: New test source file.
393 * testsuite/ld-elf/pr22310.d: New test driver.
394 * testsuite/ld-mmix/undef-3.d: Update expected output from readelf.
395
396 2017-10-21 Hans-Peter Nilsson <hp@axis.com>
397
398 PR ld/21233
399 * testsuite/ld-elf/shared.exp: Remove kfails.
400
401 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
402
403 PR ld/22269
404 * testsuite/ld-elf/pr22269-1.rd: New file.
405 * testsuite/ld-elf/pr22269-1.c: Likewise.
406 * testsuite/ld-elf/shared.exp: Run pr22269-1.
407
408 2017-10-19 Palmer Dabbelt <palmer@dabbelt.com>
409
410 * emultempl/riscvelf.em (riscv_elf_before_allocation): Add a
411 third relaxation pass.
412
413 2017-10-17 Alan Modra <amodra@gmail.com>
414
415 * ld.texinfo (-z): Combine negative options with corresponding
416 positive option. Sort the table. Expand and correct "combreloc",
417 "common", "common-page-size", "interpose", "loadfltr",
418 "max-page-size", "muldefs", "nodefaultlib", "nodelete", "nodlopen",
419 "nodump", "noextern-protected-data", "now", "origin", and "text".
420
421 2017-10-16 H.J. Lu <hongjiu.lu@intel.com>
422
423 * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
424 Removed.
425 * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
426 Likewise.
427 * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
428 Likewise.
429 * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
430 Likewise.
431 * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
432 Likewise.
433 * emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
434 Likewise.
435 * emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
436 Likewise.
437 * emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
438 Likewise.
439 * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
440 Likewise.
441 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
442 Likewise.
443 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
444 Likewise.
445 * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
446 Likewise.
447 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
448 Likewise.
449 * emulparams/shelf.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
450 Likewise.
451 * emulparams/shelf32.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
452 Likewise.
453 * emulparams/shelf_nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
454 Likewise.
455 * emulparams/shelf_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
456 Likewise.
457 * emulparams/shlelf32_linux.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
458 Likewise.
459 * emulparams/shlelf_linux.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
460 Likewise.
461 * emulparams/shlelf_nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
462 Likewise.
463 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
464 Set link_info.check_relocs_after_open_input to TRUE.
465 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse):
466 Likewise.
467 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse):
468 Likewise.
469 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
470 after_parse_default.
471 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
472 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
473 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
474 * emultempl/gld960.em (ld_${EMULATION_NAME}_emulation): Likewise.
475 * emultempl/gld960c.em (ld_${EMULATION_NAME}_emulation): Likewise.
476 * emultempl/lnk960.em (ld_${EMULATION_NAME}_emulation): Likewise.
477 * emultempl/m68kcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
478 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
479 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
480 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
481 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
482 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
483 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
484 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Always
485 set link_info.check_relocs_after_open_input to TRUE.
486 (ld_${EMULATION_NAME}_emulation): Add $LDEMUL_AFTER_CHECK_RELOCS.
487 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
488 Set link_info.check_relocs_after_open_input to TRUE.
489 (ld_${EMULATION_NAME}_emulation): Add after_check_relocs_default.
490 * emultempl/mmix-elfnmmo.em (mmix_before_parse): New function.
491 (LDEMUL_BEFORE_PARSE): New.
492 * emultempl/mmixelf.em (elfmmix_before_parse): Replace
493 gld${EMULATION_NAME}_before_parse with mmix_before_parse.
494 * emultempl/ppc32elf.em (ppc_after_open): Renamed to ...
495 (ppc_after_check_relocs): This. Call after_check_relocs_default
496 instead of gld${EMULATION_NAME}_after_open.
497 (LDEMUL_AFTER_OPEN): Removed.
498 (LDEMUL_AFTER_CHECK_RELOCS): New.
499 * ldemul.c (ldemul_after_check_relocs): New.
500 (after_check_relocs_default): Likewise.
501 * ldemul.h (ldemul_after_check_relocs): Likewise.
502 (after_check_relocs_default): Likewise.
503 (ld_emulation_xfer_struct): Add after_check_relocs.
504 * ldlang.c (lang_process): Call ldemul_after_check_relocs after
505 lang_check_relocs.
506 * testsuite/ld-aarch64/gc-got-relocs.d: Don't expect GOT section.
507 * testsuite/ld-aarch64/gc-tls-relocs.d: Likewise.
508 * testsuite/ld-cris/tls-gc-68.d: Likewise.
509 * testsuite/ld-cris/tls-gc-69.d: Likewise.
510 * testsuite/ld-cris/tls-gc-70.d: Likewise.
511 * testsuite/ld-cris/tls-gc-75.d: Likewise.
512 * testsuite/ld-cris/tls-gc-79.d: Likewise.
513 * testsuite/ld-mmix/bpo-10.d: Don't expect .MMIX.reg_contents
514 section.
515
516 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
517
518 PR ld/22269
519 * testsuite/ld-cris/weakhiddso.d: Update and remove R_CRIS_NONE.
520
521 2017-10-13 Alan Modra <amodra@gmail.com>
522
523 PR ld/22263
524 * testsuite/ld-elf/tls.exp: Link with -z text.
525 * testsuite/ld-elf/pr22263-1.rd: Test for tprel relocs.
526
527 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
528
529 PR ld/22263
530 * testsuite/ld-elf/pr22263-1.rd: New file.
531 * testsuite/ld-elf/pr22263-1a.c: Likewise.
532 * testsuite/ld-elf/pr22263-1b.c: Likewise.
533 * testsuite/ld-elf/tls.exp: Likewise.
534
535 2017-10-12 Nick Clifton <nickc@redhat.com>
536
537 * testsuite/ld-aarch64/pcrel_pic_defined.d: Expect errors not
538 warnings. Expect errors about unsupported relocations.
539 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Likewise.
540
541 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
542
543 * testsuite/ld-elf/pr22269b.d: Expect warning of
544 "-z dynamic-undefined-weak ignored".
545 * testsuite/ld-i386/pr19636-1j.d: Likewise.
546 * testsuite/ld-i386/pr19636-1k.d: Likewise.
547 * testsuite/ld-i386/pr19636-1l.d: Likewise.
548 * testsuite/ld-x86-64/pr19636-2j.d: Likewise.
549 * testsuite/ld-x86-64/pr19636-2k.d: Likewise.
550 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
551 * testsuite/ld-x86-64/pr19636-2m.d: Likewise.
552
553 2017-10-12 Alan Modra <amodra@gmail.com>
554
555 PR 22269
556 * emultempl/elf32.em (after_parse): Warn on --no-dynamic-linker
557 -z dynamic-undefined-weak combination. Set dynamic_undefined_weak
558 to zero when nointerp.
559
560 2017-10-12 Alan Modra <amodra@gmail.com>
561
562 * emultempl/elf32.em (before_allocation): Call
563 elf_backend_hide_symbol, not _bfd_elf_link_hash_hide_symbol.
564 Formatting.
565
566 2017-10-11 H.J. Lu <hongjiu.lu@intel.com>
567
568 * PR ld/22269
569 * testsuite/ld-elf/pr22269.s: New file.
570 * testsuite/ld-elf/pr22269a.d: Likewise.
571 * testsuite/ld-elf/pr22269b.d: Likewise.
572
573 2017-10-11 H.J. Lu <hongjiu.lu@intel.com>
574
575 * testsuite/ld-i386/i386.exp: Run pr19636-1j, pr19636-1k,
576 pr19636-1l, pr19636-3h and pr19636-3i.
577 * testsuite/ld-i386/pr19636-1j.d: New file.
578 * testsuite/ld-i386/pr19636-1k.d: Likewise.
579 * testsuite/ld-i386/pr19636-1l.d: Likewise.
580 * testsuite/ld-i386/pr19636-3h.d: Likewise.
581 * testsuite/ld-i386/pr19636-3i.d: Likewise.
582 * testsuite/ld-x86-64/pr19636-1h.d: Likewise.
583 * testsuite/ld-x86-64/pr19636-1i.d: Likewise.
584 * testsuite/ld-x86-64/pr19636-1j.d: Likewise.
585 * testsuite/ld-x86-64/pr19636-2j.d: Likewise.
586 * testsuite/ld-x86-64/pr19636-2k.d: Likewise.
587 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
588 * testsuite/ld-x86-64/pr19636-2m.d: Likewise.
589 * testsuite/ld-x86-64/x86-64.exp: Run pr19636-1h, pr19636-1i,
590 pr19636-1j, pr19636-2j, pr19636-2k, pr19636-2l and pr19636-2m.
591
592 2017-10-11 Alan Modra <amodra@gmail.com>
593
594 * emultempl/aarch64elf.em: Wrap einfo strings in _(). Formatting.
595 * emultempl/aix.em: Likewise.
596 * emultempl/armcoff.em: Likewise.
597 * emultempl/armelf.em: Likewise.
598 * emultempl/avrelf.em: Likewise.
599 * emultempl/beos.em: Likewise.
600 * emultempl/cr16elf.em: Likewise.
601 * emultempl/elf-generic.em: Likewise.
602 * emultempl/elf32.em: Likewise.
603 * emultempl/genelf.em: Likewise.
604 * emultempl/hppaelf.em: Likewise.
605 * emultempl/linux.em: Likewise.
606 * emultempl/lnk960.em: Likewise.
607 * emultempl/m68hc1xelf.em: Likewise.
608 * emultempl/m68kcoff.em: Likewise.
609 * emultempl/m68kelf.em: Likewise.
610 * emultempl/metagelf.em: Likewise.
611 * emultempl/mipself.em: Likewise.
612 * emultempl/mmix-elfnmmo.em: Likewise.
613 * emultempl/mmo.em: Likewise.
614 * emultempl/msp430.em: Likewise.
615 * emultempl/nds32elf.em: Likewise.
616 * emultempl/nios2elf.em: Likewise.
617 * emultempl/pe.em: Likewise.
618 * emultempl/pep.em: Likewise.
619 * emultempl/ppc32elf.em: Likewise.
620 * emultempl/ppc64elf.em: Likewise.
621 * emultempl/riscvelf.em: Likewise.
622 * emultempl/s390.em: Likewise.
623 * emultempl/scoreelf.em: Likewise.
624 * emultempl/spuelf.em: Likewise.
625 * emultempl/sunos.em: Likewise.
626 * emultempl/tic6xdsbt.em: Likewise.
627 * emultempl/v850elf.em: Likewise.
628 * emultempl/vms.em: Likewise.
629 * emultempl/vxworks.em: Likewise.
630 * ldcref.c: Likewise.
631 * ldlang.c: Likewise.
632 * ldlex.l: Likewise.
633 * ldmain.c: Likewise.
634 * pe-dll.c: Likewise.
635 * plugin.c: Likewise.
636
637 2017-10-10 Renlin Li <renlin.li@arm.com>
638
639 PR ld/21402
640 * testsuite/ld-arm/tls-app.d: Update address.
641 * testsuite/ld-arm/tls-app.r: Remove relocations.
642 * testsuite/ld-arm/unresolved-1-dyn.d: Update.
643
644 2017-10-10 Alan Modra <amodra@gmail.com>
645
646 * Makefile.am (earmelfb_fuchsia.c): Rename rule from earmelf_fuchsia.c.
647 * Makefile.in: Regenerate.
648
649 2017-10-09 Nick Clifton <nickc@redhat.com>
650
651 * testsuite/ld-srec/srec.exp (run_srec_test): Set start address.
652
653 PR ld/19874
654 * testsuite/ld-x86-64/pr19784c.c (bar): Change return type to void.
655
656 2017-10-09 H.J. Lu <hongjiu.lu@intel.com>
657
658 PR ld/22267
659 * ldlex.l (SYMBOLNAMECHAR1) New.
660 (DEFSYMEXP): Replace FILENAMECHAR1 with SYMBOLNAMECHAR1.
661 (EXPRESSION): Likewise.
662 * testsuite/ld-scripts/expr.exp: Run pr22267.
663 * testsuite/ld-scripts/pr22267.d: New file.
664 * testsuite/ld-scripts/pr22267.s: Likewise.
665 * testsuite/ld-scripts/pr22267.t: Likewise.
666
667 2017-10-07 H.J. Lu <hongjiu.lu@intel.com>
668
669 * testsuite/ld-elf/merge.d: Don't expect to fail for sparc.
670
671 2017-10-05 Nick Clifton <nickc@redhat.com>
672
673 * po/tr.po: Updated Turkish translation.
674
675 2017-10-05 Nick Clifton <nickc@redhat.com>
676
677 PR 22262
678 * testsuite/ld-powerpc/relocsort.d: Update expected output (for
679 longer reloc names).
680
681 2017-10-05 Alan Modra <amodra@gmail.com>
682
683 PR 21167
684 * testsuite/ld-elf/group9b.d: Adjust for relocs included in group.
685
686 2017-10-03 Alan Modra <amodra@gmail.com>
687
688 PR 21294
689 * NEWS: Note that defaulting to -z relro results in increased
690 memory and disk size.
691
692 2017-10-03 Alan Modra <amodra@gmail.com>
693
694 * ld.texinfo (-z relro): Expand description.
695 (DATA_SEGMENT_ALIGN): Note that -z relro is not effective when
696 running with system page size larger than commonpagesize.
697 (DATA_SEGMENT_RELRO_END): Be explicit about the alignment.
698
699 2017-10-01 Alan Modra <amodra@gmail.com>
700
701 PR 21970
702 * ldlang.c (lang_leave_overlay): Reset overlay_subalign.
703
704 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
705
706 PR binutils/21978
707 * testsuite/ld-elf/pr21978.od: New file.
708 * testsuite/ld-elf/pr21978a.c: Likewise.
709 * testsuite/ld-elf/pr21978b.c: Likewise.
710 * testsuite/ld-elf/shared.exp: Run PR binutils/21978 test.
711
712 2017-09-28 Nick Clifton <nickc@redhat.com>
713
714 PR 14918
715 * testsuite/ld-plugin/lto.exp (link_elf_tests): Skip the pr14918
716 test for ARM targets as they always link with libgcc.
717
718 2017-09-28 Alan Modra <amodra@gmail.com>
719
720 * testsuite/ld-plugin/pr22220.h,
721 * testsuite/ld-plugin/pr22220lib.cc,
722 * testsuite/ld-plugin/pr22220lib.ver,
723 * testsuite/ld-plugin/pr22220main.cc: New test.
724 * testsuite/ld-plugin/lto.exp: Run it.
725
726 2017-09-26 Maciej W. Rozycki <macro@imgtec.com>
727
728 * testsuite/ld-undefined/undefined.exp: Correct the dyn reloc
729 test for MIPS and S+core targets.
730
731 2017-09-22 H.J. Lu <hongjiu.lu@intel.com>
732
733 PR ld/22150
734 * testsuite/ld-elf/pr22150.vd: New file.
735 * testsuite/ld-elf/pr22150.ver: Likewise.
736 * testsuite/ld-elf/pr22150a.s: Likewise.
737 * testsuite/ld-elf/pr22150b.s: Likewise.
738 * testsuite/ld-elf/shared.exp: Run PR ld/22150 tests.
739
740 2017-09-21 Alan Modra <amodra@gmail.com>
741
742 * testsuite/ld-powerpc/tlsopt5.wf: Update for reduced alignment.
743
744 2017-09-19 Maciej W. Rozycki <macro@imgtec.com>
745
746 * configure.tgt <mips64el-*-openbsd*, mips64-*-openbsd*>: New
747 targets.
748
749 2017-09-15 Alan Modra <amodra@gmail.com>
750
751 PR 22118
752 * testsuite/ld-aarch64/erratum843419.d: Correct regexp.
753
754 2017-09-14 H.J. Lu <hongjiu.lu@intel.com>
755
756 PR ld/22139
757 * testsuite/ld-elf/globalaudit.rd: Allow additional bits in
758 DT_FLAGS_1.
759
760 2017-09-14 H.J. Lu <hongjiu.lu@intel.com>
761
762 PR ld/22135
763 * testsuite/ld-i386/i386.exp: Run pr22135.
764 * testsuite/ld-x86-64/x86-64.exp: Likewise.
765 * testsuite/ld-i386/pr22135.d: New file.
766 * testsuite/ld-i386/pr22135.s: Likewise.
767 * testsuite/ld-x86-64/pr22135.d: Likewise.
768 * testsuite/ld-x86-64/pr22135.s: Likewise.
769
770 2017-09-09 Alan Modra <amodra@gmail.com>
771
772 * ld.texinfo (--plt-align): Describe new behaviour of option.
773 * emultempl/ppc64elf.em (params): Default plt_stub_align to 5.
774 * testsuite/ld-powerpc/powerpc.exp: Pass --no-plt-align for
775 selected tests.
776 * testsuite/ld-powerpc/relbrlt.d: Pass --no-plt-align.
777 * testsuite/ld-powerpc/elfv2so.d: Adjust expected output.
778
779 2017-09-09 H.J. Lu <hongjiu.lu@intel.com>
780
781 PR ld/22115
782 * ld-i386/i386.exp: Run PR ld/22115 tests,
783 * ld/testsuite/ld-x86-64/x86-64.exp: Likewise.
784 * testsuite/ld-i386/pr22115-1.s: New file.
785 * testsuite/ld-i386/pr22115-1a.d: Likewise.
786 * testsuite/ld-i386/pr22115-1b.d: Likewise.
787 * testsuite/ld-i386/pr22115-1c.d: Likewise.
788 * testsuite/ld-i386/pr22115-1d.d: Likewise.
789 * testsuite/ld-x86-64/pr22115-1.s: Likewise.
790 * testsuite/ld-x86-64/pr22115-1a-x32.d: Likewise.
791 * testsuite/ld-x86-64/pr22115-1a.d: Likewise.
792 * testsuite/ld-x86-64/pr22115-1b-x32.d: Likewise.
793 * testsuite/ld-x86-64/pr22115-1b.d: Likewise.
794 * testsuite/ld-x86-64/pr22115-1c-x32.d: Likewise.
795 * testsuite/ld-x86-64/pr22115-1c.d: Likewise.
796 * testsuite/ld-x86-64/pr22115-1d-x32.d: Likewise.
797 * testsuite/ld-x86-64/pr22115-1d.d: Likewise.
798
799 2017-09-06 H.J. Lu <hongjiu.lu@intel.com>
800
801 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
802 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
803 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
804 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
805
806 2017-09-05 H.J. Lu <hongjiu.lu@intel.com>
807
808 * testsuite/ld-x86-64/pr19609-5d.d: Updated.
809 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
810 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
811
812 2017-09-05 H.J. Lu <hongjiu.lu@intel.com>
813
814 * testsuite/ld-x86-64/pr19609-4e.d: Updated.
815 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
816
817 2017-09-03 H.J. Lu <hongjiu.lu@intel.com>
818
819 PR ld/22071
820 * testsuite/ld-x86-64/pr22071.d: New file.
821 * testsuite/ld-x86-64/pr22071.s: Likewise.
822 * testsuite/ld-x86-64/x86-64.exp: Run pr22071.
823
824 2017-09-02 Alan Modra <amodra@gmail.com>
825
826 * ldlang.h (lang_input_statement_type): Expand comments.
827 (LANG_FOR_EACH_INPUT_STATEMENT): Rewrite without casts.
828 * ldlang.c (lang_for_each_input_file): Likewise.
829 (load_symbols): Set usrdata for archives.
830 (find_rescan_insertion): New function.
831 (lang_process): Trim off and reinsert entries added to file chain
832 when rescanning archives for LTO.
833 * ldmain.c (add_archive_element): Set my_archive input_statement
834 next pointer to last element added.
835
836 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
837
838 PR ld/22064
839 * testsuite/ld-x86-64/pr22064a.S: New file.
840 * testsuite/ld-x86-64/pr22064b.c: Likewise.
841 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22064 test.
842
843 2017-09-02 Alan Modra <amodra@gmail.com>
844
845 * emultempl/msp430.em (eval_upper_either_sections): Make base_sec_name
846 a const char*.
847 (eval_lower_either_sections): Likewise.
848 (msp430_elf_after_allocation): Likewise, and don't needlessly concat
849 and free. Warning fix.
850
851 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
852
853 PR ld/22061
854 * testsuite/ld-i386/ibt-plt-1.d: Updated.
855 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
856 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
857 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
858 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
859 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
860 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
861 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
862 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
863 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
864 * testsuite/ld-i386/ibt-plt-2b.d: Pass --hash-style=sysv to ld
865 and dump unwind information.
866 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
867 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
868 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
869 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
870 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
871 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
872 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
873 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
874 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
875 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
876 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
877
878 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
879
880 PR ld/22048
881 * testsuite/ld-x86-64/pr22048.d: New file.
882 * testsuite/ld-x86-64/pr22048a.s: Likewise.
883 * testsuite/ld-x86-64/pr22048b.s: Likewise.
884 * testsuite/ld-x86-64/x86-64.exp: Run pr22048.
885
886 2017-08-31 Alan Modra <amodra@gmail.com>
887
888 * testsuite/ld-elf/eh3.d: Update.
889 * testsuite/ld-elf/eh4.d: Update.
890
891 2017-08-30 Maciej W. Rozycki <macro@imgtec.com>
892
893 * testsuite/ld-elf/orphan-11.ld: Also discard `.MIPS.options'
894 sections.
895
896 2017-08-30 Maciej W. Rozycki <macro@imgtec.com>
897
898 * testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: New test.
899 * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: New
900 test.
901 * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d: New
902 test.
903 * testsuite/ld-mips-elf/bal-jalx-local-micromips.d: New test.
904 * testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d: New
905 test.
906 * testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d: New
907 test.
908 * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: New test.
909 * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: New test.
910 * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: New test.
911 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d: New
912 test.
913 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d: New
914 test.
915 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d: New
916 test.
917 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
918
919 2017-08-30 Alan Modra <amodra@gmail.com>
920
921 * testsuite/ld-powerpc/tls.s: Add calls with tls markers.
922 * testsuite/ld-powerpc/tls32.s: Likewise.
923 * testsuite/ld-powerpc/powerpc.exp: Run tls marker tests.
924 * testsuite/ld-powerpc/tls.d: Adjust for TPREL16_HA/LO optimization.
925 * testsuite/ld-powerpc/tlsexe.d: Likewise.
926 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
927 * testsuite/ld-powerpc/tlsld.d: Likewise.
928 * testsuite/ld-powerpc/tlsmark.d: Likewise.
929 * testsuite/ld-powerpc/tlsopt4.d: Likewise.
930 * testsuite/ld-powerpc/tlstoc.d: Likewise.
931
932 2017-08-30 Alan Modra <amodra@gmail.com>
933
934 * testsuite/ld-powerpc/tls.d: Update.
935 * testsuite/ld-powerpc/tlsexe.d: Update.
936 * testsuite/ld-powerpc/tlsexetoc.d: Update.
937 * testsuite/ld-powerpc/tlsld.d: Update.
938 * testsuite/ld-powerpc/tlsmark.d: Update.
939 * testsuite/ld-powerpc/tlsopt4.d: Update.
940 * testsuite/ld-powerpc/tlstoc.d: Update.
941
942 2017-08-30 Hans-Peter Nilsson <hp@axis.com>
943
944 * testsuite/ld-cris/dso-pltdis1.d: Run ld with --hash-style=sysv.
945 * testsuite/ld-cris/dso-pltdis2.d,
946 testsuite/ld-cris/dso12-pltdis.d, testsuite/ld-cris/expdyn1.d,
947 testsuite/ld-cris/expdyn5.d, testsuite/ld-cris/expdyn6.d,
948 testsuite/ld-cris/expdyn7.d, testsuite/ld-cris/gotplt1.d,
949 testsuite/ld-cris/gotplt2.d, testsuite/ld-cris/gotplt3.d,
950 testsuite/ld-cris/hiddef1.d, testsuite/ld-cris/libdso-11.d,
951 testsuite/ld-cris/libdso-12.d, testsuite/ld-cris/libdso-12b.d,
952 testsuite/ld-cris/libdso-12c.d, testsuite/ld-cris/libdso-13.d,
953 testsuite/ld-cris/libdso-13b.d, testsuite/ld-cris/libdso-14.d,
954 testsuite/ld-cris/libdso-15.d, testsuite/ld-cris/libdso-15b.d,
955 testsuite/ld-cris/libdso-1b.d, testsuite/ld-cris/libdso-1c.d,
956 testsuite/ld-cris/libdso-1d.d, testsuite/ld-cris/libdso-4.d,
957 testsuite/ld-cris/pr16044.d, testsuite/ld-cris/pv32-1.d,
958 testsuite/ld-cris/tls-dso-dtpoffd2.d,
959 testsuite/ld-cris/tls-dso-dtpoffd4.d,
960 testsuite/ld-cris/tls-dso-tpoffgotcomm1.d,
961 testsuite/ld-cris/tls-dso-x1x2-1.d, testsuite/ld-cris/tls-gc-71.d,
962 testsuite/ld-cris/tls-ie-78.d, testsuite/ld-cris/tls-js1.d,
963 testsuite/ld-cris/tls-ldgdex-14.d,
964 testsuite/ld-cris/tls-ldgdex-15.d,
965 testsuite/ld-cris/tls-legdx-16.d,
966 testsuite/ld-cris/tls-legdx-17.d,
967 testsuite/ld-cris/tls-local-63.d,
968 testsuite/ld-cris/tls-local-64.d, testsuite/ld-cris/tls-ok-30.d,
969 testsuite/ld-cris/tls-ok-32.d, testsuite/ld-cris/tls-ok-34.d,
970 testsuite/ld-cris/tls-und-38.d, testsuite/ld-cris/tls-und-42.d,
971 testsuite/ld-cris/tls-und-46.d, testsuite/ld-cris/tls-und-50.d,
972 testsuite/ld-cris/weakref2.d, testsuite/ld-cris/weakref3.d,
973 testsuite/ld-cris/weakref4.d: Likewise.
974
975 2017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
976
977 * emultempl/msp430.em (change_output_section): New function.
978 (move_prefixed_section): New function.
979 (add_region_prefix): New function.
980 (msp430_elf_after_open): New function.
981 (gld${EMULATION_NAME}_add_options): Implement.
982 (gld${EMULATION_NAME}_list_options): Implement.
983 (gld${EMULATION_NAME}_handle_option): Implement.
984 * ld.texinfo: Document new options.
985 * testsuite/ld-msp430-elf/main-bss-lower.d: New.
986 * testsuite/ld-msp430-elf/main-bss-upper.d: New.
987 * testsuite/ld-msp430-elf/main-const-lower.d: New.
988 * testsuite/ld-msp430-elf/main-const-upper.d: New.
989 * testsuite/ld-msp430-elf/main-text-lower.d: New.
990 * testsuite/ld-msp430-elf/main-text-upper.d: New.
991 * testsuite/ld-msp430-elf/main-var-lower.d: New.
992 * testsuite/ld-msp430-elf/main-var-upper.d: New.
993 * testsuite/ld-msp430-elf/main-with-data-bss-unique-sec.s: New.
994 * testsuite/ld-msp430-elf/main-with-data-bss.s: New.
995 * testsuite/ld-msp430-elf/main-with-text-rodata-unique-sec.s: New.
996 * testsuite/ld-msp430-elf/main-with-text-rodata.s: New.
997 * testsuite/ld-msp430-elf/msp430-elf.exp: New.
998 * testsuite/ld-msp430-elf/msp430-no-lower.ld: New.
999 * testsuite/ld-msp430-elf/msp430.ld: New.
1000 * emultempl/msp430.em (data_statement_size): New.
1001 (eval_upper_either_sections): New.
1002 (eval_lower_either_sections): New.
1003 (intermediate_relax_sections): New.
1004 (msp430_elf_after_allocation): New.
1005 * emultempl/msp430.em (gld${EMULATION_NAME}_place_orphan): Always
1006 place sections in the lower region.
1007
1008 2017-08-26 H.J. Lu <hongjiu.lu@intel.com>
1009
1010 PR ld/21997
1011 * testsuite/ld-i386/i386.exp: Run PR ld/21997 tests.
1012 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1013 * testsuite/ld-i386/pr21997-1a.S: New file.
1014 * testsuite/ld-i386/pr21997-1b.c: Likewise.
1015 * testsuite/ld-i386/pr21997-1c.S: Likewise.
1016 * testsuite/ld-x86-64/pr21997-1a.S: Likewise.
1017 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
1018 * testsuite/ld-x86-64/pr21997-1b.c: Likewise.
1019 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
1020 * testsuite/ld-x86-64/pr21997-1c.c: Likewise.
1021
1022 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
1023
1024 * testsuite/ld-elf/pr21903c.d: Remove '\' before --.
1025 * testsuite/ld-elf/pr21903d.d: Likewise.
1026 * testsuite/ld-elf/pr21903e.d: Likewise.
1027 * testsuite/lib/ld-lib.exp (run_dump_test): Add "--" after
1028 regexp.
1029
1030 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 * testsuite/ld-i386/i386.exp (undefined_weak): Replace regexp
1033 with string match.
1034 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Likewise.
1035
1036 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
1037
1038 * testsuite/ld-x86-64/x86-64.exp: Run pr22001-1b on x32.
1039
1040 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
1041
1042 PR ld/22001
1043 * testsuite/ld-i386/i386.exp: Run -z nocopyreloc tests.
1044 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1045 * testsuite/ld-i386/pr22001-1a.c: New file.
1046 * testsuite/ld-i386/pr22001-1b.c: Likewise.
1047 * testsuite/ld-i386/pr22001-1c.S: Likewise.
1048 * testsuite/ld-x86-64/pr22001-1a.c: Likewise.
1049 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
1050 * testsuite/ld-x86-64/pr22001-1b.c: Likewise.
1051 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
1052 * testsuite/ld-x86-64/pr22001-1c.c: Likewise.
1053
1054 2017-08-17 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 PR 21961
1057 * ldlang.c (lang_discard_section_p): New function.
1058 (lang_add_section): Checks moved out into new function, which is
1059 now called.
1060 (lang_place_orphans): Call lang_discard_section_p instead of
1061 duplicating some of the checks from lang_add_section.
1062 * testsuite/ld-elf/orphan-11.d: New file.
1063 * testsuite/ld-elf/orphan-11.ld: New file.
1064 * testsuite/ld-elf/orphan-11.s: New file.
1065 * testsuite/ld-elf/orphan-12.d: New file.
1066 * testsuite/ld-elf/orphan-12.s: New file.
1067
1068 2017-08-24 Alan Modra <amodra@gmail.com>
1069
1070 * testsuite/ld-undefined/fundef.s: New test.
1071 * testsuite/ld-undefined/undefined.exp: Test that undefined
1072 symbols in shared libraries are made dynamic.
1073
1074 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1075
1076 * testsuite/ld-elf/pr21903c.d: Add '\' before --.
1077 * testsuite/ld-elf/pr21903d.d: Likewise.
1078 * testsuite/ld-elf/pr21903e.d: Likewise.
1079
1080 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1081
1082 * testsuite/ld-x86-64/pie2.d: Updated.
1083 * testsuite/ld-x86-64/pr19719.d: Likewise.
1084 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1085 * testsuite/ld-x86-64/pr19969.d: Likewise.
1086
1087 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1088
1089 * testsuite/ld-i386/i386.exp: Run protected7.
1090 * testsuite/ld-i386/protected7.d: New file.
1091 * testsuite/ld-i386/protected7.s: Likewise.
1092 * testsuite/ld-x86-64/protected8.d: Likewise.
1093 * testsuite/ld-x86-64/protected8.s: Likewise.
1094 * testsuite/ld-x86-64/x86-64.exp: Run protected8.
1095
1096 2017-08-23 Alan Modra <amodra@gmail.com>
1097
1098 * testsuite/ld-gc/pr19161.d: Don't xfail hppa.
1099
1100 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
1101 Alan Modra <amodra@gmail.com>
1102
1103 * testsuite/ld-elf/pr21964-1a.c (foo): Renamed to ...
1104 (foo1): This.
1105 * testsuite/ld-elf/pr21964-1b.c: Rewrite.
1106 * testsuite/ld-elf/pr21964-1c.c: New file.
1107 * testsuite/ld-elf/pr21964-2c.c: Likewise.
1108 * testsuite/ld-elf/pr21964-2a.c (foo): Renamed to ...
1109 (foo1): This.
1110 * testsuite/ld-elf/pr21964-2b.c: Rewrite.
1111 * testsuite/ld-elf/shared.exp: Update PR ld/21964 tests.
1112
1113 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1114 Alan Modra <amodra@gmail.com>
1115
1116 PR ld/21964
1117 * testsuite/ld-elf/pr21562a.d: Update for changed start/stop symbols.
1118 * testsuite/ld-elf/pr21562b.d: Likewise.
1119 * testsuite/ld-elf/pr21562c.d: Likewise.
1120 * testsuite/ld-elf/pr21562d.d: Likewise.
1121 * testsuite/ld-elf/pr21562e.d: Likewise.
1122 * testsuite/ld-elf/pr21562f.d: Likewise.
1123 * testsuite/ld-elf/pr21562g.d: Likewise.
1124 * testsuite/ld-elf/pr21562h.d: Likewise.
1125 * testsuite/ld-elf/pr21562i.d: Likewise.
1126 * testsuite/ld-elf/pr21562j.d: Likewise.
1127 * testsuite/ld-elf/pr21562k.d: Likewise.
1128 * testsuite/ld-elf/pr21562l.d: Likewise.
1129 * testsuite/ld-elf/pr21562m.d: Likewise.
1130 * testsuite/ld-elf/pr21562n.d: Likewise.
1131 * testsuite/ld-elf/sizeofa.d: Likewise.
1132 * testsuite/ld-elf/sizeofb.d: Likewise.
1133 * testsuite/ld-elf/startofa.d: Likewise.
1134 * testsuite/ld-elf/startofb.d: Likewise.
1135 * testsuite/ld-gc/pr20022.d: Likewise.
1136 * testsuite/ld-gc/start.d: Likewise.
1137 * testsuite/ld-elf/pr21964-1a.c: New file.
1138 * testsuite/ld-elf/pr21964-1b.c: New file.
1139 * testsuite/ld-elf/pr21964-2a.c: New file.
1140 * testsuite/ld-elf/pr21964-2b.c: New file.
1141 * testsuite/ld-elf/shared.exp: Run PR ld/21964 tests.
1142
1143 2017-08-21 Hans-Peter Nilsson <hp@bitrange.com>
1144
1145 PR ld/20125
1146 * testsuite/ld-mmix/pr20125.d, testsuite/ld-mmix/pr20125.s: New
1147 test.
1148
1149 2017-08-20 A. Wilcox <awilfox@adelielinux.org>
1150
1151 PR ld/21976
1152 * testsuite/ld-x86-64/plt-main-bnd.dd: Accept '_' in symbol
1153 name.
1154
1155 2017-08-17 Nick Clifton <nickc@redhat.com>
1156
1157 * po/pt_BR.po: New Brazilian Portuguese translation.
1158 * configure.ac (ALL_LINGUAS): Add pt_BR.
1159 * configure: Regenerate.
1160
1161 2017-08-14 Alan Modra <amodra@gmail.com>
1162
1163 PR 21441
1164 * testsuite/ld-x86-64/pr21038a.d: Adjust.
1165 * testsuite/ld-x86-64/pr21038a-now.d: Adjust.
1166
1167 2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
1168
1169 * testsuite/ld-i386/i386.exp: Run pr21884-nacl.
1170 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1171 * testsuite/ld-i386/pr21884.d: Don't run on nacl targets.
1172 * testsuite/ld-x86-64/pr21884.d: Likewise.
1173 * testsuite/ld-i386/pr21884.t: Revert the last change.
1174 * testsuite/ld-x86-64/pr21884.t: Likewise.
1175 * testsuite/ld-i386/pr21884-nacl.d: New file.
1176 * testsuite/ld-i386/pr21884-nacl.t: Likewise.
1177 * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
1178 * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
1179
1180 2017-08-13 Alan Modra <amodra@gmail.com>
1181
1182 * testsuite/ld-i386/pr21884.t: Remove unneeded format, arch and entry.
1183 * testsuite/ld-x86-64/pr21884.t: Likewise.
1184
1185 2017-08-11 Nick Clifton <nickc@redhat.com>
1186
1187 * emultempl/elf32.em (handle_option): Accept the -z globalaudit
1188 command line option.
1189 * lexsup.c (elf_static_list_options): Add -z globalaudit.
1190 * ld.texinfo: Document the support for the new command line
1191 option.
1192 * NEWS: Mention the new feature.
1193 * testsuite/ld-elf/audit.exp: Add a test of the -z globalaudit
1194 command line option.
1195 * testsuite/ld-elf/globalaudit.rd: New file: Expected output from
1196 readelf.
1197
1198 2017-08-11 H.J. Lu <hongjiu.lu@intel.com>
1199
1200 PR ld/21884
1201 * testsuite/ld-i386/i386.exp: Run pr21884.
1202 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1203 * testsuite/ld-i386/pr21884.d: New file.
1204 * testsuite/ld-i386/pr21884.t: Likewise.
1205 * testsuite/ld-x86-64/pr21884.d: Likewise.
1206 * testsuite/ld-x86-64/pr21884.t: Likewise.
1207
1208 2017-08-10 Nick Clifton <nickc@redhat.com>
1209
1210 * scripttempl/pep.sc: Enclose __CTOR_LIST__, ___CTOR_LIST__,
1211 __DTOR_LIST__ and ___DTOR_LIST__ in PROVIDE statements so that
1212 they can be overrridden by crt input files.
1213 * scripttempl/pe.sc: Likewise.
1214
1215 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
1216
1217 * testsuite/config/default.exp (LD_CLASS): Check .libs/ld-new
1218 for linker first.
1219
1220 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
1221
1222 * testsuite/config/default.exp (LD_CLASS): New. Set to "64bit"
1223 for 64-bit ELF linker.
1224 * testsuite/ld-x86-64/pr17618.d (#notarget): Removed.
1225 * testsuite/ld-x86-64/x86-64.exp: Run pr17618 only for 64-bit
1226 linker.
1227
1228 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
1229
1230 PR ld/21924
1231 * testsuite/ld-i386/i386.exp: Require GCC 5 or above for
1232 "weakundef1 with PIE" test.
1233 * testsuite/ld-x86-64/tls.exp: Require GCC 5 or above for
1234 "tlsdesc1" and "tlsdesc1 with PIE" tests.
1235
1236 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
1237
1238 * configure.ac (TESTBFDLIB): Add a ',' after -Wl,--rpath.
1239 * configure: Regenerated.
1240
1241 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
1242
1243 PR ld/21923
1244 * configure.ac (TESTBFDLIB): Replace --rpath with -Wl,--rpath
1245 for --disable-static.
1246 * configure: Regenerated.
1247
1248 2017-08-08 Romain Geissler <romain.geissler@gmail.com>
1249 Alan Modra <amodra@gmail.com>
1250
1251 * configure.ac: Add --enable-default-hash-style option.
1252 * ldmain.c (main): Set link_info.emit_hash to DEFAULT_EMIT_SYSV_HASH.
1253 Set link_info.emit_gnu_hash to DEFAULT_EMIT_GNU_HASH.
1254 * configure: Regenerate.
1255 * config.in: Regenerate.
1256
1257 2017-08-08 Alan Modra <amodra@gmail.com>
1258
1259 * testsuite/ld-aarch64/ifunc-1-local.d: Run ld with --hash-style=sysv.
1260 * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
1261 * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
1262 * testsuite/ld-frv/fdpic-pie-1.d: Likewise.
1263 * testsuite/ld-frv/fdpic-pie-2.d: Likewise.
1264 * testsuite/ld-frv/fdpic-pie-7.d: Likewise.
1265 * testsuite/ld-frv/fdpic-pie-8.d: Likewise.
1266 * testsuite/ld-arm/arm-elf.exp: Add --hash-style=sysv to "Using
1267 Thumb lib by another lib" test's ld options.
1268 * testsuite/ld-elf/note-3.l: Match .gnu.hash.
1269 * testsuite/ld-elf/note-3.t: Add .gnu.hash output section.
1270
1271 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
1272
1273 * testsuite/ld-elf/pr21903.s (start): Removed.
1274 (_start): Likewise.
1275 (__start): Likewise.
1276 (main): Likewise.
1277 (bar): New.
1278
1279 2017-08-07 Alan Modra <amodra@gmail.com>
1280
1281 * testsuite/ld-alpha/alpha.exp: Add --hash-style=sysv to various
1282 test's ld options.
1283 * testsuite/ld-arm/arm-elf.exp: Likewise.
1284 * testsuite/ld-elf/elf.exp: Likewise.
1285 * testsuite/ld-elf/readelf.exp: Likewise.
1286 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1287 * testsuite/ld-i386/i386.exp: Likewise.
1288 * testsuite/ld-ia64/ia64.exp: Likewise.
1289 * testsuite/ld-m68k/m68k.exp: Likewise.
1290 * testsuite/ld-metag/metag.exp: Likewise.
1291 * testsuite/ld-powerpc/powerpc.exp: Likewise.
1292 * testsuite/ld-s390/s390.exp: Likewise.
1293 * testsuite/ld-sh/sh-vxworks.exp: Likewise.
1294 * testsuite/ld-shared/shared.exp: Likewise.
1295 * testsuite/ld-sparc/sparc.exp: Likewise.
1296 * testsuite/ld-tic6x/tic6x.exp: Likewise.
1297 * testsuite/ld-vax-elf/vax-elf.exp: Likewise.
1298 * testsuite/ld-x86-64/mpx.exp: Likewise.
1299 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1300 * testsuite/ld-xtensa/xtensa.exp: Likewise.
1301
1302 * testsuite/ld-elf/comm-data2.ld: Add .gnu.hash output section.
1303 * testsuite/ld-elf/pr20828-v.ld: Likewise.
1304 * testsuite/ld-elf/pr20828.ld: Likewise.
1305 * testsuite/ld-elf/pr21233.ld: Likewise.
1306 * testsuite/ld-elf/pr21384.ld: Likewise.
1307 * testsuite/ld-elf/provide-hidden-1.ld: Likewise.
1308 * testsuite/ld-elf/provide-hidden-2.ld: Likewise.
1309 * testsuite/ld-elf/provide-hidden-s.ld: Likewise.
1310 * testsuite/ld-scripts/cross1.t: Likewise.
1311
1312 * testsuite/ld-elf/stab.d: Adjust allowed section indices.
1313
1314 * testsuite/ld-i386/pie1.d: Don't match addresses.
1315 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1316 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1317 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1318 * testsuite/ld-powerpc/elfv2so.d: Likewise.
1319 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1320 * testsuite/ld-powerpc/tlsopt5.wf: Likewise.
1321 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1322
1323 * testsuite/ld-i386/pr19636-2b.d: Don't match _start.
1324
1325 * testsuite/ld-powerpc/ambiguousv1.d: Relax symbol count, index
1326 and address match.
1327 * testsuite/ld-powerpc/ambiguousv1b.d: Likewise.
1328 * testsuite/ld-powerpc/ambiguousv2.d: Likewise.
1329 * testsuite/ld-powerpc/ambiguousv2b.d: Likewise.
1330
1331 * testsuite/ld-aarch64/gc-plt-relocs.d: Run ld with --hash-style=sysv.
1332 * testsuite/ld-aarch64/ifunc-1.d: Likewise.
1333 * testsuite/ld-aarch64/ifunc-2.d: Likewise.
1334 * testsuite/ld-aarch64/ifunc-21.d: Likewise.
1335 * testsuite/ld-aarch64/relasz.d: Likewise.
1336 * testsuite/ld-aarch64/tls-small-ld.d: Likewise.
1337 * testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
1338 * testsuite/ld-arc/tls_gd-01.d: Likewise.
1339 * testsuite/ld-cris/libdso-10.d: Likewise.
1340 * testsuite/ld-cris/libdso-2.d: Likewise.
1341 * testsuite/ld-cris/pic-gc-72.d: Likewise.
1342 * testsuite/ld-cris/pic-gc-73.d: Likewise.
1343 * testsuite/ld-cris/tls-gd-1.d: Likewise.
1344 * testsuite/ld-cris/tls-gd-1h.d: Likewise.
1345 * testsuite/ld-cris/tls-gd-2.d: Likewise.
1346 * testsuite/ld-cris/tls-gd-2h.d: Likewise.
1347 * testsuite/ld-cris/tls-ie-10.d: Likewise.
1348 * testsuite/ld-cris/tls-ie-11.d: Likewise.
1349 * testsuite/ld-cris/tls-ie-8.d: Likewise.
1350 * testsuite/ld-cris/tls-ie-9.d: Likewise.
1351 * testsuite/ld-cris/tls-ld-4.d: Likewise.
1352 * testsuite/ld-cris/tls-ld-5.d: Likewise.
1353 * testsuite/ld-cris/tls-ld-6.d: Likewise.
1354 * testsuite/ld-cris/tls-ld-7.d: Likewise.
1355 * testsuite/ld-cris/tls-ldgd-14.d: Likewise.
1356 * testsuite/ld-cris/tls-ldgd-15.d: Likewise.
1357 * testsuite/ld-cris/tls-ldgdx-14.d: Likewise.
1358 * testsuite/ld-cris/tls-ldgdx-15.d: Likewise.
1359 * testsuite/ld-cris/tls-local-54.d: Likewise.
1360 * testsuite/ld-cris/tls-local-60.d: Likewise.
1361 * testsuite/ld-cris/tls-local-61.d: Likewise.
1362 * testsuite/ld-cris/weakhiddso.d: Likewise.
1363 * testsuite/ld-elf/linkinfo1a.d: Likewise.
1364 * testsuite/ld-elf/linkinfo1b.d: Likewise.
1365 * testsuite/ld-elf/pr19617a.d: Likewise.
1366 * testsuite/ld-elfvsb/hidden2.d: Likewise.
1367 * testsuite/ld-frv/fdpic-pie-6.d: Likewise.
1368 * testsuite/ld-frv/fdpic-shared-2.d: Likewise.
1369 * testsuite/ld-frv/fdpic-shared-5.d: Likewise.
1370 * testsuite/ld-frv/fdpic-shared-6.d: Likewise.
1371 * testsuite/ld-frv/fdpic-shared-8.d: Likewise.
1372 * testsuite/ld-frv/fdpic-shared-local-2.d: Likewise.
1373 * testsuite/ld-frv/fdpic-shared-local-8.d: Likewise.
1374 * testsuite/ld-frv/tls-dynamic-2.d: Likewise.
1375 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1376 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1377 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1378 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1379 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1380 * testsuite/ld-i386/pr20830.d: Likewise.
1381 * testsuite/ld-ia64/merge1.d: Likewise.
1382 * testsuite/ld-ia64/merge2.d: Likewise.
1383 * testsuite/ld-ia64/merge3.d: Likewise.
1384 * testsuite/ld-ia64/merge4.d: Likewise.
1385 * testsuite/ld-ia64/merge5.d: Likewise.
1386 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Likewise.
1387 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
1388 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1389 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1390 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1391 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
1392 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1393 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
1394 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
1395 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1396 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1397 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1398 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1399 * testsuite/ld-m68k/got-1.d: Likewise.
1400 * testsuite/ld-m68k/got-multigot-12-13-14-34-35-ok.d: Likewise.
1401 * testsuite/ld-m68k/got-multigot-14-ok.d: Likewise.
1402 * testsuite/ld-m68k/got-multigot-15-er.d: Likewise.
1403 * testsuite/ld-m68k/got-negative-12-13-14-34-ok.d: Likewise.
1404 * testsuite/ld-m68k/got-negative-12-13-14-35-er.d: Likewise.
1405 * testsuite/ld-m68k/got-negative-14-ok.d: Likewise.
1406 * testsuite/ld-m68k/got-negative-15-er.d: Likewise.
1407 * testsuite/ld-m68k/got-single-12-ok.d: Likewise.
1408 * testsuite/ld-m68k/got-single-13-er.d: Likewise.
1409 * testsuite/ld-m68k/got-xgot-12-13-14-15-34-35-ok.d: Likewise.
1410 * testsuite/ld-m68k/got-xgot-15-ok.d: Likewise.
1411 * testsuite/ld-m68k/tls-gd-1.d: Likewise.
1412 * testsuite/ld-m68k/tls-gd-2.d: Likewise.
1413 * testsuite/ld-m68k/tls-gd-ie-1.d: Likewise.
1414 * testsuite/ld-m68k/tls-ie-1.d: Likewise.
1415 * testsuite/ld-m68k/tls-ld-1.d: Likewise.
1416 * testsuite/ld-m68k/tls-ld-2.d: Likewise.
1417 * testsuite/ld-sh/shared-2.d: Likewise.
1418 * testsuite/ld-sh/tlsbin-2.d: Likewise.
1419 * testsuite/ld-sh/tlspic-2.d: Likewise.
1420 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1421 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1422 * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
1423 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1424 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1425 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1426 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1427 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1428 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1429 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1430 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1431 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1432 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1433 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1434 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1435 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1436 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1437 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
1438 * testsuite/ld-x86-64/ilp32-4.d: Likewise.
1439 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
1440 * testsuite/ld-x86-64/load1c.d: Likewise.
1441 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
1442 * testsuite/ld-x86-64/load1d.d: Likewise.
1443 * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
1444 * testsuite/ld-x86-64/pie3.d: Likewise.
1445 * testsuite/ld-x86-64/pr14207.d: Likewise.
1446 * testsuite/ld-x86-64/pr19162.d: Likewise.
1447 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
1448 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
1449 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1450 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
1451 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
1452 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
1453 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
1454 * testsuite/ld-x86-64/pr20830a.d: Likewise.
1455 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
1456 * testsuite/ld-x86-64/pr20830b.d: Likewise.
1457 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
1458 * testsuite/ld-x86-64/pr21038a.d: Likewise.
1459 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1460 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1461 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1462 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1463
1464 2017-08-06 H.J. Lu <hongjiu.lu@intel.com>
1465
1466 PR ld/21903:
1467 * ld.h (command_line): Remove inhibit_common_definition.
1468 * ldgram.y: Replace command_line.inhibit_common_definition with
1469 link_info.inhibit_common_definition.
1470 * ldlang.c (lang_common): Likewise.
1471 * lexsup.c (parse_args): Likewise.
1472 * ldmain.c (main): Only allow --no-define-common with -shared.
1473 * testsuite/ld-elf/pr21903.s: New file.
1474 * testsuite/ld-elf/pr21903a.d: Likewise.
1475 * testsuite/ld-elf/pr21903b.d: Likewise.
1476 * testsuite/ld-elf/pr21903c.d: Likewise.
1477 * testsuite/ld-elf/pr21903d.d: Likewise.
1478 * testsuite/ld-elf/pr21903e.d: Likewise.
1479
1480 2017-08-05 Alan Modra <amodra@gmail.com>
1481
1482 * testsuite/ld-unique/pr21529.d: Don't xfail hppa.
1483
1484 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
1485
1486 PR ld/21904
1487 * testsuite/ld-elf/pr21904.d: New file.
1488 * testsuite/ld-elf/pr21904.s: Likewise.
1489
1490 2017-08-03 Nick Clifton <nickc@redhat.com>
1491
1492 PR ld/21884
1493 * testsuite/ld-elf/pr21884.d: Add AVR, HPPA, IA64, M68HC1x and
1494 SCORE to list of targets not supporting file format changes during
1495 linking.
1496 * testsuite/ld-unique/pr21529.d: Likewise.
1497 * emultempl/avrelf.em (_before_allocation): Skip for non-ELF
1498 output formats.
1499 (avr_elf_create_output_section_statements): Fail if the output
1500 format is not ELF.
1501 (avr_finish): Do not access the ELF header in non-ELF format
1502 output bfds.
1503 * emultempl/m68hc1xelf.em (_before_allocation): Skip for non-ELF
1504 output formats.
1505 (m68hc11elf_create_output_section_statements): Fail if the putput
1506 format is not ELF.
1507 (m68hc11elf_after_allocation): Skip for non-ELF output formats.
1508
1509 2017-08-03 Alan Modra <amodra@gmail.com>
1510
1511 PR ld/21884
1512 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Revert
1513 last change. Rename iself to elfinput. Expand comments. Condition
1514 ELF checks on having both input and output ELF files. Extract..
1515 (elf_orphan_compatible): ..this new function.
1516
1517 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
1518
1519 PR ld/21884
1520 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check
1521 ELF section header only for ELF output.
1522 * testsuite/ld-elf/pr21884.d: New test.
1523 * testsuite/ld-elf/pr21884.t: Likewise.
1524 * testsuite/ld-elf/pr21884a.s: Likewise.
1525 * testsuite/ld-elf/pr21884b.s: Likewise.
1526
1527 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
1528
1529 * emultempl/elf32.em (_place_orphan): Revert the last change.
1530
1531 2017-08-02 Max Filippov <jcmvbkbc@gmail.com>
1532
1533 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
1534 Only check for by_name sorting.
1535
1536 2017-08-02 Nick Clifton <nickc@redhat.com>
1537
1538 PR 21884
1539 * emultempl/elf32.em (_place_orphan): Skip non-ELF binaries when
1540 looking for sections to merge.
1541
1542 2017-07-31 Alan Modra <amodra@gmail.com>
1543
1544 * ld.texinfo (plt-localentry): Revise.
1545
1546 2017-07-29 Alan Modra <amodra@gmail.com>
1547
1548 * ld.texinfo (plt-localentry): Document.
1549
1550 2017-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * ldgram.y (ldgram_had_keep): Make static.
1553 (ldgram_vers_current_lang): Likewise.
1554 (filename_spec): New rule.
1555 (input_section_spec_no_keep): Use filename_spec.
1556 (wildcard_maybe_exclude): New rule.
1557 (wildcard_spec): Rename to...
1558 (section_name_spec): ...this.
1559 (section_NAME_list): Rename to...
1560 (section_name_list): ...this.
1561 (section_name_spec): Simplifiy and use wildcard_maybe_exclude.
1562 * ldlang.c (placed_commons): Delete.
1563 (lang_add_wild): No longer set placed_commons.
1564 (print_wild_statement): Use full names for SORT specifiers.
1565 * testsuite/ld-scripts/align.exp: Run new tests.
1566 * testsuite/ld-scripts/align3.d: New file.
1567 * testsuite/ld-scripts/align3.t: New file.
1568 * testsuite/ld-scripts/align4.d: New file.
1569 * testsuite/ld-scripts/align4.t: New file.
1570 * testsuite/ld-scripts/align5.d: New file.
1571 * testsuite/ld-scripts/align5.t: New file.
1572 * testsuite/ld-scripts/exclude-file-5.d: New file.
1573 * testsuite/ld-scripts/exclude-file-5.map: New file.
1574 * testsuite/ld-scripts/exclude-file-5.t: New file.
1575 * testsuite/ld-scripts/exclude-file-6.d: New file.
1576 * testsuite/ld-scripts/exclude-file-6.map: New file.
1577 * testsuite/ld-scripts/exclude-file-6.t: New file.
1578 * NEWS: Mention the changes.
1579
1580 2017-07-27 Georg-Johann Lay <gjl@gcc.gnu.org>
1581
1582 PR ld/21849
1583 * scripttempl/avr.sc: Split .progmemx.* from .progmem.* and locate
1584 former at a higher address.
1585
1586 2017-07-25 Alan Modra <amodra@gmail.com>
1587
1588 * testsuite/ld-powerpc/tlsopt5.s: Add cfi.
1589 * testsuite/ld-powerpc/tlsopt5.d: Update.
1590 * testsuite/ld-powerpc/tlsopt5.wf: New file.
1591 * testsuite/ld-powerpc/powerpc.exp: Perform new tlsopt5 test.
1592
1593 2017-07-24 Claudiu Zissulescu <claziss@synopsys.com>
1594
1595 * testsuite/ld-arc/jli-overflow.d: Force testing for little
1596 endian.
1597 * testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian
1598 systems.
1599 * testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems.
1600
1601 2017-07-19 Maciej W. Rozycki <macro@imgtec.com>
1602
1603 * testsuite/ld-scripts/fill.d: Adjust `xfail' entries. Add
1604 `notarget' entries. Update comments.
1605 * testsuite/ld-scripts/fill16.d: New test.
1606 * testsuite/ld-scripts/fill16_0.s: New test source.
1607 * testsuite/ld-scripts/fill16_1.s: New test source.
1608 * testsuite/ld-scripts/fill16_2.s: New test source.
1609 * testsuite/ld-scripts/data.exp: Run the new test.
1610
1611 2017-07-19 Claudiu Zissulescu <claziss@synopsys.com>
1612 John Eric Martin <John.Martin@emmicro-us.com>
1613
1614 * emulparams/arcelf.sh (JLI_START_TABLE): Define.
1615 * scripttempl/elfarc.sc: Handle jlitab section.
1616 * scripttempl/elfarcv2.sc: Likewise.
1617 * testsuite/ld-arc/arc.exp: Add JLI test.
1618 * testsuite/ld-arc/jli-script.ld: New file.
1619 * testsuite/ld-arc/jli-simple.dd: Likewise.
1620 * testsuite/ld-arc/jli-simple.rd: Likewise.
1621 * testsuite/ld-arc/jli-simple.s: Likewise.
1622 * testsuite/ld-arc/jli-overflow.s: Likewise.
1623 * testsuite/ld-arc/jli-overflow.d: Likewise.
1624 * testsuite/ld-arc/jli-overflow.err: Likewise.
1625
1626 2017-07-19 Tristan Gingold <gingold@adacore.com>
1627
1628 * ldmain.c (main): Remove display of data size.
1629
1630 2017-07-18 Maciej W. Rozycki <macro@imgtec.com>
1631
1632 PR ld/16656
1633 * testsuite/ld-elf/binutils.exp (binutils_test): Make the
1634 expectation for `.got' in GNU_RELRO segment target-specific.
1635 Handle `.got.plt' separately.
1636
1637 2017-07-18 Maciej W. Rozycki <macro@imgtec.com>
1638
1639 PR ld/16656
1640 * testsuite/ld-elf/binutils.exp (binutils_test): Make the
1641 expectation for `.dynamic' in GNU_RELRO segment target-specific.
1642
1643 2017-07-18 Nick Clifton <nickc@redhat.com>
1644
1645 PR 21775
1646 * ld.texinfo: Fix spelling typos.
1647 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1648
1649 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
1650
1651 * testsuite/ld-i386/i386.exp: Run pie1 and pie1-nacl.
1652 * testsuite/ld-i386/pie1-nacl.d: New file.
1653 * testsuite/ld-i386/pie1.d: Likewise.
1654 * testsuite/ld-i386/pie1.s: Likewise.
1655
1656 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
1657
1658 PR ld/21782
1659 * testsuite/ld-x86-64/pie3-nacl.d: New file.
1660 * testsuite/ld-x86-64/pie3.d: Likewise.
1661 * testsuite/ld-x86-64/pie3.s: Likewise.
1662 * testsuite/ld-x86-64/x86-64.exp: Run pie3 and pie3-nacl.
1663
1664 2017-07-14 Alan Modra <amodra@gmail.com>
1665
1666 * testsuite/ld-powerpc/powerpc.exp: Add -shared to tlsop5 tests.
1667 * testsuite/ld-powerpc/tlsopt5.d: Adjust.
1668 * testsuite/ld-powerpc/tlsopt1_32.s: Use r30 as GOT pointer.
1669 * testsuite/ld-powerpc/tlsopt2_32.s: Likewise.
1670 * testsuite/ld-powerpc/tlsopt3_32.s: Likewise.
1671 * testsuite/ld-powerpc/tlsopt4_32.s: Likewise.
1672 * testsuite/ld-powerpc/tlsopt5_32.s: Rewrite.
1673 * testsuite/ld-powerpc/tlsopt1_32.d: Adjust.
1674 * testsuite/ld-powerpc/tlsopt2_32.d: Adjust.
1675 * testsuite/ld-powerpc/tlsopt3_32.d: Adjust.
1676 * testsuite/ld-powerpc/tlsopt5_32.d: Adjust.
1677
1678 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
1679
1680 * testsuite/ld-unique/pr21529.ld: New test linker script.
1681 * testsuite/ld-unique/pr21529.d: Use it.
1682
1683 2017-07-12 Alan Modra <amodra@gmail.com>
1684
1685 * po/bg.po: Update from translationproject.org/latest/ld/.
1686 * po/da.po: Likewise.
1687 * po/es.po: Likewise.
1688 * po/fi.po: Likewise.
1689 * po/fr.po: Likewise.
1690 * po/id.po: Likewise.
1691 * po/it.po: Likewise.
1692 * po/ja.po: Likewise.
1693 * po/tr.po: Likewise.
1694 * po/uk.po: Likewise.
1695 * po/vi.po: Likewise.
1696 * po/zh_CN.po: Likewise.
1697 * po/zh_TW.po: Likewise.
1698 * po/de.po: New file from translationproject.org.
1699 * po/ru.po: Likewise.
1700 * configure.ac (ALL_LINGUAS): Add de, ru. Sort.
1701 * configure: Regenerate.
1702
1703 2017-07-12 Alan Modra <amodra@gmail.com>
1704
1705 * testsuite/ld-scripts/align.exp: Exclude powerpc*-*-aix*.
1706 * testsuite/ld-scripts/assign-loc.d: Likewise.
1707 * testsuite/ld-scripts/defined3.d: Likewise.
1708 * testsuite/ld-scripts/defined4.d: Likewise.
1709 * testsuite/ld-scripts/defined5.d: Likewise.
1710 * testsuite/ld-scripts/expr2.d: Likewise.
1711 * testsuite/ld-scripts/provide.exp: Likewise.
1712 * testsuite/ld-scripts/sane1.d: Likewise.
1713 * testsuite/ld-scripts/size.exp: Likewise.
1714 * testsuite/ld-scripts/defined2.d: Don't xfail rs6000-*-aix*.
1715
1716 2017-07-12 Alan Modra <amodra@gmail.com>
1717
1718 * testsuite/ld-arc/nps-1b.err: Update.
1719 * testsuite/ld-x86-64/ilp32-11.d: Update.
1720
1721 2017-07-11 H.J. Lu <hongjiu.lu@intel.com>
1722
1723 * testsuite/ld-selective/selective.exp: Support single digit
1724 GCC version.
1725
1726 2017-07-11 Jiong Wang <jiong.wang@arm.com>
1727
1728 * testsuite/ld-aarch64/dt_textrel.d: Use "#pass" instead of ".*" to
1729 filter out remaining lines.
1730
1731 2017-07-07 Maciej W. Rozycki <macro@imgtec.com>
1732
1733 * emultempl/mipself.em (mips_before_allocation): Avoid ELF
1734 processing if not MIPS ELF.
1735 * testsuite/ld-mips-elf/binary.d: New test.
1736 * testsuite/ld-mips-elf/binary.ld: New test linker script.
1737 * testsuite/ld-mips-elf/binary.s: New test source.
1738 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1739
1740 2017-07-07 Alan Modra <amodra@gmail.com>
1741
1742 * testsuite/ld-powerpc/ppc476-shared.lnk: Align .bss.
1743 * testsuite/ld-powerpc/ppc476-shared.d: Adjust.
1744 * testsuite/ld-powerpc/ppc476-shared2.d: Adjust.
1745
1746 2017-07-07 Alan Modra <amodra@gmail.com>
1747
1748 * Makefile.am (eelf64_s390.c): Depend on emultempl/s390.em.
1749
1750 2017-07-04 Tristan Gingold <gingold@adacore.com>
1751
1752 * configure: Regenerate.
1753
1754 2017-07-04 Tristan Gingold <gingold@adacore.com>
1755
1756 * NEWS: Add marker for 2.29.
1757
1758 2017-07-03 Tristan Gingold <gingold@adacore.com>
1759
1760 * po/ld.pot: Regenerate.
1761
1762 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
1763
1764 * testsuite/ld-mips-elf/relax-offset.dd: New test.
1765 * testsuite/ld-mips-elf/relax-offset.gd: New test.
1766 * testsuite/ld-mips-elf/relax-offset-umips.dd: New test.
1767 * testsuite/ld-mips-elf/relax-offset-umips.gd: New test.
1768 * testsuite/ld-mips-elf/relax-offset.ld: New test linker script.
1769 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1770 (prune_warnings): New temporary procedure.
1771
1772 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
1773
1774 * testsuite/ld-mips-elf/mips-elf-flags.exp: Add interAptiv MR2
1775 tests.
1776
1777 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1778
1779 PR ld/13402
1780 * testsuite/ld-avr/pr13402.d: New test.
1781 * testsuite/ld-avr/pr13402.s: New test.
1782
1783 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1784
1785 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1786 Add an `args' final argument and examination code for `readelf
1787 -A' output. Update procedure description accordingly.
1788
1789 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1790
1791 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1792 Use `remote_exec' to call `readelf'. Log the command issued.
1793
1794 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1795
1796 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1797 Use `readelf -h' rather than `readelf --headers'.
1798
1799 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
1800
1801 * testsuite/ld-mips-elf/lsi-4010-isa.d: New test.
1802 * ld/testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1803
1804 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
1805
1806 * testsuite/ld-elf/sizeofa.d: Also accept the OBJECT type for
1807 the symbols examined.
1808 * testsuite/ld-elf/sizeofc.d: Likewise.
1809 * testsuite/ld-elf/startofa.d: Likewise.
1810 * testsuite/ld-elf/startofc.d: Likewise.
1811
1812 2017-06-26 Alan Modra <amodra@gmail.com>
1813
1814 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Skip
1815 --just-syms bfds when looking for a place to attach .note.gnu.build-id
1816 and .eh_frame_hdr sections. Delete dead code.
1817
1818 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
1819
1820 * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 11): New test.
1821 (EABI attribute merging 12): Likewise.
1822 * testsuite/ld-arm/attr-merge-11a.s: New file.
1823 * testsuite/ld-arm/attr-merge-11b.s: New file.
1824 * testsuite/ld-arm/attr-merge-11.attr: New file.
1825 * testsuite/ld-arm/attr-merge-12a.s: New file.
1826 * testsuite/ld-arm/attr-merge-12b.s: New file.
1827 * testsuite/ld-arm/attr-merge-12.attr: New file.
1828
1829 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1830
1831 * testsuite/ld-i386/i386.exp: Run weakundef1 tests.
1832 * testsuite/ld-i386/weakundef1.c: New file.
1833
1834 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1835
1836 PR ld/21090
1837 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Pass
1838 $NOPIE_CFLAGS if non-PIE is required.
1839
1840 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1841
1842 PR ld/21090
1843 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
1844 $NOPIE_LDFLAGS to "Run pr19031".
1845
1846 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1847
1848 PR ld/21090
1849 * testsuite/ld-gc/gc.exp: Compile tmpdir/pr14265.o with
1850 $NOPIE_CFLAGS.
1851 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
1852 $NOPIE_LDFLAGS if non-PIE is required.
1853 * testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New.
1854 (NOPIE_LDFLAGS): Likewise.
1855 Pass $NOPIE_LDFLAGS if non-PIE is required.
1856 * testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with
1857 $NOPIE_CFLAGS.
1858
1859 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1860
1861 * NEWS: Mention -z shstk and GNU_PROPERTY_X86_FEATURE_1_SHSTK.
1862 * emulparams/cet.sh (PARSE_AND_LIST_OPTIONS_CET): Add "-z shstk".
1863 (PARSE_AND_LIST_ARGS_CASE_Z_CET): Support "-z shstk".
1864 * ld.texinfo: Document -z shstk.
1865 * testsuite/ld-i386/i386.exp: Run SHSTK tests.
1866 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1867 * testsuite/ld-i386/property-x86-shstk.s: New file.
1868 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
1869 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
1870 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
1871 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
1872 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
1873 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
1874 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
1875 * testsuite/ld-x86-64/property-x86-shstk.s: Likewise.
1876 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
1877 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
1878 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
1879 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
1880 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
1881 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
1882 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
1883 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
1884 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
1885 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
1886 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
1887 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
1888 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
1889 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
1890
1891 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1892
1893 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emulparams/cet.sh.
1894 * Makefile.in: Regenerated.
1895 * NEWS: Mention GNU_PROPERTY_X86_FEATURE_1_IBT, -z ibtplt
1896 and -z ibt.
1897 * emulparams/cet.sh: New file.
1898 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1899 * testsuite/ld-i386/ibt-plt-1.s: Likewise.
1900 * testsuite/ld-i386/ibt-plt-2.s: Likewise.
1901 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1902 * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
1903 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1904 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
1905 * testsuite/ld-i386/ibt-plt-3.s: Likewise.
1906 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1907 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
1908 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1909 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
1910 * testsuite/ld-i386/plt-main-ibt.dd: Likewise.
1911 * testsuite/ld-i386/plt-pie-ibt.dd: Likewise.
1912 * testsuite/ld-i386/property-x86-empty.s: Likewise.
1913 * testsuite/ld-i386/property-x86-ibt.s: Likewise.
1914 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
1915 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
1916 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
1917 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
1918 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
1919 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
1920 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
1921 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1922 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1923 * testsuite/ld-x86-64/ibt-plt-1.s: Likewise.
1924 * testsuite/ld-x86-64/ibt-plt-2.s: Likewise.
1925 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1926 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1927 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
1928 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
1929 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1930 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1931 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
1932 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
1933 * testsuite/ld-x86-64/ibt-plt-3.s: Likewise.
1934 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1935 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1936 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
1937 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
1938 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1939 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1940 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
1941 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
1942 * testsuite/ld-x86-64/plt-main-ibt-now.rd: Likewise.
1943 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Likewise.
1944 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
1945 * testsuite/ld-x86-64/property-x86-empty.s: Likewise.
1946 * testsuite/ld-x86-64/property-x86-ibt.s: Likewise.
1947 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
1948 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
1949 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
1950 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
1951 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
1952 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
1953 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
1954 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
1955 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
1956 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
1957 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
1958 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
1959 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
1960 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
1961 * emulparams/elf32_x86_64.sh: Source emulparams/cet.sh.
1962 (TINY_READONLY_SECTION): Add .plt.sec.
1963 * emulparams/elf_i386.sh: Likewise.
1964 * emulparams/elf_x86_64.sh: Source emulparams/cet.sh.
1965 * ld.texinfo: Document -z ibtplt and -z ibt.
1966 * testsuite/ld-i386/i386.exp: Run IBT and IBT PLT tests.
1967 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1968 * testsuite/ld-x86-64/pr21481b.S (check): Updated for x32.
1969
1970 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1971
1972 PR ld/21090
1973 * testsuite/ld-elf/shared.exp: Pass $NOPIE_CFLAGS and
1974 $NOPIE_LDFLAGS if non-PIE is required.
1975
1976 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1977
1978 PR ld/21090
1979 * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS
1980 to CC.
1981
1982 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 PR ld/21090
1985 * testsuite/ld-size/size.exp: Pass $NOPIE_LDFLAGS to size-4a,
1986 size-4b, size-5a, size-5b, size-6 and size-8 tests.
1987 * testsuite/ld-srec/srec.exp (NOPIE_CFLAGS): New.
1988 (NOPIE_LDFLAGS): Likewise.
1989 (CC): Add $NOPIE_CFLAGS $NOPIE_LDFLAGS.
1990 (CXX): Likewise.
1991 * testsuite/ld-x86-64/no-plt.exp (NOPIE_CFLAGS): New.
1992 (NOPIE_LDFLAGS): Likewise.
1993 Pass $NOPIE_LDFLAGS to "No PLT (dynamic 1a)",
1994 "No PLT (dynamic 1c)" and "Run pr20253-2f".
1995 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to
1996 "Build gotpcrel1" and "Run pr19031".
1997
1998 2017-06-21 Alan Modra <amodra@gmail.com>
1999
2000 * testsuite/ld-powerpc/powerpc.exp: Run TOCSAVE tests.
2001 * testsuite/ld-powerpc/tocsave1.s,
2002 * testsuite/ld-powerpc/tocsave1a.d,
2003 * testsuite/ld-powerpc/tocsave1s.d,
2004 * testsuite/ld-powerpc/tocsave2.s,
2005 * testsuite/ld-powerpc/tocsave2a.d,
2006 * testsuite/ld-powerpc/tocsave2s.d,
2007 * testsuite/ld-powerpc/tocsavelib.s: New files.
2008
2009 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2010
2011 * Makefile.in: Add s390.em as build dependency.
2012 * emulparams/elf64_s390.sh (EXTRA_EM_FILE): Add s390.em.
2013 * emultempl/s390.em: New file.
2014 * gen-doc.texi: Add documentation for --s390-pgste option.
2015 * ld.texinfo: Likewise.
2016
2017 2017-06-19 H.J. Lu <hongjiu.lu@intel.com>
2018
2019 PR ld/21626
2020 * testsuite/ld-i386/i386.exp: Run ld/21626 tests.
2021 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2022
2023 2017-06-18 Alan Modra <amodra@gmail.com>
2024
2025 * testsuite/lib/ld-lib.exp (is_underscore_target): New.
2026 * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE.
2027 * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined,
2028 reference sym with prefix.
2029 * testsuite/ld-elf/pr21562b.s: Likewise.
2030 * testsuite/ld-elf/sizeof.s: Likewise.
2031 * testsuite/ld-elf/startof.s: Likewise.
2032 * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols.
2033 * testsuite/ld-elf/pr21562a.d: Remove underscore target from
2034 xfails, and match prefixed symbol.
2035 * testsuite/ld-elf/pr21562b.d: Likewise.
2036 * testsuite/ld-elf/pr21562c.d: Likewise.
2037 * testsuite/ld-elf/pr21562d.d: Likewise.
2038 * testsuite/ld-elf/pr21562e.d: Likewise.
2039 * testsuite/ld-elf/pr21562f.d: Likewise.
2040 * testsuite/ld-elf/pr21562g.d: Likewise.
2041 * testsuite/ld-elf/pr21562h.d: Likewise.
2042 * testsuite/ld-elf/pr21562i.d: Likewise.
2043 * testsuite/ld-elf/pr21562j.d: Likewise.
2044 * testsuite/ld-elf/pr21562k.d: Likewise.
2045 * testsuite/ld-elf/pr21562l.d: Likewise.
2046 * testsuite/ld-elf/pr21562m.d: Likewise.
2047 * testsuite/ld-elf/pr21562n.d: Likewise.
2048 * testsuite/ld-elf/sizeofa.d: Likewise.
2049 * testsuite/ld-elf/sizeofb.d: Likewise.
2050 * testsuite/ld-elf/sizeofc.d: Likewise.
2051 * testsuite/ld-elf/startofa.d: Likewise.
2052 * testsuite/ld-elf/startofb.d: Likewise.
2053 * testsuite/ld-elf/startofc.d: Likewise.
2054
2055 2017-06-16 Alan Modra <amodra@gmail.com>
2056
2057 PR ld/20022
2058 PR ld/21557
2059 PR ld/21562
2060 PR ld/21571
2061 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't set
2062 __start/__stop syms here.
2063 * ldlang.c (lang_set_startof): Delete.
2064 (start_stop_syms, start_stop_count, start_stop_alloc): New vars.
2065 (lang_define_start_stop, lang_init_start_stop, foreach_start_stop,
2066 undef_start_stop, lang_undef_start_stop, lang_init_startof_sizeof,
2067 set_start_stop, lang_finalize_start_stop): New functions.
2068 (lang_process): Call _start_stop functions.
2069 * testsuite/ld-elf/pr21562a.d: Use xfail rather than notarget.
2070 Correct typos and list of xfail targets.
2071 * testsuite/ld-elf/pr21562b.d: Likewise.
2072 * testsuite/ld-elf/pr21562c.d: Likewise.
2073 * testsuite/ld-elf/pr21562d.d: Likewise.
2074 * testsuite/ld-elf/pr21562e.d: Likewise.
2075 * testsuite/ld-elf/pr21562f.d: Likewise.
2076 * testsuite/ld-elf/pr21562g.d: Likewise.
2077 * testsuite/ld-elf/pr21562h.d: Likewise.
2078 * testsuite/ld-elf/pr21562i.d: Likewise.
2079 * testsuite/ld-elf/pr21562j.d: Likewise.
2080 * testsuite/ld-elf/pr21562k.d: Likewise.
2081 * testsuite/ld-elf/pr21562l.d: Likewise.
2082 * testsuite/ld-elf/pr21562m.d: Likewise.
2083 * testsuite/ld-elf/pr21562n.d: Likewise.
2084 * testsuite/ld-elf/sizeofa.d: Likewise. Adjust to pass for generic ELF.
2085 * testsuite/ld-elf/sizeofb.d: Likewise.
2086 * testsuite/ld-elf/startofa.d: Likewise.
2087 * testsuite/ld-elf/startofb.d: Likewise.
2088
2089 2017-06-16 Jiong Wang <jiong.wang@arm.com>
2090
2091 * testsuite/ld-aarch64/aarch64-elf.exp: Update test name
2092 * testsuite/ld-aarch64/pcrel.s: Add new testcases.
2093 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Update the expected
2094 warnings.
2095 * testsuite/ld-aarch64/pcrel_pic_defined_local.d: Rename ...
2096 * testsuite/ld-aarch64/pcrel_pic_defined.d: ... to this.
2097 Update expected warnings.
2098
2099 2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
2100
2101 * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
2102 instead of "-z stacksize=SIZE".
2103
2104 2017-06-15 Jiong Wang <jiong.wang@arm.com>
2105
2106 * testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
2107 * testsuite/ld-aarch64/copy-reloc-2.d: New test.
2108 * testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source file.
2109 * testsuite/ld-aarch64/copy-reloc-eliminate.d: New test.
2110 * testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects.
2111 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
2112
2113 2017-06-14 Nick Clifton <nickc@redhat.com>
2114
2115 PR binutils/21580
2116 * testsuite/ld-nds32/diff.d: Adjust expected output.
2117
2118 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
2119
2120 PR ld/20022
2121 * testsuite/ld-gc/pr20022.d: Skip on targets without dynamic
2122 relocations in .text section.
2123
2124 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
2125
2126 * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
2127 in in symbol name or without --gc-sections.
2128 * testsuite/ld-elf/pr21562b.d: Likewise.
2129 * testsuite/ld-elf/pr21562c.d: Likewise.
2130 * testsuite/ld-elf/pr21562d.d: Likewise.
2131 * testsuite/ld-elf/pr21562i.d: Likewise.
2132 * testsuite/ld-elf/pr21562j.d: Likewise.
2133 * testsuite/ld-elf/pr21562k.d: Likewise.
2134 * testsuite/ld-elf/pr21562l.d: Likewise.
2135 * testsuite/ld-elf/pr21562m.d: Likewise.
2136 * testsuite/ld-elf/pr21562n.d: Likewise.
2137 * testsuite/ld-elf/pr21562e.d: Skip on targets with leading char
2138 in symbol name.
2139 * testsuite/ld-elf/pr21562f.d: Likewise.
2140 * testsuite/ld-elf/pr21562g.d: Likewise.
2141 * testsuite/ld-elf/pr21562h.d: Likewise.
2142
2143 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
2144
2145 * testsuite/ld-gc/pr20022a.s: Add size to bar.
2146
2147 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
2148
2149 * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
2150 in symbol name.
2151 * testsuite/ld-elf/sizeofb.d: Likewise.
2152 * testsuite/ld-elf/startofa.d: Likewise.
2153 * testsuite/ld-elf/startofb.d: Likewise.
2154
2155 2017-06-14 Georg-Johann Lay <gjl@gcc.gnu.org>
2156
2157 PR ld/21583
2158 * scripttempl/avr.sc (.jumptables): Move down in text section.
2159 (.hightext): New in text.
2160
2161 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
2162
2163 * configure.tgt (epiphany-*-elf): Accept epiphany-*-*.
2164
2165 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
2166
2167 * ldlang.c (lang_set_startof): Skip if config.build_constructors
2168 is FALSE.
2169 * testsuite/ld-elf/sizeofc.d: New file.
2170 * testsuite/ld-elf/startofc.d: Likewise.
2171
2172 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
2173
2174 * testsuite/ld-elf/sizeof.d: Renamed to ...
2175 * testsuite/ld-elf/sizeofa.d: This. Updated.
2176 * testsuite/ld-elf/startof.d: Renamed to ...
2177 * testsuite/ld-elf/startofa.d: This. Updated.
2178 * testsuite/ld-elf/sizeofb.d: New file.
2179 * testsuite/ld-elf/startofb.d: Likewise.
2180
2181 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
2182
2183 PR ld/20022
2184 PR ld/21557
2185 PR ld/21562
2186 PR ld/21571
2187 * ld.texinfo: Update __start_SECNAME/__stop_SECNAME symbols.
2188 * ldlang.c (lang_insert_orphan): Move handling of __start_SECNAME
2189 and __stop_SECNAME symbols to ...
2190 (lang_set_startof): Here. Also define __start_SECNAME and
2191 __stop_SECNAME for -Ur.
2192 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Mark
2193 referenced __start_SECNAME and __stop_SECNAME symbols as hidden
2194 and set start_stop for garbage collection.
2195 * testsuite/ld-elf/pr21562a.d: New file.
2196 * testsuite/ld-elf/pr21562a.s: Likewise.
2197 * testsuite/ld-elf/pr21562a.t: Likewise.
2198 * testsuite/ld-elf/pr21562b.d: Likewise.
2199 * testsuite/ld-elf/pr21562b.s: Likewise.
2200 * testsuite/ld-elf/pr21562b.t: Likewise.
2201 * testsuite/ld-elf/pr21562c.d: Likewise.
2202 * testsuite/ld-elf/pr21562c.t: Likewise.
2203 * testsuite/ld-elf/pr21562d.d: Likewise.
2204 * testsuite/ld-elf/pr21562d.t: Likewise.
2205 * testsuite/ld-elf/pr21562e.d: Likewise.
2206 * testsuite/ld-elf/pr21562f.d: Likewise.
2207 * testsuite/ld-elf/pr21562g.d: Likewise.
2208 * testsuite/ld-elf/pr21562h.d: Likewise.
2209 * testsuite/ld-elf/pr21562i.d: Likewise.
2210 * testsuite/ld-elf/pr21562j.d: Likewise.
2211 * testsuite/ld-elf/pr21562k.d: Likewise.
2212 * testsuite/ld-elf/pr21562l.d: Likewise.
2213 * testsuite/ld-elf/pr21562m.d: Likewise.
2214 * testsuite/ld-elf/pr21562n.d: Likewise.
2215 * testsuite/ld-gc/pr20022.d: Likewise.
2216 * testsuite/ld-gc/pr20022a.s: Likewise.
2217 * testsuite/ld-gc/pr20022b.s: Likewise.
2218 * testsuite/ld-gc/gc.exp: Run PR ld/20022 tests.
2219 * testsuite/ld-gc/pr19161.d: Also accept local __start_SECNAME
2220 symbol.
2221 * testsuite/ld-gc/start.d: Likewise.
2222 * testsuite/ld-x86-64/lea1a.d: Updated.
2223 * testsuite/ld-x86-64/lea1b.d: Updated.
2224 * testsuite/ld-x86-64/lea1d.d: Updated.
2225 * testsuite/ld-x86-64/lea1e.d: Likewise.
2226
2227 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
2228
2229 * testsuite/ld-elf/sizeof.d: New file.
2230 * testsuite/ld-elf/sizeof.s: Likewise.
2231 * testsuite/ld-elf/startof.d: Likewise.
2232 * testsuite/ld-elf/startof.s: Likewise.
2233
2234 2017-06-13 Renlin Li <renlin.li@arm.com>
2235
2236 * testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker
2237 option to rdynamic-1 and dynamic-1 tests.
2238
2239 2017-06-09 H.J. Lu <hongjiu.lu@intel.com>
2240
2241 * testsuite/ld-x86-64/property-x86-3-x32.d: New file.
2242 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
2243 * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise.
2244 * testsuite/ld-x86-64/property-x86-3.d: Also pass
2245 -defsym __64_bit__=1 to asssembler.
2246 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
2247 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
2248 * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if
2249 __64_bit__ isn't defined.
2250 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
2251 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
2252 * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32,
2253 property-x86-4a-x32 and property-x86-4b-x32.
2254
2255 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
2256
2257 * testsuite/ld-arc/tls_ie-01.d: Changed expected result.
2258
2259 2017-06-08 H.J. Lu <hongjiu.lu@intel.com>
2260
2261 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Pass
2262 "-Map tmpdir/ifunc-1-local-x86.map" to ld and check
2263 ifunc-1-local-x86.map.
2264 * testsuite/ld-ifunc/ifunc-1-x86.d: Pass
2265 "-Map tmpdir/ifunc-1-x86.map" to ld and check ifunc-1-x86.map.
2266 * testsuite/ld-ifunc/ifunc-1-local-x86.map: New file.
2267 * testsuite/ld-ifunc/ifunc-1-x86.map: Likewise.
2268
2269 2017-06-07 Alan Modra <amodra@gmail.com>
2270
2271 * testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
2272 nds32, and score. Match any output.
2273
2274 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * ld.h (struct args_type): Fix typo in comment.
2277
2278 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * ld.h (struct args_type): Add force_group_allocation field.
2281 * ldgram.y: Add support for FORCE_GROUP_ALLOCATION.
2282 * ldlex.h: Likewise.
2283 * ldlex.l: Likewise.
2284 * lexsup.c: Likewise.
2285 * ldlang.c (unique_section_p): Check resolve_section_groups flag
2286 not the relaxable link flag.
2287 (lang_add_section): Discard section groups when we're resolving
2288 groups. Clear the SEC_LINK_ONCE flag if we're resolving section
2289 groups.
2290 * ldmain.c (main): Initialise resolve_section_groups flag in
2291 link_info based on command line flags.
2292 * testsuite/ld-elf/group11.d: New file.
2293 * testsuite/ld-elf/group12.d: New file.
2294 * testsuite/ld-elf/group12.ld: New file.
2295 * NEWS: Mention new features.
2296 * ld.texinfo (Options): Document --force-group-allocation.
2297 (Miscellaneous Commands): Document FORCE_GROUP_ALLOCATION.
2298
2299 2017-06-05 H.J. Lu <hongjiu.lu@intel.com>
2300
2301 PR ld/21529
2302 * testsuite/ld-unique/pr21529.d: New file.
2303 * testsuite/ld-unique/pr21529.s: Likewise.
2304 * testsuite/ld-unique/unique.exp: Run *.d.
2305
2306 2017-06-05 Alan Modra <amodra@gmail.com>
2307
2308 * ldmain.c (main): Correct setting of link_indo.new_dtags.
2309 * testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
2310 * testsuite/ld-elf/now-4.d: Likewise.
2311 * testsuite/ld-elf/rpath-1.d: Likewise.
2312 * testsuite/ld-elf/rpath-2.d: Likewise.
2313
2314 2017-06-05 Slava Barinov <v.barinov@samsung.com>
2315
2316 * configure.ac: Add --enable-new-dtags option.
2317 * ldmain.c (main): Set link_info.new_dtags to 1 if when
2318 --enable-new-dtags is switched on.
2319 * configure: Regenerate.
2320 * config.in: Regenerate.
2321
2322 2017-06-02 H.J. Lu <hongjiu.lu@intel.com>
2323
2324 * emulparams/call_nop.sh: Remove -z prefix-nop.
2325 * ld.texinfo: Likewise.
2326 * testsuite/ld-i386/call3c.d: Check for linker error.
2327 * testsuite/ld-x86-64/call1c.d: Likewise.
2328
2329 2017-06-01 Alan Modra <amodra@gmail.com>
2330
2331 * emultempl/ppc64elf.em (params): Init plt_localentry0 field.
2332 (enum ppc64_opt): New, replacing OPTION_* defines. Add
2333 OPTION_PLT_LOCALENTRY, and OPTION_NO_PLT_LOCALENTRY.
2334 (PARSE_AND_LIST_*): Support --plt-localentry and --no-plt-localentry.
2335 * testsuite/ld-powerpc/elfv2so.d: Update.
2336 * testsuite/ld-powerpc/powerpc.exp (TLS opt 5): Use --no-plt-localentry.
2337 * testsuite/ld-powerpc/tlsopt5.d: Update.
2338
2339 2017-05-31 Alan Modra <amodra@gmail.com>
2340
2341 * emultempl/ppc64elf.em (plt-static-chain help): Fix quoting.
2342
2343 2017-05-22 Jiong Wang <jiong.wang@arm.com>
2344
2345 * configure.tgt: Set "targ_emul" to "aarch64linux32b" for
2346 aarch64_be-*-linux-gnu_ilp32. Set "targ_emul" to "aarch64linux32" for
2347 aarch64-*-linux-gnu_ilp32.
2348
2349 2017-05-19 H.J. Lu <hongjiu.lu@intel.com>
2350
2351 * testsuite/ld-i386/i386.exp: Run property-x86-4a and
2352 property-x86-4b.
2353 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2354 * testsuite/ld-i386/property-x86-4a.d: New file.
2355 * testsuite/ld-i386/property-x86-4a.s: Likewise.
2356 * testsuite/ld-i386/property-x86-4b.d: Likewise.
2357 * testsuite/ld-i386/property-x86-4b.s: Likewise.
2358 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
2359 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
2360 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
2361 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
2362
2363 2017-05-19 Georg-Johann Lay <avr@gjlay.de>
2364
2365 PR ld/21472
2366 * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
2367 * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]:
2368 Use RODATA_PM_OFFSET as default if not already defined.
2369 (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
2370 (.rodata) [RODATA_PM_OFFSET]: Put at an offset of
2371 __RODATA_PM_OFFSET__.
2372
2373 2017-05-18 Nick Clifton <nickc@redhat.com>
2374
2375 PR ld/21251
2376 * ldfile.c (ldfile_add_library_path): If the path starts with
2377 $SYSROOT then use the sysroot as the real prefix.
2378 * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
2379 way as =.
2380 * ldlex.l: Add $SYSROOT as allow prefix for a filename.
2381 * ld.texinfo (-L): Document that $SYSROOT acts like = when
2382 prefixing a library search path.
2383 (INPUT): Likewise.
2384 * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
2385 tests.
2386
2387 2017-05-18 Alan Modra <amodra@gmail.com>
2388
2389 * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
2390 * emultempl/pe.em: Likewise.
2391 * emultempl/pep.em: Likewise.
2392 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
2393 Don't compare enum against TRUE.
2394
2395 2017-05-18 Alan Modra <amodra@gmail.com>
2396
2397 PR ld/20882
2398 * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
2399 Allow for 16-bit address targets and match expected data fully.
2400 * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
2401 * testsuite/ld-gc/pr20882b.s: Likewise.
2402 * testsuite/ld-gc/pr20882c.s: Likewise.
2403
2404 2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
2405
2406 PR ld/20882
2407 * testsuite/ld-gc/gc.exp: Run pr20882.
2408 * testsuite/ld-gc/pr20882.d: New file.
2409 * testsuite/ld-gc/pr20882a.s: Likewise.
2410 * testsuite/ld-gc/pr20882b.s: Likewise.
2411 * testsuite/ld-gc/pr20882c.s: Likewise.
2412
2413 2017-05-16 H.J. Lu <hongjiu.lu@intel.com>
2414
2415 PR ld/21481
2416 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
2417 if IFUNC is supported by run-time.
2418
2419 2017-05-16 Alan Modra <amodra@gmail.com>
2420
2421 * plugin.c: Rename occurrences of non_ir_ref.
2422
2423 2017-05-16 Alan Modra <amodra@gmail.com>
2424
2425 * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic.
2426 (plugin_notice): Set non_ir_ref for references from regular
2427 objects, non_ir_ref_dynamic for references from dynamic objects.
2428
2429 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2430
2431 * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: New test.
2432 * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: New test.
2433 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: New test.
2434 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: New test.
2435 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: New test.
2436 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: New test.
2437 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: New test.
2438 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: New test.
2439 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2440
2441 2017-05-15 Nick Clifton <nickc@redhat.com>
2442
2443 PR ld/21459
2444 * scripttempl/pe.sc: Add .debug_gdb_scripts section.
2445 * scripttempl/pep.sc: Likewise.
2446
2447 2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
2448
2449 * testsuite/ld-i386/i386.exp: Run property-x86-3.
2450 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2451 * testsuite/ld-i386/property-x86-3.d: New file.
2452 * testsuite/ld-i386/property-x86-3.s: Likewise.
2453 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
2454 * testsuite/ld-x86-64/property-x86-3.s: Likewise.
2455
2456 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
2457
2458 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Replace
2459 .plt.bnd with .plt.sec.
2460 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2461 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2462 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
2463 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2464 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
2465 * testsuite/ld-x86-64/mpx3.dd: Likewise.
2466 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2467 * testsuite/ld-x86-64/mpx4.dd: Likewise.
2468 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2469 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
2470 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2471 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2472 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2473 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2474
2475 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
2476
2477 * testsuite/ld-i386/plt-pic2.dd: Updated.
2478 * testsuite/ld-i386/plt2.dd: Likewise.
2479 * testsuite/ld-i386/plt2.rd: Likewise.
2480 * testsuite/ld-i386/pr17689now.rd: Likewise.
2481 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
2482 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
2483 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2484 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2485 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2486 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2487 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2488 * testsuite/ld-x86-64/plt2.dd: Likewise.
2489 * testsuite/ld-x86-64/plt2.rd: Likewise.
2490 * testsuite/ld-x86-64/pr17689now.rd: Likewise.
2491 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2492 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2493
2494 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
2495
2496 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
2497 to yes.
2498 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2499 Likewise.
2500 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
2501
2502 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
2503
2504 PR ld/21481
2505 * testsuite/ld-x86-64/pr21481a.c: New file.
2506 * testsuite/ld-x86-64/pr21481b.S: Likewise.
2507 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
2508
2509 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
2510
2511 * testsuite/ld-arc/attr-merge-0.d: New file.
2512 * testsuite/ld-arc/attr-merge-0.s: Likewise.
2513 * testsuite/ld-arc/attr-merge-0e.s: Likewise.
2514 * testsuite/ld-arc/attr-merge-1.d: Likewise.
2515 * testsuite/ld-arc/attr-merge-1.s: Likewise.
2516 * testsuite/ld-arc/attr-merge-1e.s: Likewise.
2517 * testsuite/ld-arc/attr-merge-2.d: Likewise.
2518 * testsuite/ld-arc/attr-merge-2.s: Likewise.
2519 * testsuite/ld-arc/attr-merge-3.d: Likewise.
2520 * testsuite/ld-arc/attr-merge-3.s: Likewise.
2521 * testsuite/ld-arc/attr-merge-3e.s: Likewise.
2522 * testsuite/ld-arc/attr-merge-4.s: Likewise.
2523 * testsuite/ld-arc/attr-merge-5.d: Likewise.
2524 * testsuite/ld-arc/attr-merge-5a.s: Likewise.
2525 * testsuite/ld-arc/attr-merge-5b.s: Likewise.
2526 * testsuite/ld-arc/attr-merge-conflict-isa.d: Likewise.
2527 * testsuite/ld-arc/attr-merge-err-isa.d: Likewise.
2528 * testsuite/ld-arc/attr-merge-incompatible-cpu.d: Likewise.
2529 * testsuite/ld-arc/got-01.d: Update test.
2530 * testsuite/ld-arc/attr-merge-err-quarkse.d: New file.
2531 * testsuite/ld-arc/attr-quarkse.s: Likewise.
2532 * testsuite/ld-arc/attr-quarkse2.s: Likewise.
2533
2534 2017-05-09 Awson <kyrab@mail.ru>
2535
2536 PR ld/21471
2537 * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
2538
2539 2017-05-09 Benjamin Peterson <bp@benjamin.pe>
2540
2541 * ld.texinfo (orphan sections): Grammar fix.
2542
2543 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
2544
2545 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: New file.
2546 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
2547 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
2548 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2549 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2550 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2551 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2552 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2553 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2554 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2555 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
2556 * testsuite/ld-x86-64/plt2.dd: Likewise.
2557 * testsuite/ld-x86-64/plt2.rd: Likewise.
2558 * testsuite/ld-x86-64/plt2.s: Likewise.
2559 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
2560 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
2561 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
2562 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2563 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2564 * testsuite/ld-x86-64/load1b-nacl.d: Updated.
2565 * testsuite/ld-x86-64/load1b.d: Likewise.
2566 * testsuite/ld-x86-64/plt-main-bnd.dd: Likewise.
2567 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
2568 * testsuite/ld-x86-64/pr20830a.d: Update the .plt.got section
2569 with func@plt.
2570 * testsuite/ld-x86-64/pr20830b.d: Likewise.
2571 * testsuite/ld-x86-64/pr21038a.d: Likewise.
2572 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2573 * testsuite/ld-x86-64/mpx.exp: Add some -z now tests.
2574 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2575
2576 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
2577
2578 * testsuite/ld-i386/i386.exp: Add some -z now tests.
2579 * testsuite/ld-i386/plt-pic2.dd: New file.
2580 * testsuite/ld-i386/plt2.dd: Likewise.
2581 * testsuite/ld-i386/plt2.rd: Likewise.
2582 * testsuite/ld-i386/plt2.s: Likewise.
2583 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
2584 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
2585 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
2586 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2587 * testsuite/ld-i386/pr20830.d: Update the .plt.got section
2588 with func@plt.
2589
2590 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
2591
2592 * testsuite/ld-arm/arm-elf.exp
2593 (Secure gateway import library generation): Check e_type field
2594 of import library and executable produced.
2595 * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
2596
2597 2017-04-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2598
2599 PR ld/21404
2600 * testsuite/ld-avr/pr21404-1.d: New test.
2601 * testsuite/ld-avr/pr21404-1.s: New test.
2602 * testsuite/ld-avr/pr21404-2.d: New test.
2603 * testsuite/ld-avr/pr21404-2.s: New test.
2604 * testsuite/ld-avr/pr21404-3.d: New test.
2605 * testsuite/ld-avr/pr21404-3.s: New test.
2606 * testsuite/ld-avr/pr21404-4.d: New test.
2607 * testsuite/ld-avr/pr21404-4.s: New test.
2608 * testsuite/ld-avr/pr21404-5.d: New test.
2609 * testsuite/ld-avr/pr21404-5.s: New test.
2610 * testsuite/ld-avr/pr21404-6.d: New test.
2611 * testsuite/ld-avr/pr21404-6.s: New test.
2612 * testsuite/ld-avr/pr21404-7.d: New test.
2613 * testsuite/ld-avr/pr21404-7.s: New test.
2614 * testsuite/ld-avr/pr21404-8.d: New test.
2615 * testsuite/ld-avr/pr21404-8.s: New test.
2616
2617 2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
2618
2619 * testsuite/ld-mips-elf/mips16-pcrel-0.d: New test.
2620 * testsuite/ld-mips-elf/mips16-pcrel-1.d: New test.
2621 * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: New test.
2622 * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: New test.
2623 * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: New test.
2624 * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: New test.
2625 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: New test.
2626 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: New test.
2627 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2628
2629 2017-05-03 H.J. Lu <hongjiu.lu@intel.com>
2630
2631 * testsuite/ld-elf/pr21384.d: Adjusted to accommodate
2632 additional dynamic symbols on some targets.
2633
2634 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
2635
2636 * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test.
2637 * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test.
2638 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New
2639 test.
2640 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New
2641 test.
2642 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New
2643 test.
2644 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
2645 New test.
2646 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New
2647 test.
2648 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New
2649 test.
2650 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
2651 New test.
2652 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2653
2654 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
2655
2656 * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
2657 "TLS without PLT (1)" and "TLS without PLT (3)".
2658 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
2659 to "TLS without PLT (3)".
2660
2661 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
2662
2663 PR ld/21384
2664 * testsuite/ld-elf/pr21384.d: New file.
2665 * testsuite/ld-elf/pr21384.dl: Likewise.
2666 * testsuite/ld-elf/pr21384.ld: Likewise.
2667 * testsuite/ld-elf/pr21384.s: Likewise.
2668
2669 2017-05-01 H.J. Lu <hongjiu.lu@intel.com>
2670
2671 * testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
2672 is working GNU2 TLS support.
2673 * testsuite/ld-x86-64/tls.exp: Likewise.
2674 * testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
2675
2676 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
2677
2678 * testsuite/config/default.exp (GNU2_CFLAGS): New. Set
2679 to -mtls-dialect=gnu2 if target compiler supports it.
2680 * testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
2681 * testsuite/ld-x86-64/tls.exp: Likewise.
2682 * testsuite/ld-i386/tlsdesc1a.c: New file.
2683 * testsuite/ld-i386/tlsdesc1b.c: Likewise.
2684 * testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
2685 * testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
2686
2687 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
2688
2689 * testsuite/ld-elf/shared.exp: Add run-time tests for -z now.
2690 * testsuite/ld-i386/tls.exp: Likewise.
2691 * testsuite/ld-ifunc/ifunc.exp: Likewise.
2692 * testsuite/ld-x86-64/tls.exp: Likewise.
2693
2694 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
2695
2696 * testsuite/ld-x86-64/pr21038a.d: Update DW_CFA_nop paddings
2697 in .eh_frame section.
2698 * testsuite/ld-x86-64/pr21038c.d: Update .eh_frame order.
2699
2700 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
2701
2702 * testsuite/ld-i386/tlsdesc2.d: New test.
2703 * testsuite/ld-x86-64/tlsdesc2.d: Likewise.
2704
2705 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
2706
2707 PR ld/21334
2708 * testsuite/ld-mips-elf/pr21334.dd: New test.
2709 * testsuite/ld-mips-elf/pr21334.gd: New test.
2710 * testsuite/ld-mips-elf/pr21334.ld: New test linker script.
2711 * testsuite/ld-mips-elf/pr21334.s: New test source.
2712 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2713
2714 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2715
2716 * testsuite/ld-x86-64/no-plt.exp: Also check no-plt-1e.nd.
2717 * testsuite/ld-x86-64/no-plt-1e.nd: New file.
2718
2719 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2720
2721 * testsuite/ld-i386/pr12570a.d: Skip for nacl targets.
2722 * testsuite/ld-i386/pr12570b.d: Likewise.
2723
2724 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2725
2726 PR ld/20815
2727 * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
2728
2729 2017-04-24 Jose E. Marchesi <jose.marchesi@oracle.com>
2730
2731 * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
2732 instead of `rett' in V9.
2733 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
2734 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
2735
2736 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
2737
2738 PR ld/21402
2739 * testsuite/ld-elf/indirect.exp: Don't skip PIE indirect5 and
2740 indirect6 tests on i386.
2741
2742 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
2743
2744 PR ld/19617
2745 PR ld/21086
2746 * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
2747 * testsuite/ld-elf/pr19617b.d: Likewise.
2748 * testsuite/ld-elf/pr19617c.d: Likewise.
2749 *testsuite/ld-i386/pr19636-4d.d: Likewise.
2750 * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
2751 with --export-dynamic.
2752 * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
2753 with -E.
2754
2755 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
2756
2757 PR ld/21402
2758 * testsuite/ld-elf/indirect.exp: Pass $NOPIE_LDFLAGS and
2759 $NOPIE_CFLAGS to non-PIE indirect5 and indirect6 tests. Skip
2760 PIE indirect5 and indirect6 tests on i386.
2761
2762 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
2763
2764 * testsuite/ld-mips-elf/mips-elf.exp: Join `__ehdr_start' tests.
2765
2766 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
2767
2768 PR ld/21382
2769 * plugin.c (is_visible_from_outside): Symbol may be visible
2770 from outside if dynamic_ref_after_ir_def is set.
2771 (plugin_notice): Set dynamic_ref_after_ir_def if the symbol is
2772 defined in an IR object and referenced in a dynamic object.
2773 * testsuite/ld-plugin/lto.exp: Run PR ld/21382 tests.
2774 * testsuite/ld-plugin/pr21382a.c: New file.
2775 * testsuite/ld-plugin/pr21382b.c: Likewise.
2776
2777 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
2778
2779 PR ld/21401
2780 * testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
2781 -z now.
2782
2783 2017-04-19 Alan Modra <amodra@gmail.com>
2784
2785 * ld.texinfo (dynamic-undefined-weak): Document.
2786 (nodynamic-undefined-weak): Document that this option now can
2787 be used with shared libs.
2788 * emulparams/dynamic_undefined_weak.sh: Support -z
2789 dynamic-undefined-weak.
2790 * emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
2791 * testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
2792 (undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
2793 and -z nodynamic-undefined-weak tests.
2794 * Makefile.am: Update powerpc dependencies.
2795 * Makefile.in: Regenerate.
2796
2797 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
2798
2799 PR ld/21389
2800 * testsuite/ld-elf/pr21389.map: New file.
2801 * testsuite/ld-elf/pr21389.s: Likewise.
2802 * testsuite/ld-elf/pr21389a.d: Likewise.
2803 * testsuite/ld-elf/pr21389b.d: Likewise.
2804 * testsuite/ld-elf/pr21389c.d: Likewise.
2805
2806 2017-04-17 Alan Modra <amodra@gmail.com>
2807
2808 * testsuite/ld-elf/indirect5a.c,
2809 * testsuite/ld-elf/indirect5b.c,
2810 * testsuite/ld-elf/indirect5.map,
2811 * testsuite/ld-elf/indirect5.out: New test.
2812 * testsuite/ld-elf/indirect6a.c: Likewise.
2813 * testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
2814 Run new tests and check dynsyms.
2815
2816 2017-04-11 Alan Modra <amodra@gmail.com>
2817
2818 PR 21274
2819 PR 18466
2820 * emultempl/pe.em (pe_find_data_imports): Don't use fixed size
2821 symbol buffer. Instead, xmalloc max size needed with space for
2822 prefix. Wrap overlong lines. Formatting. Pass symbol buffer
2823 copy of name to pe_walk_relocs_of_symbol.
2824 (make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
2825 * emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
2826 (make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
2827 Use bfd_get_signed_* and remove unnecessary casts. Formatting.
2828 * pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
2829 callback.
2830 (make_import_fixup_mark): Add "name" param. Make use of prefix
2831 space rather than xmalloc here.
2832 (pe_create_import_fixup): Likewise.
2833 * pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
2834 (pe_create_import_fixup): Likewise.
2835 * pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
2836 (pep_create_import_fixup): Likewise.
2837
2838 2017-04-10 Nick Clifton <nickc@redhat.com>
2839
2840 * ld.texinfo (--strip-discarded): Document.
2841 (--embedded-relocs): Document.
2842 (--spare-dynamic-tags): Document.
2843 (--task-link): Document.
2844
2845 2017-04-10 Alan Modra <amodra@gmail.com>
2846
2847 PR 21287
2848 * testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
2849 * testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
2850 section types.
2851 * testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
2852 warnings about "ignoring incorrect section type".
2853 (run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
2854
2855 2017-04-10 Alan Modra <amodra@gmail.com>
2856
2857 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
2858 sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
2859 remote_file host exists rather than file exists.
2860
2861 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
2862
2863 PR ld/21090
2864 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
2865 NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
2866 version of the test.
2867
2868 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
2869
2870 PR ld/19579
2871 PR ld/21306
2872 * testsuite/ld-elf/pr19579a.c (main): Updated.
2873
2874 2017-04-07 Nick Clifton <nickc@redhat.com>
2875
2876 PR 21090
2877 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
2878 disable PIE for the non-pie version of the test.
2879
2880 2017-04-07 Alan Modra <amodra@gmail.com>
2881
2882 * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
2883
2884 2017-04-07 gingold <gingold@gingold-Precision-7510>
2885
2886 * testsuite/ld-pe/pe.exp: New test.
2887 * testsuite/ld-pe/weakdef-1.s: New test source.
2888 * testsuite/ld-pe/weakdef-1.d: New test.
2889
2890 2017-04-07 Alan Modra <amodra@gmail.com>
2891
2892 * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
2893 * testsuite/ld-elf/mbind1b.d: Likewise.
2894 * testsuite/ld-elf/mbind1c.d: Likewise.
2895
2896 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
2897
2898 PR ld/21233
2899 * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
2900 indentation issue introduced with last commit.
2901
2902 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
2903
2904 PR ld/21233
2905 * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
2906 first test for cris*-*-*.
2907
2908 2017-04-04 Maciej W. Rozycki <macro@imgtec.com>
2909
2910 PR ld/21233
2911 * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
2912 * testsuite/ld-elf/pr21233.sd: New test.
2913 * testsuite/ld-elf/pr21233-l.sd: New test.
2914 * testsuite/ld-elf/pr21233.ld: New test linker script.
2915 * testsuite/ld-elf/pr21233-e.ld: New test linker script.
2916 * testsuite/ld-elf/pr21233.s: New test source.
2917 * testsuite/ld-elf/pr21233-l.s: New test source.
2918 * testsuite/ld-elf/shared.exp: Run the new tests.
2919
2920 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
2921
2922 * NEWS: Mention support for ELF SHF_GNU_MBIND and
2923 PT_GNU_MBIND_XXX.
2924 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2925 input GNU_MBIND sections with the same type, attributes and
2926 sh_info field into a single output GNU_MBIND section.
2927 * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
2928 * testsuite/ld-elf/mbind1.s: New file.
2929 * testsuite/ld-elf/mbind1a.d: Likewise.
2930 * testsuite/ld-elf/mbind1b.d: Likewise.
2931 * testsuite/ld-elf/mbind1c.d: Likewise.
2932 * testsuite/ld-elf/mbind2a.s: Likewise.
2933 * testsuite/ld-elf/mbind2b.c: Likewise.
2934
2935 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
2936
2937 * NEWS: Mention support for ELF GNU program properties.
2938 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
2939 ELF setup_gnu_properties.
2940 * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
2941 * testsuite/ld-i386/pass.c: New file.
2942 * testsuite/ld-i386/property-1.r: Likewise.
2943 * testsuite/ld-i386/property-2.r: Likewise.
2944 * testsuite/ld-i386/property-3.r: Likewise.
2945 * testsuite/ld-i386/property-4.r: Likewise.
2946 * testsuite/ld-i386/property-5.r: Likewise.
2947 * testsuite/ld-i386/property-6.r: Likewise.
2948 * testsuite/ld-i386/property-6a.c: Likewise.
2949 * testsuite/ld-i386/property-6b.c: Likewise.
2950 * testsuite/ld-i386/property-6c.S: Likewise.
2951 * testsuite/ld-i386/property-7.r: Likewise.
2952 * testsuite/ld-i386/property-no-copy.S: Likewise.
2953 * testsuite/ld-i386/property-stack.S: Likewise.
2954 * testsuite/ld-i386/property-unsorted-1.S: Likewise.
2955 * testsuite/ld-i386/property-unsorted-2.S: Likewise.
2956 * testsuite/ld-i386/property-x86-1.S: Likewise.
2957 * testsuite/ld-i386/property-x86-2.S: Likewise.
2958 * testsuite/ld-x86-64/pass.c: Likewise.
2959 * testsuite/ld-x86-64/property-1.r: Likewise.
2960 * testsuite/ld-x86-64/property-2.r: Likewise.
2961 * testsuite/ld-x86-64/property-3.r: Likewise.
2962 * testsuite/ld-x86-64/property-4.r: Likewise.
2963 * testsuite/ld-x86-64/property-5.r: Likewise.
2964 * testsuite/ld-x86-64/property-6.r: Likewise.
2965 * testsuite/ld-x86-64/property-6a.c: Likewise.
2966 * testsuite/ld-x86-64/property-6b.c: Likewise.
2967 * testsuite/ld-x86-64/property-6c.S: Likewise.
2968 * testsuite/ld-x86-64/property-7.r: Likewise.
2969 * testsuite/ld-x86-64/property-no-copy.S: Likewise.
2970 * testsuite/ld-x86-64/property-stack.S: Likewise.
2971 * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
2972 * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
2973 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
2974 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
2975 * testsuite/ld-x86-64/x86-64.exp: Run property tests for
2976 Linux/x86-64.
2977
2978 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
2979
2980 PR ld/16044
2981 * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
2982 testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
2983
2984 2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
2985
2986 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
2987 false for nios2-*-elf.
2988
2989 2017-03-21 gingold <gingold@gingold-Precision-7510>
2990
2991 * ldlang.c (lang_check_section_addresses): Check only for
2992 allocated sections.
2993
2994 2017-03-17 Alan Modra <amodra@gmail.com>
2995
2996 * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
2997
2998 2017-03-15 Tristan Gingold <gingold@adacore.com>
2999
3000 * testsuite/ld-checks/checks.exp (overflow_check): Disable for
3001 non-elf targets.
3002
3003 2017-03-14 H.J. Lu <hongjiu.lu@intel.com>
3004
3005 * ldlang.c (lang_check_section_addresses): Use addr_mask to
3006 check VMA and LMA.
3007
3008 2017-03-13 Nick Clifton <nickc@redhat.com>
3009
3010 PR binutils/21202
3011 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
3012
3013 2017-03-13 Tristan Gingold <gingold@adacore.com>
3014
3015 * ldlang.c (lang_check_section_addresses): Check for address space
3016 overflow.
3017 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
3018 * testsuite/ld-checks/over.s: New test source.
3019 * testsuite/ld-checks/over.d: New test.
3020 * testsuite/ld-checks/over2.s: New test source.
3021 * testsuite/ld-checks/over2.d: New test.
3022
3023 2017-03-13 Alexey Neyman <stilor@att.net>
3024
3025 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
3026 cpu, not host.
3027
3028 2017-03-11 Alan Modra <amodra@gmail.com>
3029
3030 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
3031 sysroot for -rpath search.
3032
3033 2017-03-11 Alan Modra <amodra@gmail.com>
3034
3035 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
3036 Only prefix absolute paths with sysroot. Handle DOS paths.
3037 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
3038 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
3039 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
3040 searches. Rename variable. Simplify get_runpath search.
3041
3042 2017-03-11 Alan Modra <amodra@gmail.com>
3043
3044 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
3045 than -rdynamic.
3046
3047 2017-03-11 Alan Modra <amodra@gmail.com>
3048
3049 * ld.texinfo (Orphan Sections): Mention that not all targets
3050 handle orphans well.
3051 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
3052 * testsuite/ld-elf/orphan-10.d: Likewise.
3053
3054 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * ldlang.c (lang_size_sections_1): Shortcut loop only after
3057 tracking changes to the default regions LMA.
3058 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
3059 * testsuite/ld-elf/orphan-10.d: New file.
3060 * testsuite/ld-elf/orphan-10.s: New file.
3061 * NEWS: Mention change in behaviour.
3062
3063 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * ldlang.c (lang_leave_output_section_statement): Move lma_region
3066 logic to...
3067 (lang_propagate_lma_regions): ...this new function.
3068 (lang_process): Call new function.
3069 * testsuite/ld-elf/orphan-9.d: New file.
3070 * testsuite/ld-elf/orphan-9.ld: New file.
3071 * testsuite/ld-elf/orphan-9.s: New file.
3072 * NEWS: Mention change in behaviour.
3073
3074 2017-03-07 Alan Modra <amodra@gmail.com>
3075
3076 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
3077 is not an assert before referencing defsym.
3078
3079 2017-03-05 Alan Modra <amodra@gmail.com>
3080
3081 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
3082 * testsuite/ld-elf/eh6.d: Likewise.
3083 * testsuite/ld-alpha/tlsbin.dd: Likewise.
3084 * testsuite/ld-alpha/tlsbin.td: Likewise.
3085 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
3086 * testsuite/ld-alpha/tlspic.dd: Likewise.
3087 * testsuite/ld-alpha/tlspic.rd: Likewise.
3088 * testsuite/ld-alpha/tlspic.sd: Likewise.
3089 * testsuite/ld-alpha/tlspic.td: Likewise.
3090 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
3091 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
3092 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
3093 * testsuite/ld-x86-64/pr20830a.d: Likewise.
3094 * testsuite/ld-x86-64/pr21038a.d: Likewise.
3095 * testsuite/ld-x86-64/pr21038b.d: Likewise.
3096 * testsuite/ld-x86-64/pr21038c.d: Likewise.
3097
3098 2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
3099
3100 PR 12969
3101 * pe-dll.c (generate_edata): Fail if the input file(s) require too
3102 many ordinals.
3103
3104 2017-03-02 Alan Modra <amodra@gmail.com>
3105
3106 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
3107 and dl3.cc.
3108
3109 2017-02-28 Alan Modra <amodra@gmail.com>
3110
3111 * testsuite/ld-elf/merge.d: xfail for nios.
3112
3113 2017-02-28 Alan Modra <amodra@gmail.com>
3114
3115 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
3116 limits of addpcis range.
3117
3118 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
3119
3120 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
3121 instructions.
3122 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
3123 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
3124
3125 2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
3126
3127 PR target/20849
3128 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
3129 (.rodata): New section.
3130 (.data): Remove .rodata*.
3131
3132 2017-02-25 Alan Modra <amodra@gmail.com>
3133
3134 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
3135 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
3136 defining HPUX where necessary. Define HPUX for implib tests.
3137 * testsuite/ld-elf/comm-data4.d: Run for hpux.
3138 * testsuite/ld-elf/endsym.d: Likewise.
3139 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
3140 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
3141 * testsuite/ld-elf/comm-data5.s: Likewise.
3142 * testsuite/ld-elf/endsym.s: Likewise.
3143 * testsuite/ld-elf/pr14170c.s: Likewise.
3144 * testsuite/ld-elf/symbol3.s: Likewise.
3145 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
3146 in first column.
3147 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
3148 * testsuite/ld-elf/warn3.d: Run for hpux.
3149 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
3150 * testsuite/ld-scripts/rgn-at11.d: Likewise.
3151 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
3152
3153 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
3154
3155 * testsuite/ld-elf/ver_def.vd: New test.
3156 * testsuite/ld-elf/ver_def-tic6x.vd: New test.
3157 * testsuite/ld-elf/ver_def.ld: New test linker script.
3158 * testsuite/ld-elf/ver_def.ver: New test version script.
3159 * testsuite/ld-elf/ver_def.s: New test source.
3160 * testsuite/ld-elf/readelf.exp: New test script.
3161
3162 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
3163
3164 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
3165 option.
3166 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
3167 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
3168 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
3169
3170 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
3171
3172 * testsuite/ld-mips-elf/jalr4.dd: New test.
3173 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
3174
3175 2017-02-23 Alan Modra <amodra@gmail.com>
3176
3177 PR 20744
3178 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
3179 each group.
3180 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
3181 and sdarel reloc fix.
3182
3183 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
3184
3185 PR ld/20828
3186 * testsuite/ld-elf/pr20828-d.sd: New test.
3187 * testsuite/ld-elf/pr20828-e.sd: New test.
3188 * testsuite/ld-elf/pr20828-v.od: New test.
3189 * testsuite/ld-elf/pr20828-v.ver: New test version script.
3190 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
3191 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
3192 `.gnu.version_d'.
3193 * testsuite/ld-elf/shared.exp: Run the new tests.
3194
3195 2017-02-21 Nick Clifton <nickc@redhat.com>
3196
3197 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
3198 about non-void function returning without a result.
3199
3200 2017-02-17 Alan Modra <amodra@gmail.com>
3201
3202 PR 15041
3203 * scripttempl/pe.sc: Don't combine sections for ld -r.
3204 * scripttempl/pep.sc: Likewise.
3205
3206 2017-02-17 Alan Modra <amodra@gmail.com>
3207
3208 PR 21099
3209 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
3210 rather than using OTHER_SECTIONS.
3211 * emulparams/elf32mt.sh: Likewise.
3212 * emulparams/elf32rx.sh: Likewise.
3213 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
3214 define __rl78_abs__.
3215 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
3216 rather than using OTHER_SECTIONS.
3217 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
3218 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
3219 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
3220 * emulparams/shelf_uclinux.sh: Likewise.
3221 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
3222 to define _stack, not OTHER_SECTIONS.
3223 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
3224 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
3225 * scripttempl/arclinux.sc: Likewise.
3226 * scripttempl/elf64hppa.sc: Likewise.
3227 * scripttempl/elfxtensa.sc: Likewise.
3228 * scripttempl/nds32elf.sc: Likewise.
3229 * scripttempl/armbpabi.sc: Move STACK before debug sections.
3230 * scripttempl/elf_chaos.sc: Likewise.
3231 * scripttempl/elfarc.sc: Delete STACK.
3232 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
3233 TINY_BSS_SECTION, and .stack before debug sections.
3234
3235 2017-02-17 Nick Clifton <nickc@redhat.com>
3236
3237 PR ld/20825
3238 * ld.texinfo (Options): Add missing @item entry for --pop-state.
3239
3240 2017-02-17 Alan Modra <amodra@gmail.com>
3241
3242 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
3243 multiple definition errors.
3244
3245 2017-02-17 Alan Modra <amodra@gmail.com>
3246
3247 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
3248 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
3249
3250 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
3251
3252 * testsuite/ld-elf/shared.exp: Update expected results.
3253 * testsuite/ld-elf/dwarf2.err: Likewise
3254
3255 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
3258 * testsuite/ld-elf/dwarf2.err: New file.
3259 * testsuite/ld-elf/dwarf2a.c: New file.
3260 * testsuite/ld-elf/dwarf2b.c: New file.
3261 * testsuite/ld-elf/dwarf3.c: New file.
3262 * testsuite/ld-elf/dwarf3.err: New file.
3263
3264 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
3265
3266 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
3267 error, warning_output, and error_output actions. Remove separate
3268 warnings parameter.
3269 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
3270 'warning' action.
3271 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
3272
3273 2017-02-16 Alan Modra <amodra@gmail.com>
3274
3275 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
3276 from void pointers to function pointers.
3277 * testsuite/ld-elf/pr18718.c: Update to suit.
3278 * testsuite/ld-elf/pr18720a.c: Update to suit.
3279
3280 2017-02-16 Alan Modra <amodra@gmail.com>
3281
3282 PR 21000
3283 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
3284 * testsuite/ld-elf/loadaddr2.d: Likewise.
3285 * testsuite/ld-elf/loadaddr3a.d: Likewise.
3286 * testsuite/ld-scripts/rgn-at5.d: Likewise.
3287
3288 2017-02-16 Alan Modra <amodra@gmail.com>
3289
3290 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
3291 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
3292
3293 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
3294
3295 PR ld/21168
3296 * testsuite/ld-i386/i386.exp: Run pr21168.
3297 * testsuite/ld-i386/pr21168a.c: New file.
3298 * testsuite/ld-i386/pr21168b.S: Likewise.
3299
3300 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
3301
3302 PR ld/20244
3303 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
3304 pr20244-4c.
3305 * testsuite/ld-i386/pr20244-4.s: New file.
3306 * testsuite/ld-i386/pr20244-4a.d: Likewise.
3307 * testsuite/ld-i386/pr20244-4b.d: Likewise.
3308 * testsuite/ld-i386/pr20244-4c.d: Likewise.
3309
3310 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
3311
3312 * ldmisc.c (vfinfo): Don't print the function name again either
3313 if no source file name has been found both now and previously.
3314 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
3315 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
3316 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
3317 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
3318 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
3319 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
3320 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
3321 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
3322 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
3323 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
3324 Likewise.
3325 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
3326 Likewise.
3327 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
3328 Likewise.
3329 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
3330 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
3331 Likewise.
3332 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
3333 Likewise.
3334 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
3335 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
3336 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
3337 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
3338 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
3339 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
3340 * testsuite/ld-powerpc/tocopt.out: Likewise.
3341 * testsuite/ld-powerpc/tocopt7.out: Likewise.
3342
3343 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
3344
3345 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
3346
3347 2017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
3348
3349 * testsuite/ld-scripts/sysroot-prefix.exp
3350 (get_base_dir_for_scripts): New function.
3351 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
3352
3353 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
3354
3355 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
3356 _gp to __global_pointer$
3357
3358 2017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * configure.tgt (arc*-*-linux*): Change the default linker
3361 emulation based on --with-cpu selection.
3362 * NEWS: Mention new configuration option.
3363
3364 2017-02-06 Jiong Wang <jiong.wang@arm.com>
3365
3366 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
3367 "readelf -w".
3368
3369 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
3370
3371 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
3372
3373 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
3374
3375 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
3376 s/regexp/regex/.
3377
3378 2017-02-02 Jiong Wang <jiong.wang@arm.com>
3379
3380 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
3381 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
3382 dlopen support into "dlopen_run_tests". These tests include dl1*main
3383 and dl6*main.
3384 (dlopen_run_tests): New and only run it when check_libdl_available
3385 returns true. XFAIL on *-*-netbsdelf*.
3386
3387 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3388
3389 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
3390 presentation of relocation addends.
3391 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
3392 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
3393 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
3394
3395 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3396
3397 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
3398 in `.tdata' section.
3399 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
3400 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
3401
3402 2017-02-01 Jiong Wang <jiong.wang@arm.com>
3403
3404 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
3405 Append $board_cflags to link commands.
3406
3407 2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
3408
3409 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
3410 check for digit in second decimal place.
3411
3412 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3413
3414 PR ld/20828
3415 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
3416 indentation.
3417
3418 2017-01-31 Nick Clifton <nickc@redhat.com>
3419
3420 * ldmain.c (add_archive_element): Eliminate string buffer.
3421 * ldlang.c (lang_print_asneeded): Likewise.
3422
3423 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
3424
3425 * emultempl/mipself.em (ignore_branch_isa): New variable.
3426 (mips_create_output_section_statements): Rename
3427 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
3428 add `ignore_branch_isa' argument.
3429 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
3430 OPTION_NO_IGNORE_BRANCH_ISA enum values.
3431 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
3432 "no-ignore-branch-isa" options.
3433 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
3434 `--no-ignore-branch-isa'.
3435 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
3436 OPTION_NO_IGNORE_BRANCH_ISA.
3437
3438 * ld.texinfo (Options specific to MIPS targets): Add
3439 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
3440 (ld and the MIPS family): Likewise.
3441
3442 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
3443 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
3444 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
3445 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
3446 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
3447 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
3448 test.
3449 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
3450 test.
3451 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
3452
3453 2017-01-29 Hans-Peter Nilsson <hp@axis.com>
3454
3455 PR binutils/19935
3456 Fix long-standing buglet and fallout from now-default initfini-array.
3457 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
3458 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
3459
3460 2017-01-27 Jiong Wang <jiong.wang@arm.com>
3461
3462 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
3463 arm*-*-eabi*.
3464
3465 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
3466 Nick Clifton <nickc@redhat.com>
3467
3468 PR 20343
3469 * ld.texinfo (Options): Extend documentation of the --plugin
3470 option. Include a description of where the plugins should be
3471 located.
3472
3473 2017-01-27 Nick Clifton <nickc@redhat.com>
3474
3475 * po/sr.po: New Serbian translation.
3476 * configure.ac (ALL_LINGUAS): Add sr.
3477 * configure: Regenerate.
3478
3479 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3480
3481 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
3482 (bfin-*-rtems*): Move to (bfin*-*-elf*).
3483 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
3484 (m68*-*-rtems*): Move to (m68*-*-elf*).
3485 (mips*-*-rtems*): Move to (mips*-*-elf*).
3486 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
3487 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
3488 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
3489 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
3490
3491 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3492
3493 * configure.tgt (h8300-*-rtemscoff*): Remove.
3494 (i960-*-rtems*): Likewise.
3495 (m68*-*-rtemscoff*): Likewise.
3496 (sh-*-rtemscoff*): Likewise.
3497
3498 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
3499
3500 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
3501 add implicit version nodes if an anonymous version tag is being
3502 used.
3503
3504 2017-01-24 Jiong Wang <jiong.wang@arm.com>
3505
3506 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
3507 "Compile 8a", "Compile 8b"...
3508 (lto_compile_elf_tests): ...to here. Always run these tests.
3509 (lto_run_elf_tests): Move "LTO 7"...
3510 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
3511 environment where share library is supported.
3512
3513 2017-01-24 Alan Modra <amodra@gmail.com>
3514
3515 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
3516 and symbols.
3517 * testsuite/ld-powerpc/tlsexe.d: Likewise.
3518 * testsuite/ld-powerpc/tlsexe.g: Likewise.
3519
3520 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
3521
3522 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
3523 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
3524 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
3525 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
3526 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
3527 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
3528 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
3529 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
3530 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
3531 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
3532 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
3533 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
3534 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
3535
3536 2017-01-23 Nick Clifton <nickc@redhat.com>
3537
3538 * po/ga.po: Updated Irish translation.
3539
3540 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3541
3542 PR ld/20828
3543 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
3544
3545 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3546
3547 PR ld/20828
3548 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
3549 `fdata' and `edata' respectively.
3550 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
3551 * testsuite/ld-elf/pr20828-a.sd: Likewise.
3552 * testsuite/ld-elf/pr20828-b.sd: Likewise.
3553 * testsuite/ld-elf/pr20828-c.sd: Likewise.
3554
3555 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3556
3557 PR ld/20828
3558 * testsuite/ld-elf/pr20828-1.sd: Remove test.
3559 * testsuite/ld-elf/pr20828-a.sd: New test.
3560 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
3561 * testsuite/ld-elf/pr20828-b.sd: ... this.
3562 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
3563 * testsuite/ld-elf/pr20828-c.sd: ... this.
3564 * testsuite/ld-elf/shared.exp: Adjust accordingly.
3565
3566 2017-01-23 Jiong Wang <jiong.wang@arm.com>
3567
3568 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
3569 board_cflags as gcc is used as linker driver.
3570 * testsuite/ld-unique/unique.exp: Likewise
3571
3572 2017-01-20 Jiong Wang <jiong.wang@arm.com>
3573
3574 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
3575 * testsuite/ld-aarch64/func-in-so.s: New test source file.
3576 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
3577 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
3578
3579 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
3580
3581 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
3582
3583 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3584
3585 PR ld/20995
3586 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
3587 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
3588
3589 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3590
3591 PR ld/20828
3592 * testsuite/ld-elf/pr20828-1.sd: New test.
3593 * testsuite/ld-elf/pr20828-2a.sd: New test.
3594 * testsuite/ld-elf/pr20828-2b.sd: New test.
3595 * testsuite/ld-elf/pr20828.ld: New test linker script.
3596 * testsuite/ld-elf/pr20828.ver: New test version script.
3597 * testsuite/ld-elf/pr20828.s: New test source.
3598 * testsuite/ld-elf/shared.exp: Run the new test.
3599
3600 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3601
3602 PR gas/20649
3603 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
3604 relocation pairing link test.
3605
3606 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
3607
3608 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
3609 uniqeue.exp, as not all targets have such support.
3610
3611 2017-01-16 Nick Clifton <nickc@redhat.com>
3612
3613 * po/sv.po: Updated Swedish translation.
3614
3615 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
3616
3617 PR ld/21038
3618 * testsuite/ld-x86-64/pr21038b.d: Updated.
3619 * testsuite/ld-x86-64/pr21038c.d: New file.
3620 * testsuite/ld-x86-64/pr21038c.s: Likewise.
3621 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
3622
3623 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
3624
3625 PR ld/21038
3626 * testsuite/ld-x86-64/pr21038a.d: New file.
3627 * testsuite/ld-x86-64/pr21038a.s: Likewise.
3628 * testsuite/ld-x86-64/pr21038b.d: Likewise.
3629 * testsuite/ld-x86-64/pr21038b.s: Likewise.
3630 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
3631
3632 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
3633
3634 * configure.tgt: Add entries for x86-redox and x86_64-redox.
3635
3636 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3637
3638 * testsuite/ld-x86-64/pr20830b.d: Updated.
3639
3640 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3641
3642 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
3643 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
3644 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
3645 * testsuite/ld-x86-64/pr20830b.d: New file.
3646 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
3647 Run pr20830b.
3648
3649 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3650
3651 PR ld/20830
3652 * testsuite/ld-i386/i386.exp: Run pr20830.
3653 * testsuite/ld-x86-64/x86-64.exp: Likewise.
3654 * testsuite/ld-i386/pr20830.d: New file.
3655 * testsuite/ld-i386/pr20830.s: Likewise.
3656 * testsuite/ld-x86-64/pr20830.d: Likewise.
3657 * testsuite/ld-x86-64/pr20830.s: Likewise.
3658
3659 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3660
3661 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
3662 -Wl,--as-needed to $CC.
3663 * testsuite/ld-i386/tls.exp: Likewise.
3664
3665 2017-01-10 Nick Clifton <nickc@redhat.com>
3666
3667 * po/sv.po: Updated Swedish translation.
3668
3669 2016-12-09 Graham Markall <graham.markall@embecosm.com>
3670 Andrew Burgess <andrew.burgess@embecosm.com>
3671
3672 * Makefile.am: Add earclinux_nps.c target and add to
3673 ALL_EMULATION_SOURCES.
3674 * Makefile.in: Likewise, regenerated.
3675 * configure.tgt: Add arclinux_nps as an extra emulation for
3676 arc*-*-elf* and arc*-*-linux*.
3677 * emulparams/arc-nps.sh: New file.
3678 * emulparams/arclinux_nps.sh: New file.
3679 * testsuite/ld-arc/arclinux-nps.d,
3680 * testsuite/ld-arc/arclinux-nps.s: New test.
3681
3682 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
3683
3684 PR 20958
3685 * ldlex.l (option): Add noyywrap
3686 (yywrap): Delete.
3687 * ldlex.h (yywrap): Delete prototype.
3688
3689 2017-01-04 Alan Modra <amodra@gmail.com>
3690
3691 * testsuite/ld-elf/audit.exp: Check for shared lib support.
3692 * testsuite/ld-elf/compress.exp: Likewise.
3693 * testsuite/ld-elf/dwarf.exp: Likewise.
3694 * testsuite/ld-elf/shared.exp: Likewise.
3695 * testsuite/ld-elf/wrap.exp: Likewise.
3696 * testsuite/ld-ifunc/ifunc.exp: Likewise.
3697 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
3698
3699 2017-01-03 Alan Modra <amodra@gmail.com>
3700
3701 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
3702 allow test to continue after compilation errors.
3703 (run_cc_link_tests): Likewise.
3704
3705 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
3706
3707 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
3708 (epruelf.c): Remove unneeded dependencies.
3709 * Makefile.in: Regenerate
3710
3711 2017-01-03 Alan Modra <amodra@gmail.com>
3712
3713 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
3714 to various tests.
3715 * testsuite/ld-elfweak/elfweak.exp: Likewise.
3716 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
3717
3718 2017-01-03 Alan Modra <amodra@gmail.com>
3719
3720 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
3721 * testsuite/ld-pie/pie.exp: Likewise.
3722 * testsuite/ld-plugin/lto.exp: Likewise.
3723
3724 2017-01-02 Alan Modra <amodra@gmail.com>
3725
3726 * Makefile.am (bootstrap): Delete rule.
3727 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
3728 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
3729 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
3730 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
3731 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
3732 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
3733 * Makefile.in: Regenerate.
3734 * configure: Regenerate.
3735 * testsuite/config/default.exp (get_link_files): Delete.
3736 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
3737 define.
3738 (ld_simple_link): Delete.
3739 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
3740 (default_ld_simple_link): Rename to default_ld_link.
3741 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
3742 (run_ld_link_tests): Use ld_link, not ld_simple_link.
3743 (run_cc_link_tests): Likewise.
3744 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
3745 Don't run exe when not native, and return unsupported.
3746 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
3747 Link ld1 etc. using $CC.
3748 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
3749 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
3750 * testsuite/ld-cygwin/exe-export.exp: Likewise.
3751 * testsuite/ld-elf/binutils.exp: Likewise.
3752 * testsuite/ld-elf/eh-group.exp: Likewise.
3753 * testsuite/ld-elf/exclude.exp: Likewise.
3754 * testsuite/ld-elf/frame.exp: Likewise.
3755 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
3756 * testsuite/ld-elf/tls_common.exp: Likewise.
3757 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
3758 * testsuite/ld-fastcall/fastcall.exp: Likewise.
3759 * testsuite/ld-gc/gc.exp: Likewise.
3760 * testsuite/ld-ifunc/binutils.exp: Likewise.
3761 * testsuite/ld-mep/mep.exp: Likewise.
3762 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
3763 * testsuite/ld-mn10300/mn10300.exp: Likewise.
3764 * testsuite/ld-nios2/nios2.exp: Likewise.
3765 * testsuite/ld-pe/pe-compile.exp: Likewise.
3766 * testsuite/ld-pe/pe-run.exp: Likewise.
3767 * testsuite/ld-pe/pe-run2.exp: Likewise.
3768 * testsuite/ld-plugin/plugin.exp: Likewise.
3769 * testsuite/ld-scripts/align.exp: Likewise.
3770 * testsuite/ld-scripts/alignof.exp: Likewise.
3771 * testsuite/ld-scripts/assert.exp: Likewise.
3772 * testsuite/ld-scripts/defined.exp: Likewise.
3773 * testsuite/ld-scripts/extern.exp: Likewise.
3774 * testsuite/ld-scripts/log2.exp: Likewise.
3775 * testsuite/ld-scripts/map-address.exp: Likewise.
3776 * testsuite/ld-scripts/phdrs.exp: Likewise.
3777 * testsuite/ld-scripts/phdrs2.exp: Likewise.
3778 * testsuite/ld-scripts/script.exp: Likewise.
3779 * testsuite/ld-scripts/section-flags.exp: Likewise.
3780 * testsuite/ld-scripts/sizeof.exp: Likewise.
3781 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
3782 * testsuite/ld-scripts/weak.exp: Likewise.
3783 * testsuite/ld-selective/selective.exp: Likewise.
3784 * testsuite/ld-sh/sh.exp: Likewise.
3785 * testsuite/ld-sh/sh64/relax.exp: Likewise.
3786 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
3787 * testsuite/ld-srec/srec.exp: Likewise.
3788 * testsuite/ld-tic6x/tic6x.exp: Likewise.
3789 * testsuite/ld-undefined/weak-undef.exp: Likewise.
3790 * testsuite/ld-versados/versados.exp: Likewise.
3791 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
3792 * testsuite/ld-xtensa/coalesce.exp: Likewise.
3793 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
3794 * testsuite/ld-xtensa/lcall.exp: Likewise.
3795 * testsuite/ld-elf/audit.exp: Run non-native too.
3796 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
3797 gcc -Wl, options.
3798 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
3799 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
3800 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
3801 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
3802 -Wl,--no-as-needed to most tests.
3803 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
3804 to simplify quoting. Set run_tests using [list] rather than
3805 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
3806 to many test. Prefix ld options with -Wl,.
3807 (mix_pic_and_non_pic): Don't run exe if not native.
3808 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
3809 -Wl,--no-as-needed and prefix ld options with -Wl,.
3810 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
3811 not ld_simple_link.
3812 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
3813 (visibility_test): Don't run exe if not native.
3814 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
3815 not ld_simple_link.
3816 (build_exec): Don't run exe if not native.
3817 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
3818 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
3819 to some tests and prefix ld options with -Wl,. Expect GNU
3820 for hppa-linux even when no ifuncs. Delete cleanup.
3821 * testsuite/ld-pie/pie.exp: Run non-native too.
3822 * testsuite/ld-plugin/lto.exp: Likewise.
3823 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
3824 not ld_simple_link.
3825 (shared_test): Don't run exe if not native.
3826 * testsuite/ld-size/size.exp: Run non-native too. Add
3827 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
3828 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
3829 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
3830 to some tests and prefix ld options with -Wl,. Expect GNU
3831 for hppa-linux even when no unique syms. Delete cleanup.
3832 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
3833 tests and prefix ld options with -Wl,.
3834 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
3835 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
3836
3837 2017-01-02 Alan Modra <amodra@gmail.com>
3838
3839 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
3840
3841 2017-01-02 Alan Modra <amodra@gmail.com>
3842
3843 PR ld/21000
3844 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
3845 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
3846 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
3847 is already defined.
3848
3849 2017-01-02 Alan Modra <amodra@gmail.com>
3850
3851 Update year range in copyright notice of all files.
3852
3853 For older changes see ChangeLog-2016
3854 \f
3855 Copyright (C) 2017 Free Software Foundation, Inc.
3856
3857 Copying and distribution of this file, with or without modification,
3858 are permitted in any medium without royalty provided the copyright
3859 notice and this notice are preserved.
3860
3861 Local Variables:
3862 mode: change-log
3863 left-margin: 8
3864 fill-column: 74
3865 version-control: never
3866 End:
This page took 0.114315 seconds and 5 git commands to generate.