[BFD][PR21703]Override the new defined symbol with the old normal symbol when --allow...
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
93f4de39
RL
12017-10-24 Renlin Li <renlin.li@arm.com>
2
3 PR ld/21703
4 * testsuite/ld-elf/elf.exp: Run new tests.
5 * testsuite/ld-elf/pr21703-1.s: New.
6 * testsuite/ld-elf/pr21703-2.s: New.
7 * testsuite/ld-elf/pr21703-3.s: New.
8 * testsuite/ld-elf/pr21703-4.s: New.
9 * testsuite/ld-elf/pr21703-r.sd: New.
10 * testsuite/ld-elf/pr21703-shared.sd: New.
11 * testsuite/ld-elf/pr21703.sd: New.
12 * testsuite/ld-elf/pr21703.ver: New.
13
4a8f9fc2
L
142017-10-23 H.J. Lu <hongjiu.lu@intel.com>
15
16 * configure.tgt (i[3-7]86-*-linux-*): Move elf32_x86_64 from
17 targ_extra_libpath to targ64_extra_libpath.
18
66cae560
NC
192017-10-23 Nick Clifton <nickc@redhat.com>
20
21 PR 22310
22 * testsuite/ld-elf/pr22310.s: New test source file.
23 * testsuite/ld-elf/pr22310.d: New test driver.
24 * testsuite/ld-mmix/undef-3.d: Update expected output from readelf.
25
4e15b78b
HPN
262017-10-21 Hans-Peter Nilsson <hp@axis.com>
27
28 PR ld/21233
29 * testsuite/ld-elf/shared.exp: Remove kfails.
30
f3012016
L
312017-10-20 H.J. Lu <hongjiu.lu@intel.com>
32
33 PR ld/22269
34 * testsuite/ld-elf/pr22269-1.rd: New file.
35 * testsuite/ld-elf/pr22269-1.c: Likewise.
36 * testsuite/ld-elf/shared.exp: Run pr22269-1.
37
ff6f4d9b
PD
382017-10-19 Palmer Dabbelt <palmer@dabbelt.com>
39
40 * emultempl/riscvelf.em (riscv_elf_before_allocation): Add a
41 third relaxation pass.
42
e6e2dfbd
AM
432017-10-17 Alan Modra <amodra@gmail.com>
44
45 * ld.texinfo (-z): Combine negative options with corresponding
46 positive option. Sort the table. Expand and correct "combreloc",
47 "common", "common-page-size", "interpose", "loadfltr",
48 "max-page-size", "muldefs", "nodefaultlib", "nodelete", "nodlopen",
49 "nodump", "noextern-protected-data", "now", "origin", and "text".
50
5c3261b0
L
512017-10-16 H.J. Lu <hongjiu.lu@intel.com>
52
53 * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
54 Removed.
55 * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
56 Likewise.
57 * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
58 Likewise.
59 * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
60 Likewise.
61 * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
62 Likewise.
63 * emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
64 Likewise.
65 * emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
66 Likewise.
67 * emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
68 Likewise.
69 * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
70 Likewise.
71 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
72 Likewise.
73 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
74 Likewise.
75 * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
76 Likewise.
77 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
78 Likewise.
79 * emulparams/shelf.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
80 Likewise.
81 * emulparams/shelf32.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
82 Likewise.
83 * emulparams/shelf_nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
84 Likewise.
85 * emulparams/shelf_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
86 Likewise.
87 * emulparams/shlelf32_linux.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
88 Likewise.
89 * emulparams/shlelf_linux.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
90 Likewise.
91 * emulparams/shlelf_nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
92 Likewise.
93 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
94 Set link_info.check_relocs_after_open_input to TRUE.
95 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse):
96 Likewise.
97 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse):
98 Likewise.
99 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
100 after_parse_default.
101 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
102 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
103 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
104 * emultempl/gld960.em (ld_${EMULATION_NAME}_emulation): Likewise.
105 * emultempl/gld960c.em (ld_${EMULATION_NAME}_emulation): Likewise.
106 * emultempl/lnk960.em (ld_${EMULATION_NAME}_emulation): Likewise.
107 * emultempl/m68kcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
108 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
109 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
110 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
111 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
112 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
113 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
114 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Always
115 set link_info.check_relocs_after_open_input to TRUE.
116 (ld_${EMULATION_NAME}_emulation): Add $LDEMUL_AFTER_CHECK_RELOCS.
117 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
118 Set link_info.check_relocs_after_open_input to TRUE.
119 (ld_${EMULATION_NAME}_emulation): Add after_check_relocs_default.
120 * emultempl/mmix-elfnmmo.em (mmix_before_parse): New function.
121 (LDEMUL_BEFORE_PARSE): New.
122 * emultempl/mmixelf.em (elfmmix_before_parse): Replace
123 gld${EMULATION_NAME}_before_parse with mmix_before_parse.
124 * emultempl/ppc32elf.em (ppc_after_open): Renamed to ...
125 (ppc_after_check_relocs): This. Call after_check_relocs_default
126 instead of gld${EMULATION_NAME}_after_open.
127 (LDEMUL_AFTER_OPEN): Removed.
128 (LDEMUL_AFTER_CHECK_RELOCS): New.
129 * ldemul.c (ldemul_after_check_relocs): New.
130 (after_check_relocs_default): Likewise.
131 * ldemul.h (ldemul_after_check_relocs): Likewise.
132 (after_check_relocs_default): Likewise.
133 (ld_emulation_xfer_struct): Add after_check_relocs.
134 * ldlang.c (lang_process): Call ldemul_after_check_relocs after
135 lang_check_relocs.
136 * testsuite/ld-aarch64/gc-got-relocs.d: Don't expect GOT section.
137 * testsuite/ld-aarch64/gc-tls-relocs.d: Likewise.
138 * testsuite/ld-cris/tls-gc-68.d: Likewise.
139 * testsuite/ld-cris/tls-gc-69.d: Likewise.
140 * testsuite/ld-cris/tls-gc-70.d: Likewise.
141 * testsuite/ld-cris/tls-gc-75.d: Likewise.
142 * testsuite/ld-cris/tls-gc-79.d: Likewise.
143 * testsuite/ld-mmix/bpo-10.d: Don't expect .MMIX.reg_contents
144 section.
145
e01c16a8
L
1462017-10-14 H.J. Lu <hongjiu.lu@intel.com>
147
148 PR ld/22269
149 * testsuite/ld-cris/weakhiddso.d: Update and remove R_CRIS_NONE.
150
354bac40
AM
1512017-10-13 Alan Modra <amodra@gmail.com>
152
153 PR ld/22263
154 * testsuite/ld-elf/tls.exp: Link with -z text.
155 * testsuite/ld-elf/pr22263-1.rd: Test for tprel relocs.
156
74ffa566
L
1572017-10-12 H.J. Lu <hongjiu.lu@intel.com>
158
159 PR ld/22263
160 * testsuite/ld-elf/pr22263-1.rd: New file.
161 * testsuite/ld-elf/pr22263-1a.c: Likewise.
162 * testsuite/ld-elf/pr22263-1b.c: Likewise.
163 * testsuite/ld-elf/tls.exp: Likewise.
164
1d75a8e2
NC
1652017-10-12 Nick Clifton <nickc@redhat.com>
166
167 * testsuite/ld-aarch64/pcrel_pic_defined.d: Expect errors not
168 warnings. Expect errors about unsupported relocations.
169 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Likewise.
170
359987e2
L
1712017-10-12 H.J. Lu <hongjiu.lu@intel.com>
172
173 * testsuite/ld-elf/pr22269b.d: Expect warning of
174 "-z dynamic-undefined-weak ignored".
175 * testsuite/ld-i386/pr19636-1j.d: Likewise.
176 * testsuite/ld-i386/pr19636-1k.d: Likewise.
177 * testsuite/ld-i386/pr19636-1l.d: Likewise.
178 * testsuite/ld-x86-64/pr19636-2j.d: Likewise.
179 * testsuite/ld-x86-64/pr19636-2k.d: Likewise.
180 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
181 * testsuite/ld-x86-64/pr19636-2m.d: Likewise.
182
22b1ee18
AM
1832017-10-12 Alan Modra <amodra@gmail.com>
184
185 PR 22269
186 * emultempl/elf32.em (after_parse): Warn on --no-dynamic-linker
187 -z dynamic-undefined-weak combination. Set dynamic_undefined_weak
188 to zero when nointerp.
189
559192d8
AM
1902017-10-12 Alan Modra <amodra@gmail.com>
191
192 * emultempl/elf32.em (before_allocation): Call
193 elf_backend_hide_symbol, not _bfd_elf_link_hash_hide_symbol.
194 Formatting.
195
4b97e389
L
1962017-10-11 H.J. Lu <hongjiu.lu@intel.com>
197
198 * PR ld/22269
199 * testsuite/ld-elf/pr22269.s: New file.
200 * testsuite/ld-elf/pr22269a.d: Likewise.
201 * testsuite/ld-elf/pr22269b.d: Likewise.
202
853ee16f
L
2032017-10-11 H.J. Lu <hongjiu.lu@intel.com>
204
205 * testsuite/ld-i386/i386.exp: Run pr19636-1j, pr19636-1k,
206 pr19636-1l, pr19636-3h and pr19636-3i.
207 * testsuite/ld-i386/pr19636-1j.d: New file.
208 * testsuite/ld-i386/pr19636-1k.d: Likewise.
209 * testsuite/ld-i386/pr19636-1l.d: Likewise.
210 * testsuite/ld-i386/pr19636-3h.d: Likewise.
211 * testsuite/ld-i386/pr19636-3i.d: Likewise.
212 * testsuite/ld-x86-64/pr19636-1h.d: Likewise.
213 * testsuite/ld-x86-64/pr19636-1i.d: Likewise.
214 * testsuite/ld-x86-64/pr19636-1j.d: Likewise.
215 * testsuite/ld-x86-64/pr19636-2j.d: Likewise.
216 * testsuite/ld-x86-64/pr19636-2k.d: Likewise.
217 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
218 * testsuite/ld-x86-64/pr19636-2m.d: Likewise.
219 * testsuite/ld-x86-64/x86-64.exp: Run pr19636-1h, pr19636-1i,
220 pr19636-1j, pr19636-2j, pr19636-2k, pr19636-2l and pr19636-2m.
221
d003af55
AM
2222017-10-11 Alan Modra <amodra@gmail.com>
223
224 * emultempl/aarch64elf.em: Wrap einfo strings in _(). Formatting.
225 * emultempl/aix.em: Likewise.
226 * emultempl/armcoff.em: Likewise.
227 * emultempl/armelf.em: Likewise.
228 * emultempl/avrelf.em: Likewise.
229 * emultempl/beos.em: Likewise.
230 * emultempl/cr16elf.em: Likewise.
231 * emultempl/elf-generic.em: Likewise.
232 * emultempl/elf32.em: Likewise.
233 * emultempl/genelf.em: Likewise.
234 * emultempl/hppaelf.em: Likewise.
235 * emultempl/linux.em: Likewise.
236 * emultempl/lnk960.em: Likewise.
237 * emultempl/m68hc1xelf.em: Likewise.
238 * emultempl/m68kcoff.em: Likewise.
239 * emultempl/m68kelf.em: Likewise.
240 * emultempl/metagelf.em: Likewise.
241 * emultempl/mipself.em: Likewise.
242 * emultempl/mmix-elfnmmo.em: Likewise.
243 * emultempl/mmo.em: Likewise.
244 * emultempl/msp430.em: Likewise.
245 * emultempl/nds32elf.em: Likewise.
246 * emultempl/nios2elf.em: Likewise.
247 * emultempl/pe.em: Likewise.
248 * emultempl/pep.em: Likewise.
249 * emultempl/ppc32elf.em: Likewise.
250 * emultempl/ppc64elf.em: Likewise.
251 * emultempl/riscvelf.em: Likewise.
252 * emultempl/s390.em: Likewise.
253 * emultempl/scoreelf.em: Likewise.
254 * emultempl/spuelf.em: Likewise.
255 * emultempl/sunos.em: Likewise.
256 * emultempl/tic6xdsbt.em: Likewise.
257 * emultempl/v850elf.em: Likewise.
258 * emultempl/vms.em: Likewise.
259 * emultempl/vxworks.em: Likewise.
260 * ldcref.c: Likewise.
261 * ldlang.c: Likewise.
262 * ldlex.l: Likewise.
263 * ldmain.c: Likewise.
264 * pe-dll.c: Likewise.
265 * plugin.c: Likewise.
266
6c699715
RL
2672017-10-10 Renlin Li <renlin.li@arm.com>
268
269 PR ld/21402
270 * testsuite/ld-arm/tls-app.d: Update address.
271 * testsuite/ld-arm/tls-app.r: Remove relocations.
272 * testsuite/ld-arm/unresolved-1-dyn.d: Update.
273
cbd3b1c1
AM
2742017-10-10 Alan Modra <amodra@gmail.com>
275
276 * Makefile.am (earmelfb_fuchsia.c): Rename rule from earmelf_fuchsia.c.
277 * Makefile.in: Regenerate.
278
6753e38a
NC
2792017-10-09 Nick Clifton <nickc@redhat.com>
280
c474ea1a
NC
281 * testsuite/ld-srec/srec.exp (run_srec_test): Set start address.
282
6753e38a
NC
283 PR ld/19874
284 * testsuite/ld-x86-64/pr19784c.c (bar): Change return type to void.
285
76f361eb
L
2862017-10-09 H.J. Lu <hongjiu.lu@intel.com>
287
288 PR ld/22267
289 * ldlex.l (SYMBOLNAMECHAR1) New.
290 (DEFSYMEXP): Replace FILENAMECHAR1 with SYMBOLNAMECHAR1.
291 (EXPRESSION): Likewise.
292 * testsuite/ld-scripts/expr.exp: Run pr22267.
293 * testsuite/ld-scripts/pr22267.d: New file.
294 * testsuite/ld-scripts/pr22267.s: Likewise.
295 * testsuite/ld-scripts/pr22267.t: Likewise.
296
2458d83b
L
2972017-10-07 H.J. Lu <hongjiu.lu@intel.com>
298
299 * testsuite/ld-elf/merge.d: Don't expect to fail for sparc.
300
94750c06
NC
3012017-10-05 Nick Clifton <nickc@redhat.com>
302
303 * po/tr.po: Updated Turkish translation.
304
5c144731
NC
3052017-10-05 Nick Clifton <nickc@redhat.com>
306
307 PR 22262
308 * testsuite/ld-powerpc/relocsort.d: Update expected output (for
309 longer reloc names).
310
db4677b8
AM
3112017-10-05 Alan Modra <amodra@gmail.com>
312
313 PR 21167
314 * testsuite/ld-elf/group9b.d: Adjust for relocs included in group.
315
9194f82d
AM
3162017-10-03 Alan Modra <amodra@gmail.com>
317
318 PR 21294
319 * NEWS: Note that defaulting to -z relro results in increased
320 memory and disk size.
321
def5c83c
AM
3222017-10-03 Alan Modra <amodra@gmail.com>
323
324 * ld.texinfo (-z relro): Expand description.
325 (DATA_SEGMENT_ALIGN): Note that -z relro is not effective when
326 running with system page size larger than commonpagesize.
327 (DATA_SEGMENT_RELRO_END): Be explicit about the alignment.
328
8cb1232a
AM
3292017-10-01 Alan Modra <amodra@gmail.com>
330
331 PR 21970
332 * ldlang.c (lang_leave_overlay): Reset overlay_subalign.
333
2715765b
L
3342017-09-30 H.J. Lu <hongjiu.lu@intel.com>
335
336 PR binutils/21978
337 * testsuite/ld-elf/pr21978.od: New file.
338 * testsuite/ld-elf/pr21978a.c: Likewise.
339 * testsuite/ld-elf/pr21978b.c: Likewise.
340 * testsuite/ld-elf/shared.exp: Run PR binutils/21978 test.
341
231ca753
NC
3422017-09-28 Nick Clifton <nickc@redhat.com>
343
344 PR 14918
345 * testsuite/ld-plugin/lto.exp (link_elf_tests): Skip the pr14918
346 test for ARM targets as they always link with libgcc.
347
1a3b5c34
AM
3482017-09-28 Alan Modra <amodra@gmail.com>
349
350 * testsuite/ld-plugin/pr22220.h,
351 * testsuite/ld-plugin/pr22220lib.cc,
352 * testsuite/ld-plugin/pr22220lib.ver,
353 * testsuite/ld-plugin/pr22220main.cc: New test.
354 * testsuite/ld-plugin/lto.exp: Run it.
355
28d810f7
MR
3562017-09-26 Maciej W. Rozycki <macro@imgtec.com>
357
358 * testsuite/ld-undefined/undefined.exp: Correct the dyn reloc
359 test for MIPS and S+core targets.
360
be2b629f
L
3612017-09-22 H.J. Lu <hongjiu.lu@intel.com>
362
363 PR ld/22150
364 * testsuite/ld-elf/pr22150.vd: New file.
365 * testsuite/ld-elf/pr22150.ver: Likewise.
366 * testsuite/ld-elf/pr22150a.s: Likewise.
367 * testsuite/ld-elf/pr22150b.s: Likewise.
368 * testsuite/ld-elf/shared.exp: Run PR ld/22150 tests.
369
ba52cbb9
AM
3702017-09-21 Alan Modra <amodra@gmail.com>
371
372 * testsuite/ld-powerpc/tlsopt5.wf: Update for reduced alignment.
373
b7f54058
MR
3742017-09-19 Maciej W. Rozycki <macro@imgtec.com>
375
376 * configure.tgt <mips64el-*-openbsd*, mips64-*-openbsd*>: New
377 targets.
378
8fd138c4
AM
3792017-09-15 Alan Modra <amodra@gmail.com>
380
381 PR 22118
382 * testsuite/ld-aarch64/erratum843419.d: Correct regexp.
383
79254a52
L
3842017-09-14 H.J. Lu <hongjiu.lu@intel.com>
385
386 PR ld/22139
387 * testsuite/ld-elf/globalaudit.rd: Allow additional bits in
388 DT_FLAGS_1.
389
5e5e02ae
L
3902017-09-14 H.J. Lu <hongjiu.lu@intel.com>
391
392 PR ld/22135
393 * testsuite/ld-i386/i386.exp: Run pr22135.
394 * testsuite/ld-x86-64/x86-64.exp: Likewise.
395 * testsuite/ld-i386/pr22135.d: New file.
396 * testsuite/ld-i386/pr22135.s: Likewise.
397 * testsuite/ld-x86-64/pr22135.d: Likewise.
398 * testsuite/ld-x86-64/pr22135.s: Likewise.
399
2420fff6
AM
4002017-09-09 Alan Modra <amodra@gmail.com>
401
402 * ld.texinfo (--plt-align): Describe new behaviour of option.
403 * emultempl/ppc64elf.em (params): Default plt_stub_align to 5.
404 * testsuite/ld-powerpc/powerpc.exp: Pass --no-plt-align for
405 selected tests.
406 * testsuite/ld-powerpc/relbrlt.d: Pass --no-plt-align.
407 * testsuite/ld-powerpc/elfv2so.d: Adjust expected output.
408
0a27fed7
L
4092017-09-09 H.J. Lu <hongjiu.lu@intel.com>
410
411 PR ld/22115
412 * ld-i386/i386.exp: Run PR ld/22115 tests,
413 * ld/testsuite/ld-x86-64/x86-64.exp: Likewise.
414 * testsuite/ld-i386/pr22115-1.s: New file.
415 * testsuite/ld-i386/pr22115-1a.d: Likewise.
416 * testsuite/ld-i386/pr22115-1b.d: Likewise.
417 * testsuite/ld-i386/pr22115-1c.d: Likewise.
418 * testsuite/ld-i386/pr22115-1d.d: Likewise.
419 * testsuite/ld-x86-64/pr22115-1.s: Likewise.
420 * testsuite/ld-x86-64/pr22115-1a-x32.d: Likewise.
421 * testsuite/ld-x86-64/pr22115-1a.d: Likewise.
422 * testsuite/ld-x86-64/pr22115-1b-x32.d: Likewise.
423 * testsuite/ld-x86-64/pr22115-1b.d: Likewise.
424 * testsuite/ld-x86-64/pr22115-1c-x32.d: Likewise.
425 * testsuite/ld-x86-64/pr22115-1c.d: Likewise.
426 * testsuite/ld-x86-64/pr22115-1d-x32.d: Likewise.
427 * testsuite/ld-x86-64/pr22115-1d.d: Likewise.
428
78984959
L
4292017-09-06 H.J. Lu <hongjiu.lu@intel.com>
430
431 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
432 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
433 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
434 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
435
dc089072
L
4362017-09-05 H.J. Lu <hongjiu.lu@intel.com>
437
438 * testsuite/ld-x86-64/pr19609-5d.d: Updated.
439 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
440 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
441
8b43e456
L
4422017-09-05 H.J. Lu <hongjiu.lu@intel.com>
443
444 * testsuite/ld-x86-64/pr19609-4e.d: Updated.
445 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
446
0e30d991
L
4472017-09-03 H.J. Lu <hongjiu.lu@intel.com>
448
449 PR ld/22071
450 * testsuite/ld-x86-64/pr22071.d: New file.
451 * testsuite/ld-x86-64/pr22071.s: Likewise.
452 * testsuite/ld-x86-64/x86-64.exp: Run pr22071.
453
1fa4ec6a
AM
4542017-09-02 Alan Modra <amodra@gmail.com>
455
456 * ldlang.h (lang_input_statement_type): Expand comments.
457 (LANG_FOR_EACH_INPUT_STATEMENT): Rewrite without casts.
458 * ldlang.c (lang_for_each_input_file): Likewise.
459 (load_symbols): Set usrdata for archives.
460 (find_rescan_insertion): New function.
461 (lang_process): Trim off and reinsert entries added to file chain
462 when rescanning archives for LTO.
463 * ldmain.c (add_archive_element): Set my_archive input_statement
464 next pointer to last element added.
465
ad71ce8d
L
4662017-09-01 H.J. Lu <hongjiu.lu@intel.com>
467
468 PR ld/22064
469 * testsuite/ld-x86-64/pr22064a.S: New file.
470 * testsuite/ld-x86-64/pr22064b.c: Likewise.
471 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22064 test.
472
96d01d93
AM
4732017-09-02 Alan Modra <amodra@gmail.com>
474
475 * emultempl/msp430.em (eval_upper_either_sections): Make base_sec_name
476 a const char*.
477 (eval_lower_either_sections): Likewise.
478 (msp430_elf_after_allocation): Likewise, and don't needlessly concat
479 and free. Warning fix.
480
e10c9c62
L
4812017-09-01 H.J. Lu <hongjiu.lu@intel.com>
482
483 PR ld/22061
484 * testsuite/ld-i386/ibt-plt-1.d: Updated.
485 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
486 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
487 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
488 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
489 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
490 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
491 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
492 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
493 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
494 * testsuite/ld-i386/ibt-plt-2b.d: Pass --hash-style=sysv to ld
495 and dump unwind information.
496 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
497 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
498 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
499 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
500 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
501 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
502 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
503 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
504 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
505 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
506 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
507
d7de6408
L
5082017-08-31 H.J. Lu <hongjiu.lu@intel.com>
509
510 PR ld/22048
511 * testsuite/ld-x86-64/pr22048.d: New file.
512 * testsuite/ld-x86-64/pr22048a.s: Likewise.
513 * testsuite/ld-x86-64/pr22048b.s: Likewise.
514 * testsuite/ld-x86-64/x86-64.exp: Run pr22048.
515
9866ffe2
AM
5162017-08-31 Alan Modra <amodra@gmail.com>
517
518 * testsuite/ld-elf/eh3.d: Update.
519 * testsuite/ld-elf/eh4.d: Update.
520
5dda3209
MR
5212017-08-30 Maciej W. Rozycki <macro@imgtec.com>
522
523 * testsuite/ld-elf/orphan-11.ld: Also discard `.MIPS.options'
524 sections.
525
70e65ca8
MR
5262017-08-30 Maciej W. Rozycki <macro@imgtec.com>
527
528 * testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: New test.
529 * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: New
530 test.
531 * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d: New
532 test.
533 * testsuite/ld-mips-elf/bal-jalx-local-micromips.d: New test.
534 * testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d: New
535 test.
536 * testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d: New
537 test.
538 * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: New test.
539 * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: New test.
540 * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: New test.
541 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d: New
542 test.
543 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d: New
544 test.
545 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d: New
546 test.
547 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
548
9a23f96e
AM
5492017-08-30 Alan Modra <amodra@gmail.com>
550
551 * testsuite/ld-powerpc/tls.s: Add calls with tls markers.
552 * testsuite/ld-powerpc/tls32.s: Likewise.
553 * testsuite/ld-powerpc/powerpc.exp: Run tls marker tests.
554 * testsuite/ld-powerpc/tls.d: Adjust for TPREL16_HA/LO optimization.
555 * testsuite/ld-powerpc/tlsexe.d: Likewise.
556 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
557 * testsuite/ld-powerpc/tlsld.d: Likewise.
558 * testsuite/ld-powerpc/tlsmark.d: Likewise.
559 * testsuite/ld-powerpc/tlsopt4.d: Likewise.
560 * testsuite/ld-powerpc/tlstoc.d: Likewise.
561
b9f04fe0
AM
5622017-08-30 Alan Modra <amodra@gmail.com>
563
564 * testsuite/ld-powerpc/tls.d: Update.
565 * testsuite/ld-powerpc/tlsexe.d: Update.
566 * testsuite/ld-powerpc/tlsexetoc.d: Update.
567 * testsuite/ld-powerpc/tlsld.d: Update.
568 * testsuite/ld-powerpc/tlsmark.d: Update.
569 * testsuite/ld-powerpc/tlsopt4.d: Update.
570 * testsuite/ld-powerpc/tlstoc.d: Update.
571
c7dffc39
HPN
5722017-08-30 Hans-Peter Nilsson <hp@axis.com>
573
574 * testsuite/ld-cris/dso-pltdis1.d: Run ld with --hash-style=sysv.
575 * testsuite/ld-cris/dso-pltdis2.d,
576 testsuite/ld-cris/dso12-pltdis.d, testsuite/ld-cris/expdyn1.d,
577 testsuite/ld-cris/expdyn5.d, testsuite/ld-cris/expdyn6.d,
578 testsuite/ld-cris/expdyn7.d, testsuite/ld-cris/gotplt1.d,
579 testsuite/ld-cris/gotplt2.d, testsuite/ld-cris/gotplt3.d,
580 testsuite/ld-cris/hiddef1.d, testsuite/ld-cris/libdso-11.d,
581 testsuite/ld-cris/libdso-12.d, testsuite/ld-cris/libdso-12b.d,
582 testsuite/ld-cris/libdso-12c.d, testsuite/ld-cris/libdso-13.d,
583 testsuite/ld-cris/libdso-13b.d, testsuite/ld-cris/libdso-14.d,
584 testsuite/ld-cris/libdso-15.d, testsuite/ld-cris/libdso-15b.d,
585 testsuite/ld-cris/libdso-1b.d, testsuite/ld-cris/libdso-1c.d,
586 testsuite/ld-cris/libdso-1d.d, testsuite/ld-cris/libdso-4.d,
587 testsuite/ld-cris/pr16044.d, testsuite/ld-cris/pv32-1.d,
588 testsuite/ld-cris/tls-dso-dtpoffd2.d,
589 testsuite/ld-cris/tls-dso-dtpoffd4.d,
590 testsuite/ld-cris/tls-dso-tpoffgotcomm1.d,
591 testsuite/ld-cris/tls-dso-x1x2-1.d, testsuite/ld-cris/tls-gc-71.d,
592 testsuite/ld-cris/tls-ie-78.d, testsuite/ld-cris/tls-js1.d,
593 testsuite/ld-cris/tls-ldgdex-14.d,
594 testsuite/ld-cris/tls-ldgdex-15.d,
595 testsuite/ld-cris/tls-legdx-16.d,
596 testsuite/ld-cris/tls-legdx-17.d,
597 testsuite/ld-cris/tls-local-63.d,
598 testsuite/ld-cris/tls-local-64.d, testsuite/ld-cris/tls-ok-30.d,
599 testsuite/ld-cris/tls-ok-32.d, testsuite/ld-cris/tls-ok-34.d,
600 testsuite/ld-cris/tls-und-38.d, testsuite/ld-cris/tls-und-42.d,
601 testsuite/ld-cris/tls-und-46.d, testsuite/ld-cris/tls-und-50.d,
602 testsuite/ld-cris/weakref2.d, testsuite/ld-cris/weakref3.d,
603 testsuite/ld-cris/weakref4.d: Likewise.
604
7ef3addb
JL
6052017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
606
607 * emultempl/msp430.em (change_output_section): New function.
608 (move_prefixed_section): New function.
609 (add_region_prefix): New function.
610 (msp430_elf_after_open): New function.
611 (gld${EMULATION_NAME}_add_options): Implement.
612 (gld${EMULATION_NAME}_list_options): Implement.
613 (gld${EMULATION_NAME}_handle_option): Implement.
614 * ld.texinfo: Document new options.
615 * testsuite/ld-msp430-elf/main-bss-lower.d: New.
616 * testsuite/ld-msp430-elf/main-bss-upper.d: New.
617 * testsuite/ld-msp430-elf/main-const-lower.d: New.
618 * testsuite/ld-msp430-elf/main-const-upper.d: New.
619 * testsuite/ld-msp430-elf/main-text-lower.d: New.
620 * testsuite/ld-msp430-elf/main-text-upper.d: New.
621 * testsuite/ld-msp430-elf/main-var-lower.d: New.
622 * testsuite/ld-msp430-elf/main-var-upper.d: New.
623 * testsuite/ld-msp430-elf/main-with-data-bss-unique-sec.s: New.
624 * testsuite/ld-msp430-elf/main-with-data-bss.s: New.
625 * testsuite/ld-msp430-elf/main-with-text-rodata-unique-sec.s: New.
626 * testsuite/ld-msp430-elf/main-with-text-rodata.s: New.
627 * testsuite/ld-msp430-elf/msp430-elf.exp: New.
628 * testsuite/ld-msp430-elf/msp430-no-lower.ld: New.
629 * testsuite/ld-msp430-elf/msp430.ld: New.
630 * emultempl/msp430.em (data_statement_size): New.
631 (eval_upper_either_sections): New.
632 (eval_lower_either_sections): New.
633 (intermediate_relax_sections): New.
634 (msp430_elf_after_allocation): New.
635 * emultempl/msp430.em (gld${EMULATION_NAME}_place_orphan): Always
636 place sections in the lower region.
637
a5b4ee94
L
6382017-08-26 H.J. Lu <hongjiu.lu@intel.com>
639
640 PR ld/21997
641 * testsuite/ld-i386/i386.exp: Run PR ld/21997 tests.
642 * testsuite/ld-x86-64/x86-64.exp: Likewise.
643 * testsuite/ld-i386/pr21997-1a.S: New file.
644 * testsuite/ld-i386/pr21997-1b.c: Likewise.
645 * testsuite/ld-i386/pr21997-1c.S: Likewise.
646 * testsuite/ld-x86-64/pr21997-1a.S: Likewise.
647 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
648 * testsuite/ld-x86-64/pr21997-1b.c: Likewise.
649 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
650 * testsuite/ld-x86-64/pr21997-1c.c: Likewise.
651
176047c9
L
6522017-08-24 H.J. Lu <hongjiu.lu@intel.com>
653
654 * testsuite/ld-elf/pr21903c.d: Remove '\' before --.
655 * testsuite/ld-elf/pr21903d.d: Likewise.
656 * testsuite/ld-elf/pr21903e.d: Likewise.
657 * testsuite/lib/ld-lib.exp (run_dump_test): Add "--" after
658 regexp.
659
074f6066
L
6602017-08-24 H.J. Lu <hongjiu.lu@intel.com>
661
662 * testsuite/ld-i386/i386.exp (undefined_weak): Replace regexp
663 with string match.
664 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Likewise.
665
28e6a46b
L
6662017-08-24 H.J. Lu <hongjiu.lu@intel.com>
667
668 * testsuite/ld-x86-64/x86-64.exp: Run pr22001-1b on x32.
669
7073b5b9
L
6702017-08-24 H.J. Lu <hongjiu.lu@intel.com>
671
672 PR ld/22001
673 * testsuite/ld-i386/i386.exp: Run -z nocopyreloc tests.
674 * testsuite/ld-x86-64/x86-64.exp: Likewise.
28e6a46b
L
675 * testsuite/ld-i386/pr22001-1a.c: New file.
676 * testsuite/ld-i386/pr22001-1b.c: Likewise.
677 * testsuite/ld-i386/pr22001-1c.S: Likewise.
678 * testsuite/ld-x86-64/pr22001-1a.c: Likewise.
679 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
680 * testsuite/ld-x86-64/pr22001-1b.c: Likewise.
681 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
682 * testsuite/ld-x86-64/pr22001-1c.c: Likewise.
7073b5b9 683
5b5f4e6f
AB
6842017-08-17 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 PR 21961
687 * ldlang.c (lang_discard_section_p): New function.
688 (lang_add_section): Checks moved out into new function, which is
689 now called.
690 (lang_place_orphans): Call lang_discard_section_p instead of
691 duplicating some of the checks from lang_add_section.
692 * testsuite/ld-elf/orphan-11.d: New file.
693 * testsuite/ld-elf/orphan-11.ld: New file.
694 * testsuite/ld-elf/orphan-11.s: New file.
695 * testsuite/ld-elf/orphan-12.d: New file.
696 * testsuite/ld-elf/orphan-12.s: New file.
697
647d4de9
AM
6982017-08-24 Alan Modra <amodra@gmail.com>
699
700 * testsuite/ld-undefined/fundef.s: New test.
701 * testsuite/ld-undefined/undefined.exp: Test that undefined
702 symbols in shared libraries are made dynamic.
703
49263c56
L
7042017-08-23 H.J. Lu <hongjiu.lu@intel.com>
705
706 * testsuite/ld-elf/pr21903c.d: Add '\' before --.
707 * testsuite/ld-elf/pr21903d.d: Likewise.
708 * testsuite/ld-elf/pr21903e.d: Likewise.
709
aab921ad
L
7102017-08-23 H.J. Lu <hongjiu.lu@intel.com>
711
712 * testsuite/ld-x86-64/pie2.d: Updated.
713 * testsuite/ld-x86-64/pr19719.d: Likewise.
714 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
715 * testsuite/ld-x86-64/pr19969.d: Likewise.
716
73784fa5
L
7172017-08-23 H.J. Lu <hongjiu.lu@intel.com>
718
719 * testsuite/ld-i386/i386.exp: Run protected7.
720 * testsuite/ld-i386/protected7.d: New file.
721 * testsuite/ld-i386/protected7.s: Likewise.
722 * testsuite/ld-x86-64/protected8.d: Likewise.
723 * testsuite/ld-x86-64/protected8.s: Likewise.
724 * testsuite/ld-x86-64/x86-64.exp: Run protected8.
725
9d3420f5
AM
7262017-08-23 Alan Modra <amodra@gmail.com>
727
728 * testsuite/ld-gc/pr19161.d: Don't xfail hppa.
729
8dfb7cbf
L
7302017-08-22 H.J. Lu <hongjiu.lu@intel.com>
731 Alan Modra <amodra@gmail.com>
732
733 * testsuite/ld-elf/pr21964-1a.c (foo): Renamed to ...
734 (foo1): This.
735 * testsuite/ld-elf/pr21964-1b.c: Rewrite.
736 * testsuite/ld-elf/pr21964-1c.c: New file.
737 * testsuite/ld-elf/pr21964-2c.c: Likewise.
738 * testsuite/ld-elf/pr21964-2a.c (foo): Renamed to ...
739 (foo1): This.
740 * testsuite/ld-elf/pr21964-2b.c: Rewrite.
741 * testsuite/ld-elf/shared.exp: Update PR ld/21964 tests.
742
487b6440
AM
7432017-08-21 H.J. Lu <hongjiu.lu@intel.com>
744 Alan Modra <amodra@gmail.com>
745
746 PR ld/21964
747 * testsuite/ld-elf/pr21562a.d: Update for changed start/stop symbols.
748 * testsuite/ld-elf/pr21562b.d: Likewise.
749 * testsuite/ld-elf/pr21562c.d: Likewise.
750 * testsuite/ld-elf/pr21562d.d: Likewise.
751 * testsuite/ld-elf/pr21562e.d: Likewise.
752 * testsuite/ld-elf/pr21562f.d: Likewise.
753 * testsuite/ld-elf/pr21562g.d: Likewise.
754 * testsuite/ld-elf/pr21562h.d: Likewise.
755 * testsuite/ld-elf/pr21562i.d: Likewise.
756 * testsuite/ld-elf/pr21562j.d: Likewise.
757 * testsuite/ld-elf/pr21562k.d: Likewise.
758 * testsuite/ld-elf/pr21562l.d: Likewise.
759 * testsuite/ld-elf/pr21562m.d: Likewise.
760 * testsuite/ld-elf/pr21562n.d: Likewise.
761 * testsuite/ld-elf/sizeofa.d: Likewise.
762 * testsuite/ld-elf/sizeofb.d: Likewise.
763 * testsuite/ld-elf/startofa.d: Likewise.
764 * testsuite/ld-elf/startofb.d: Likewise.
765 * testsuite/ld-gc/pr20022.d: Likewise.
766 * testsuite/ld-gc/start.d: Likewise.
767 * testsuite/ld-elf/pr21964-1a.c: New file.
768 * testsuite/ld-elf/pr21964-1b.c: New file.
769 * testsuite/ld-elf/pr21964-2a.c: New file.
770 * testsuite/ld-elf/pr21964-2b.c: New file.
771 * testsuite/ld-elf/shared.exp: Run PR ld/21964 tests.
772
284d826d
HPN
7732017-08-21 Hans-Peter Nilsson <hp@bitrange.com>
774
775 PR ld/20125
776 * testsuite/ld-mmix/pr20125.d, testsuite/ld-mmix/pr20125.s: New
777 test.
778
7f3d21db
L
7792017-08-20 A. Wilcox <awilfox@adelielinux.org>
780
781 PR ld/21976
782 * testsuite/ld-x86-64/plt-main-bnd.dd: Accept '_' in symbol
783 name.
784
12601963
NC
7852017-08-17 Nick Clifton <nickc@redhat.com>
786
787 * po/pt_BR.po: New Brazilian Portuguese translation.
788 * configure.ac (ALL_LINGUAS): Add pt_BR.
789 * configure: Regenerate.
790
79a94a2a
AM
7912017-08-14 Alan Modra <amodra@gmail.com>
792
793 PR 21441
794 * testsuite/ld-x86-64/pr21038a.d: Adjust.
795 * testsuite/ld-x86-64/pr21038a-now.d: Adjust.
796
34c4758c
L
7972017-08-13 H.J. Lu <hongjiu.lu@intel.com>
798
799 * testsuite/ld-i386/i386.exp: Run pr21884-nacl.
800 * testsuite/ld-x86-64/x86-64.exp: Likewise.
801 * testsuite/ld-i386/pr21884.d: Don't run on nacl targets.
802 * testsuite/ld-x86-64/pr21884.d: Likewise.
803 * testsuite/ld-i386/pr21884.t: Revert the last change.
804 * testsuite/ld-x86-64/pr21884.t: Likewise.
805 * testsuite/ld-i386/pr21884-nacl.d: New file.
806 * testsuite/ld-i386/pr21884-nacl.t: Likewise.
807 * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
808 * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
809
6d545e31
AM
8102017-08-13 Alan Modra <amodra@gmail.com>
811
812 * testsuite/ld-i386/pr21884.t: Remove unneeded format, arch and entry.
813 * testsuite/ld-x86-64/pr21884.t: Likewise.
814
93ab9c0d
NC
8152017-08-11 Nick Clifton <nickc@redhat.com>
816
817 * emultempl/elf32.em (handle_option): Accept the -z globalaudit
818 command line option.
819 * lexsup.c (elf_static_list_options): Add -z globalaudit.
820 * ld.texinfo: Document the support for the new command line
821 option.
822 * NEWS: Mention the new feature.
823 * testsuite/ld-elf/audit.exp: Add a test of the -z globalaudit
824 command line option.
825 * testsuite/ld-elf/globalaudit.rd: New file: Expected output from
826 readelf.
827
9593aade
L
8282017-08-11 H.J. Lu <hongjiu.lu@intel.com>
829
830 PR ld/21884
831 * testsuite/ld-i386/i386.exp: Run pr21884.
832 * testsuite/ld-x86-64/x86-64.exp: Likewise.
833 * testsuite/ld-i386/pr21884.d: New file.
834 * testsuite/ld-i386/pr21884.t: Likewise.
835 * testsuite/ld-x86-64/pr21884.d: Likewise.
836 * testsuite/ld-x86-64/pr21884.t: Likewise.
837
ca6f2be7
NC
8382017-08-10 Nick Clifton <nickc@redhat.com>
839
840 * scripttempl/pep.sc: Enclose __CTOR_LIST__, ___CTOR_LIST__,
841 __DTOR_LIST__ and ___DTOR_LIST__ in PROVIDE statements so that
842 they can be overrridden by crt input files.
843 * scripttempl/pe.sc: Likewise.
844
7ed1dab9
L
8452017-08-09 H.J. Lu <hongjiu.lu@intel.com>
846
847 * testsuite/config/default.exp (LD_CLASS): Check .libs/ld-new
848 for linker first.
849
978c0540
L
8502017-08-09 H.J. Lu <hongjiu.lu@intel.com>
851
852 * testsuite/config/default.exp (LD_CLASS): New. Set to "64bit"
853 for 64-bit ELF linker.
854 * testsuite/ld-x86-64/pr17618.d (#notarget): Removed.
855 * testsuite/ld-x86-64/x86-64.exp: Run pr17618 only for 64-bit
856 linker.
857
25d28c91
L
8582017-08-08 H.J. Lu <hongjiu.lu@intel.com>
859
860 PR ld/21924
861 * testsuite/ld-i386/i386.exp: Require GCC 5 or above for
862 "weakundef1 with PIE" test.
863 * testsuite/ld-x86-64/tls.exp: Require GCC 5 or above for
864 "tlsdesc1" and "tlsdesc1 with PIE" tests.
865
9165f454
L
8662017-08-08 H.J. Lu <hongjiu.lu@intel.com>
867
868 * configure.ac (TESTBFDLIB): Add a ',' after -Wl,--rpath.
869 * configure: Regenerated.
870
fe22cbc4
L
8712017-08-08 H.J. Lu <hongjiu.lu@intel.com>
872
873 PR ld/21923
874 * configure.ac (TESTBFDLIB): Replace --rpath with -Wl,--rpath
875 for --disable-static.
876 * configure: Regenerated.
877
2760f24c
RG
8782017-08-08 Romain Geissler <romain.geissler@gmail.com>
879 Alan Modra <amodra@gmail.com>
880
881 * configure.ac: Add --enable-default-hash-style option.
882 * ldmain.c (main): Set link_info.emit_hash to DEFAULT_EMIT_SYSV_HASH.
883 Set link_info.emit_gnu_hash to DEFAULT_EMIT_GNU_HASH.
884 * configure: Regenerate.
885 * config.in: Regenerate.
886
8f5e83fb
AM
8872017-08-08 Alan Modra <amodra@gmail.com>
888
889 * testsuite/ld-aarch64/ifunc-1-local.d: Run ld with --hash-style=sysv.
890 * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
891 * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
892 * testsuite/ld-frv/fdpic-pie-1.d: Likewise.
893 * testsuite/ld-frv/fdpic-pie-2.d: Likewise.
894 * testsuite/ld-frv/fdpic-pie-7.d: Likewise.
895 * testsuite/ld-frv/fdpic-pie-8.d: Likewise.
896 * testsuite/ld-arm/arm-elf.exp: Add --hash-style=sysv to "Using
897 Thumb lib by another lib" test's ld options.
898 * testsuite/ld-elf/note-3.l: Match .gnu.hash.
899 * testsuite/ld-elf/note-3.t: Add .gnu.hash output section.
900
2980ccad
L
9012017-08-07 H.J. Lu <hongjiu.lu@intel.com>
902
903 * testsuite/ld-elf/pr21903.s (start): Removed.
904 (_start): Likewise.
905 (__start): Likewise.
906 (main): Likewise.
907 (bar): New.
908
bab55c05
AM
9092017-08-07 Alan Modra <amodra@gmail.com>
910
911 * testsuite/ld-alpha/alpha.exp: Add --hash-style=sysv to various
912 test's ld options.
913 * testsuite/ld-arm/arm-elf.exp: Likewise.
914 * testsuite/ld-elf/elf.exp: Likewise.
915 * testsuite/ld-elf/readelf.exp: Likewise.
916 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
917 * testsuite/ld-i386/i386.exp: Likewise.
918 * testsuite/ld-ia64/ia64.exp: Likewise.
919 * testsuite/ld-m68k/m68k.exp: Likewise.
920 * testsuite/ld-metag/metag.exp: Likewise.
921 * testsuite/ld-powerpc/powerpc.exp: Likewise.
922 * testsuite/ld-s390/s390.exp: Likewise.
923 * testsuite/ld-sh/sh-vxworks.exp: Likewise.
924 * testsuite/ld-shared/shared.exp: Likewise.
925 * testsuite/ld-sparc/sparc.exp: Likewise.
926 * testsuite/ld-tic6x/tic6x.exp: Likewise.
927 * testsuite/ld-vax-elf/vax-elf.exp: Likewise.
928 * testsuite/ld-x86-64/mpx.exp: Likewise.
929 * testsuite/ld-x86-64/x86-64.exp: Likewise.
930 * testsuite/ld-xtensa/xtensa.exp: Likewise.
931
932 * testsuite/ld-elf/comm-data2.ld: Add .gnu.hash output section.
933 * testsuite/ld-elf/pr20828-v.ld: Likewise.
934 * testsuite/ld-elf/pr20828.ld: Likewise.
935 * testsuite/ld-elf/pr21233.ld: Likewise.
936 * testsuite/ld-elf/pr21384.ld: Likewise.
937 * testsuite/ld-elf/provide-hidden-1.ld: Likewise.
938 * testsuite/ld-elf/provide-hidden-2.ld: Likewise.
939 * testsuite/ld-elf/provide-hidden-s.ld: Likewise.
940 * testsuite/ld-scripts/cross1.t: Likewise.
941
942 * testsuite/ld-elf/stab.d: Adjust allowed section indices.
943
944 * testsuite/ld-i386/pie1.d: Don't match addresses.
945 * testsuite/ld-i386/plt-pic2.dd: Likewise.
946 * testsuite/ld-i386/pr19636-1d.d: Likewise.
947 * testsuite/ld-i386/pr19636-2c.d: Likewise.
948 * testsuite/ld-powerpc/elfv2so.d: Likewise.
949 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
950 * testsuite/ld-powerpc/tlsopt5.wf: Likewise.
951 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
952
953 * testsuite/ld-i386/pr19636-2b.d: Don't match _start.
954
955 * testsuite/ld-powerpc/ambiguousv1.d: Relax symbol count, index
956 and address match.
957 * testsuite/ld-powerpc/ambiguousv1b.d: Likewise.
958 * testsuite/ld-powerpc/ambiguousv2.d: Likewise.
959 * testsuite/ld-powerpc/ambiguousv2b.d: Likewise.
960
961 * testsuite/ld-aarch64/gc-plt-relocs.d: Run ld with --hash-style=sysv.
962 * testsuite/ld-aarch64/ifunc-1.d: Likewise.
963 * testsuite/ld-aarch64/ifunc-2.d: Likewise.
964 * testsuite/ld-aarch64/ifunc-21.d: Likewise.
965 * testsuite/ld-aarch64/relasz.d: Likewise.
966 * testsuite/ld-aarch64/tls-small-ld.d: Likewise.
967 * testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
968 * testsuite/ld-arc/tls_gd-01.d: Likewise.
969 * testsuite/ld-cris/libdso-10.d: Likewise.
970 * testsuite/ld-cris/libdso-2.d: Likewise.
971 * testsuite/ld-cris/pic-gc-72.d: Likewise.
972 * testsuite/ld-cris/pic-gc-73.d: Likewise.
973 * testsuite/ld-cris/tls-gd-1.d: Likewise.
974 * testsuite/ld-cris/tls-gd-1h.d: Likewise.
975 * testsuite/ld-cris/tls-gd-2.d: Likewise.
976 * testsuite/ld-cris/tls-gd-2h.d: Likewise.
977 * testsuite/ld-cris/tls-ie-10.d: Likewise.
978 * testsuite/ld-cris/tls-ie-11.d: Likewise.
979 * testsuite/ld-cris/tls-ie-8.d: Likewise.
980 * testsuite/ld-cris/tls-ie-9.d: Likewise.
981 * testsuite/ld-cris/tls-ld-4.d: Likewise.
982 * testsuite/ld-cris/tls-ld-5.d: Likewise.
983 * testsuite/ld-cris/tls-ld-6.d: Likewise.
984 * testsuite/ld-cris/tls-ld-7.d: Likewise.
985 * testsuite/ld-cris/tls-ldgd-14.d: Likewise.
986 * testsuite/ld-cris/tls-ldgd-15.d: Likewise.
987 * testsuite/ld-cris/tls-ldgdx-14.d: Likewise.
988 * testsuite/ld-cris/tls-ldgdx-15.d: Likewise.
989 * testsuite/ld-cris/tls-local-54.d: Likewise.
990 * testsuite/ld-cris/tls-local-60.d: Likewise.
991 * testsuite/ld-cris/tls-local-61.d: Likewise.
992 * testsuite/ld-cris/weakhiddso.d: Likewise.
993 * testsuite/ld-elf/linkinfo1a.d: Likewise.
994 * testsuite/ld-elf/linkinfo1b.d: Likewise.
995 * testsuite/ld-elf/pr19617a.d: Likewise.
996 * testsuite/ld-elfvsb/hidden2.d: Likewise.
997 * testsuite/ld-frv/fdpic-pie-6.d: Likewise.
998 * testsuite/ld-frv/fdpic-shared-2.d: Likewise.
999 * testsuite/ld-frv/fdpic-shared-5.d: Likewise.
1000 * testsuite/ld-frv/fdpic-shared-6.d: Likewise.
1001 * testsuite/ld-frv/fdpic-shared-8.d: Likewise.
1002 * testsuite/ld-frv/fdpic-shared-local-2.d: Likewise.
1003 * testsuite/ld-frv/fdpic-shared-local-8.d: Likewise.
1004 * testsuite/ld-frv/tls-dynamic-2.d: Likewise.
1005 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1006 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1007 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1008 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1009 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1010 * testsuite/ld-i386/pr20830.d: Likewise.
1011 * testsuite/ld-ia64/merge1.d: Likewise.
1012 * testsuite/ld-ia64/merge2.d: Likewise.
1013 * testsuite/ld-ia64/merge3.d: Likewise.
1014 * testsuite/ld-ia64/merge4.d: Likewise.
1015 * testsuite/ld-ia64/merge5.d: Likewise.
1016 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Likewise.
1017 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
1018 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1019 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1020 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1021 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
1022 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1023 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
1024 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
1025 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1026 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1027 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1028 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1029 * testsuite/ld-m68k/got-1.d: Likewise.
1030 * testsuite/ld-m68k/got-multigot-12-13-14-34-35-ok.d: Likewise.
1031 * testsuite/ld-m68k/got-multigot-14-ok.d: Likewise.
1032 * testsuite/ld-m68k/got-multigot-15-er.d: Likewise.
1033 * testsuite/ld-m68k/got-negative-12-13-14-34-ok.d: Likewise.
1034 * testsuite/ld-m68k/got-negative-12-13-14-35-er.d: Likewise.
1035 * testsuite/ld-m68k/got-negative-14-ok.d: Likewise.
1036 * testsuite/ld-m68k/got-negative-15-er.d: Likewise.
1037 * testsuite/ld-m68k/got-single-12-ok.d: Likewise.
1038 * testsuite/ld-m68k/got-single-13-er.d: Likewise.
1039 * testsuite/ld-m68k/got-xgot-12-13-14-15-34-35-ok.d: Likewise.
1040 * testsuite/ld-m68k/got-xgot-15-ok.d: Likewise.
1041 * testsuite/ld-m68k/tls-gd-1.d: Likewise.
1042 * testsuite/ld-m68k/tls-gd-2.d: Likewise.
1043 * testsuite/ld-m68k/tls-gd-ie-1.d: Likewise.
1044 * testsuite/ld-m68k/tls-ie-1.d: Likewise.
1045 * testsuite/ld-m68k/tls-ld-1.d: Likewise.
1046 * testsuite/ld-m68k/tls-ld-2.d: Likewise.
1047 * testsuite/ld-sh/shared-2.d: Likewise.
1048 * testsuite/ld-sh/tlsbin-2.d: Likewise.
1049 * testsuite/ld-sh/tlspic-2.d: Likewise.
1050 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1051 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1052 * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
1053 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1054 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1055 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1056 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1057 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1058 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1059 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1060 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1061 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1062 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1063 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1064 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1065 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1066 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1067 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
1068 * testsuite/ld-x86-64/ilp32-4.d: Likewise.
1069 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
1070 * testsuite/ld-x86-64/load1c.d: Likewise.
1071 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
1072 * testsuite/ld-x86-64/load1d.d: Likewise.
1073 * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
1074 * testsuite/ld-x86-64/pie3.d: Likewise.
1075 * testsuite/ld-x86-64/pr14207.d: Likewise.
1076 * testsuite/ld-x86-64/pr19162.d: Likewise.
1077 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
1078 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
1079 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1080 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
1081 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
1082 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
1083 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
1084 * testsuite/ld-x86-64/pr20830a.d: Likewise.
1085 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
1086 * testsuite/ld-x86-64/pr20830b.d: Likewise.
1087 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
1088 * testsuite/ld-x86-64/pr21038a.d: Likewise.
1089 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1090 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1091 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1092 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1093
a4819f54
L
10942017-08-06 H.J. Lu <hongjiu.lu@intel.com>
1095
1096 PR ld/21903:
1097 * ld.h (command_line): Remove inhibit_common_definition.
1098 * ldgram.y: Replace command_line.inhibit_common_definition with
1099 link_info.inhibit_common_definition.
1100 * ldlang.c (lang_common): Likewise.
1101 * lexsup.c (parse_args): Likewise.
1102 * ldmain.c (main): Only allow --no-define-common with -shared.
1103 * testsuite/ld-elf/pr21903.s: New file.
1104 * testsuite/ld-elf/pr21903a.d: Likewise.
1105 * testsuite/ld-elf/pr21903b.d: Likewise.
1106 * testsuite/ld-elf/pr21903c.d: Likewise.
1107 * testsuite/ld-elf/pr21903d.d: Likewise.
1108 * testsuite/ld-elf/pr21903e.d: Likewise.
1109
55ef6584
AM
11102017-08-05 Alan Modra <amodra@gmail.com>
1111
1112 * testsuite/ld-unique/pr21529.d: Don't xfail hppa.
1113
9f06dab1
L
11142017-08-04 H.J. Lu <hongjiu.lu@intel.com>
1115
1116 PR ld/21904
1117 * testsuite/ld-elf/pr21904.d: New file.
1118 * testsuite/ld-elf/pr21904.s: Likewise.
1119
fd9770d8
NC
11202017-08-03 Nick Clifton <nickc@redhat.com>
1121
1122 PR ld/21884
1123 * testsuite/ld-elf/pr21884.d: Add AVR, HPPA, IA64, M68HC1x and
1124 SCORE to list of targets not supporting file format changes during
1125 linking.
1126 * testsuite/ld-unique/pr21529.d: Likewise.
1127 * emultempl/avrelf.em (_before_allocation): Skip for non-ELF
1128 output formats.
1129 (avr_elf_create_output_section_statements): Fail if the output
1130 format is not ELF.
1131 (avr_finish): Do not access the ELF header in non-ELF format
1132 output bfds.
1133 * emultempl/m68hc1xelf.em (_before_allocation): Skip for non-ELF
1134 output formats.
1135 (m68hc11elf_create_output_section_statements): Fail if the putput
1136 format is not ELF.
1137 (m68hc11elf_after_allocation): Skip for non-ELF output formats.
1138
2e9246e0
AM
11392017-08-03 Alan Modra <amodra@gmail.com>
1140
1141 PR ld/21884
1142 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Revert
1143 last change. Rename iself to elfinput. Expand comments. Condition
1144 ELF checks on having both input and output ELF files. Extract..
1145 (elf_orphan_compatible): ..this new function.
1146
db99ecc0
L
11472017-08-02 H.J. Lu <hongjiu.lu@intel.com>
1148
1149 PR ld/21884
1150 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check
1151 ELF section header only for ELF output.
1152 * testsuite/ld-elf/pr21884.d: New test.
1153 * testsuite/ld-elf/pr21884.t: Likewise.
1154 * testsuite/ld-elf/pr21884a.s: Likewise.
1155 * testsuite/ld-elf/pr21884b.s: Likewise.
1156
b8f4abd3
L
11572017-08-02 H.J. Lu <hongjiu.lu@intel.com>
1158
1159 * emultempl/elf32.em (_place_orphan): Revert the last change.
1160
73d5923e
MF
11612017-08-02 Max Filippov <jcmvbkbc@gmail.com>
1162
1163 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
1164 Only check for by_name sorting.
1165
ddff3d84
NC
11662017-08-02 Nick Clifton <nickc@redhat.com>
1167
1168 PR 21884
1169 * emultempl/elf32.em (_place_orphan): Skip non-ELF binaries when
1170 looking for sections to merge.
1171
d44c746a
AM
11722017-07-31 Alan Modra <amodra@gmail.com>
1173
1174 * ld.texinfo (plt-localentry): Revise.
1175
8b5f1ed8
AM
11762017-07-29 Alan Modra <amodra@gmail.com>
1177
1178 * ld.texinfo (plt-localentry): Document.
1179
2b94abd4
AB
11802017-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * ldgram.y (ldgram_had_keep): Make static.
1183 (ldgram_vers_current_lang): Likewise.
1184 (filename_spec): New rule.
1185 (input_section_spec_no_keep): Use filename_spec.
1186 (wildcard_maybe_exclude): New rule.
1187 (wildcard_spec): Rename to...
1188 (section_name_spec): ...this.
1189 (section_NAME_list): Rename to...
1190 (section_name_list): ...this.
1191 (section_name_spec): Simplifiy and use wildcard_maybe_exclude.
1192 * ldlang.c (placed_commons): Delete.
1193 (lang_add_wild): No longer set placed_commons.
1194 (print_wild_statement): Use full names for SORT specifiers.
1195 * testsuite/ld-scripts/align.exp: Run new tests.
1196 * testsuite/ld-scripts/align3.d: New file.
1197 * testsuite/ld-scripts/align3.t: New file.
1198 * testsuite/ld-scripts/align4.d: New file.
1199 * testsuite/ld-scripts/align4.t: New file.
1200 * testsuite/ld-scripts/align5.d: New file.
1201 * testsuite/ld-scripts/align5.t: New file.
1202 * testsuite/ld-scripts/exclude-file-5.d: New file.
1203 * testsuite/ld-scripts/exclude-file-5.map: New file.
1204 * testsuite/ld-scripts/exclude-file-5.t: New file.
1205 * testsuite/ld-scripts/exclude-file-6.d: New file.
1206 * testsuite/ld-scripts/exclude-file-6.map: New file.
1207 * testsuite/ld-scripts/exclude-file-6.t: New file.
1208 * NEWS: Mention the changes.
1209
f726cc1c
GJL
12102017-07-27 Georg-Johann Lay <gjl@gcc.gnu.org>
1211
1212 PR ld/21849
1213 * scripttempl/avr.sc: Split .progmemx.* from .progmem.* and locate
1214 former at a higher address.
1215
d4aaa2a0
AM
12162017-07-25 Alan Modra <amodra@gmail.com>
1217
1218 * testsuite/ld-powerpc/tlsopt5.s: Add cfi.
1219 * testsuite/ld-powerpc/tlsopt5.d: Update.
1220 * testsuite/ld-powerpc/tlsopt5.wf: New file.
1221 * testsuite/ld-powerpc/powerpc.exp: Perform new tlsopt5 test.
1222
645b2800 12232017-07-24 Claudiu Zissulescu <claziss@synopsys.com>
1224
1225 * testsuite/ld-arc/jli-overflow.d: Force testing for little
1226 endian.
1227 * testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian
1228 systems.
1229 * testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems.
1230
62a5222f
MR
12312017-07-19 Maciej W. Rozycki <macro@imgtec.com>
1232
1233 * testsuite/ld-scripts/fill.d: Adjust `xfail' entries. Add
1234 `notarget' entries. Update comments.
1235 * testsuite/ld-scripts/fill16.d: New test.
1236 * testsuite/ld-scripts/fill16_0.s: New test source.
1237 * testsuite/ld-scripts/fill16_1.s: New test source.
1238 * testsuite/ld-scripts/fill16_2.s: New test source.
1239 * testsuite/ld-scripts/data.exp: Run the new test.
1240
684d5a10
JEM
12412017-07-19 Claudiu Zissulescu <claziss@synopsys.com>
1242 John Eric Martin <John.Martin@emmicro-us.com>
1243
1244 * emulparams/arcelf.sh (JLI_START_TABLE): Define.
1245 * scripttempl/elfarc.sc: Handle jlitab section.
1246 * scripttempl/elfarcv2.sc: Likewise.
1247 * testsuite/ld-arc/arc.exp: Add JLI test.
1248 * testsuite/ld-arc/jli-script.ld: New file.
1249 * testsuite/ld-arc/jli-simple.dd: Likewise.
1250 * testsuite/ld-arc/jli-simple.rd: Likewise.
1251 * testsuite/ld-arc/jli-simple.s: Likewise.
1252 * testsuite/ld-arc/jli-overflow.s: Likewise.
1253 * testsuite/ld-arc/jli-overflow.d: Likewise.
1254 * testsuite/ld-arc/jli-overflow.err: Likewise.
1255
e4943f2c
TG
12562017-07-19 Tristan Gingold <gingold@adacore.com>
1257
1258 * ldmain.c (main): Remove display of data size.
1259
927960f0
MR
12602017-07-18 Maciej W. Rozycki <macro@imgtec.com>
1261
2018ef80 1262 PR ld/16656
927960f0
MR
1263 * testsuite/ld-elf/binutils.exp (binutils_test): Make the
1264 expectation for `.got' in GNU_RELRO segment target-specific.
1265 Handle `.got.plt' separately.
1266
9a0f1d50
MR
12672017-07-18 Maciej W. Rozycki <macro@imgtec.com>
1268
2018ef80 1269 PR ld/16656
9a0f1d50
MR
1270 * testsuite/ld-elf/binutils.exp (binutils_test): Make the
1271 expectation for `.dynamic' in GNU_RELRO segment target-specific.
1272
de194d85
YC
12732017-07-18 Nick Clifton <nickc@redhat.com>
1274
1275 PR 21775
1276 * ld.texinfo: Fix spelling typos.
1277 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1278
89d249d2
L
12792017-07-17 H.J. Lu <hongjiu.lu@intel.com>
1280
1281 * testsuite/ld-i386/i386.exp: Run pie1 and pie1-nacl.
1282 * testsuite/ld-i386/pie1-nacl.d: New file.
1283 * testsuite/ld-i386/pie1.d: Likewise.
1284 * testsuite/ld-i386/pie1.s: Likewise.
1285
8e85f840
L
12862017-07-17 H.J. Lu <hongjiu.lu@intel.com>
1287
1288 PR ld/21782
1289 * testsuite/ld-x86-64/pie3-nacl.d: New file.
1290 * testsuite/ld-x86-64/pie3.d: Likewise.
1291 * testsuite/ld-x86-64/pie3.s: Likewise.
1292 * testsuite/ld-x86-64/x86-64.exp: Run pie3 and pie3-nacl.
1293
86038de0
AM
12942017-07-14 Alan Modra <amodra@gmail.com>
1295
1296 * testsuite/ld-powerpc/powerpc.exp: Add -shared to tlsop5 tests.
1297 * testsuite/ld-powerpc/tlsopt5.d: Adjust.
1298 * testsuite/ld-powerpc/tlsopt1_32.s: Use r30 as GOT pointer.
1299 * testsuite/ld-powerpc/tlsopt2_32.s: Likewise.
1300 * testsuite/ld-powerpc/tlsopt3_32.s: Likewise.
1301 * testsuite/ld-powerpc/tlsopt4_32.s: Likewise.
1302 * testsuite/ld-powerpc/tlsopt5_32.s: Rewrite.
1303 * testsuite/ld-powerpc/tlsopt1_32.d: Adjust.
1304 * testsuite/ld-powerpc/tlsopt2_32.d: Adjust.
1305 * testsuite/ld-powerpc/tlsopt3_32.d: Adjust.
1306 * testsuite/ld-powerpc/tlsopt5_32.d: Adjust.
1307
211b0bed
MR
13082016-07-14 Maciej W. Rozycki <macro@imgtec.com>
1309
1310 * testsuite/ld-unique/pr21529.ld: New test linker script.
1311 * testsuite/ld-unique/pr21529.d: Use it.
1312
429d795d
AM
13132017-07-12 Alan Modra <amodra@gmail.com>
1314
1315 * po/bg.po: Update from translationproject.org/latest/ld/.
1316 * po/da.po: Likewise.
1317 * po/es.po: Likewise.
1318 * po/fi.po: Likewise.
1319 * po/fr.po: Likewise.
1320 * po/id.po: Likewise.
1321 * po/it.po: Likewise.
1322 * po/ja.po: Likewise.
1323 * po/tr.po: Likewise.
1324 * po/uk.po: Likewise.
1325 * po/vi.po: Likewise.
1326 * po/zh_CN.po: Likewise.
1327 * po/zh_TW.po: Likewise.
1328 * po/de.po: New file from translationproject.org.
1329 * po/ru.po: Likewise.
1330 * configure.ac (ALL_LINGUAS): Add de, ru. Sort.
1331 * configure: Regenerate.
1332
2fe40b67
AM
13332017-07-12 Alan Modra <amodra@gmail.com>
1334
1335 * testsuite/ld-scripts/align.exp: Exclude powerpc*-*-aix*.
1336 * testsuite/ld-scripts/assign-loc.d: Likewise.
1337 * testsuite/ld-scripts/defined3.d: Likewise.
1338 * testsuite/ld-scripts/defined4.d: Likewise.
1339 * testsuite/ld-scripts/defined5.d: Likewise.
1340 * testsuite/ld-scripts/expr2.d: Likewise.
1341 * testsuite/ld-scripts/provide.exp: Likewise.
1342 * testsuite/ld-scripts/sane1.d: Likewise.
1343 * testsuite/ld-scripts/size.exp: Likewise.
1344 * testsuite/ld-scripts/defined2.d: Don't xfail rs6000-*-aix*.
1345
d42c267e
AM
13462017-07-12 Alan Modra <amodra@gmail.com>
1347
1348 * testsuite/ld-arc/nps-1b.err: Update.
1349 * testsuite/ld-x86-64/ilp32-11.d: Update.
1350
61a0857c
L
13512017-07-11 H.J. Lu <hongjiu.lu@intel.com>
1352
1353 * testsuite/ld-selective/selective.exp: Support single digit
1354 GCC version.
1355
70391b29
JW
13562017-07-11 Jiong Wang <jiong.wang@arm.com>
1357
1358 * testsuite/ld-aarch64/dt_textrel.d: Use "#pass" instead of ".*" to
1359 filter out remaining lines.
1360
e54cb31a
MR
13612017-07-07 Maciej W. Rozycki <macro@imgtec.com>
1362
1363 * emultempl/mipself.em (mips_before_allocation): Avoid ELF
1364 processing if not MIPS ELF.
1365 * testsuite/ld-mips-elf/binary.d: New test.
1366 * testsuite/ld-mips-elf/binary.ld: New test linker script.
1367 * testsuite/ld-mips-elf/binary.s: New test source.
1368 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1369
c620a2b5
AM
13702017-07-07 Alan Modra <amodra@gmail.com>
1371
1372 * testsuite/ld-powerpc/ppc476-shared.lnk: Align .bss.
1373 * testsuite/ld-powerpc/ppc476-shared.d: Adjust.
1374 * testsuite/ld-powerpc/ppc476-shared2.d: Adjust.
1375
aff6079b
AM
13762017-07-07 Alan Modra <amodra@gmail.com>
1377
1378 * Makefile.am (eelf64_s390.c): Depend on emultempl/s390.em.
1379
0d702cfe
TG
13802017-07-04 Tristan Gingold <gingold@adacore.com>
1381
1382 * configure: Regenerate.
1383
55a09eb6
TG
13842017-07-04 Tristan Gingold <gingold@adacore.com>
1385
1386 * NEWS: Add marker for 2.29.
1387
15e6ed8c
TG
13882017-07-03 Tristan Gingold <gingold@adacore.com>
1389
1390 * po/ld.pot: Regenerate.
1391
9f00292e
MR
13922017-06-30 Maciej W. Rozycki <macro@imgtec.com>
1393
1394 * testsuite/ld-mips-elf/relax-offset.dd: New test.
1395 * testsuite/ld-mips-elf/relax-offset.gd: New test.
1396 * testsuite/ld-mips-elf/relax-offset-umips.dd: New test.
1397 * testsuite/ld-mips-elf/relax-offset-umips.gd: New test.
1398 * testsuite/ld-mips-elf/relax-offset.ld: New test linker script.
1399 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1400 (prune_warnings): New temporary procedure.
1401
819e1f86
MR
14022017-06-28 Maciej W. Rozycki <macro@imgtec.com>
1403
1404 * testsuite/ld-mips-elf/mips-elf-flags.exp: Add interAptiv MR2
1405 tests.
1406
68063779
SKS
14072017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1408
1409 PR ld/13402
1410 * testsuite/ld-avr/pr13402.d: New test.
1411 * testsuite/ld-avr/pr13402.s: New test.
1412
7575e6a7
MR
14132017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1414
1415 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1416 Add an `args' final argument and examination code for `readelf
1417 -A' output. Update procedure description accordingly.
1418
1284e99a
MR
14192017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1420
1421 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1422 Use `remote_exec' to call `readelf'. Log the command issued.
1423
b1a2d7a0
MR
14242017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1425
1426 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1427 Use `readelf -h' rather than `readelf --headers'.
1428
b417536f
MR
14292017-06-26 Maciej W. Rozycki <macro@imgtec.com>
1430
1431 * testsuite/ld-mips-elf/lsi-4010-isa.d: New test.
1432 * ld/testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1433
515a4464
MR
14342017-06-26 Maciej W. Rozycki <macro@imgtec.com>
1435
1436 * testsuite/ld-elf/sizeofa.d: Also accept the OBJECT type for
1437 the symbols examined.
1438 * testsuite/ld-elf/sizeofc.d: Likewise.
1439 * testsuite/ld-elf/startofa.d: Likewise.
1440 * testsuite/ld-elf/startofc.d: Likewise.
1441
57963c05
AM
14422017-06-26 Alan Modra <amodra@gmail.com>
1443
1444 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Skip
1445 --just-syms bfds when looking for a place to attach .note.gnu.build-id
1446 and .eh_frame_hdr sections. Delete dead code.
1447
bff0500d
TP
14482017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
1449
1450 * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 11): New test.
1451 (EABI attribute merging 12): Likewise.
1452 * testsuite/ld-arm/attr-merge-11a.s: New file.
1453 * testsuite/ld-arm/attr-merge-11b.s: New file.
1454 * testsuite/ld-arm/attr-merge-11.attr: New file.
1455 * testsuite/ld-arm/attr-merge-12a.s: New file.
1456 * testsuite/ld-arm/attr-merge-12b.s: New file.
1457 * testsuite/ld-arm/attr-merge-12.attr: New file.
1458
00564418
L
14592017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 * testsuite/ld-i386/i386.exp: Run weakundef1 tests.
1462 * testsuite/ld-i386/weakundef1.c: New file.
1463
922109c7
L
14642017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1465
1466 PR ld/21090
1467 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Pass
1468 $NOPIE_CFLAGS if non-PIE is required.
1469
9d1c54ed
L
14702017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1471
1472 PR ld/21090
329b5ba1
L
1473 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
1474 $NOPIE_LDFLAGS to "Run pr19031".
1475
14762017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1477
1478 PR ld/21090
1479 * testsuite/ld-gc/gc.exp: Compile tmpdir/pr14265.o with
9d1c54ed
L
1480 $NOPIE_CFLAGS.
1481 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
1482 $NOPIE_LDFLAGS if non-PIE is required.
1483 * testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New.
1484 (NOPIE_LDFLAGS): Likewise.
1485 Pass $NOPIE_LDFLAGS if non-PIE is required.
1486 * testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with
1487 $NOPIE_CFLAGS.
1488
48580982
L
14892017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1490
1491 * NEWS: Mention -z shstk and GNU_PROPERTY_X86_FEATURE_1_SHSTK.
1492 * emulparams/cet.sh (PARSE_AND_LIST_OPTIONS_CET): Add "-z shstk".
1493 (PARSE_AND_LIST_ARGS_CASE_Z_CET): Support "-z shstk".
1494 * ld.texinfo: Document -z shstk.
1495 * testsuite/ld-i386/i386.exp: Run SHSTK tests.
1496 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1497 * testsuite/ld-i386/property-x86-shstk.s: New file.
1498 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
1499 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
1500 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
1501 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
1502 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
1503 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
1504 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
1505 * testsuite/ld-x86-64/property-x86-shstk.s: Likewise.
1506 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
1507 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
1508 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
1509 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
1510 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
1511 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
1512 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
1513 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
1514 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
1515 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
1516 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
1517 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
1518 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
1519 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
1520
ee2fdd6f
L
15212017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1522
1523 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emulparams/cet.sh.
1524 * Makefile.in: Regenerated.
1525 * NEWS: Mention GNU_PROPERTY_X86_FEATURE_1_IBT, -z ibtplt
1526 and -z ibt.
1527 * emulparams/cet.sh: New file.
1528 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1529 * testsuite/ld-i386/ibt-plt-1.s: Likewise.
1530 * testsuite/ld-i386/ibt-plt-2.s: Likewise.
1531 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1532 * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
1533 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1534 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
1535 * testsuite/ld-i386/ibt-plt-3.s: Likewise.
1536 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1537 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
1538 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1539 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
1540 * testsuite/ld-i386/plt-main-ibt.dd: Likewise.
1541 * testsuite/ld-i386/plt-pie-ibt.dd: Likewise.
1542 * testsuite/ld-i386/property-x86-empty.s: Likewise.
1543 * testsuite/ld-i386/property-x86-ibt.s: Likewise.
1544 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
1545 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
1546 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
1547 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
1548 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
1549 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
1550 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
1551 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1552 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1553 * testsuite/ld-x86-64/ibt-plt-1.s: Likewise.
1554 * testsuite/ld-x86-64/ibt-plt-2.s: Likewise.
1555 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1556 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1557 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
1558 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
1559 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1560 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1561 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
1562 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
1563 * testsuite/ld-x86-64/ibt-plt-3.s: Likewise.
1564 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1565 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1566 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
1567 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
1568 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1569 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1570 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
1571 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
1572 * testsuite/ld-x86-64/plt-main-ibt-now.rd: Likewise.
1573 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Likewise.
1574 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
1575 * testsuite/ld-x86-64/property-x86-empty.s: Likewise.
1576 * testsuite/ld-x86-64/property-x86-ibt.s: Likewise.
1577 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
1578 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
1579 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
1580 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
1581 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
1582 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
1583 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
1584 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
1585 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
1586 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
1587 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
1588 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
1589 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
1590 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
1591 * emulparams/elf32_x86_64.sh: Source emulparams/cet.sh.
1592 (TINY_READONLY_SECTION): Add .plt.sec.
1593 * emulparams/elf_i386.sh: Likewise.
1594 * emulparams/elf_x86_64.sh: Source emulparams/cet.sh.
1595 * ld.texinfo: Document -z ibtplt and -z ibt.
1596 * testsuite/ld-i386/i386.exp: Run IBT and IBT PLT tests.
1597 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1598 * testsuite/ld-x86-64/pr21481b.S (check): Updated for x32.
1599
6b737370
L
16002017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1601
1602 PR ld/21090
1603 * testsuite/ld-elf/shared.exp: Pass $NOPIE_CFLAGS and
1604 $NOPIE_LDFLAGS if non-PIE is required.
1605
e5c89b09
L
16062017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1607
1608 PR ld/21090
1609 * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS
1610 to CC.
1611
68193357
L
16122017-06-21 H.J. Lu <hongjiu.lu@intel.com>
1613
1614 PR ld/21090
1615 * testsuite/ld-size/size.exp: Pass $NOPIE_LDFLAGS to size-4a,
1616 size-4b, size-5a, size-5b, size-6 and size-8 tests.
127d08c0
L
1617 * testsuite/ld-srec/srec.exp (NOPIE_CFLAGS): New.
1618 (NOPIE_LDFLAGS): Likewise.
1619 (CC): Add $NOPIE_CFLAGS $NOPIE_LDFLAGS.
1620 (CXX): Likewise.
1621 * testsuite/ld-x86-64/no-plt.exp (NOPIE_CFLAGS): New.
1622 (NOPIE_LDFLAGS): Likewise.
1623 Pass $NOPIE_LDFLAGS to "No PLT (dynamic 1a)",
1624 "No PLT (dynamic 1c)" and "Run pr20253-2f".
1625 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to
1626 "Build gotpcrel1" and "Run pr19031".
68193357 1627
81209eff
AM
16282017-06-21 Alan Modra <amodra@gmail.com>
1629
1630 * testsuite/ld-powerpc/powerpc.exp: Run TOCSAVE tests.
1631 * testsuite/ld-powerpc/tocsave1.s,
1632 * testsuite/ld-powerpc/tocsave1a.d,
1633 * testsuite/ld-powerpc/tocsave1s.d,
1634 * testsuite/ld-powerpc/tocsave2.s,
1635 * testsuite/ld-powerpc/tocsave2a.d,
1636 * testsuite/ld-powerpc/tocsave2s.d,
1637 * testsuite/ld-powerpc/tocsavelib.s: New files.
1638
fd52715c
AK
16392017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1640
1641 * Makefile.in: Add s390.em as build dependency.
1642 * emulparams/elf64_s390.sh (EXTRA_EM_FILE): Add s390.em.
1643 * emultempl/s390.em: New file.
1644 * gen-doc.texi: Add documentation for --s390-pgste option.
1645 * ld.texinfo: Likewise.
1646
abfa390d
L
16472017-06-19 H.J. Lu <hongjiu.lu@intel.com>
1648
1649 PR ld/21626
1650 * testsuite/ld-i386/i386.exp: Run ld/21626 tests.
1651 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1652
bdd32e03
AM
16532017-06-18 Alan Modra <amodra@gmail.com>
1654
1655 * testsuite/lib/ld-lib.exp (is_underscore_target): New.
1656 * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE.
1657 * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined,
1658 reference sym with prefix.
1659 * testsuite/ld-elf/pr21562b.s: Likewise.
1660 * testsuite/ld-elf/sizeof.s: Likewise.
1661 * testsuite/ld-elf/startof.s: Likewise.
1662 * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols.
1663 * testsuite/ld-elf/pr21562a.d: Remove underscore target from
1664 xfails, and match prefixed symbol.
1665 * testsuite/ld-elf/pr21562b.d: Likewise.
1666 * testsuite/ld-elf/pr21562c.d: Likewise.
1667 * testsuite/ld-elf/pr21562d.d: Likewise.
1668 * testsuite/ld-elf/pr21562e.d: Likewise.
1669 * testsuite/ld-elf/pr21562f.d: Likewise.
1670 * testsuite/ld-elf/pr21562g.d: Likewise.
1671 * testsuite/ld-elf/pr21562h.d: Likewise.
1672 * testsuite/ld-elf/pr21562i.d: Likewise.
1673 * testsuite/ld-elf/pr21562j.d: Likewise.
1674 * testsuite/ld-elf/pr21562k.d: Likewise.
1675 * testsuite/ld-elf/pr21562l.d: Likewise.
1676 * testsuite/ld-elf/pr21562m.d: Likewise.
1677 * testsuite/ld-elf/pr21562n.d: Likewise.
1678 * testsuite/ld-elf/sizeofa.d: Likewise.
1679 * testsuite/ld-elf/sizeofb.d: Likewise.
1680 * testsuite/ld-elf/sizeofc.d: Likewise.
1681 * testsuite/ld-elf/startofa.d: Likewise.
1682 * testsuite/ld-elf/startofb.d: Likewise.
1683 * testsuite/ld-elf/startofc.d: Likewise.
1684
7dba9362
AM
16852017-06-16 Alan Modra <amodra@gmail.com>
1686
1687 PR ld/20022
1688 PR ld/21557
1689 PR ld/21562
1690 PR ld/21571
1691 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't set
1692 __start/__stop syms here.
1693 * ldlang.c (lang_set_startof): Delete.
1694 (start_stop_syms, start_stop_count, start_stop_alloc): New vars.
1695 (lang_define_start_stop, lang_init_start_stop, foreach_start_stop,
1696 undef_start_stop, lang_undef_start_stop, lang_init_startof_sizeof,
1697 set_start_stop, lang_finalize_start_stop): New functions.
1698 (lang_process): Call _start_stop functions.
1699 * testsuite/ld-elf/pr21562a.d: Use xfail rather than notarget.
1700 Correct typos and list of xfail targets.
1701 * testsuite/ld-elf/pr21562b.d: Likewise.
1702 * testsuite/ld-elf/pr21562c.d: Likewise.
1703 * testsuite/ld-elf/pr21562d.d: Likewise.
1704 * testsuite/ld-elf/pr21562e.d: Likewise.
1705 * testsuite/ld-elf/pr21562f.d: Likewise.
1706 * testsuite/ld-elf/pr21562g.d: Likewise.
1707 * testsuite/ld-elf/pr21562h.d: Likewise.
1708 * testsuite/ld-elf/pr21562i.d: Likewise.
1709 * testsuite/ld-elf/pr21562j.d: Likewise.
1710 * testsuite/ld-elf/pr21562k.d: Likewise.
1711 * testsuite/ld-elf/pr21562l.d: Likewise.
1712 * testsuite/ld-elf/pr21562m.d: Likewise.
1713 * testsuite/ld-elf/pr21562n.d: Likewise.
1714 * testsuite/ld-elf/sizeofa.d: Likewise. Adjust to pass for generic ELF.
1715 * testsuite/ld-elf/sizeofb.d: Likewise.
1716 * testsuite/ld-elf/startofa.d: Likewise.
1717 * testsuite/ld-elf/startofb.d: Likewise.
1718
d68f1976
JW
17192017-06-16 Jiong Wang <jiong.wang@arm.com>
1720
1721 * testsuite/ld-aarch64/aarch64-elf.exp: Update test name
1722 * testsuite/ld-aarch64/pcrel.s: Add new testcases.
1723 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Update the expected
1724 warnings.
1725 * testsuite/ld-aarch64/pcrel_pic_defined_local.d: Rename ...
1726 * testsuite/ld-aarch64/pcrel_pic_defined.d: ... to this.
1727 Update expected warnings.
1728
75e06f97
L
17292017-06-15 H.J. Lu <hongjiu.lu@intel.com>
1730
1731 * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
1732 instead of "-z stacksize=SIZE".
1733
6353d82b
JW
17342017-06-15 Jiong Wang <jiong.wang@arm.com>
1735
1736 * testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
1737 * testsuite/ld-aarch64/copy-reloc-2.d: New test.
1738 * testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source file.
1739 * testsuite/ld-aarch64/copy-reloc-eliminate.d: New test.
1740 * testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects.
1741 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
1742
ae87f7e7
NC
17432017-06-14 Nick Clifton <nickc@redhat.com>
1744
1745 PR binutils/21580
1746 * testsuite/ld-nds32/diff.d: Adjust expected output.
1747
99031baf
L
17482017-06-14 H.J. Lu <hongjiu.lu@intel.com>
1749
1750 PR ld/20022
1751 * testsuite/ld-gc/pr20022.d: Skip on targets without dynamic
1752 relocations in .text section.
1753
8eca1095
L
17542017-06-14 H.J. Lu <hongjiu.lu@intel.com>
1755
1756 * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
1757 in in symbol name or without --gc-sections.
1758 * testsuite/ld-elf/pr21562b.d: Likewise.
1759 * testsuite/ld-elf/pr21562c.d: Likewise.
1760 * testsuite/ld-elf/pr21562d.d: Likewise.
1761 * testsuite/ld-elf/pr21562i.d: Likewise.
1762 * testsuite/ld-elf/pr21562j.d: Likewise.
1763 * testsuite/ld-elf/pr21562k.d: Likewise.
1764 * testsuite/ld-elf/pr21562l.d: Likewise.
1765 * testsuite/ld-elf/pr21562m.d: Likewise.
1766 * testsuite/ld-elf/pr21562n.d: Likewise.
1767 * testsuite/ld-elf/pr21562e.d: Skip on targets with leading char
1768 in symbol name.
1769 * testsuite/ld-elf/pr21562f.d: Likewise.
1770 * testsuite/ld-elf/pr21562g.d: Likewise.
1771 * testsuite/ld-elf/pr21562h.d: Likewise.
1772
f78d1b3a
L
17732017-06-14 H.J. Lu <hongjiu.lu@intel.com>
1774
1775 * testsuite/ld-gc/pr20022a.s: Add size to bar.
1776
b6947a7f
L
17772017-06-14 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
1780 in symbol name.
1781 * testsuite/ld-elf/sizeofb.d: Likewise.
1782 * testsuite/ld-elf/startofa.d: Likewise.
1783 * testsuite/ld-elf/startofb.d: Likewise.
1784
4c0b797e
GJL
17852017-06-14 Georg-Johann Lay <gjl@gcc.gnu.org>
1786
1787 PR ld/21583
1788 * scripttempl/avr.sc (.jumptables): Move down in text section.
1789 (.hightext): New in text.
1790
319c2dbe
SH
17912017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1792
1793 * configure.tgt (epiphany-*-elf): Accept epiphany-*-*.
1794
b27685f2
L
17952017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1796
1797 * ldlang.c (lang_set_startof): Skip if config.build_constructors
1798 is FALSE.
1799 * testsuite/ld-elf/sizeofc.d: New file.
1800 * testsuite/ld-elf/startofc.d: Likewise.
1801
da614360
L
18022017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1803
1804 * testsuite/ld-elf/sizeof.d: Renamed to ...
1805 * testsuite/ld-elf/sizeofa.d: This. Updated.
1806 * testsuite/ld-elf/startof.d: Renamed to ...
1807 * testsuite/ld-elf/startofa.d: This. Updated.
1808 * testsuite/ld-elf/sizeofb.d: New file.
1809 * testsuite/ld-elf/startofb.d: Likewise.
1810
cbd0eecf
L
18112017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1812
1813 PR ld/20022
1814 PR ld/21557
1815 PR ld/21562
1816 PR ld/21571
1817 * ld.texinfo: Update __start_SECNAME/__stop_SECNAME symbols.
1818 * ldlang.c (lang_insert_orphan): Move handling of __start_SECNAME
1819 and __stop_SECNAME symbols to ...
1820 (lang_set_startof): Here. Also define __start_SECNAME and
1821 __stop_SECNAME for -Ur.
1822 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Mark
1823 referenced __start_SECNAME and __stop_SECNAME symbols as hidden
1824 and set start_stop for garbage collection.
1825 * testsuite/ld-elf/pr21562a.d: New file.
1826 * testsuite/ld-elf/pr21562a.s: Likewise.
1827 * testsuite/ld-elf/pr21562a.t: Likewise.
1828 * testsuite/ld-elf/pr21562b.d: Likewise.
1829 * testsuite/ld-elf/pr21562b.s: Likewise.
1830 * testsuite/ld-elf/pr21562b.t: Likewise.
1831 * testsuite/ld-elf/pr21562c.d: Likewise.
1832 * testsuite/ld-elf/pr21562c.t: Likewise.
1833 * testsuite/ld-elf/pr21562d.d: Likewise.
1834 * testsuite/ld-elf/pr21562d.t: Likewise.
1835 * testsuite/ld-elf/pr21562e.d: Likewise.
1836 * testsuite/ld-elf/pr21562f.d: Likewise.
1837 * testsuite/ld-elf/pr21562g.d: Likewise.
1838 * testsuite/ld-elf/pr21562h.d: Likewise.
1839 * testsuite/ld-elf/pr21562i.d: Likewise.
1840 * testsuite/ld-elf/pr21562j.d: Likewise.
1841 * testsuite/ld-elf/pr21562k.d: Likewise.
1842 * testsuite/ld-elf/pr21562l.d: Likewise.
1843 * testsuite/ld-elf/pr21562m.d: Likewise.
1844 * testsuite/ld-elf/pr21562n.d: Likewise.
1845 * testsuite/ld-gc/pr20022.d: Likewise.
1846 * testsuite/ld-gc/pr20022a.s: Likewise.
1847 * testsuite/ld-gc/pr20022b.s: Likewise.
1848 * testsuite/ld-gc/gc.exp: Run PR ld/20022 tests.
1849 * testsuite/ld-gc/pr19161.d: Also accept local __start_SECNAME
1850 symbol.
1851 * testsuite/ld-gc/start.d: Likewise.
1852 * testsuite/ld-x86-64/lea1a.d: Updated.
1853 * testsuite/ld-x86-64/lea1b.d: Updated.
1854 * testsuite/ld-x86-64/lea1d.d: Updated.
1855 * testsuite/ld-x86-64/lea1e.d: Likewise.
1856
dc74becf
L
18572017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1858
1859 * testsuite/ld-elf/sizeof.d: New file.
1860 * testsuite/ld-elf/sizeof.s: Likewise.
1861 * testsuite/ld-elf/startof.d: Likewise.
1862 * testsuite/ld-elf/startof.s: Likewise.
1863
8569cfa7
RL
18642017-06-13 Renlin Li <renlin.li@arm.com>
1865
1866 * testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker
1867 option to rdynamic-1 and dynamic-1 tests.
1868
654f3b6a
L
18692017-06-09 H.J. Lu <hongjiu.lu@intel.com>
1870
1871 * testsuite/ld-x86-64/property-x86-3-x32.d: New file.
1872 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
1873 * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise.
1874 * testsuite/ld-x86-64/property-x86-3.d: Also pass
1875 -defsym __64_bit__=1 to asssembler.
1876 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
1877 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
1878 * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if
1879 __64_bit__ isn't defined.
1880 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
1881 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
1882 * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32,
1883 property-x86-4a-x32 and property-x86-4b-x32.
1884
a0abe743
CM
18852017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1886
1887 * testsuite/ld-arc/tls_ie-01.d: Changed expected result.
1888
51fa2693
L
18892017-06-08 H.J. Lu <hongjiu.lu@intel.com>
1890
1891 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Pass
1892 "-Map tmpdir/ifunc-1-local-x86.map" to ld and check
1893 ifunc-1-local-x86.map.
1894 * testsuite/ld-ifunc/ifunc-1-x86.d: Pass
1895 "-Map tmpdir/ifunc-1-x86.map" to ld and check ifunc-1-x86.map.
1896 * testsuite/ld-ifunc/ifunc-1-local-x86.map: New file.
1897 * testsuite/ld-ifunc/ifunc-1-x86.map: Likewise.
1898
4936f235
AM
18992017-06-07 Alan Modra <amodra@gmail.com>
1900
1901 * testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
1902 nds32, and score. Match any output.
1903
670b1a13
AB
19042017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * ld.h (struct args_type): Fix typo in comment.
1907
7bdf4127
AB
19082017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * ld.h (struct args_type): Add force_group_allocation field.
1911 * ldgram.y: Add support for FORCE_GROUP_ALLOCATION.
1912 * ldlex.h: Likewise.
1913 * ldlex.l: Likewise.
1914 * lexsup.c: Likewise.
1915 * ldlang.c (unique_section_p): Check resolve_section_groups flag
1916 not the relaxable link flag.
1917 (lang_add_section): Discard section groups when we're resolving
1918 groups. Clear the SEC_LINK_ONCE flag if we're resolving section
1919 groups.
1920 * ldmain.c (main): Initialise resolve_section_groups flag in
1921 link_info based on command line flags.
1922 * testsuite/ld-elf/group11.d: New file.
1923 * testsuite/ld-elf/group12.d: New file.
1924 * testsuite/ld-elf/group12.ld: New file.
1925 * NEWS: Mention new features.
1926 * ld.texinfo (Options): Document --force-group-allocation.
1927 (Miscellaneous Commands): Document FORCE_GROUP_ALLOCATION.
1928
d9409498
L
19292017-06-05 H.J. Lu <hongjiu.lu@intel.com>
1930
1931 PR ld/21529
1932 * testsuite/ld-unique/pr21529.d: New file.
1933 * testsuite/ld-unique/pr21529.s: Likewise.
1934 * testsuite/ld-unique/unique.exp: Run *.d.
1935
91001320
AM
19362017-06-05 Alan Modra <amodra@gmail.com>
1937
1938 * ldmain.c (main): Correct setting of link_indo.new_dtags.
1939 * testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
1940 * testsuite/ld-elf/now-4.d: Likewise.
1941 * testsuite/ld-elf/rpath-1.d: Likewise.
1942 * testsuite/ld-elf/rpath-2.d: Likewise.
1943
6734f10a
SB
19442017-06-05 Slava Barinov <v.barinov@samsung.com>
1945
1946 * configure.ac: Add --enable-new-dtags option.
91001320
AM
1947 * ldmain.c (main): Set link_info.new_dtags to 1 if when
1948 --enable-new-dtags is switched on.
6734f10a
SB
1949 * configure: Regenerate.
1950 * config.in: Regenerate.
1951
4a4a4a27
L
19522017-06-02 H.J. Lu <hongjiu.lu@intel.com>
1953
1954 * emulparams/call_nop.sh: Remove -z prefix-nop.
1955 * ld.texinfo: Likewise.
1956 * testsuite/ld-i386/call3c.d: Check for linker error.
1957 * testsuite/ld-x86-64/call1c.d: Likewise.
1958
f378ab09
AM
19592017-06-01 Alan Modra <amodra@gmail.com>
1960
1961 * emultempl/ppc64elf.em (params): Init plt_localentry0 field.
1962 (enum ppc64_opt): New, replacing OPTION_* defines. Add
1963 OPTION_PLT_LOCALENTRY, and OPTION_NO_PLT_LOCALENTRY.
1964 (PARSE_AND_LIST_*): Support --plt-localentry and --no-plt-localentry.
1965 * testsuite/ld-powerpc/elfv2so.d: Update.
1966 * testsuite/ld-powerpc/powerpc.exp (TLS opt 5): Use --no-plt-localentry.
1967 * testsuite/ld-powerpc/tlsopt5.d: Update.
1968
ab12fca3
AM
19692017-05-31 Alan Modra <amodra@gmail.com>
1970
1971 * emultempl/ppc64elf.em (plt-static-chain help): Fix quoting.
1972
9a6465c2
JW
19732017-05-22 Jiong Wang <jiong.wang@arm.com>
1974
1975 * configure.tgt: Set "targ_emul" to "aarch64linux32b" for
1976 aarch64_be-*-linux-gnu_ilp32. Set "targ_emul" to "aarch64linux32" for
1977 aarch64-*-linux-gnu_ilp32.
1978
92f7d783
L
19792017-05-19 H.J. Lu <hongjiu.lu@intel.com>
1980
1981 * testsuite/ld-i386/i386.exp: Run property-x86-4a and
1982 property-x86-4b.
1983 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1984 * testsuite/ld-i386/property-x86-4a.d: New file.
1985 * testsuite/ld-i386/property-x86-4a.s: Likewise.
1986 * testsuite/ld-i386/property-x86-4b.d: Likewise.
1987 * testsuite/ld-i386/property-x86-4b.s: Likewise.
1988 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
1989 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
1990 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
1991 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
1992
f4203b2b
JL
19932017-05-19 Georg-Johann Lay <avr@gjlay.de>
1994
1995 PR ld/21472
1996 * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
1997 * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]:
1998 Use RODATA_PM_OFFSET as default if not already defined.
1999 (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
2000 (.rodata) [RODATA_PM_OFFSET]: Put at an offset of
2001 __RODATA_PM_OFFSET__.
2002
3aa2d05a
NC
20032017-05-18 Nick Clifton <nickc@redhat.com>
2004
2005 PR ld/21251
2006 * ldfile.c (ldfile_add_library_path): If the path starts with
2007 $SYSROOT then use the sysroot as the real prefix.
2008 * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
2009 way as =.
2010 * ldlex.l: Add $SYSROOT as allow prefix for a filename.
2011 * ld.texinfo (-L): Document that $SYSROOT acts like = when
2012 prefixing a library search path.
2013 (INPUT): Likewise.
2014 * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
2015 tests.
2016
535b785f
AM
20172017-05-18 Alan Modra <amodra@gmail.com>
2018
2019 * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
2020 * emultempl/pe.em: Likewise.
2021 * emultempl/pep.em: Likewise.
9d43118e
AM
2022 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
2023 Don't compare enum against TRUE.
535b785f 2024
087ea222
AM
20252017-05-18 Alan Modra <amodra@gmail.com>
2026
2027 PR ld/20882
2028 * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
2029 Allow for 16-bit address targets and match expected data fully.
2030 * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
2031 * testsuite/ld-gc/pr20882b.s: Likewise.
2032 * testsuite/ld-gc/pr20882c.s: Likewise.
2033
b7c871ed
L
20342017-05-17 H.J. Lu <hongjiu.lu@intel.com>
2035
2036 PR ld/20882
2037 * testsuite/ld-gc/gc.exp: Run pr20882.
2038 * testsuite/ld-gc/pr20882.d: New file.
2039 * testsuite/ld-gc/pr20882a.s: Likewise.
2040 * testsuite/ld-gc/pr20882b.s: Likewise.
2041 * testsuite/ld-gc/pr20882c.s: Likewise.
2042
0a7d3889
L
20432017-05-16 H.J. Lu <hongjiu.lu@intel.com>
2044
2045 PR ld/21481
2046 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
2047 if IFUNC is supported by run-time.
2048
bc4e12de
AM
20492017-05-16 Alan Modra <amodra@gmail.com>
2050
2051 * plugin.c: Rename occurrences of non_ir_ref.
2052
4070765b
AM
20532017-05-16 Alan Modra <amodra@gmail.com>
2054
2055 * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic.
2056 (plugin_notice): Set non_ir_ref for references from regular
2057 objects, non_ir_ref_dynamic for references from dynamic objects.
2058
b32465c9
MR
20592017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2060
2061 * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: New test.
2062 * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: New test.
2063 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: New test.
2064 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: New test.
2065 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: New test.
2066 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: New test.
2067 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: New test.
2068 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: New test.
2069 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2070
786e3eba
NC
20712017-05-15 Nick Clifton <nickc@redhat.com>
2072
2073 PR ld/21459
2074 * scripttempl/pe.sc: Add .debug_gdb_scripts section.
2075 * scripttempl/pep.sc: Likewise.
2076
73caa85d
L
20772017-05-12 H.J. Lu <hongjiu.lu@intel.com>
2078
2079 * testsuite/ld-i386/i386.exp: Run property-x86-3.
2080 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2081 * testsuite/ld-i386/property-x86-3.d: New file.
2082 * testsuite/ld-i386/property-x86-3.s: Likewise.
2083 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
2084 * testsuite/ld-x86-64/property-x86-3.s: Likewise.
2085
f2c29a16
L
20862017-05-11 H.J. Lu <hongjiu.lu@intel.com>
2087
2088 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Replace
2089 .plt.bnd with .plt.sec.
2090 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2091 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2092 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
2093 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2094 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
2095 * testsuite/ld-x86-64/mpx3.dd: Likewise.
2096 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2097 * testsuite/ld-x86-64/mpx4.dd: Likewise.
2098 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2099 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
2100 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2101 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2102 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2103 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2104
dc2be3d2
L
21052017-05-11 H.J. Lu <hongjiu.lu@intel.com>
2106
2107 * testsuite/ld-i386/plt-pic2.dd: Updated.
2108 * testsuite/ld-i386/plt2.dd: Likewise.
2109 * testsuite/ld-i386/plt2.rd: Likewise.
2110 * testsuite/ld-i386/pr17689now.rd: Likewise.
2111 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
2112 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
2113 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2114 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2115 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2116 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2117 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2118 * testsuite/ld-x86-64/plt2.dd: Likewise.
2119 * testsuite/ld-x86-64/plt2.rd: Likewise.
2120 * testsuite/ld-x86-64/pr17689now.rd: Likewise.
2121 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2122 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2123
5d69120b
L
21242017-05-10 H.J. Lu <hongjiu.lu@intel.com>
2125
2126 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
2127 to yes.
2128 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2129 Likewise.
2130 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
2131
aab82f4c
L
21322017-05-10 H.J. Lu <hongjiu.lu@intel.com>
2133
2134 PR ld/21481
2135 * testsuite/ld-x86-64/pr21481a.c: New file.
2136 * testsuite/ld-x86-64/pr21481b.S: Likewise.
2137 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
2138
53a346d8
CZ
21392017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
2140
2141 * testsuite/ld-arc/attr-merge-0.d: New file.
2142 * testsuite/ld-arc/attr-merge-0.s: Likewise.
2143 * testsuite/ld-arc/attr-merge-0e.s: Likewise.
2144 * testsuite/ld-arc/attr-merge-1.d: Likewise.
2145 * testsuite/ld-arc/attr-merge-1.s: Likewise.
2146 * testsuite/ld-arc/attr-merge-1e.s: Likewise.
2147 * testsuite/ld-arc/attr-merge-2.d: Likewise.
2148 * testsuite/ld-arc/attr-merge-2.s: Likewise.
2149 * testsuite/ld-arc/attr-merge-3.d: Likewise.
2150 * testsuite/ld-arc/attr-merge-3.s: Likewise.
2151 * testsuite/ld-arc/attr-merge-3e.s: Likewise.
2152 * testsuite/ld-arc/attr-merge-4.s: Likewise.
2153 * testsuite/ld-arc/attr-merge-5.d: Likewise.
2154 * testsuite/ld-arc/attr-merge-5a.s: Likewise.
2155 * testsuite/ld-arc/attr-merge-5b.s: Likewise.
2156 * testsuite/ld-arc/attr-merge-conflict-isa.d: Likewise.
2157 * testsuite/ld-arc/attr-merge-err-isa.d: Likewise.
2158 * testsuite/ld-arc/attr-merge-incompatible-cpu.d: Likewise.
2159 * testsuite/ld-arc/got-01.d: Update test.
2160 * testsuite/ld-arc/attr-merge-err-quarkse.d: New file.
2161 * testsuite/ld-arc/attr-quarkse.s: Likewise.
2162 * testsuite/ld-arc/attr-quarkse2.s: Likewise.
2163
a6da4630
A
21642017-05-09 Awson <kyrab@mail.ru>
2165
2166 PR ld/21471
2167 * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
2168
d2732b69
AM
21692017-05-09 Benjamin Peterson <bp@benjamin.pe>
2170
2171 * ld.texinfo (orphan sections): Grammar fix.
2172
38b12349
L
21732017-05-08 H.J. Lu <hongjiu.lu@intel.com>
2174
2175 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: New file.
2176 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
2177 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
2178 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2179 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2180 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2181 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2182 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2183 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2184 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2185 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
2186 * testsuite/ld-x86-64/plt2.dd: Likewise.
2187 * testsuite/ld-x86-64/plt2.rd: Likewise.
2188 * testsuite/ld-x86-64/plt2.s: Likewise.
2189 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
2190 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
2191 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
2192 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2193 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2194 * testsuite/ld-x86-64/load1b-nacl.d: Updated.
2195 * testsuite/ld-x86-64/load1b.d: Likewise.
2196 * testsuite/ld-x86-64/plt-main-bnd.dd: Likewise.
2197 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
2198 * testsuite/ld-x86-64/pr20830a.d: Update the .plt.got section
2199 with func@plt.
2200 * testsuite/ld-x86-64/pr20830b.d: Likewise.
2201 * testsuite/ld-x86-64/pr21038a.d: Likewise.
2202 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2203 * testsuite/ld-x86-64/mpx.exp: Add some -z now tests.
2204 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2205
f604c2a2
L
22062017-05-08 H.J. Lu <hongjiu.lu@intel.com>
2207
2208 * testsuite/ld-i386/i386.exp: Add some -z now tests.
2209 * testsuite/ld-i386/plt-pic2.dd: New file.
2210 * testsuite/ld-i386/plt2.dd: Likewise.
2211 * testsuite/ld-i386/plt2.rd: Likewise.
2212 * testsuite/ld-i386/plt2.s: Likewise.
2213 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
2214 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
2215 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
2216 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2217 * testsuite/ld-i386/pr20830.d: Update the .plt.got section
2218 with func@plt.
2219
046734ff
TP
22202017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
2221
2222 * testsuite/ld-arm/arm-elf.exp
2223 (Secure gateway import library generation): Check e_type field
2224 of import library and executable produced.
2225 * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
2226
b660e9eb
SKS
22272017-04-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2228
2229 PR ld/21404
2230 * testsuite/ld-avr/pr21404-1.d: New test.
2231 * testsuite/ld-avr/pr21404-1.s: New test.
2232 * testsuite/ld-avr/pr21404-2.d: New test.
2233 * testsuite/ld-avr/pr21404-2.s: New test.
2234 * testsuite/ld-avr/pr21404-3.d: New test.
2235 * testsuite/ld-avr/pr21404-3.s: New test.
2236 * testsuite/ld-avr/pr21404-4.d: New test.
2237 * testsuite/ld-avr/pr21404-4.s: New test.
2238 * testsuite/ld-avr/pr21404-5.d: New test.
2239 * testsuite/ld-avr/pr21404-5.s: New test.
2240 * testsuite/ld-avr/pr21404-6.d: New test.
2241 * testsuite/ld-avr/pr21404-6.s: New test.
2242 * testsuite/ld-avr/pr21404-7.d: New test.
2243 * testsuite/ld-avr/pr21404-7.s: New test.
2244 * testsuite/ld-avr/pr21404-8.d: New test.
2245 * testsuite/ld-avr/pr21404-8.s: New test.
2246
8507b6e7
MR
22472017-05-03 Maciej W. Rozycki <macro@imgtec.com>
2248
2249 * testsuite/ld-mips-elf/mips16-pcrel-0.d: New test.
2250 * testsuite/ld-mips-elf/mips16-pcrel-1.d: New test.
2251 * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: New test.
2252 * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: New test.
2253 * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: New test.
2254 * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: New test.
2255 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: New test.
2256 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: New test.
2257 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2258
b2290821
L
22592017-05-03 H.J. Lu <hongjiu.lu@intel.com>
2260
2261 * testsuite/ld-elf/pr21384.d: Adjusted to accommodate
2262 additional dynamic symbols on some targets.
2263
82d808ed
MR
22642017-05-02 Maciej W. Rozycki <macro@imgtec.com>
2265
2266 * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test.
2267 * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test.
2268 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New
2269 test.
2270 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New
2271 test.
2272 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New
2273 test.
2274 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
2275 New test.
2276 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New
2277 test.
2278 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New
2279 test.
2280 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
2281 New test.
2282 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2283
3d850592
L
22842017-05-02 H.J. Lu <hongjiu.lu@intel.com>
2285
2286 * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
2287 "TLS without PLT (1)" and "TLS without PLT (3)".
2288 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
2289 to "TLS without PLT (3)".
2290
640226f0
L
22912017-05-02 H.J. Lu <hongjiu.lu@intel.com>
2292
2293 PR ld/21384
2294 * testsuite/ld-elf/pr21384.d: New file.
2295 * testsuite/ld-elf/pr21384.dl: Likewise.
2296 * testsuite/ld-elf/pr21384.ld: Likewise.
2297 * testsuite/ld-elf/pr21384.s: Likewise.
2298
0aae7e72
L
22992017-05-01 H.J. Lu <hongjiu.lu@intel.com>
2300
2301 * testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
2302 is working GNU2 TLS support.
2303 * testsuite/ld-x86-64/tls.exp: Likewise.
2304 * testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
2305
1670f9c1
L
23062017-04-28 H.J. Lu <hongjiu.lu@intel.com>
2307
2308 * testsuite/config/default.exp (GNU2_CFLAGS): New. Set
2309 to -mtls-dialect=gnu2 if target compiler supports it.
2310 * testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
2311 * testsuite/ld-x86-64/tls.exp: Likewise.
2312 * testsuite/ld-i386/tlsdesc1a.c: New file.
2313 * testsuite/ld-i386/tlsdesc1b.c: Likewise.
2314 * testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
2315 * testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
2316
d6f48aed
L
23172017-04-28 H.J. Lu <hongjiu.lu@intel.com>
2318
2319 * testsuite/ld-elf/shared.exp: Add run-time tests for -z now.
2320 * testsuite/ld-i386/tls.exp: Likewise.
2321 * testsuite/ld-ifunc/ifunc.exp: Likewise.
2322 * testsuite/ld-x86-64/tls.exp: Likewise.
2323
de9a3c42
L
23242017-04-27 H.J. Lu <hongjiu.lu@intel.com>
2325
2326 * testsuite/ld-x86-64/pr21038a.d: Update DW_CFA_nop paddings
2327 in .eh_frame section.
2328 * testsuite/ld-x86-64/pr21038c.d: Update .eh_frame order.
2329
97d343d4
L
23302017-04-26 H.J. Lu <hongjiu.lu@intel.com>
2331
2332 * testsuite/ld-i386/tlsdesc2.d: New test.
2333 * testsuite/ld-x86-64/tlsdesc2.d: Likewise.
2334
23ec1e32
MR
23352017-04-26 Maciej W. Rozycki <macro@imgtec.com>
2336
2337 PR ld/21334
2338 * testsuite/ld-mips-elf/pr21334.dd: New test.
2339 * testsuite/ld-mips-elf/pr21334.gd: New test.
2340 * testsuite/ld-mips-elf/pr21334.ld: New test linker script.
2341 * testsuite/ld-mips-elf/pr21334.s: New test source.
2342 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2343
9e9821dd
L
23442017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2345
2346 * testsuite/ld-x86-64/no-plt.exp: Also check no-plt-1e.nd.
2347 * testsuite/ld-x86-64/no-plt-1e.nd: New file.
2348
e662f84f
L
23492017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2350
2351 * testsuite/ld-i386/pr12570a.d: Skip for nacl targets.
2352 * testsuite/ld-i386/pr12570b.d: Likewise.
2353
1587442d
L
23542017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2355
2356 PR ld/20815
2357 * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
2358
8b353c47
JM
23592017-04-24 Jose E. Marchesi <jose.marchesi@oracle.com>
2360
2361 * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
2362 instead of `rett' in V9.
2363 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
2364 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
2365
e133d005
L
23662017-04-21 H.J. Lu <hongjiu.lu@intel.com>
2367
2368 PR ld/21402
2369 * testsuite/ld-elf/indirect.exp: Don't skip PIE indirect5 and
2370 indirect6 tests on i386.
2371
3c5fce9b
L
23722017-04-21 H.J. Lu <hongjiu.lu@intel.com>
2373
2374 PR ld/19617
2375 PR ld/21086
2376 * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
2377 * testsuite/ld-elf/pr19617b.d: Likewise.
2378 * testsuite/ld-elf/pr19617c.d: Likewise.
2379 *testsuite/ld-i386/pr19636-4d.d: Likewise.
2380 * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
2381 with --export-dynamic.
2382 * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
2383 with -E.
2384
afe9edbf
L
23852017-04-20 H.J. Lu <hongjiu.lu@intel.com>
2386
2387 PR ld/21402
2388 * testsuite/ld-elf/indirect.exp: Pass $NOPIE_LDFLAGS and
2389 $NOPIE_CFLAGS to non-PIE indirect5 and indirect6 tests. Skip
2390 PIE indirect5 and indirect6 tests on i386.
2391
31321c80
MR
23922017-04-20 Maciej W. Rozycki <macro@imgtec.com>
2393
2394 * testsuite/ld-mips-elf/mips-elf.exp: Join `__ehdr_start' tests.
2395
59fa66c5
L
23962017-04-20 H.J. Lu <hongjiu.lu@intel.com>
2397
2398 PR ld/21382
2399 * plugin.c (is_visible_from_outside): Symbol may be visible
2400 from outside if dynamic_ref_after_ir_def is set.
2401 (plugin_notice): Set dynamic_ref_after_ir_def if the symbol is
2402 defined in an IR object and referenced in a dynamic object.
2403 * testsuite/ld-plugin/lto.exp: Run PR ld/21382 tests.
2404 * testsuite/ld-plugin/pr21382a.c: New file.
2405 * testsuite/ld-plugin/pr21382b.c: Likewise.
2406
e492d2f8
L
24072017-04-19 H.J. Lu <hongjiu.lu@intel.com>
2408
2409 PR ld/21401
2410 * testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
2411 -z now.
2412
954b63d4
AM
24132017-04-19 Alan Modra <amodra@gmail.com>
2414
2415 * ld.texinfo (dynamic-undefined-weak): Document.
2416 (nodynamic-undefined-weak): Document that this option now can
2417 be used with shared libs.
2418 * emulparams/dynamic_undefined_weak.sh: Support -z
2419 dynamic-undefined-weak.
2420 * emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
2421 * testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
2422 (undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
2423 and -z nodynamic-undefined-weak tests.
2424 * Makefile.am: Update powerpc dependencies.
2425 * Makefile.in: Regenerate.
2426
e6699019
L
24272017-04-17 H.J. Lu <hongjiu.lu@intel.com>
2428
2429 PR ld/21389
2430 * testsuite/ld-elf/pr21389.map: New file.
2431 * testsuite/ld-elf/pr21389.s: Likewise.
2432 * testsuite/ld-elf/pr21389a.d: Likewise.
2433 * testsuite/ld-elf/pr21389b.d: Likewise.
2434 * testsuite/ld-elf/pr21389c.d: Likewise.
2435
c5d37467
AM
24362017-04-17 Alan Modra <amodra@gmail.com>
2437
2438 * testsuite/ld-elf/indirect5a.c,
2439 * testsuite/ld-elf/indirect5b.c,
2440 * testsuite/ld-elf/indirect5.map,
2441 * testsuite/ld-elf/indirect5.out: New test.
2442 * testsuite/ld-elf/indirect6a.c: Likewise.
2443 * testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
2444 Run new tests and check dynsyms.
2445
fbea1508
AM
24462017-04-11 Alan Modra <amodra@gmail.com>
2447
2448 PR 21274
2449 PR 18466
2450 * emultempl/pe.em (pe_find_data_imports): Don't use fixed size
2451 symbol buffer. Instead, xmalloc max size needed with space for
2452 prefix. Wrap overlong lines. Formatting. Pass symbol buffer
2453 copy of name to pe_walk_relocs_of_symbol.
2454 (make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
2455 * emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
2456 (make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
2457 Use bfd_get_signed_* and remove unnecessary casts. Formatting.
2458 * pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
2459 callback.
2460 (make_import_fixup_mark): Add "name" param. Make use of prefix
2461 space rather than xmalloc here.
2462 (pe_create_import_fixup): Likewise.
2463 * pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
2464 (pe_create_import_fixup): Likewise.
2465 * pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
2466 (pep_create_import_fixup): Likewise.
2467
a70f34c0
NC
24682017-04-10 Nick Clifton <nickc@redhat.com>
2469
2470 * ld.texinfo (--strip-discarded): Document.
2471 (--embedded-relocs): Document.
2472 (--spare-dynamic-tags): Document.
2473 (--task-link): Document.
2474
6f9dbcd4
AM
24752017-04-10 Alan Modra <amodra@gmail.com>
2476
2477 PR 21287
2478 * testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
2479 * testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
2480 section types.
2481 * testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
2482 warnings about "ignoring incorrect section type".
2483 (run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
2484
37095d07
AM
24852017-04-10 Alan Modra <amodra@gmail.com>
2486
2487 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
2488 sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
2489 remote_file host exists rather than file exists.
2490
a7eaf017
L
24912017-04-07 H.J. Lu <hongjiu.lu@intel.com>
2492
2493 PR ld/21090
2494 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
2495 NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
2496 version of the test.
2497
8170f769
L
24982017-04-07 H.J. Lu <hongjiu.lu@intel.com>
2499
2500 PR ld/19579
2501 PR ld/21306
2502 * testsuite/ld-elf/pr19579a.c (main): Updated.
2503
ae3f8c28
NC
25042017-04-07 Nick Clifton <nickc@redhat.com>
2505
2506 PR 21090
2507 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
2508 disable PIE for the non-pie version of the test.
2509
5c1f54ce
AM
25102017-04-07 Alan Modra <amodra@gmail.com>
2511
2512 * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
2513
1fd6d111
TG
25142017-04-07 gingold <gingold@gingold-Precision-7510>
2515
2516 * testsuite/ld-pe/pe.exp: New test.
2517 * testsuite/ld-pe/weakdef-1.s: New test source.
2518 * testsuite/ld-pe/weakdef-1.d: New test.
2519
3944e22b
AM
25202017-04-07 Alan Modra <amodra@gmail.com>
2521
2522 * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
2523 * testsuite/ld-elf/mbind1b.d: Likewise.
2524 * testsuite/ld-elf/mbind1c.d: Likewise.
2525
6ca30fa5
HPN
25262017-04-05 Hans-Peter Nilsson <hp@axis.com>
2527
2528 PR ld/21233
2529 * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
2530 indentation issue introduced with last commit.
2531
4d5efb85
HPN
25322017-04-05 Hans-Peter Nilsson <hp@axis.com>
2533
2534 PR ld/21233
2535 * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
2536 first test for cris*-*-*.
2537
80070c0d
MR
25382017-04-04 Maciej W. Rozycki <macro@imgtec.com>
2539
2540 PR ld/21233
2541 * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
2542 * testsuite/ld-elf/pr21233.sd: New test.
2543 * testsuite/ld-elf/pr21233-l.sd: New test.
2544 * testsuite/ld-elf/pr21233.ld: New test linker script.
2545 * testsuite/ld-elf/pr21233-e.ld: New test linker script.
2546 * testsuite/ld-elf/pr21233.s: New test source.
2547 * testsuite/ld-elf/pr21233-l.s: New test source.
2548 * testsuite/ld-elf/shared.exp: Run the new tests.
2549
a91e1603
L
25502017-04-04 H.J. Lu <hongjiu.lu@intel.com>
2551
2552 * NEWS: Mention support for ELF SHF_GNU_MBIND and
2553 PT_GNU_MBIND_XXX.
2554 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2555 input GNU_MBIND sections with the same type, attributes and
2556 sh_info field into a single output GNU_MBIND section.
2557 * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
2558 * testsuite/ld-elf/mbind1.s: New file.
2559 * testsuite/ld-elf/mbind1a.d: Likewise.
2560 * testsuite/ld-elf/mbind1b.d: Likewise.
2561 * testsuite/ld-elf/mbind1c.d: Likewise.
2562 * testsuite/ld-elf/mbind2a.s: Likewise.
2563 * testsuite/ld-elf/mbind2b.c: Likewise.
2564
46bed679
L
25652017-04-03 H.J. Lu <hongjiu.lu@intel.com>
2566
2514e33e 2567 * NEWS: Mention support for ELF GNU program properties.
46bed679
L
2568 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
2569 ELF setup_gnu_properties.
2570 * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
2571 * testsuite/ld-i386/pass.c: New file.
2572 * testsuite/ld-i386/property-1.r: Likewise.
2573 * testsuite/ld-i386/property-2.r: Likewise.
2574 * testsuite/ld-i386/property-3.r: Likewise.
2575 * testsuite/ld-i386/property-4.r: Likewise.
2576 * testsuite/ld-i386/property-5.r: Likewise.
2577 * testsuite/ld-i386/property-6.r: Likewise.
2578 * testsuite/ld-i386/property-6a.c: Likewise.
2579 * testsuite/ld-i386/property-6b.c: Likewise.
2580 * testsuite/ld-i386/property-6c.S: Likewise.
2581 * testsuite/ld-i386/property-7.r: Likewise.
2582 * testsuite/ld-i386/property-no-copy.S: Likewise.
2583 * testsuite/ld-i386/property-stack.S: Likewise.
2584 * testsuite/ld-i386/property-unsorted-1.S: Likewise.
2585 * testsuite/ld-i386/property-unsorted-2.S: Likewise.
2586 * testsuite/ld-i386/property-x86-1.S: Likewise.
2587 * testsuite/ld-i386/property-x86-2.S: Likewise.
2588 * testsuite/ld-x86-64/pass.c: Likewise.
2589 * testsuite/ld-x86-64/property-1.r: Likewise.
2590 * testsuite/ld-x86-64/property-2.r: Likewise.
2591 * testsuite/ld-x86-64/property-3.r: Likewise.
2592 * testsuite/ld-x86-64/property-4.r: Likewise.
2593 * testsuite/ld-x86-64/property-5.r: Likewise.
2594 * testsuite/ld-x86-64/property-6.r: Likewise.
2595 * testsuite/ld-x86-64/property-6a.c: Likewise.
2596 * testsuite/ld-x86-64/property-6b.c: Likewise.
2597 * testsuite/ld-x86-64/property-6c.S: Likewise.
2598 * testsuite/ld-x86-64/property-7.r: Likewise.
2599 * testsuite/ld-x86-64/property-no-copy.S: Likewise.
2600 * testsuite/ld-x86-64/property-stack.S: Likewise.
2601 * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
2602 * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
2603 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
2604 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
2605 * testsuite/ld-x86-64/x86-64.exp: Run property tests for
2606 Linux/x86-64.
2607
086554e8
HPN
26082017-03-28 Hans-Peter Nilsson <hp@axis.com>
2609
2610 PR ld/16044
2611 * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
2612 testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
2613
4c8798c9
SL
26142017-03-21 Sandra Loosemore <sandra@codesourcery.com>
2615
2616 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
2617 false for nios2-*-elf.
2618
21701718
TG
26192017-03-21 gingold <gingold@gingold-Precision-7510>
2620
2621 * ldlang.c (lang_check_section_addresses): Check only for
2622 allocated sections.
2623
1d3fa25f
AM
26242017-03-17 Alan Modra <amodra@gmail.com>
2625
2626 * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
2627
9494d963
TG
26282017-03-15 Tristan Gingold <gingold@adacore.com>
2629
2630 * testsuite/ld-checks/checks.exp (overflow_check): Disable for
2631 non-elf targets.
2632
9216a6f3
L
26332017-03-14 H.J. Lu <hongjiu.lu@intel.com>
2634
2635 * ldlang.c (lang_check_section_addresses): Use addr_mask to
2636 check VMA and LMA.
2637
f955cccf
NC
26382017-03-13 Nick Clifton <nickc@redhat.com>
2639
2640 PR binutils/21202
2641 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
2642
d40e34db
TG
26432017-03-13 Tristan Gingold <gingold@adacore.com>
2644
2645 * ldlang.c (lang_check_section_addresses): Check for address space
2646 overflow.
2647 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
2648 * testsuite/ld-checks/over.s: New test source.
2649 * testsuite/ld-checks/over.d: New test.
2650 * testsuite/ld-checks/over2.s: New test source.
2651 * testsuite/ld-checks/over2.d: New test.
2652
4b5900d8
AN
26532017-03-13 Alexey Neyman <stilor@att.net>
2654
2655 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
2656 cpu, not host.
2657
118aa6cf
AM
26582017-03-11 Alan Modra <amodra@gmail.com>
2659
2660 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
2661 sysroot for -rpath search.
2662
316a1245
AM
26632017-03-11 Alan Modra <amodra@gmail.com>
2664
2665 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
2666 Only prefix absolute paths with sysroot. Handle DOS paths.
2667 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
2668 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
2669 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
2670 searches. Rename variable. Simplify get_runpath search.
2671
bb4287c5
AM
26722017-03-11 Alan Modra <amodra@gmail.com>
2673
2674 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
2675 than -rdynamic.
2676
e299b355
AM
26772017-03-11 Alan Modra <amodra@gmail.com>
2678
2679 * ld.texinfo (Orphan Sections): Mention that not all targets
2680 handle orphans well.
2681 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
2682 * testsuite/ld-elf/orphan-10.d: Likewise.
2683
14ea2c1b
AB
26842017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * ldlang.c (lang_size_sections_1): Shortcut loop only after
2687 tracking changes to the default regions LMA.
2688 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
2689 * testsuite/ld-elf/orphan-10.d: New file.
2690 * testsuite/ld-elf/orphan-10.s: New file.
2691 * NEWS: Mention change in behaviour.
2692
77f5e65e
AB
26932017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2694
2695 * ldlang.c (lang_leave_output_section_statement): Move lma_region
2696 logic to...
2697 (lang_propagate_lma_regions): ...this new function.
2698 (lang_process): Call new function.
2699 * testsuite/ld-elf/orphan-9.d: New file.
2700 * testsuite/ld-elf/orphan-9.ld: New file.
2701 * testsuite/ld-elf/orphan-9.s: New file.
2702 * NEWS: Mention change in behaviour.
2703
d933941d
AM
27042017-03-07 Alan Modra <amodra@gmail.com>
2705
2706 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
2707 is not an assert before referencing defsym.
2708
2e0ce1c8
AM
27092017-03-05 Alan Modra <amodra@gmail.com>
2710
2711 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
2712 * testsuite/ld-elf/eh6.d: Likewise.
2713 * testsuite/ld-alpha/tlsbin.dd: Likewise.
2714 * testsuite/ld-alpha/tlsbin.td: Likewise.
2715 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
2716 * testsuite/ld-alpha/tlspic.dd: Likewise.
2717 * testsuite/ld-alpha/tlspic.rd: Likewise.
2718 * testsuite/ld-alpha/tlspic.sd: Likewise.
2719 * testsuite/ld-alpha/tlspic.td: Likewise.
2720 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
2721 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
2722 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
2723 * testsuite/ld-x86-64/pr20830a.d: Likewise.
2724 * testsuite/ld-x86-64/pr21038a.d: Likewise.
2725 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2726 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2727
611a3ca9
NC
27282017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
2729
2730 PR 12969
2731 * pe-dll.c (generate_edata): Fail if the input file(s) require too
2732 many ordinals.
2733
199add01
AM
27342017-03-02 Alan Modra <amodra@gmail.com>
2735
2736 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
2737 and dl3.cc.
2738
4ef97a1b
AM
27392017-02-28 Alan Modra <amodra@gmail.com>
2740
2741 * testsuite/ld-elf/merge.d: xfail for nios.
2742
7ba71655
AM
27432017-02-28 Alan Modra <amodra@gmail.com>
2744
2745 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
2746 limits of addpcis range.
2747
0e392101
MR
27482017-02-28 Maciej W. Rozycki <macro@imgtec.com>
2749
2750 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
2751 instructions.
2752 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
2753 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
2754
fbf25dfd
GJL
27552017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
2756
2757 PR target/20849
6734f10a
SB
2758 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
2759 (.rodata): New section.
2760 (.data): Remove .rodata*.
fbf25dfd 2761
dd803a24
AM
27622017-02-25 Alan Modra <amodra@gmail.com>
2763
2764 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
2765 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
2766 defining HPUX where necessary. Define HPUX for implib tests.
2767 * testsuite/ld-elf/comm-data4.d: Run for hpux.
2768 * testsuite/ld-elf/endsym.d: Likewise.
2769 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
2770 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
2771 * testsuite/ld-elf/comm-data5.s: Likewise.
2772 * testsuite/ld-elf/endsym.s: Likewise.
2773 * testsuite/ld-elf/pr14170c.s: Likewise.
2774 * testsuite/ld-elf/symbol3.s: Likewise.
2775 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
2776 in first column.
2777 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
2778 * testsuite/ld-elf/warn3.d: Run for hpux.
2779 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
2780 * testsuite/ld-scripts/rgn-at11.d: Likewise.
2781 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
2782
c9f02c3e
MR
27832017-02-24 Maciej W. Rozycki <macro@imgtec.com>
2784
c72cea5a
MR
2785 * testsuite/ld-elf/ver_def.vd: New test.
2786 * testsuite/ld-elf/ver_def-tic6x.vd: New test.
c9f02c3e
MR
2787 * testsuite/ld-elf/ver_def.ld: New test linker script.
2788 * testsuite/ld-elf/ver_def.ver: New test version script.
2789 * testsuite/ld-elf/ver_def.s: New test source.
2790 * testsuite/ld-elf/readelf.exp: New test script.
2791
5d58c733
MR
27922017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2793
2794 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
2795 option.
2796 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
2797 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
2798 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
2799
c1556ecd
MR
28002017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2801
2802 * testsuite/ld-mips-elf/jalr4.dd: New test.
2803 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
2804
5499c7c7
AM
28052017-02-23 Alan Modra <amodra@gmail.com>
2806
2807 PR 20744
2808 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
2809 each group.
2810 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
2811 and sdarel reloc fix.
2812
902e9fc7
MR
28132017-02-22 Maciej W. Rozycki <macro@imgtec.com>
2814
2815 PR ld/20828
2816 * testsuite/ld-elf/pr20828-d.sd: New test.
2817 * testsuite/ld-elf/pr20828-e.sd: New test.
2818 * testsuite/ld-elf/pr20828-v.od: New test.
2819 * testsuite/ld-elf/pr20828-v.ver: New test version script.
2820 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
2821 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
2822 `.gnu.version_d'.
2823 * testsuite/ld-elf/shared.exp: Run the new tests.
2824
46519784
NC
28252017-02-21 Nick Clifton <nickc@redhat.com>
2826
2827 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
2828 about non-void function returning without a result.
2829
c48cfedd
AM
28302017-02-17 Alan Modra <amodra@gmail.com>
2831
2832 PR 15041
2833 * scripttempl/pe.sc: Don't combine sections for ld -r.
2834 * scripttempl/pep.sc: Likewise.
2835
74dc9032
AM
28362017-02-17 Alan Modra <amodra@gmail.com>
2837
246b9122 2838 PR 21099
74dc9032
AM
2839 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
2840 rather than using OTHER_SECTIONS.
2841 * emulparams/elf32mt.sh: Likewise.
2842 * emulparams/elf32rx.sh: Likewise.
2843 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
2844 define __rl78_abs__.
2845 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
2846 rather than using OTHER_SECTIONS.
2847 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
2848 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
2849 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
2850 * emulparams/shelf_uclinux.sh: Likewise.
2851 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
2852 to define _stack, not OTHER_SECTIONS.
2853 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
2854 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
2855 * scripttempl/arclinux.sc: Likewise.
2856 * scripttempl/elf64hppa.sc: Likewise.
2857 * scripttempl/elfxtensa.sc: Likewise.
2858 * scripttempl/nds32elf.sc: Likewise.
2859 * scripttempl/armbpabi.sc: Move STACK before debug sections.
2860 * scripttempl/elf_chaos.sc: Likewise.
2861 * scripttempl/elfarc.sc: Delete STACK.
2862 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
2863 TINY_BSS_SECTION, and .stack before debug sections.
2864
67cecaba
NC
28652017-02-17 Nick Clifton <nickc@redhat.com>
2866
2867 PR ld/20825
2868 * ld.texinfo (Options): Add missing @item entry for --pop-state.
2869
262a40a5
AM
28702017-02-17 Alan Modra <amodra@gmail.com>
2871
2872 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
2873 multiple definition errors.
2874
002a5d4e
AM
28752017-02-17 Alan Modra <amodra@gmail.com>
2876
2877 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
2878 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
2879
3239a423
AB
28802017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2881
2882 * testsuite/ld-elf/shared.exp: Update expected results.
2883 * testsuite/ld-elf/dwarf2.err: Likewise
2884
90ed9b8b
AB
28852017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
2888 * testsuite/ld-elf/dwarf2.err: New file.
2889 * testsuite/ld-elf/dwarf2a.c: New file.
2890 * testsuite/ld-elf/dwarf2b.c: New file.
2891 * testsuite/ld-elf/dwarf3.c: New file.
2892 * testsuite/ld-elf/dwarf3.err: New file.
2893
2bd7f877
AB
28942017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2895
2896 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
2897 error, warning_output, and error_output actions. Remove separate
2898 warnings parameter.
2899 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
2900 'warning' action.
2901 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
2902
37d7d56c
AM
29032017-02-16 Alan Modra <amodra@gmail.com>
2904
2905 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
2906 from void pointers to function pointers.
2907 * testsuite/ld-elf/pr18718.c: Update to suit.
2908 * testsuite/ld-elf/pr18720a.c: Update to suit.
2909
a8c75b76
AM
29102017-02-16 Alan Modra <amodra@gmail.com>
2911
2912 PR 21000
2913 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
2914 * testsuite/ld-elf/loadaddr2.d: Likewise.
2915 * testsuite/ld-elf/loadaddr3a.d: Likewise.
2916 * testsuite/ld-scripts/rgn-at5.d: Likewise.
2917
a48cda7f
AM
29182017-02-16 Alan Modra <amodra@gmail.com>
2919
2920 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
2921 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
2922
2a568401
L
29232017-02-15 H.J. Lu <hongjiu.lu@intel.com>
2924
2925 PR ld/21168
2926 * testsuite/ld-i386/i386.exp: Run pr21168.
2927 * testsuite/ld-i386/pr21168a.c: New file.
2928 * testsuite/ld-i386/pr21168b.S: Likewise.
2929
a5def14f
L
29302017-02-15 H.J. Lu <hongjiu.lu@intel.com>
2931
2932 PR ld/20244
2933 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
2934 pr20244-4c.
2935 * testsuite/ld-i386/pr20244-4.s: New file.
2936 * testsuite/ld-i386/pr20244-4a.d: Likewise.
2937 * testsuite/ld-i386/pr20244-4b.d: Likewise.
2938 * testsuite/ld-i386/pr20244-4c.d: Likewise.
2939
ebf0b03c
MR
29402017-02-15 Maciej W. Rozycki <macro@imgtec.com>
2941
2942 * ldmisc.c (vfinfo): Don't print the function name again either
2943 if no source file name has been found both now and previously.
2944 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
2945 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
2946 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
2947 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
2948 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
2949 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
2950 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
2951 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
2952 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
2953 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
2954 Likewise.
2955 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
2956 Likewise.
2957 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
2958 Likewise.
2959 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
2960 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
2961 Likewise.
2962 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
2963 Likewise.
2964 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
2965 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
2966 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
2967 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
2968 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
2969 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
2970 * testsuite/ld-powerpc/tocopt.out: Likewise.
2971 * testsuite/ld-powerpc/tocopt7.out: Likewise.
2972
befe814d
MR
29732017-02-15 Maciej W. Rozycki <macro@imgtec.com>
2974
2975 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
2976
defe6f56
IK
29772017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
2978
2979 * testsuite/ld-scripts/sysroot-prefix.exp
2980 (get_base_dir_for_scripts): New function.
2981 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
2982
10ddfe62
PD
29832017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
2984
2985 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
2986 _gp to __global_pointer$
2987
d7488716
AB
29882017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2989
2990 * configure.tgt (arc*-*-linux*): Change the default linker
2991 emulation based on --with-cpu selection.
2992 * NEWS: Mention new configuration option.
2993
65f90e82
JW
29942017-02-06 Jiong Wang <jiong.wang@arm.com>
2995
2996 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
2997 "readelf -w".
2998
fa93e3d3
MR
29992017-02-02 Maciej W. Rozycki <macro@imgtec.com>
3000
3001 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
3002
2e9af2d0
MR
30032017-02-02 Maciej W. Rozycki <macro@imgtec.com>
3004
3005 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
3006 s/regexp/regex/.
3007
fd121c5c
JW
30082017-02-02 Jiong Wang <jiong.wang@arm.com>
3009
3010 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
3011 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
3012 dlopen support into "dlopen_run_tests". These tests include dl1*main
3013 and dl6*main.
3014 (dlopen_run_tests): New and only run it when check_libdl_available
3015 returns true. XFAIL on *-*-netbsdelf*.
3016
c0c237fc
MR
30172017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3018
3019 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
3020 presentation of relocation addends.
3021 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
3022 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
3023 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
3024
5139cfdb
MR
30252017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3026
3027 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
3028 in `.tdata' section.
3029 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
3030 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
3031
ce790370
JW
30322017-02-01 Jiong Wang <jiong.wang@arm.com>
3033
3034 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
3035 Append $board_cflags to link commands.
3036
067869b6
SKS
30372017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
3038
3039 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
3040 check for digit in second decimal place.
3041
15a00b13
MR
30422017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3043
3044 PR ld/20828
3045 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
3046 indentation.
3047
1273da04
NC
30482017-01-31 Nick Clifton <nickc@redhat.com>
3049
3050 * ldmain.c (add_archive_element): Eliminate string buffer.
3051 * ldlang.c (lang_print_asneeded): Likewise.
3052
8b10b0b3
MR
30532017-01-30 Maciej W. Rozycki <macro@imgtec.com>
3054
3055 * emultempl/mipself.em (ignore_branch_isa): New variable.
3056 (mips_create_output_section_statements): Rename
3057 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
3058 add `ignore_branch_isa' argument.
3059 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
3060 OPTION_NO_IGNORE_BRANCH_ISA enum values.
3061 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
3062 "no-ignore-branch-isa" options.
3063 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
3064 `--no-ignore-branch-isa'.
3065 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
3066 OPTION_NO_IGNORE_BRANCH_ISA.
3067
3068 * ld.texinfo (Options specific to MIPS targets): Add
3069 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
3070 (ld and the MIPS family): Likewise.
3071
3072 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
3073 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
3074 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
3075 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
3076 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
3077 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
3078 test.
3079 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
3080 test.
3081 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
3082
bf382b30
HPN
30832017-01-29 Hans-Peter Nilsson <hp@axis.com>
3084
c1d45238 3085 PR binutils/19935
bf382b30
HPN
3086 Fix long-standing buglet and fallout from now-default initfini-array.
3087 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
ce6366f9 3088 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
bf382b30 3089
4471a46f
JW
30902017-01-27 Jiong Wang <jiong.wang@arm.com>
3091
3092 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
3093 arm*-*-eabi*.
3094
387dd777
DP
30952017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
3096 Nick Clifton <nickc@redhat.com>
3097
3098 PR 20343
3099 * ld.texinfo (Options): Extend documentation of the --plugin
3100 option. Include a description of where the plugins should be
3101 located.
3102
0348d4be
NC
31032017-01-27 Nick Clifton <nickc@redhat.com>
3104
3105 * po/sr.po: New Serbian translation.
3106 * configure.ac (ALL_LINGUAS): Add sr.
3107 * configure: Regenerate.
3108
c75b4ebd
SH
31092017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3110
3111 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
3112 (bfin-*-rtems*): Move to (bfin*-*-elf*).
3113 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
3114 (m68*-*-rtems*): Move to (m68*-*-elf*).
3115 (mips*-*-rtems*): Move to (mips*-*-elf*).
3116 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
3117 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
3118 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
3119 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
3120
850d84f6
SH
31212017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3122
3123 * configure.tgt (h8300-*-rtemscoff*): Remove.
3124 (i960-*-rtems*): Likewise.
3125 (m68*-*-rtemscoff*): Likewise.
3126 (sh-*-rtemscoff*): Likewise.
3127
1a792e1c
MR
31282017-01-24 Maciej W. Rozycki <macro@imgtec.com>
3129
3130 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
3131 add implicit version nodes if an anonymous version tag is being
3132 used.
3133
077c11e8
JW
31342017-01-24 Jiong Wang <jiong.wang@arm.com>
3135
3136 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
3137 "Compile 8a", "Compile 8b"...
3138 (lto_compile_elf_tests): ...to here. Always run these tests.
3139 (lto_run_elf_tests): Move "LTO 7"...
3140 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
3141 environment where share library is supported.
3142
f0158f44
AM
31432017-01-24 Alan Modra <amodra@gmail.com>
3144
3145 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
3146 and symbols.
3147 * testsuite/ld-powerpc/tlsexe.d: Likewise.
3148 * testsuite/ld-powerpc/tlsexe.g: Likewise.
3149
2d0ca824
YN
31502017-01-23 Yury Norov <ynorov@caviumnetworks.com>
3151
3152 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
3153 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
3154 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
3155 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
3156 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
3157 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
3158 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
3159 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
3160 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
3161 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
3162 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
3163 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
3164 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
3165
8069955e
NC
31662017-01-23 Nick Clifton <nickc@redhat.com>
3167
3168 * po/ga.po: Updated Irish translation.
3169
1e5f45bb
MR
31702017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3171
3172 PR ld/20828
3173 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
3174
fda46c41
MR
31752017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3176
3177 PR ld/20828
3178 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
3179 `fdata' and `edata' respectively.
3180 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
3181 * testsuite/ld-elf/pr20828-a.sd: Likewise.
3182 * testsuite/ld-elf/pr20828-b.sd: Likewise.
3183 * testsuite/ld-elf/pr20828-c.sd: Likewise.
3184
adcbdc63
MR
31852017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3186
3187 PR ld/20828
3188 * testsuite/ld-elf/pr20828-1.sd: Remove test.
3189 * testsuite/ld-elf/pr20828-a.sd: New test.
3190 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
3191 * testsuite/ld-elf/pr20828-b.sd: ... this.
3192 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
3193 * testsuite/ld-elf/pr20828-c.sd: ... this.
3194 * testsuite/ld-elf/shared.exp: Adjust accordingly.
3195
9966f7ee
JW
31962017-01-23 Jiong Wang <jiong.wang@arm.com>
3197
3198 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
3199 board_cflags as gcc is used as linker driver.
3200 * testsuite/ld-unique/unique.exp: Likewise
3201
7f784814
JW
32022017-01-20 Jiong Wang <jiong.wang@arm.com>
3203
3204 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
3205 * testsuite/ld-aarch64/func-in-so.s: New test source file.
3206 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
3207 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
3208
1737c640
AB
32092017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
3212
6984613a
MR
32132017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3214
3215 PR ld/20995
3216 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
3217 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
3218
81ff47b3
MR
32192017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3220
3221 PR ld/20828
3222 * testsuite/ld-elf/pr20828-1.sd: New test.
3223 * testsuite/ld-elf/pr20828-2a.sd: New test.
3224 * testsuite/ld-elf/pr20828-2b.sd: New test.
3225 * testsuite/ld-elf/pr20828.ld: New test linker script.
3226 * testsuite/ld-elf/pr20828.ver: New test version script.
3227 * testsuite/ld-elf/pr20828.s: New test source.
3228 * testsuite/ld-elf/shared.exp: Run the new test.
3229
9e009953
MR
32302017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3231
3232 PR gas/20649
3233 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
3234 relocation pairing link test.
3235
319b82e4
DD
32362017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
3237
3238 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
3239 uniqeue.exp, as not all targets have such support.
3240
6aa1df2d
NC
32412017-01-16 Nick Clifton <nickc@redhat.com>
3242
3243 * po/sv.po: Updated Swedish translation.
3244
8361ed4d
L
32452017-01-12 H.J. Lu <hongjiu.lu@intel.com>
3246
3247 PR ld/21038
3248 * testsuite/ld-x86-64/pr21038b.d: Updated.
3249 * testsuite/ld-x86-64/pr21038c.d: New file.
3250 * testsuite/ld-x86-64/pr21038c.s: Likewise.
3251 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
3252
9e659176
L
32532017-01-11 H.J. Lu <hongjiu.lu@intel.com>
3254
3255 PR ld/21038
3256 * testsuite/ld-x86-64/pr21038a.d: New file.
3257 * testsuite/ld-x86-64/pr21038a.s: Likewise.
3258 * testsuite/ld-x86-64/pr21038b.d: Likewise.
3259 * testsuite/ld-x86-64/pr21038b.s: Likewise.
3260 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
3261
f2e2d2f5
JS
32622017-01-11 Jeremy Soller <jackpot51@gmail.com>
3263
3264 * configure.tgt: Add entries for x86-redox and x86_64-redox.
3265
52b232b3
L
32662017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3267
3268 * testsuite/ld-x86-64/pr20830b.d: Updated.
3269
59a1e29d
L
32702017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3271
3272 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
3273 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
3274 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
3275 * testsuite/ld-x86-64/pr20830b.d: New file.
3276 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
3277 Run pr20830b.
3278
fff53dae
L
32792017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3280
3281 PR ld/20830
3282 * testsuite/ld-i386/i386.exp: Run pr20830.
3283 * testsuite/ld-x86-64/x86-64.exp: Likewise.
3284 * testsuite/ld-i386/pr20830.d: New file.
3285 * testsuite/ld-i386/pr20830.s: Likewise.
3286 * testsuite/ld-x86-64/pr20830.d: Likewise.
3287 * testsuite/ld-x86-64/pr20830.s: Likewise.
3288
e9237227
L
32892017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3290
3291 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
3292 -Wl,--as-needed to $CC.
3293 * testsuite/ld-i386/tls.exp: Likewise.
3294
07e8e623
NC
32952017-01-10 Nick Clifton <nickc@redhat.com>
3296
3297 * po/sv.po: Updated Swedish translation.
3298
07ccf83c
GM
32992016-12-09 Graham Markall <graham.markall@embecosm.com>
3300 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * Makefile.am: Add earclinux_nps.c target and add to
3303 ALL_EMULATION_SOURCES.
3304 * Makefile.in: Likewise, regenerated.
3305 * configure.tgt: Add arclinux_nps as an extra emulation for
3306 arc*-*-elf* and arc*-*-linux*.
3307 * emulparams/arc-nps.sh: New file.
3308 * emulparams/arclinux_nps.sh: New file.
3309 * testsuite/ld-arc/arclinux-nps.d,
3310 * testsuite/ld-arc/arclinux-nps.s: New test.
3311
b0556316
DP
33122017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
3313
3314 PR 20958
3315 * ldlex.l (option): Add noyywrap
3316 (yywrap): Delete.
3317 * ldlex.h (yywrap): Delete prototype.
3318
47523653
AM
33192017-01-04 Alan Modra <amodra@gmail.com>
3320
3321 * testsuite/ld-elf/audit.exp: Check for shared lib support.
3322 * testsuite/ld-elf/compress.exp: Likewise.
3323 * testsuite/ld-elf/dwarf.exp: Likewise.
3324 * testsuite/ld-elf/shared.exp: Likewise.
3325 * testsuite/ld-elf/wrap.exp: Likewise.
3326 * testsuite/ld-ifunc/ifunc.exp: Likewise.
3327 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
3328
a44d0bd7
AM
33292017-01-03 Alan Modra <amodra@gmail.com>
3330
3331 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
3332 allow test to continue after compilation errors.
3333 (run_cc_link_tests): Likewise.
3334
27c3ce29
DD
33352017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
3336
3337 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
3338 (epruelf.c): Remove unneeded dependencies.
3339 * Makefile.in: Regenerate
3340
8cfc7cf8
AM
33412017-01-03 Alan Modra <amodra@gmail.com>
3342
3343 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
3344 to various tests.
3345 * testsuite/ld-elfweak/elfweak.exp: Likewise.
3346 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
3347
4ce6ca2c
AM
33482017-01-03 Alan Modra <amodra@gmail.com>
3349
3350 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
3351 * testsuite/ld-pie/pie.exp: Likewise.
3352 * testsuite/ld-plugin/lto.exp: Likewise.
3353
d9816402
AM
33542017-01-02 Alan Modra <amodra@gmail.com>
3355
3356 * Makefile.am (bootstrap): Delete rule.
3357 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
3358 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
3359 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
3360 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
3361 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
3362 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
3363 * Makefile.in: Regenerate.
3364 * configure: Regenerate.
3365 * testsuite/config/default.exp (get_link_files): Delete.
3366 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
3367 define.
3368 (ld_simple_link): Delete.
3369 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
3370 (default_ld_simple_link): Rename to default_ld_link.
3371 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
3372 (run_ld_link_tests): Use ld_link, not ld_simple_link.
3373 (run_cc_link_tests): Likewise.
3374 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
3375 Don't run exe when not native, and return unsupported.
3376 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
3377 Link ld1 etc. using $CC.
3378 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
3379 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
3380 * testsuite/ld-cygwin/exe-export.exp: Likewise.
3381 * testsuite/ld-elf/binutils.exp: Likewise.
3382 * testsuite/ld-elf/eh-group.exp: Likewise.
3383 * testsuite/ld-elf/exclude.exp: Likewise.
3384 * testsuite/ld-elf/frame.exp: Likewise.
3385 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
3386 * testsuite/ld-elf/tls_common.exp: Likewise.
3387 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
3388 * testsuite/ld-fastcall/fastcall.exp: Likewise.
3389 * testsuite/ld-gc/gc.exp: Likewise.
3390 * testsuite/ld-ifunc/binutils.exp: Likewise.
3391 * testsuite/ld-mep/mep.exp: Likewise.
3392 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
3393 * testsuite/ld-mn10300/mn10300.exp: Likewise.
3394 * testsuite/ld-nios2/nios2.exp: Likewise.
3395 * testsuite/ld-pe/pe-compile.exp: Likewise.
3396 * testsuite/ld-pe/pe-run.exp: Likewise.
3397 * testsuite/ld-pe/pe-run2.exp: Likewise.
3398 * testsuite/ld-plugin/plugin.exp: Likewise.
3399 * testsuite/ld-scripts/align.exp: Likewise.
3400 * testsuite/ld-scripts/alignof.exp: Likewise.
3401 * testsuite/ld-scripts/assert.exp: Likewise.
3402 * testsuite/ld-scripts/defined.exp: Likewise.
3403 * testsuite/ld-scripts/extern.exp: Likewise.
3404 * testsuite/ld-scripts/log2.exp: Likewise.
3405 * testsuite/ld-scripts/map-address.exp: Likewise.
3406 * testsuite/ld-scripts/phdrs.exp: Likewise.
3407 * testsuite/ld-scripts/phdrs2.exp: Likewise.
3408 * testsuite/ld-scripts/script.exp: Likewise.
3409 * testsuite/ld-scripts/section-flags.exp: Likewise.
3410 * testsuite/ld-scripts/sizeof.exp: Likewise.
3411 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
3412 * testsuite/ld-scripts/weak.exp: Likewise.
3413 * testsuite/ld-selective/selective.exp: Likewise.
3414 * testsuite/ld-sh/sh.exp: Likewise.
3415 * testsuite/ld-sh/sh64/relax.exp: Likewise.
3416 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
3417 * testsuite/ld-srec/srec.exp: Likewise.
3418 * testsuite/ld-tic6x/tic6x.exp: Likewise.
3419 * testsuite/ld-undefined/weak-undef.exp: Likewise.
3420 * testsuite/ld-versados/versados.exp: Likewise.
3421 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
3422 * testsuite/ld-xtensa/coalesce.exp: Likewise.
3423 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
3424 * testsuite/ld-xtensa/lcall.exp: Likewise.
3425 * testsuite/ld-elf/audit.exp: Run non-native too.
3426 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
3427 gcc -Wl, options.
3428 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
3429 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
3430 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
3431 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
3432 -Wl,--no-as-needed to most tests.
3433 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
3434 to simplify quoting. Set run_tests using [list] rather than
3435 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
3436 to many test. Prefix ld options with -Wl,.
3437 (mix_pic_and_non_pic): Don't run exe if not native.
3438 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
3439 -Wl,--no-as-needed and prefix ld options with -Wl,.
3440 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
3441 not ld_simple_link.
3442 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
3443 (visibility_test): Don't run exe if not native.
3444 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
3445 not ld_simple_link.
3446 (build_exec): Don't run exe if not native.
3447 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
3448 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
3449 to some tests and prefix ld options with -Wl,. Expect GNU
3450 for hppa-linux even when no ifuncs. Delete cleanup.
3451 * testsuite/ld-pie/pie.exp: Run non-native too.
3452 * testsuite/ld-plugin/lto.exp: Likewise.
3453 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
3454 not ld_simple_link.
3455 (shared_test): Don't run exe if not native.
3456 * testsuite/ld-size/size.exp: Run non-native too. Add
3457 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
3458 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
3459 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
3460 to some tests and prefix ld options with -Wl,. Expect GNU
3461 for hppa-linux even when no unique syms. Delete cleanup.
3462 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
3463 tests and prefix ld options with -Wl,.
3464 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
3465 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
3466
64859e14
AM
34672017-01-02 Alan Modra <amodra@gmail.com>
3468
3469 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
3470
f5657270
AM
34712017-01-02 Alan Modra <amodra@gmail.com>
3472
3473 PR ld/21000
3474 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
3475 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
3476 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
3477 is already defined.
3478
2571583a
AM
34792017-01-02 Alan Modra <amodra@gmail.com>
3480
3481 Update year range in copyright notice of all files.
3482
5c1ad6b5 3483For older changes see ChangeLog-2016
3499769a 3484\f
5c1ad6b5 3485Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
3486
3487Copying and distribution of this file, with or without modification,
3488are permitted in any medium without royalty provided the copyright
3489notice and this notice are preserved.
3490
3491Local Variables:
3492mode: change-log
3493left-margin: 8
3494fill-column: 74
3495version-control: never
3496End:
This page took 0.286614 seconds and 4 git commands to generate.