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