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