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