53f24280adb4243380a2f1d2a6094ad7587af487
[external/binutils.git] / ld / ChangeLog
1 2016-07-05  Jan Beulich  <jbeulich@suse.com>
2
3         * ldexp.c (exp_fold_tree_1): Set linker_def field based on
4         assignment line number.
5         * ldlex.l (lineno): Drop initializer.
6         (<<EOF>>): Set lineno to zero after reaching top of stack.
7
8 2016-07-04  H.J. Lu  <hongjiu.lu@intel.com>
9
10         PR ld/20321
11         * plugin.c (plugin_opt_plugin): Warn and return if plugin has
12         been loaded already.
13         * testsuite/ld-plugin/lto.exp: Run PR ld/20321 test.
14         * testsuite/ld-plugin/pr20321.c: New file.
15
16 2016-07-04  Nick Clifton  <nickc@redhat.com>
17
18         * scripttempl/ft32.sc (__PMSIZE_): If not defined, set to 256K.
19         (__RAMSIZE): If not defined, set to 64K.
20         (MEMORY): Set the flash region size to __PMSIZE and the ram region
21         size to __RAMSIZE.
22
23 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
24
25         * testsuite/ld-mips-elf/branch-misc-2.d: New test.
26         * testsuite/ld-mips-elf/mips-elf.exp: Run it.
27
28 2016-07-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29
30         * testsuite/ld-arm/arm-elf.exp (Thumb-2 BL): Assemble for ARMv7.
31         (Thumb-2 BL on ARMv6-M): New testcase.
32         * testsuite/ld-arm/thumb2-bl.d: Do not try to match testcase filename.
33         * testsuite/ld-arm/thumb2-bl.s: Do not select architecture.
34
35 2016-07-01  Tristan Gingold  <gingold@adacore.com>
36
37         * NEWS: Add marker for 2.27.
38
39 2016-06-28  H.J. Lu  <hongjiu.lu@intel.com>
40
41         * testsuite/ld-gc/gc.exp: Run pr20306 test.
42         * ld-gc/pr20306.c: New file.
43         * ld-gc/pr20306.d: Likewise.
44
45 2016-06-28  Nick Clifton  <nickc@redhat.com>
46
47         * testsuite/ld-elf/comm-data.exp: Expect comm-data2 test to fail
48         for bfin.
49         * testsuite/ld-elf/elf.exp: Expect pr14170 and symbolic function
50         tests to fail for bfin.
51         * testsuite/ld-elf/endsym.d: Expect to fail with cr16, crx, dlx,
52         nds32 and visium.
53         * testsuite/ld-elf/var1.d: Expect to fail with d30v, dlx, ft32 and
54         microblaze.
55         * testsuite/ld-pe/pe.exp: Expect foreign symbol test to fail for
56         mcore-pe.
57
58 2016-06-28  Nick Clifton  <nickc@redhat.com>
59
60         * testsuite/ld-elf/merge.d: Add m68hc11 to list of targets that
61         expect to fail this test.
62         * testsuite/ld-scripts/overlay-size.d: Skip the entire test for
63         RX.
64         * testsuite/ld-scripts/rgn-at10.d: No longer expect this test to
65         fail for the RX.
66         * testsuite/ld-scripts/rgn-at11.d: Likewise.
67         * testsuite/ld-scripts/rgn-at2.d: Likewise.
68         * testsuite/ld-scripts/rgn-at6.d: Likewise.
69         * testsuite/ld-scripts/rgn-at7.d: Likewise.
70         * testsuite/ld-scripts/rgn-at8.d: Likewise.
71
72 2016-06-28  James Clarke  <jrtc27@jrtc27.com>
73
74         * testsuite/ld-elf/symbolic-func.r: Allow non-zero offsets from
75         .text.
76
77 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
78
79         * testsuite/ld-mips-elf/attr-gnu-4-10.d: Match any UNIX OS/ABI.
80         * testsuite/ld-mips-elf/attr-gnu-4-50.d: Likewise.
81         * testsuite/ld-mips-elf/attr-gnu-4-60.d: Likewise.
82         * testsuite/ld-mips-elf/attr-gnu-4-70.d: Likewise.
83
84 2016-06-28  Alan Modra  <amodra@gmail.com>
85
86         PR ld/20302
87         * testsuite/ld-scripts/pr20302.d: Exclude *-*-*aout.
88
89 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
90
91         * testsuite/ld-mips-elf/mips16-branch-2.d: New test.
92         * testsuite/ld-mips-elf/mips16-branch-3.d: New test.
93         * testsuite/ld-mips-elf/mips16-branch-addend-2.d: New test.
94         * testsuite/ld-mips-elf/mips16-branch-addend-3.d: New test.
95         * testsuite/ld-mips-elf/mips16-branch.s: New test source.
96         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
97
98 2016-06-27  Nick Clifton  <nickc@redhat.com>
99
100         PR ld/20302
101         * lexsup.c (set_segment_start): If resetting the start address of
102         a section, remember to generate a new script element as well.
103         * testsuite/ld-scripts/pr20302.d: New test.
104         * testsuite/ld-scripts/scripts.exp: Run the new test.
105
106 2016-06-24  Alan Modra  <amodra@gmail.com>
107
108         * testsuite/ld-aarch64/aarch64-elf.exp (aarch64_choose_ilp32_emul):
109         Don't error out, always return an emulation.
110
111 2016-06-24  Dilyan Palauzov <dilyan.palauzov@aegee.org>
112             H.J. Lu  <hongjiu.lu@intel.com>
113
114         * lexsup.c (elf_shlib_list_options): Check DEFAULT_LD_Z_RELRO
115         for -z relro help message.
116
117 2016-06-22  Maciej W. Rozycki  <macro@imgtec.com>
118
119         * testsuite/ld-mips-elf/undefweak-overflow.d: Use wildcard
120         address matching.
121
122 2016-06-22  Maciej W. Rozycki  <macro@imgtec.com>
123
124         * testsuite/ld-mips-elf/mips-elf.exp: Uniquely identify
125         `undefweak-overflow' tests.
126
127 2016-06-22  H.J. Lu  <hongjiu.lu@intel.com>
128
129         PR ld/20283
130         * NEWS: Mention --enable-relro.
131         * configure.ac: Add --enable-relro.
132         (DEFAULT_LD_Z_RELRO): New.  Set by --enable-relro.
133         * configure.tgt (ac_default_ld_z_relro): Default it to 1 for
134         some Linux targets.
135         * config.in: Regenerated.
136         * configure: Likewise.
137         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
138         link_info.relro to DEFAULT_LD_Z_RELRO.
139         * testsuite/config/default.exp (ld_elf_shared_opt): New.
140         * testsuite/lib/ld-lib.exp (run_dump_test): Pass
141         $ld_elf_shared_opt to ld for ELF targets with shared object
142         support.
143         (run_ld_link_tests): Likewise.
144
145 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
146
147         * testsuite/ld-mips-elf/mode-change-error-1a.s: Trigger an error
148         twice rather than once.
149         * testsuite/ld-mips-elf/mode-change-error-1.d: Adjust
150         accordingly.  Remove the full stop from the end of the message.
151
152 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
153
154         * testsuite/ld-arc/nps-1a.d: Use -mcpu=arc700 -mnps400.
155         * testsuite/ld-arc/nps-1b.d: Likewise.
156
157 2016-06-20  H.J. Lu  <hongjiu.lu@intel.com>
158
159         PR ld/20267
160         * testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
161         PR ld/20267.
162         (lto_run_tests): Likewise.
163         * testsuite/ld-plugin/pr20267a.c: New file.
164         * testsuite/ld-plugin/pr20267b.c: Likewise.
165
166 2016-06-20  H.J. Lu  <hongjiu.lu@intel.com>
167             Alan Modra  <amodra@gmail.com>
168
169         PR ld/20276
170         * plugin.c (plugin_notice): Set non_ir_ref on common symbols.
171         * testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
172         PR ld/20276.
173         (lto_run_tests): Likewise.
174         * testsuite/ld-plugin/pass.out: New file.
175         * testsuite/ld-plugin/pr20276a.c: Likewise.
176         * testsuite/ld-plugin/pr20276b.c: Likewise.
177
178 2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
179
180         * plugin.c (plugin_object_p): Replace bfd_plugin_uknown
181         with bfd_plugin_unknown.
182
183 2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
184
185         PR ld/20253
186         * testsuite/ld-i386/i386.exp: Run PR ld/20253 tests.
187         * testsuite/ld-i386/no-plt.exp: Likewise.
188         * testsuite/ld-x86-64/no-plt.exp: Likewise.
189         * testsuite/ld-i386/pr13302.d: Remove .rel.plt section.
190         * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
191         * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
192         * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
193         * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
194         * testsuite/ld-x86-64/pr13082-5a.d: Likewise.
195         * testsuite/ld-x86-64/pr13082-5b.d: Likewise.
196         * testsuite/ld-x86-64/pr13082-6a.d: Likewise.
197         * testsuite/ld-x86-64/pr13082-6b.d: Likewise.
198         * testsuite/ld-i386/pr20244-2a.d: Remove .plt section.
199         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
200         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
201         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
202         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
203         * testsuite/ld-i386/pr20244-2b.d: Updated.
204         * testsuite/ld-i386/pr20244-2c.d: Likewise.
205         * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
206         * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
207         * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
208         * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
209         * testsuite/ld-i386/pr20253-1a.c: New file.
210         * testsuite/ld-i386/pr20253-1b.S: Likewise.
211         * testsuite/ld-i386/pr20253-1c.S: Likewise.
212         * testsuite/ld-i386/pr20253-1d.S: Likewise.
213         * testsuite/ld-i386/pr20253-2a.c: Likewise.
214         * testsuite/ld-i386/pr20253-2b.S: Likewise.
215         * testsuite/ld-i386/pr20253-2c.S: Likewise.
216         * testsuite/ld-i386/pr20253-2d.S: Likewise.
217         * testsuite/ld-i386/pr20253-3.d: Likewise.
218         * testsuite/ld-i386/pr20253-3.s: Likewise.
219         * testsuite/ld-i386/pr20253-4.s: Likewise.
220         * testsuite/ld-i386/pr20253-4a.d: Likewise.
221         * testsuite/ld-i386/pr20253-4b.d: Likewise.
222         * testsuite/ld-i386/pr20253-4c.d: Likewise.
223         * testsuite/ld-i386/pr20253-5.d: Likewise.
224         * testsuite/ld-i386/pr20253-5.s: Likewise.
225         * testsuite/ld-ifunc/ifunc-23-x86.s: Likewise.
226         * testsuite/ld-ifunc/ifunc-23a-x86.d: Likewise.
227         * testsuite/ld-ifunc/ifunc-23b-x86.d: Likewise.
228         * testsuite/ld-ifunc/ifunc-23c-x86.d: Likewise.
229         * testsuite/ld-ifunc/ifunc-24-x86.s: Likewise.
230         * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
231         * testsuite/ld-ifunc/ifunc-24b-x86.d: Likewise.
232         * testsuite/ld-ifunc/ifunc-24c-x86.d: Likewise.
233         * testsuite/ld-ifunc/ifunc-25-x86.s: Likewise.
234         * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
235         * testsuite/ld-ifunc/ifunc-25b-x86.d: Likewise.
236         * testsuite/ld-ifunc/ifunc-25c-x86.d: Likewise.
237         * testsuite/ld-x86-64/pr20253-1.s: Likewise.
238         * testsuite/ld-x86-64/pr20253-1a.d: Likewise.
239         * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
240         * testsuite/ld-x86-64/pr20253-1c.d: Likewise.
241         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
242         * testsuite/ld-x86-64/pr20253-1e.d: Likewise.
243         * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
244         * testsuite/ld-x86-64/pr20253-1g.d: Likewise.
245         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
246         * testsuite/ld-x86-64/pr20253-1i.d: Likewise.
247         * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
248         * testsuite/ld-x86-64/pr20253-1k.d: Likewise.
249         * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
250         * testsuite/ld-x86-64/pr20253-2a.c: Likewise.
251         * testsuite/ld-x86-64/pr20253-2b.S: Likewise.
252         * testsuite/ld-x86-64/pr20253-2c.S: Likewise.
253         * testsuite/ld-x86-64/pr20253-2d.S: Likewise.
254         * testsuite/ld-x86-64/pr20253-3.d: Likewise.
255         * testsuite/ld-x86-64/pr20253-3.s: Likewise.
256         * testsuite/ld-x86-64/pr20253-4.s: Likewise.
257         * testsuite/ld-x86-64/pr20253-4a.d: Likewise.
258         * testsuite/ld-x86-64/pr20253-4b.d: Likewise.
259         * testsuite/ld-x86-64/pr20253-4c.d: Likewise.
260         * testsuite/ld-x86-64/pr20253-4d.d: Likewise.
261         * testsuite/ld-x86-64/pr20253-4e.d: Likewise.
262         * testsuite/ld-x86-64/pr20253-4f.d: Likewise.
263         * testsuite/ld-x86-64/pr20253-5.s: Likewise.
264         * testsuite/ld-x86-64/pr20253-5a.d: Likewise.
265         * testsuite/ld-x86-64/pr20253-5b.d: Likewise.
266         * testsuite/ld-ifunc/ifunc-18a-i386.d: Remove extra IRELATIVE
267         relocation.
268         * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
269         * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
270         * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
271         * testsuite/ld-ifunc/ifunc-18a.s: Fix a typo.
272         * testsuite/ld-x86-64/x86-64.exp: Run pr20253-1 tests.
273
274 2016-06-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
275             Tony Wang  <tony.wang@arm.com>
276
277         * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall M profile):
278         Assemble for ARMv6-M.
279         (Thumb2-Thumb2 farcall M profile): New testcase.
280         * testsuite/ld-arm/farcall-thumb2-thumb2-m.d: New file.
281         * testsuite/ld-arm/jump-reloc-veneers-cond-long-backward.d: Update to
282         reflect the use of Thumb-2 veneers for Thumb-2 capable targets.
283         * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Likewise.
284
285 2016-06-16  H.J. Lu  <hongjiu.lu@intel.com>
286
287         * testsuite/ld-i386/i386.exp: Run pr19636-2e-nacl.
288         * testsuite/ld-i386/pr19636-2e.d: Skip for NaCl targets.
289         Remove .rel.plt section.
290         * testsuite/ld-i386/pr19636-2e-nacl.d: New file.
291
292 2016-06-15  H.J. Lu  <hongjiu.lu@intel.com>
293
294         * testsuite/ld-i386/no-plt-check1a.S (check): Test static
295         function pointer.
296         * testsuite/ld-i386/no-plt-check1b.S (check): Likewise.
297         * testsuite/ld-x86-64/no-plt-check1.S (check): Likewise.
298         * testsuite/ld-i386/no-plt-extern1a.S (func_p): New.  Static
299         function pointer.
300         * testsuite/ld-i386/no-plt-extern1b.S (func_p): Likewise.
301         * testsuite/ld-x86-64/no-plt-extern1.S (func_p): Likewise.
302         * testsuite/ld-i386/no-plt-1a.dd: Updated.
303         * testsuite/ld-i386/no-plt-1b.dd: Likewise.
304         * testsuite/ld-i386/no-plt-1c.dd: Likewise.
305         * testsuite/ld-i386/no-plt-1d.dd: Likewise.
306         * testsuite/ld-i386/no-plt-1e.dd: Likewise.
307         * testsuite/ld-i386/no-plt-1f.dd: Likewise.
308         * testsuite/ld-i386/no-plt-1g.dd: Likewise.
309         * testsuite/ld-i386/no-plt-1h.dd: Likewise.
310         * testsuite/ld-i386/no-plt-1i.dd: Likewise.
311         * testsuite/ld-i386/no-plt-1j.dd: Likewise.
312         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
313         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
314         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
315         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
316         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
317         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
318         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
319
320 2016-06-14  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
321
322         PR ld/20254
323         * testsuite/ld-avr/avr-prop-6.d: New test.
324         * testsuite/ld-avr/avr-prop-6.s: New test.
325
326 2016-06-14  Alan Modra  <amodra@gmail.com>
327
328         * ldbuildid.c: Formatting.
329         * ldcref.c: Formatting.
330         * ldctor.c: Formatting.
331         * ldemul.c: Formatting.
332         * ldexp.c: Formatting.
333         * ldfile.c: Formatting.
334         * ldlang.c: Formatting.
335         * ldmain.c: Formatting.
336         * ldwrite.c: Formatting.
337
338 2016-06-14  Alan Modra  <amodra@gmail.com>
339
340         * ldlang.c: Expand uses of bfd_my_archive.
341         * ldmain.c: Likewise.
342         * ldmisc.c: Likewise.
343         * plugin.c: Likewise.
344
345 2016-06-14  Alan Modra  <amodra@gmail.com>
346
347         PR ld/20241
348         * ldmain.c (add_archive_element): Just print file name of file within
349         thin archives.
350         * ldmisc.c (vfinfo): Likewise.
351         * plugin.c (plugin_object_p): Open file within thin archives.
352         (plugin_maybe_claim): Expand comment.
353
354 2016-06-13  H.J. Lu  <hongjiu.lu@intel.com>
355
356         PR ld/20244
357         * testsuite/ld-i386/i386.exp: Run pr20244-2a, pr20244-2b,
358         pr20244-2c and pr20244-2d.
359         * testsuite/ld-i386/no-plt.exp: Run pr20244-3a and pr20244-3b.
360         * testsuite/ld-i386/pr20244-2.s: New file.
361         * testsuite/ld-i386/pr20244-2a.d: Likewise.
362         * testsuite/ld-i386/pr20244-2b.d: Likewise.
363         * testsuite/ld-i386/pr20244-2c.d: Likewise.
364         * testsuite/ld-i386/pr20244-2d.d: Likewise.
365         * testsuite/ld-i386/pr20244-3a.c: Likewise.
366         * testsuite/ld-i386/pr20244-3b.S: Likewise.
367         * testsuite/ld-i386/pr20244-3c.S: Likewise.
368         * testsuite/ld-i386/pr20244-3d.S: Likewise.
369
370 2016-06-13  H.J. Lu  <hongjiu.lu@intel.com>
371
372         * testsuite/ld-i386/i386.exp: Run ifunc-1a and ifunc-1b.
373         * testsuite/ld-i386/ifunc-1a.c: New file.
374         * testsuite/ld-i386/ifunc-1b.S: Likewise.
375         * testsuite/ld-i386/ifunc-1c.S: Likewise.
376         * testsuite/ld-i386/ifunc-1d.S: Likewise.
377
378 2016-06-13  Cupertino Miranda  <cmiranda@synospsy.com>
379
380         * testsuite/ld-srec/srec.exp: Changed to XFAIL on both little and
381         big endian ARC targets.
382
383 2016-06-12  H.J. Lu  <hongjiu.lu@intel.com>
384
385         * testsuite/ld-x86-64/libno-plt-1b.dd: Updated for x32.
386         * testsuite/ld-x86-64/libno-plt-1b.rd: Likewise.
387         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
388         * testsuite/ld-x86-64/no-plt-1a.rd: Likewise.
389         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
390         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
391         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
392         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
393         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
394         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
395         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
396         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
397         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
398         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
399         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
400
401 2016-06-11  H.J. Lu  <hongjiu.lu@intel.com>
402
403         PR ld/20244
404         * testsuite/ld-i386/i386.exp: Run pr20244-1a and pr20244-1b.
405         * testsuite/ld-i386/pr20244-1.s: New file.
406         * testsuite/ld-i386/pr20244-1a.d: Likewise.
407         * testsuite/ld-i386/pr20244-1b.d: Likewise.
408         * testsuite/ld-i386/pr20244-1c.d: Likewise.
409
410 2016-06-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
411
412         PR ld/20221
413         * testsuite/ld-avr/avr-prop-5.d: New.
414         * testsuite/ld-avr/avr-prop-5.s: New.
415
416 2016-06-09  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
417
418         * testsuite/ld-avr/lds-mega.d: New test.
419         * testsuite/ld-avr/lds-mega.s: New test source.
420         * testsuite/ld-avr/lds-tiny.d: New test.
421         * testsuite/ld-avr/lds-tiny.s: New test source.
422
423 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
424
425         * testsuite/ld-i386/libno-plt-1b.dd: New file.
426         * testsuite/ld-i386/libno-plt-1b.rd: Likewise.
427         * testsuite/ld-i386/no-plt-1a.dd: Likewise.
428         * testsuite/ld-i386/no-plt-1a.rd: Likewise.
429         * testsuite/ld-i386/no-plt-1b.dd: Likewise.
430         * testsuite/ld-i386/no-plt-1b.rd: Likewise.
431         * testsuite/ld-i386/no-plt-1c.dd: Likewise.
432         * testsuite/ld-i386/no-plt-1c.rd: Likewise.
433         * testsuite/ld-i386/no-plt-1d.dd: Likewise.
434         * testsuite/ld-i386/no-plt-1d.rd: Likewise.
435         * testsuite/ld-i386/no-plt-1e.dd: Likewise.
436         * testsuite/ld-i386/no-plt-1e.rd: Likewise.
437         * testsuite/ld-i386/no-plt-1f.dd: Likewise.
438         * testsuite/ld-i386/no-plt-1f.rd: Likewise.
439         * testsuite/ld-i386/no-plt-1g.dd: Likewise.
440         * testsuite/ld-i386/no-plt-1g.rd: Likewise.
441         * testsuite/ld-i386/no-plt-1h.dd: Likewise.
442         * testsuite/ld-i386/no-plt-1h.rd: Likewise.
443         * testsuite/ld-i386/no-plt-1i.dd: Likewise.
444         * testsuite/ld-i386/no-plt-1i.rd: Likewise.
445         * testsuite/ld-i386/no-plt-1j.dd: Likewise.
446         * testsuite/ld-i386/no-plt-1j.rd: Likewise.
447         * testsuite/ld-i386/no-plt-check1a.S: Likewise.
448         * testsuite/ld-i386/no-plt-check1b.S: Likewise.
449         * testsuite/ld-i386/no-plt-extern1a.S: Likewise.
450         * testsuite/ld-i386/no-plt-extern1b.S: Likewise.
451         * testsuite/ld-i386/no-plt-func1.c: Likewise.
452         * testsuite/ld-i386/no-plt-main1.c: Likewise.
453         * testsuite/ld-i386/no-plt.exp: Likewise.
454
455 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
456
457         * testsuite/ld-x86-64/tls.exp (run_cc_link_tests): Update test
458         name.
459
460 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
461
462         * testsuite/ld-i386/i386.exp: Run libtlspic2.so, tlsbin2,
463         tlsgd3, tlsld2, tlsgd4, tlspie3a, tlspie3b and tlspie3c.
464         * testsuite/ld-i386/pass.out: New file.
465         * testsuite/ld-i386/tls-def1.c: Likewise.
466         * testsuite/ld-i386/tls-gd1.S: Likewise.
467         * testsuite/ld-i386/tls-ld1.S: Likewise.
468         * testsuite/ld-i386/tls-main1.c: Likewise.
469         * testsuite/ld-i386/tls.exp: Likewise.
470         * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
471         * testsuite/ld-i386/tlsbin2.dd: Likewise.
472         * testsuite/ld-i386/tlsbin2.rd: Likewise.
473         * testsuite/ld-i386/tlsbin2.sd: Likewise.
474         * testsuite/ld-i386/tlsbin2.td: Likewise.
475         * testsuite/ld-i386/tlsbinpic2.s: Likewise.
476         * testsuite/ld-i386/tlsgd3.dd: Likewise.
477         * testsuite/ld-i386/tlsgd3.s: Likewise.
478         * testsuite/ld-i386/tlsgd4.d: Likewise.
479         * testsuite/ld-i386/tlsgd4.s: Likewise.
480         * testsuite/ld-i386/tlsld2.s: Likewise.
481         * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
482         * testsuite/ld-i386/tlspic2.dd: Likewise.
483         * testsuite/ld-i386/tlspic2.rd: Likewise.
484         * testsuite/ld-i386/tlspic2.sd: Likewise.
485         * testsuite/ld-i386/tlspic2.td: Likewise.
486         * testsuite/ld-i386/tlspic3.s: Likewise.
487         * testsuite/ld-i386/tlspie3.s: Likewise.
488         * testsuite/ld-i386/tlspie3a.d: Likewise.
489         * testsuite/ld-i386/tlspie3b.d: Likewise.
490         * testsuite/ld-i386/tlspie3c.d: Likewise.
491
492 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
493
494         * testsuite/ld-x86-64/no-plt-1a.rd: Support any relocation order.
495         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
496         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
497         * testsuite/ld-x86-64/no-plt-1d.rd: Likewise.
498         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
499         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
500         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
501         * testsuite/ld-x86-64/no-plt.exp: Fix a typo.
502
503 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
504
505         * testsuite/ld-x86-64/libno-plt-1b.dd: Likewise.
506         * testsuite/ld-x86-64/libno-plt-1b.rd: Likewise.
507         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
508         * testsuite/ld-x86-64/no-plt-1a.rd: Likewise.
509         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
510         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
511         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
512         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
513         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
514         * testsuite/ld-x86-64/no-plt-1d.rd: Likewise.
515         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
516         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
517         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
518         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
519         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
520         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
521         * testsuite/ld-x86-64/no-plt-check1.S: Likewise.
522         * testsuite/ld-x86-64/no-plt.exp: Likewise.
523         * testsuite/ld-x86-64/no-plt-extern1.S: Likewise.
524         * testsuite/ld-x86-64/no-plt-func1.c: Likewise.
525         * testsuite/ld-x86-64/no-plt-main1.c: Likewise.
526
527 2016-06-07  Maciej W. Rozycki  <macro@imgtec.com>
528
529         * testsuite/ld-elf/init-fini-arrays.d: Remove `ft32-*-*' xfail.
530
531 2016-06-07  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
532
533         * testsuite/ld-s390/pltoffset-1.dd: New test.
534         * testsuite/ld-s390/pltoffset-1.ld: New test.
535         * testsuite/ld-s390/pltoffset-1.s: New test.
536         * testsuite/ld-s390/s390.exp: Run new test.
537
538 2016-06-07  Alan Modra  <amodra@gmail.com>
539
540         * testsuite/ld-powerpc/apuinfo1.s: Delete nop.
541         * testsuite/ld-powerpc/apuinfo-vle2.s: New.
542         * testsuite/ld-powerpc/powerpc.exp: Use apuinfo-vle2.s.
543
544 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
545
546         * testsuite/ld-x86-64/pass.out: New file.
547         * testsuite/ld-x86-64/tls-def1.c: Likewise.
548         * testsuite/ld-x86-64/tls-gd1.S: Likewise.
549         * testsuite/ld-x86-64/tls-ld1.S: Likewise.
550         * testsuite/ld-x86-64/tls-main1.c: Likewise.
551         * testsuite/ld-x86-64/tls.exp: Likewise.
552         * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
553         * testsuite/ld-x86-64/tlsbin2.dd: Likewise.
554         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
555         * testsuite/ld-x86-64/tlsbin2.sd: Likewise.
556         * testsuite/ld-x86-64/tlsbin2.td: Likewise.
557         * testsuite/ld-x86-64/tlsbinpic2.s: Likewise.
558         * testsuite/ld-x86-64/tlsgd10.dd: Likewise.
559         * testsuite/ld-x86-64/tlsgd10.s: Likewise.
560         * testsuite/ld-x86-64/tlsgd11.dd: Likewise.
561         * testsuite/ld-x86-64/tlsgd11.s: Likewise.
562         * testsuite/ld-x86-64/tlsgd12.d: Likewise.
563         * testsuite/ld-x86-64/tlsgd12.s: Likewise.
564         * testsuite/ld-x86-64/tlsgd13.d: Likewise.
565         * testsuite/ld-x86-64/tlsgd13.s: Likewise.
566         * testsuite/ld-x86-64/tlsgd14.dd: Likewise.
567         * testsuite/ld-x86-64/tlsgd14.s: Likewise.
568         * testsuite/ld-x86-64/tlsgd5c.s: Likewise.
569         * testsuite/ld-x86-64/tlsgd6c.s: Likewise.
570         * testsuite/ld-x86-64/tlsgd9.dd: Likewise.
571         * testsuite/ld-x86-64/tlsgd9.s: Likewise.
572         * testsuite/ld-x86-64/tlsld4.dd: Likewise.
573         * testsuite/ld-x86-64/tlsld4.s: Likewise.
574         * testsuite/ld-x86-64/tlsld5.dd: Likewise.
575         * testsuite/ld-x86-64/tlsld5.s: Likewise.
576         * testsuite/ld-x86-64/tlsld6.dd: Likewise.
577         * testsuite/ld-x86-64/tlsld6.s: Likewise.
578         * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
579         * testsuite/ld-x86-64/tlspic2.dd: Likewise.
580         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
581         * testsuite/ld-x86-64/tlspic2.sd: Likewise.
582         * testsuite/ld-x86-64/tlspic2.td: Likewise.
583         * testsuite/ld-x86-64/tlspic3.s: Likewise.
584         * testsuite/ld-x86-64/tlspie2.s: Likewise.
585         * testsuite/ld-x86-64/tlspie2a.d: Likewise.
586         * testsuite/ld-x86-64/tlspie2b.d: Likewise.
587         * testsuite/ld-x86-64/tlspie2c.d: Likewise.
588         * testsuite/ld-x86-64/tlsgd5.dd: Updated.
589         * testsuite/ld-x86-64/tlsgd6.dd: Likewise.
590         * testsuite/ld-x86-64/x86-64.exp: Run libtlspic2.so, tlsbin2,
591         tlsgd5b, tlsgd6b, tlsld4, tlsld5, tlsld6, tlsgd9, tlsgd10,
592         tlsgd11, tlsgd14, tlsgd12, tlsgd13, tlspie2a, tlspie2b and
593         tlspie2c.
594
595 2016-06-04  Christian Groessler  <chris@groessler.org>
596
597         * testsuite/ld-z8k/0filler.s: New file.
598         * testsuite/ld-z8k/branch-target.s: New file.
599         * testsuite/ld-z8k/branch-target2.s: New file.
600         * testsuite/ld-z8k/calr-back-8001.d: New file.
601         * testsuite/ld-z8k/calr-back-8002.d: New file.
602         * testsuite/ld-z8k/calr-back-fail-8001.d: New file.
603         * testsuite/ld-z8k/calr-back-fail-8002.d: New file.
604         * testsuite/ld-z8k/calr-forw-8001.d: New file.
605         * testsuite/ld-z8k/calr-forw-8002.d: New file.
606         * testsuite/ld-z8k/calr-forw-fail-8001.d: New file.
607         * testsuite/ld-z8k/calr-forw-fail-8002.d: New file.
608         * testsuite/ld-z8k/calr-opcode.s: New file.
609         * testsuite/ld-z8k/dbjnz-forw-8001.d: New file.
610         * testsuite/ld-z8k/dbjnz-forw-8002.d: New file.
611         * testsuite/ld-z8k/dbjnz-forw-fail-8001.d: New file.
612         * testsuite/ld-z8k/dbjnz-forw-fail-8002.d: New file.
613         * testsuite/ld-z8k/dbjnz-opcode.s: New file.
614         * testsuite/ld-z8k/djnz-back-8001.d: New file.
615         * testsuite/ld-z8k/djnz-back-8002.d: New file.
616         * testsuite/ld-z8k/djnz-back-fail-8001.d: New file.
617         * testsuite/ld-z8k/djnz-back-fail-8002.d: New file.
618         * testsuite/ld-z8k/djnz-forw-8001.d: New file.
619         * testsuite/ld-z8k/djnz-forw-8002.d: New file.
620         * testsuite/ld-z8k/djnz-forw-fail-8001.d: New file.
621         * testsuite/ld-z8k/djnz-forw-fail-8002.d: New file.
622         * testsuite/ld-z8k/djnz-opcode.s: New file.
623         * testsuite/ld-z8k/filler.s: New file.
624         * testsuite/ld-z8k/jr-back-8001.d: New file.
625         * testsuite/ld-z8k/jr-back-8002.d: New file.
626         * testsuite/ld-z8k/jr-back-fail-8001.d: New file.
627         * testsuite/ld-z8k/jr-back-fail-8002.d: New file.
628         * testsuite/ld-z8k/jr-forw-8001.d: New file.
629         * testsuite/ld-z8k/jr-forw-8002.d: New file.
630         * testsuite/ld-z8k/jr-forw-fail-8001.d: New file.
631         * testsuite/ld-z8k/jr-forw-fail-8002.d: New file.
632         * testsuite/ld-z8k/jr-opcode.s: New file.
633         * testsuite/ld-z8k/ldr-back-8001.d: New file.
634         * testsuite/ld-z8k/ldr-back-8002.d: New file.
635         * testsuite/ld-z8k/ldr-back-fail-8001.d: New file.
636         * testsuite/ld-z8k/ldr-back-fail-8002.d: New file.
637         * testsuite/ld-z8k/ldr-forw-8001.d: New file.
638         * testsuite/ld-z8k/ldr-forw-8002.d: New file.
639         * testsuite/ld-z8k/ldr-forw-fail-8001.d: New file.
640         * testsuite/ld-z8k/ldr-forw-fail-8002.d: New file.
641         * testsuite/ld-z8k/ldr-opcode.s: New file.
642         * testsuite/ld-z8k/ldrb-forw-8001.d: New file.
643         * testsuite/ld-z8k/ldrb-forw-8002.d: New file.
644         * testsuite/ld-z8k/ldrb-forw-fail-8001.d: New file.
645         * testsuite/ld-z8k/ldrb-forw-fail-8002.d: New file.
646         * testsuite/ld-z8k/ldrb-opcode.s: New file.
647         * testsuite/ld-z8k/ldrb-opcode2.s: New file.
648         * testsuite/ld-z8k/other-file.s: New file.
649         * testsuite/ld-z8k/reloc.dd: New file.
650         * testsuite/ld-z8k/reloc.ld: New file.
651         * testsuite/ld-z8k/relocseg.dd: New file.
652         * testsuite/ld-z8k/relocseg.ld: New file.
653         * testsuite/ld-z8k/relocseg1.dd: New file.
654         * testsuite/ld-z8k/this-file.s: New file.
655         * testsuite/ld-z8k/z8k.exp: New file.
656
657 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
658
659         * testsuite/ld-i386/i386.exp: Assemble gotpc1.o and pr19319b.o
660         with -mrelax-relocations=yes.
661         * testsuite/ld-i386/lea1a.d (as): Add -mrelax-relocations=yes.
662         * testsuite/ld-i386/lea1b.d (as): Likewise.
663         * testsuite/ld-i386/lea1d.d (as): Likewise.
664         * testsuite/ld-i386/lea1e.d (as): Likewise.
665         * testsuite/ld-i386/lea1f.d (as): Likewise.
666         * testsuite/ld-i386/load7.d (as): Likewise.
667         * testsuite/ld-i386/mov1b.d (as): Likewise.
668         * testsuite/ld-i386/pr19175.d (as): Likewise.
669         * testsuite/ld-ifunc/ifunc-13-i386.d (as): Likewise.
670         * testsuite/ld-ifunc/ifunc-21-i386.d (as): Likewise.
671         * testsuite/ld-ifunc/ifunc-22-i386.d (as): Likewise.
672         * testsuite/ld-x86-64/x86-64.exp: Assemble gotpcrel1a.o,
673         gotpcrel1b.o and gotpcrel1c.o with -mrelax-relocations=yes.
674
675 2016-06-02  Vineet Gupta  <Vineet.Gupta1@synopsys.com>
676
677         * configure.tgt: Replace -uclibc with *.
678
679 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
680
681         * testsuite/ld-mips-elf/unaligned-branch.d: New test.
682         * testsuite/ld-mips-elf/unaligned-branch.s: New test source.
683         * testsuite/ld-mips-elf/unaligned-text.s: New test source.
684         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
685
686 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
687
688         * testsuite/ld-mips-elf/unaligned-syms.s: Rename to...
689         * testsuite/ld-mips-elf/unaligned-data.s: ... this.
690         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Adjust accordingly.
691         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
692         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Likewise.
693         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
694
695 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
696
697         * testsuite/ld-mips-elf/jal-global-overflow-0.d: New test.
698         * testsuite/ld-mips-elf/jal-global-overflow-1.d: New test.
699         * testsuite/ld-mips-elf/jal-local-overflow-0.d: New test.
700         * testsuite/ld-mips-elf/jal-local-overflow-1.d: New test.
701         * testsuite/ld-mips-elf/jal-global-overflow.s: New test source.
702         * testsuite/ld-mips-elf/jal-local-overflow.s: New test source.
703         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
704
705 2016-05-28  Alan Modra  <amodra@gmail.com>
706
707         * ldmain.c (multiple_definition, multiple_common, add_to_set,
708         constructor_callback, warning_callback, undefined_symbol,
709         reloc_overflow, reloc_dangerous, unattached_reloc): Return void.
710         * emultempl/elf32.em: Adjust callback calls.
711
712 2016-05-27  Maciej W. Rozycki  <macro@imgtec.com>
713
714         * testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: New test.
715         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: New test.
716         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d: New
717         test.
718         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d: New
719         test.
720         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d: New
721         test.
722         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d: New
723         test.
724         * testsuite/ld-mips-elf/unaligned-jalx-addend-0.s: New test
725         source.
726         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.s: New test
727         source.
728         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
729
730 2016-05-27  Maciej W. Rozycki  <macro@imgtec.com>
731
732         * testsuite/ld-mips-elf/reloc-local-overflow.d: New test.
733         * testsuite/ld-mips-elf/reloc-local-overflow.s: Source for the
734         new test.
735         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
736
737 2016-05-26  Maciej W. Rozycki  <macro@imgtec.com>
738
739         * testsuite/ld-mips-elf/unaligned-jalx-0.d: Fold
740         `unaligned-jalx-2' here.
741         * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: Fold
742         `unaligned-jalx-mips16-2' here.
743         * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: Fold
744         `unaligned-jalx-micromips-2' here.
745         * testsuite/ld-mips-elf/unaligned-jalx-0.s: Update accordingly.
746         * testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error
747         message.
748         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
749         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
750         * testsuite/ld-mips-elf/unaligned-jalx-2.d: Remove test.
751         * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: Remove test.
752         * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: Remove
753         test.
754         * testsuite/ld-mips-elf/unaligned-jalx-2.s: Remove test source.
755         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Fold
756         `unaligned-lwpc-3' here.
757         * testsuite/ld-mips-elf/unaligned-lwpc-0.s: Update accordingly.
758         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Fold
759         `unaligned-lwpc-2' here.
760         * testsuite/ld-mips-elf/unaligned-lwpc-1.s: Update accordingly.
761         * testsuite/ld-mips-elf/unaligned-lwpc-2.d: Remove test.
762         * testsuite/ld-mips-elf/unaligned-lwpc-2.s: Remove test source.
763         * testsuite/ld-mips-elf/unaligned-lwpc-3.d: Remove test.
764         * testsuite/ld-mips-elf/unaligned-lwpc-3.s: Remove test source.
765         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Fold
766         `unaligned-ldpc-4' here.
767         * testsuite/ld-mips-elf/unaligned-ldpc-0.s: Update accordingly.
768         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Update error
769         message.  Fold `unaligned-ldpc-2' and `unaligned-ldpc-3' here.
770         * testsuite/ld-mips-elf/unaligned-ldpc-1.s: Update accordingly.
771         * testsuite/ld-mips-elf/unaligned-ldpc-2.d: Remove test.
772         * testsuite/ld-mips-elf/unaligned-ldpc-2.s: Remove test source.
773         * testsuite/ld-mips-elf/unaligned-ldpc-3.d: Remove test.
774         * testsuite/ld-mips-elf/unaligned-ldpc-3.s: Remove test source.
775         * testsuite/ld-mips-elf/unaligned-ldpc-4.d: Remove test.
776         * testsuite/ld-mips-elf/unaligned-ldpc-4.s: Remove test source.
777         * testsuite/ld-mips-elf/mips-elf.exp: Delete removed tests.
778
779 2016-05-26  Nick Clifton  <nickc@redhat.com>
780
781         PR target/20134
782         * scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
783         __bsssize.
784         * scripttempl/elf32msp430_3.sc (.bss): Likewise.
785
786 2016-05-25  Maciej W. Rozycki  <macro@imgtec.com>
787
788         * testsuite/ld-mips-elf/unaligned-jalx-0.d: New test.
789         * testsuite/ld-mips-elf/unaligned-jalx-1.d: New test.
790         * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
791         * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: New test.
792         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: New test.
793         * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: New test.
794         * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: New test.
795         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: New test.
796         * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: New test.
797         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: New test.
798         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: New test.
799         * testsuite/ld-mips-elf/unaligned-lwpc-2.d: New test.
800         * testsuite/ld-mips-elf/unaligned-lwpc-3.d: New test.
801         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: New test.
802         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: New test.
803         * testsuite/ld-mips-elf/unaligned-ldpc-2.d: New test.
804         * testsuite/ld-mips-elf/unaligned-ldpc-3.d: New test.
805         * testsuite/ld-mips-elf/unaligned-ldpc-4.d: New test.
806         * testsuite/ld-mips-elf/unaligned-jalx-0.s: New test source.
807         * testsuite/ld-mips-elf/unaligned-jalx-1.s: New test source.
808         * testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
809         * testsuite/ld-mips-elf/unaligned-insn.s: New test source.
810         * testsuite/ld-mips-elf/unaligned-lwpc-0.s: New test source.
811         * testsuite/ld-mips-elf/unaligned-lwpc-1.s: New test source.
812         * testsuite/ld-mips-elf/unaligned-lwpc-2.s: New test source.
813         * testsuite/ld-mips-elf/unaligned-lwpc-3.s: New test source.
814         * testsuite/ld-mips-elf/unaligned-ldpc-0.s: New test source.
815         * testsuite/ld-mips-elf/unaligned-ldpc-1.s: New test source.
816         * testsuite/ld-mips-elf/unaligned-ldpc-2.s: New test source.
817         * testsuite/ld-mips-elf/unaligned-ldpc-3.s: New test source.
818         * testsuite/ld-mips-elf/unaligned-ldpc-4.s: New test source.
819         * testsuite/ld-mips-elf/unaligned-syms.s: New test source.
820         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
821
822 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
823
824         PR ld/20103
825         * ldmain.c (add_archive_element): Don't claim new IR symbols
826         after all IR symbols have been claimed.
827         * plugin.c (plugin_call_claim_file): Remove no_more_claiming
828         check.
829         * testsuite/ld-plugin/lto.exp (pr20103): New proc.
830         Run PR ld/20103 tests.
831         * testsuite/ld-plugin/pr20103a.c: New file.
832         * testsuite/ld-plugin/pr20103b.c: Likewise.
833         * testsuite/ld-plugin/pr20103c.c: Likewise.
834
835 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
836     
837         * testsuite/ld-mips-elf/jalx-local.d: New test.
838         * testsuite/ld-mips-elf/jalx-local-n32.d: New test.
839         * testsuite/ld-mips-elf/jalx-local-n64.d: New test.
840         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
841
842 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
843
844         * Makefile.am: Add earmelf_phoenix.c.
845         * Makefile.in: Regenerate.
846         * configure.tgt: Add entry for arm-phoenix.
847         * emulparams/armelf_phoenix.sh: New file.
848
849 2016-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
850
851         * emultempl/armelf.em (arm_elf_before_allocation): Call
852         bfd_elf32_arm_keep_private_stub_output_sections before generic
853         before_allocation function.
854
855 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
856
857         * testsuite/ld-mips-elf/jalx-addend.d: New test.
858         * testsuite/ld-mips-elf/jalx-addend-n32.d: New test.
859         * testsuite/ld-mips-elf/jalx-addend-n64.d: New test.
860         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
861
862 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
863
864         PR ld/20117
865         * testsuite/ld-i386/i386.exp: Run pr20117.
866         * testsuite/ld-i386/pr19609-1i.d: Updated.
867         * testsuite/ld-i386/pr20117.d: New file.
868         * testsuite/ld-i386/pr20117.s: Likewise.
869
870 2016-05-19  Cupertino Miranda  <cmiranda@synopsys.com>
871
872         * testsuite/ld-elf/compressed1d.d: Removed from notarget.
873         * testsuite/ld-elf/group8a.d: Likewise.
874         * testsuite/ld-elf/group8b.d: Likewise.
875         * testsuite/ld-elf/group9a.d: Likewise.
876         * testsuite/ld-elf/group9b.d: Likewise.
877         * testsuite/ld-elf/pr12851.d: Likewise.
878         * testsuite/ld-elf/pr12975.d: Likewise.
879         * testsuite/ld-elf/pr13177.d: Likewise.
880         * testsuite/ld-elf/pr13195.d: Likewise.
881         * testsuite/ld-elf/pr17615.d: Likewise.
882         * testsuite/ld-elf/eh-frame-hdr.d: Removed from xfail.
883         * testsuite/ld-elf/group3b.d: Likewise.
884         * testsuite/ld-srec/srec.exp: Likewise.
885         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark ARC
886         as supporting gc.
887         (check_shared_lib_support): Mark ARC as supporting.
888
889 2016-05-19  Cupertino Miranda  <cmiranda@synopsys.com>
890
891         * emulparams/arcelf.sh: Changed.
892         * emulparams/arclinux.sh: Likewise.
893         * scripttempl/arclinux.sc: Moved to a more standard implementation
894         similar to elf.sc.
895
896 2016-05-19  Maciej W. Rozycki  <macro@imgtec.com>
897
898         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Reorder
899         `ft32-*-*' behind `frv-*-*'.
900
901 2016-05-19  Maciej W. Rozycki  <macro@imgtec.com>
902
903         * configure.tgt: Remove `am34-*-linux*' support.
904
905 2016-05-19  Alan Modra  <amodra@gmail.com>
906
907         * testsuite/ld-scripts/crossref.exp: Remove -mcall-aixdesc hack.
908         * testsuite/ld-scripts/cross2.t: Tweak .opd and .toc placement.
909         * testsuite/ld-scripts/cross3.t: Likewise.
910         * testsuite/ld-scripts/cross4.t: Likewise.
911         * testsuite/ld-scripts/cross5.t: Likewise.
912         * testsuite/ld-scripts/cross6.t: Likewise.
913         * testsuite/ld-scripts/cross7.t: Likewise.
914
915 2016-05-19  Alan Modra  <amodra@gmail.com>
916
917         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Pass in
918         exe name rather than constructing testname.  Fix typo in
919         sub-test name.  Log copying.  Use -rpath rather than -R.
920
921 2016-05-18  Nick Clifton  <nickc@redhat.com>
922
923         * scripttempl/ft32.sc: Use fixed constants for memory region
924         lengths.  Include DWARF debug sections.
925         (.data .bss): Do not assign locations during relocatable links.
926         * testsuite/ld-elf/compressed1d.d: Skip for FT32.
927         * testsuite/ld-elf/sec-to-seg.exp: Likewise.
928         * testsuite/ld-elf/sec64k.exp: Likewise.
929         * testsuite/ld-elf/init-fini-array.d: XFail for FT32.
930         * testsuite/ld-elf/merge.d: Likewise.
931         * testsuite/ld-elf/orphan-region.d: Likewise.
932         * testsuite/ld-elf/orphan.s: Likewise.
933         * testsuite/ld-elf/orphan3.d: Likewise.
934         * testsuite/ld-elf/pr349.d: Likewise.
935         * testsuite/ld-elf/warn2.d: Likewise.
936         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Note
937         that the FT32 does not support shared libraries.
938
939 2016-05-17  H.J. Lu  <hongjiu.lu@intel.com>
940
941         * testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
942         global CC.
943
944 2016-05-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
945
946         * scripttempl/avr.sc (text): Place .progmem.data from avr-libc
947         above .progmem*.
948         * scripttempl/avrtiny.sc (text): Likewise.
949
950 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
951
952         * testsuite/ld-unique/unique.exp: Use `is_elf_format' and
953         `supports_gnu_unique' to qualify testing.
954
955 2016-05-16  Maciej W. Rozycki  <macro@imgtec.com>
956
957         * testsuite/ld-elf/flags1.d: Update the xfail list.
958
959 2016-05-15  Maciej W. Rozycki  <macro@imgtec.com>
960
961         * testsuite/ld-elf/flags1.d: Update for `*-*-nacl*' xfail
962         removal.
963
964 2016-05-14  H.J. Lu  <hongjiu.lu@intel.com>
965
966         PR ld/20097
967         * testplug2.c (onall_symbols_read): Remove redundant sizeof
968         on EXPECTED_VIEW_LENGTH.
969         * testplug4.c (onall_symbols_read): Likewise.
970
971 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
972
973         PR ld/20093
974         * testsuite/ld-x86-64/pr20093-1.d: New file.
975         * testsuite/ld-x86-64/pr20093-1.s: Likewise.
976         * testsuite/ld-x86-64/pr20093-2.d: Likewise.
977         * testsuite/ld-x86-64/pr20093-2.s: Likewise.
978         * testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
979
980 2016-05-13  Alan Modra  <amodra@gmail.com>
981
982         * testsuite/ld-arm/arm-elf.exp: Adjust for arm-no-rel-plt now passing.
983         Use different output file name for static app without .rel.plt.
984         * testsuite/ld-arm/arm-no-rel-plt.ld: Align .rel.dyn and .rela.dyn.
985         * testsuite/ld-arm/arm-no-rel-plt.out: Delete.
986         * testsuite/ld-arm/arm-no-rel-plt.r: New.
987         * testsuite/ld-arm/arm-static-app.d: Don't check file name.
988         * testsuite/ld-arm/arm-static-app.r: Likewise.
989
990 2016-05-12  H.J. Lu  <hongjiu.lu@intel.com>
991
992         PR ld/20070
993         * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug4.la.
994         (libldtestplug4_la_SOURCES): New.
995         (libldtestplug4_la_CFLAGS): Likewise.
996         (libldtestplug4_la_LDFLAGS): Likewise.
997         * Makefile.in: Regenerated.
998         * plugin.c (get_symbols): Return resolution based on IR symbol
999         kinds for symbols defined/referenced only within IR.
1000         * testplug4.c: New file.
1001         * ld/testsuite/ld-plugin/pr20070.d: Likewise.
1002         * ld/testsuite/ld-plugin/pr20070a.c: Likewise.
1003         * ld/testsuite/ld-plugin/pr20070b.c: Likewise.
1004         * testsuite/ld-plugin/plugin.exp (plugin4_name): New.
1005         (plugin4_path): Likewise.
1006         Add a test for ld/20070.
1007
1008 2016-05-11  Alan Modra  <amodra@gmail.com>
1009
1010         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1011         Call elf32_hppa_init_stub_bfd.
1012
1013 2016-05-11  Alan Modra  <amodra@gmail.com>
1014
1015         PR 20060
1016         * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1017         * testsuite/ld-powerpc/tlsdll.s: New.
1018         * testsuite/ld-powerpc/tlsdll.ver: New.
1019         * testsuite/ld-powerpc/tlsdll_32.s: New.
1020         * testsuite/ld-powerpc/tlsopt5.d: New.
1021         * testsuite/ld-powerpc/tlsopt5.s: New.
1022         * testsuite/ld-powerpc/tlsopt5_32.d: New.
1023         * testsuite/ld-powerpc/tlsopt5_32.s: New.
1024
1025 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1026
1027         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use
1028         ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
1029
1030 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1031
1032         * emultempl/armelf.em (elf32_arm_add_stub_section): Add output_section
1033         parameter and rename input_section parameter to after_input_section.
1034         Append input stub section to the output section if after_input_section
1035         is NULL.
1036
1037 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1038
1039         * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 10 (DSP)): New
1040         test.
1041         * testsuite/ld-arm/attr-merge-10b-dsp.s: New file.
1042         * testsuite/ld-arm/attr-merge-10-dsp.attr: Likewise.
1043
1044 2016-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
1045
1046         * ld/testsuite/ld-elf/flags1.d (xfail): Remove *-*-nacl*".
1047
1048 2016-05-09  Christophe Monat  <christophe.monat@st.com>
1049
1050         PR ld/20030
1051         * testsuite/ld-arm/arm-elf.exp: Run new stm32l4xx-fix-vldm-dp
1052         tests. Fix misnamed stm32l4xx-fix-all.
1053         * testsuite/ld-arm/stm32l4xx-fix-vldm-dp.s: New tests for multiple
1054         loads with DP registers.
1055         * testsuite/ld-arm/stm32l4xx-fix-vldm-dp.d: New reference file.
1056         * testsuite/ld-arm/stm32l4xx-fix-vldm.s: Add missing comment.
1057         * testsuite/ld-arm/stm32l4xx-fix-all.s: Add tests for multiple
1058         loads with DP registers.
1059         * testsuite/ld-arm/stm32l4xx-fix-all.d: Update reference.
1060
1061 2016-05-09  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1062
1063         * testsuite/ld-elf/flags1.d (readelf): Dump section header instead
1064         program headers.
1065         (xfail): Remove avr-*-*.
1066         Update regex to check the section flags.
1067         * testsuite/ld-elf/merge.d (xfail): Remove avr-*-*.
1068
1069 2016-05-09  Alan Modra  <amodra@gmail.com>
1070
1071         * Makefile.am (ealphavms.c, eelf64_ia64_vms): Correct .em deps.
1072         * Makefile.in: Regenerate.
1073
1074 2016-05-09  Alan Modra  <amodra@gmail.com>
1075
1076         * testsuite/ld-scripts/pr14962-2.t: Match .text, not *.text.
1077         * testsuite/ld-scripts/rgn-at5.t: Similarly, .sec not *.sec.
1078         * testsuite/ld-scripts/section-match-1.t: Likewise.
1079
1080 2016-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1081
1082         PR ld/17550
1083         * testsuite/ld-elf/pr17550-1.s: New file.
1084         * testsuite/ld-elf/pr17550-2.s: Likewise.
1085         * testsuite/ld-elf/pr17550-3.s: Likewise.
1086         * testsuite/ld-elf/pr17550-4.s: Likewise.
1087         * testsuite/ld-elf/pr17550a.d: Likewise.
1088         * testsuite/ld-elf/pr17550b.d: Likewise.
1089         * testsuite/ld-elf/pr17550c.d: Likewise.
1090         * testsuite/ld-elf/pr17550d.d: Likewise.
1091
1092 2016-05-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1093
1094         * ld/testsuite/ld-srec/srec.exp: Mark test as XFAIL for AVR.
1095
1096 2016-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1097
1098         * testsuite/ld-i386/i386.exp: Run load7.
1099         * testsuite/ld-i386/load7.d: New file.
1100         * testsuite/ld-i386/load7.map: Likewise.
1101         * testsuite/ld-i386/load7.s: Likewise.
1102         * testsuite/ld-x86-64/load2.d: Likewise.
1103         * testsuite/ld-x86-64/load2.map: Likewise.
1104         * testsuite/ld-x86-64/load2.s: Likewise.
1105         * testsuite/ld-x86-64/x86-64.exp: Run load2.
1106
1107 2016-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1108
1109         * emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): New.
1110         * emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1111         Likewise.
1112         * emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1113         Likewise.
1114
1115 2016-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1116
1117         * testsuite/ld-x86-64/pr18591.d: Pass --no-relax to ld.
1118
1119 2016-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1120
1121         * ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
1122
1123 2016-05-04  Maciej W. Rozycki  <macro@imgtec.com>
1124
1125         * testsuite/ld-unique/unique.d: New test.
1126         * testsuite/ld-unique/unique.exp: Run the new test.  Adjust
1127         messages for compiled tests.
1128
1129 2016-05-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1130
1131         * testsuite/ld-elf/pr18735.d: Allow other symbols.
1132         * testsuite/ld-elf/sec64k.exp: Skip 64ksec for avr.
1133         * testsuite/ld-gc/pr14265.d: Allow other symbols.
1134         * testsuite/ld-plugin/plugin.exp: Add PR ld/17973 to
1135         plugin_tests only if check_shared_lib_support is true.
1136         * testsuite/ld-selective/selective.exp: Add --section-start
1137         flag for avr.
1138
1139 2016-05-03  Maciej W. Rozycki  <macro@imgtec.com>
1140
1141         PR 10549
1142         * testsuite/ld-unique/unique.exp: Also run for `mips*-*-*'.
1143
1144 2016-05-03  Jiong Wang  <jiong.wang@arm.com>
1145
1146         * emultempl/aarch64elf.em (--no-apply-dynamic-relocs): New option.
1147         * NEWS: Mention --no-apply-dynamic-relocs.
1148         * ld.texinfo (ld and the ARM family): Document
1149         --no-apply-dynamic-relocs.
1150         * testsuite/ld-aarch64/rela-abs-relative.s: New test source.
1151         * testsuite/ld-aarch64/rela-abs-relative.d: New expected result.
1152         * testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise for big-endian.
1153         * estsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise, but enable new
1154         option.
1155
1156 2016-05-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1157
1158         * testsuite/ld-elfcomm/elfcomm.exp: Check for shared lib support
1159         before running STT_COMMON tests.
1160
1161 2016-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1162
1163         * config/default.exp (NOPIE_CFLAGS): Download source only on
1164         remote host.
1165         (NOPIE_LDFLAGS): Likewise.
1166         * testsuite/lib/ld-lib.exp (check_lto_available): Likewise.
1167         (check_lto_fat_available): Likewise.
1168         (check_lto_shared_available): Likewise.
1169         (check_ifunc_available): Likewise.
1170         (check_ifunc_attribute_available): Likewise.
1171
1172 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1173
1174         * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
1175
1176 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1177
1178         PR ld/20006
1179         * testsuite/ld-elfvsb/elfvsb.exp (COMPRESS_LDFLAG): New.
1180         (visibility_run): Pass COMPRESS_LDFLAG to visibility_test on
1181         ELF targets.
1182
1183 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1184
1185         * testsuite/ld-elf/compressed1b.d: Pass
1186         --compress-debug-sections=none to ld.
1187         * testsuite/ld-elf/compressed1c.d: Likewise.
1188
1189 2016-04-27  Alan Modra  <amodra@gmail.com>
1190
1191         PR target/19985
1192         * configure.tgt: Don't use var+=.
1193
1194 2016-04-25  Nick Clifton  <nickc@redhat.com>
1195
1196         PR target/19985
1197         * configure.tgt: Include big endian PPC64 emulations with little
1198         endian PPC64 targets.
1199
1200 2016-04-25  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1201
1202         * scripttempl/avrtiny.sc (.text): Do not set LMA to zero.
1203
1204 2016-04-21  Nick Clifton  <nickc@redhat.com>
1205
1206         * ldlang.c (lang_check_relocs): Use bfd_link_check_relocs in
1207         prefernce to _bfd_elf_link_check_relocs.  Drop test for ELF
1208         targets.  Do not stop the checks when problems are encountered.
1209
1210 2016-04-21  Alan Modra  <amodra@gmail.com>
1211
1212         * testsuite/ld-scripts/cross3.t: Add commonly used data
1213         and text section names to output section statements.
1214         * testsuite/ld-scripts/cross4.t: Likewise.
1215         * testsuite/ld-scripts/cross5.t: Likewise.
1216         * testsuite/ld-scripts/cross6.t: Likewise.
1217         * testsuite/ld-scripts/cross7.t: Likewise.
1218
1219 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1220
1221         * ldlang.c (lang_check_relocs): New function.
1222         (lang_process): Call lang_check_relocs after lang_gc_sections.
1223         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1224         call _bfd_elf_link_check_relocs here.
1225
1226 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1227
1228         PR ld/19972
1229         * testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for
1230         R_386_NONE or R_X86_64_NONE.
1231
1232 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1233
1234         * testsuite/ld-x86-64/pic1.d: New file.
1235         * testsuite/ld-x86-64/pic1.s: Likewise.
1236         * testsuite/ld-x86-64/x86-64.exp: Run pic1.
1237
1238 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1239
1240         * testsuite/ld-x86-64/pie2.d: New file.
1241         * testsuite/ld-x86-64/pie2.s: Likewise.
1242         * testsuite/ld-x86-64/x86-64.exp: Run pie2.
1243
1244 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1245
1246         PR ld/19969
1247         * testsuite/ld-x86-64/pr19969.d: New file.
1248         * testsuite/ld-x86-64/pr19969a.S: Likewise.
1249         * testsuite/ld-x86-64/pr19969b.S: Likewise.
1250         * testsuite/ld-x86-64/x86-64.exp: Run pr19969 tests.
1251
1252 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1253
1254         * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1255         New.
1256         * emulparams/elf_i386.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1257         Likewise.
1258         * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1259         Likewise.
1260         * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1261         Likewise.
1262         * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1263         Likewise.
1264         * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1265         Likewise.
1266         * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1267         Likewise.
1268         * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1269         Likewise.
1270         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
1271         Set check_relocs_after_open_input to TRUE if
1272         CHECK_RELOCS_AFTER_OPEN_INPUT is yes.
1273         (gld${EMULATION_NAME}_after_open): Call
1274         _bfd_elf_link_check_relocs on all inputs if
1275         check_relocs_after_open_input is TRUE.
1276
1277 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1278
1279         * testsuite/ld-elf/eh6.s: Replace .long with .dc.a on
1280         my_personality_v0.
1281
1282 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1283
1284         * emultempl/scoreelf.em: Likewise.
1285
1286 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
1287
1288         PR ld/19719
1289         * testsuite/ld-x86-64/pr19719.d: New file.
1290         * testsuite/ld-x86-64/pr19719.s: Likewise.
1291         * testsuite/ld-x86-64/x86-64.exp: Run pr19719.
1292
1293 2016-04-18  Matthew Fortune  <matthew.fortune@imgtec.com>
1294
1295         * ld.texinfo: Document NOCROSSREFS_TO script command.
1296         * ldlang.h (struct lang_nocrossrefs): Add onlyfirst field.
1297         (lang_add_nocrossref_to): New prototype.
1298         * ldcref.c (check_local_sym_xref): Use onlyfirst to only look for
1299         symbols defined in the first section.
1300         (check_nocrossref): Likewise.
1301         * ldgram.y (NOCROSSREFS_TO): New script command.
1302         * ldlang.c (lang_add_nocrossref): Set onlyfirst to FALSE.
1303         (lang_add_nocrossref_to): New function.
1304         * ldlex.l (NOCROSSREFS_TO): New token.
1305         * NEWS: Mention NOCROSSREFS_TO.
1306         * testsuite/ld-scripts/cross4.t: New file.
1307         * testsuite/ld-scripts/cross5.t: Likewise.
1308         * testsuite/ld-scripts/cross6.t: Likewise.
1309         * testsuite/ld-scripts/cross7.t: Likewise.
1310         * testsuite/ld-scripts/crossref.exp: Run 4 new NOCROSSREFS_TO
1311         tests.
1312
1313 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1314
1315         * Makefile.in: Regenerated with automake 1.11.6.
1316         * aclocal.m4: Likewise.
1317
1318 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
1319
1320         * testsuite/ld-arc/arc.exp: New file.
1321         * testsuite/ld-arc/nps-1.s: New file.
1322         * testsuite/ld-arc/nps-1a.d: New file.
1323         * testsuite/ld-arc/nps-1b.d: New file.
1324         * testsuite/ld-arc/nps-1b.err: New file.
1325
1326 2016-04-14  Nick Clifton  <nickc@redhat.com>
1327
1328         PR 19457
1329         * testsuite/ld-scripts/script.exp (extract_symbol_test): Add
1330         exceptions for Mingw and Cygwin.
1331
1332 2016-04-13  Andrew Burgess  <andrew.burgess@embecosm.com>
1333
1334         * testsuite/lib/ld-lib.exp (run_dump_test): Initialise
1335         check_ld(terminal).
1336
1337 2016-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1338
1339         PR ld/19774
1340         * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr17689b.o before
1341         tmpdir/pr17689.so, fix gotpcrel1 test and add more --as-needed
1342         tests.
1343
1344 2016-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1345
1346         PR ld/19939
1347         * testsuite/ld-i386/i386.exp: Run PR ld/19939 tests.
1348         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1349         * testsuite/ld-i386/pr19939.s: New file.
1350         * testsuite/ld-i386/pr19939a.d: Likewise.
1351         * testsuite/ld-i386/pr19939b.d: Likewise.
1352         * testsuite/ld-x86-64/pr19939.s: Likewise.
1353         * testsuite/ld-x86-64/pr19939a.d: Likewise.
1354         * testsuite/ld-x86-64/pr19939b.d: Likewise.
1355
1356 2016-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
1357
1358         * emulparams/shelf.sh: Set stack area to 0x3FFFFF00.
1359
1360 2016-04-08  Alan Modra  <amodra@gmail.com>
1361
1362         PR 18452
1363         * ldlang.c (maybe_overlays): Delete.
1364         (lang_size_sections_1): Remove code setting maybe_overlays.
1365         (lang_check_section_addresses): Instead detect overlays by
1366         exact match of section VMAs here.  Fix memory leak.
1367
1368 2016-04-08  Dan Gisselquist  <dgisselq@ieee.org>
1369
1370         * ldlang.c (print_output_section_statement): Show minfo size
1371         in target machine address units.
1372         (print_reloc_statement): Likewise.
1373         (print_padding_statement): Likewise.
1374         (print_data_statement): Likewise.  Ensure minimum print_dot
1375         increment of one address unit.
1376
1377 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1378
1379         * emulparams/arc-endianness.sh: Make little endian default choice.
1380
1381 2016-04-07  Nick Clifton  <nickc@redhat.com>
1382
1383         * scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in
1384         section name.
1385         * scripttempl/elf32msp430_3.sc (.MSP430.attributes): Likewise.
1386
1387 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
1388
1389         * emulparams/arc-endianness.sh: New file.
1390         * emulparams/arcebelf.sh: Deleted.
1391         * emulparams/arcebelf_prof.sh: Deleted.
1392         * emulparams/arceblinux.sh: Deleted.
1393         * emulparams/arceblinux_prof.sh: Deleted.
1394         * emulparams/arcelf.sh: Include arc-endinness.sh.
1395         * emulparams/arcelf_prof.sh: Include arc-endinness.sh.
1396         * emulparams/arclinux.sh: Include arc-endinness.sh.
1397         * emulparams/arclinux_prof.sh: Include arc-endinness.sh.
1398         * emulparams/arcv2elf.sh: Include arc-endinness.sh.
1399         * emulparams/arcv2elfx.sh: Include arc-endinness.sh.
1400         * testsuite/ld-elf/compressed1d.d: Update pattern for big and
1401         little endian arc targets.
1402         * testsuite/ld-elf/eh-frame-hdr.d: Likewise.
1403         * testsuite/ld-elf/group1.d: Likewise.
1404         * testsuite/ld-elf/group3b.d: Likewise.
1405         * testsuite/ld-elf/group8a.d: Likewise.
1406         * testsuite/ld-elf/group8b.d: Likewise.
1407         * testsuite/ld-elf/group9a.d: Likewise.
1408         * testsuite/ld-elf/group9b.d: Likewise.
1409         * testsuite/ld-elf/linkonce2.d: Likewise.
1410         * testsuite/ld-elf/pr12851.d: Likewise.
1411         * testsuite/ld-elf/pr12975.d: Likewise.
1412         * testsuite/ld-elf/pr13177.d: Likewise.
1413         * testsuite/ld-elf/pr13195.d: Likewise.
1414         * testsuite/ld-elf/pr17615.d: Likewise.
1415         * testsuite/ld-elf/pr19162.d: Likewise.
1416         * testsuite/ld-elf/sec64k.exp: Likewise.
1417         * testsuite/lib/ld-lib.exp: Likewise.
1418
1419 2016-04-05  Maciej W. Rozycki  <macro@imgtec.com>
1420
1421         PR ld/19908
1422         * testsuite/ld-cris/tls-e-20.d: Adjust for hidden symbol
1423         handling fix.
1424         * testsuite/ld-cris/tls-e-20a.d: Likewise.
1425         * testsuite/ld-cris/tls-e-21.d: Likewise.
1426         * testsuite/ld-cris/tls-e-23.d: Likewise.
1427         * testsuite/ld-cris/tls-e-80.d: Likewise.
1428         * testsuite/ld-cris/tls-gd-3h.d: Likewise.
1429         * testsuite/ld-cris/tls-leie-19.d: Likewise.
1430         * testsuite/ld-mips-elf/export-class-ref-lib.sd: New test.
1431         * testsuite/ld-mips-elf/export-hidden-ref.sd: New test.
1432         * testsuite/ld-mips-elf/export-internal-ref.sd: New test.
1433         * testsuite/ld-mips-elf/export-protected-ref.sd: New test.
1434         * testsuite/ld-mips-elf/export-class-ref-f0.s: New test source.
1435         * testsuite/ld-mips-elf/export-class-ref-f1.s: New test source.
1436         * testsuite/ld-mips-elf/export-class-ref-f2.s: New test source.
1437         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1438
1439 2016-04-05  Cupertino Miranda  <cmiranda@synopsys.com>
1440
1441         * testsuite/ld-discard/extern.d: Removed xfail for ARC.
1442         * testsuite/ld-discard/start.d: Likewise.
1443         * testsuite/ld-discard/static.d: Likewise.
1444         * testsuite/ld-elf/group1.d: Likewise.
1445         * testsuite/ld-elf/group3b.d: Likewise.
1446         * testsuite/ld-elf/orphan-region.d: Likewise.
1447         * testsuite/ld-elf/orphan.d: Likewise.
1448         * testsuite/ld-elf/orphan3.d: Likewise.
1449         * testsuite/ld-elf/pr349.d: Likewise.
1450         * testsuite/ld-elf/warn1.d: Likewise.
1451         * testsuite/ld-elf/warn2.d: Likewise.
1452         * testsuite/ld-elf/warn3.d: Likewise.
1453         * testsuite/ld-scripts/crossref.exp: Add __SDATA_BEGIN__ symbol
1454         through linker flags.
1455         * testsuite/ld-srec/srec.exp: Set as xfail.
1456
1457 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1458
1459         PR ld/19827
1460         * testsuite/ld-i386/pr19827-nacl.rd: New file.
1461         * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
1462
1463 2016-04-04  Nick Clifton  <nickc@redhat.com>
1464
1465         PR 19803
1466         * emultempl/pe.em (change_undef): New function.  Encapsulates
1467         duplicated code in pe_fixup_stdcalls and adds the newly defined
1468         sym to the gc root list.
1469         (pe_fixup_stdcall): Use the new function.
1470         * pe-dll.c (process_def_file_and_drectve); Add alias of exported
1471         symbol to gc root list.
1472
1473 2016-03-31  Alan Modra  <amodra@gmail.com>
1474
1475         * ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file.
1476         (lang_insert_orphan): Use TO_ADDR in __stop sym calculation.
1477         (print_input_section): Don't use TO_ADDR when printing section
1478         size.
1479         (lang_size_sections_1): Use TO_ADDR in overlay lma calculation.
1480         (lang_size_sections): Use TO_ADDR in relro end calculation.
1481
1482 2016-03-30  Andrew Burgess  <andrew.burgess@embecosm.com>
1483
1484         * testsuite/lib/ld-lib.exp (run_dump_test): Fix check of return
1485         value from regexp_diff.
1486         * testsuite/ld-elf/orphan-5.l: Fix expected output.
1487         * testsuite/ld-elf/orphan-6.l: Likewise.
1488
1489 2016-03-30  Alan Modra  <amodra@gmail.com>
1490
1491         PR 18452
1492         * ldlang.c (maybe_overlays): New static var.
1493         (lang_size_sections_1): Set it here.
1494         (struct check_sec): New.
1495         (sort_sections_by_lma): Adjust for array of structs.
1496         (sort_sections_by_vma): New function.
1497         (lang_check_section_addresses): Check both LMA and VMA for overlap.
1498         * testsuite/ld-scripts/rgn-over7.d: Adjust.
1499
1500 2016-03-30  Alan Modra  <amodra@gmail.com>
1501
1502         * ldlang.c (lang_size_sections_1): Correct code detecting a
1503         backward non-overlapping move.
1504
1505 2016-03-30  Alan Modra  <amodra@gmail.com>
1506
1507         * ldlang.c (IS_TBSS): New macro, extracted from..
1508         (IGNORE_SECTION): ..here.
1509         (lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION.
1510         (lang_size_sections, lang_do_assignments_1): Use IS_TBSS.
1511
1512 2016-03-22  Nick Clifton  <nickc@redhat.com>
1513
1514         PR ld/19803
1515         * ldlang.c (lang_add_gc_name): New function.  Adds the provided
1516         symbol name to the list of gc symbols.
1517         (lang_process): Call lang_add_gc_name with entry_symbol_default if
1518         entry_symbol.name is NULL.  Use lang_add_gc_name to add the init
1519         and fini function names.
1520         * pe-dll.c (process_def_file_and_drectve): Add exported names to
1521         the gc symbol list.
1522         * testsuite/ld-pe/pr19803.s: Do not export _testval symbol.
1523         * testsuite/ld-pe/pr19803.d: Tweak expected output.
1524
1525 2016-03-22  Nick Clifton  <nickc@redhat.com>
1526
1527         * configure: Regenerate.
1528
1529 2016-03-21  Nick Clifton  <nickc@redhat.com>
1530
1531         * emultempl/msp430.em: Replace use of alloca with call to xmalloc.
1532         * plugin.c: Likewise.
1533         * pe-dll.c: Likewise.
1534
1535 2016-03-18  Awson  <kyrab@mail.ru>
1536
1537         PR 19531
1538         * scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP
1539         this section.
1540         * scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise.
1541
1542 2016-03-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1543
1544         * ld-avr/gc-section-debugline.d: Relax regex check for CU.
1545
1546 2016-03-15  H.J. Lu  <hongjiu.lu@intel.com>
1547
1548         PR ld/19827
1549         * testsuite/ld-i386/i386.exp: Run PR ld/19827 tests.
1550         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1551         * testsuite/ld-i386/pr19827.rd: New file.
1552         * testsuite/ld-i386/pr19827a.S: Likewise.
1553         * testsuite/ld-i386/pr19827b.S: Likewise.
1554         * testsuite/ld-x86-64/pr19827.rd: Likewise.
1555         * testsuite/ld-x86-64/pr19827a.S: Likewise.
1556         * testsuite/ld-x86-64/pr19827b.S: Likewise.
1557
1558 2016-03-15  H.J. Lu  <hongjiu.lu@intel.com>
1559
1560         PR ld/19807
1561         * Makefile.am (ELF_X86_DEPS): Add
1562         $(srcdir)/emulparams/reloc_overflow.sh.
1563         * Makefile.in: Regenerated.
1564         * NEWS: Mention -z noreloc-overflow.
1565         * ld.texinfo: Document -z noreloc-overflow.
1566         * emulparams/elf32_x86_64.sh: Source
1567         ${srcdir}/emulparams/reloc_overflow.sh.
1568         * emulparams/elf_x86_64.sh: Likewise.
1569         * emulparams/reloc_overflow.sh: New file.
1570         * testsuite/ld-x86-64/pr19807-1.s: New file.
1571         * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
1572         * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
1573         * testsuite/ld-x86-64/pr19807-2.s: Likewise.
1574         * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1575         * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
1576         * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
1577         * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
1578         * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
1579         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/19807 tests.
1580
1581 2016-03-13  H.J. Lu  <hongjiu.lu@intel.com>
1582
1583         PR ld/19539
1584         * testsuite/ld-i386/i386.exp: Run pr19539.
1585         * testsuite/ld-i386/pr19539.d: New file.
1586         * testsuite/ld-i386/pr19539.s: Likewise.
1587         * testsuite/ld-i386/pr19539.t: Likewise.
1588         * testsuite/ld-x86-64/pr19539.s: Likewise.
1589         * testsuite/ld-x86-64/pr19539.t: Likewise.
1590         * testsuite/ld-x86-64/pr19539a.d: Likewise.
1591         * testsuite/ld-x86-64/pr19539b.d: Likewise.
1592         * testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.
1593
1594 2016-03-10  Mickael Guene  <mickael.guene@st.com>
1595
1596         PR gas/19744
1597         * testsuite/ld-arm/arm-elf.exp: New tests.
1598         * testsuite/ld-arm/thumb1-adds-armv7-m.s: New.
1599         * testsuite/ld-arm/thumb1-movs-armv7-m.s: New.
1600
1601 2016-03-10  Nick Clifton  <nickc@redhat.com>
1602
1603         * scripttempl/elf32msp430.sc (.rodata): Remove spurious LONG(0).
1604
1605 2016-03-09  Pedro Alves  <palves@redhat.com>
1606
1607         * scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH.
1608         * scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH.
1609
1610 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1611
1612         PR ld/19789
1613         * testsuite/ld-elf/pr19789.d: New file.
1614         * testsuite/ld-elf/pr19789.s: Likewise.
1615
1616 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1617
1618         PR ld/19784
1619         * testsuite/ld-i386/i386.exp: Remove pr19636-2e-nacl test.
1620         * testsuite/ld-i386/pr19636-2e-nacl.d: Moved to ...
1621         * testsuite/ld-i386/pr19636-2e.d: Here.  Remove notarget.
1622         * testsuite/ld-ifunc/ifunc.exp: Run PR ld/19784 tests.
1623         * testsuite/ld-ifunc/pass.out: New file.
1624         * testsuite/ld-ifunc/pr19784a.c: Likewise.
1625         * testsuite/ld-ifunc/pr19784b.c: Likewise.
1626         * testsuite/ld-ifunc/pr19784c.c: Likewise.
1627
1628 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1629
1630         PR ld/19774
1631         * testsuite/ld-ifunc/ifunc.exp: Link tmpdir/pr18808a.o before
1632         tmpdir/libpr18808.so.  Link tmpdir/pr18841a.o before
1633         tmpdir/libpr18841b.so and tmpdir/libpr18841c.so.  Test
1634         --as-needed for pr18841c.
1635
1636 2016-03-07  H.J. Lu  <hongjiu.lu@intel.com>
1637
1638         PR ld/19774
1639         * testsuite/ld-i386/i386.exp: Link tmpdir/pr18900.o before
1640         tmpdir/pr18900.so and test --as-needed.  Link tmpdir/gotpc1.o
1641         before tmpdir/got1d.so and test --as-needed.
1642         * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr18900.o before
1643         tmpdir/pr18900.so and test --as-needed.
1644
1645 2016-03-07  Jiong Wang  <jiong.wang@arm.com>
1646
1647         * testsuite/ld-aarch64/implicit_got_section_1.s: New test source file.
1648         * testsuite/ld-aarch64/implicit_got_section_1.d: New test expected
1649         result.
1650         * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
1651
1652 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
1653
1654         * testsuite/ld-i386/i386.exp: Link tmpdir/copyreloc-main.o
1655         before tmpdir/copyreloc-lib.so and test --as-needed.
1656         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1657
1658 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
1659
1660         PR ld/19579
1661         * testsuite/ld-elf/pr19579a.c: New file.
1662         * testsuite/ld-elf/pr19579b.c: Likewise.
1663         * testsuite/ld-elf/shared.exp: Run PR ld/19579 test.
1664
1665 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
1666
1667         * testsuite/ld-elf/pr19162.d: Skip hppa-*-*.
1668
1669 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
1670
1671         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
1672         Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".
1673
1674 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
1675
1676         PR ld/19739
1677         * emultempl/mmo.em (mmo_place_orphan): Don't merge flags of other
1678         input sections for relocatable link.
1679         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1680         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1681
1682 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
1683
1684         PR ld/19739
1685         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1686         merge flags of other input sections for relocatable link.
1687
1688 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
1689
1690         * testsuite/ld-plugin/lto.exp: Update PR ld/12365 test for GCC 6.
1691
1692 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
1693
1694         * testsuite/ld-elf/pr19162.d: Skip arc target.
1695
1696 2016-02-29  H.J. Lu  <hongjiu.lu@intel.com>
1697
1698         PR ld/19162
1699         * testsuite/ld-elf/pr19162.d: New file.
1700         * testsuite/ld-elf/pr19162a.s: Likwise.
1701         * testsuite/ld-elf/pr19162b.s: Likwise.
1702
1703 2016-02-29 Cupertino Miranda  <cmiranda@synopsys.com>
1704
1705         * testsuite/ld-elf/merge.d: Removed xfail for ARC.
1706         * testsuite/ld-elf/merge2.d: Likewise.
1707         * testsuite/ld-elf/merge3.d: Likewise.
1708
1709 2016-02-29  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
1710
1711         * scripttempl/arclinux.sc: Force .tdata and .tbss to always be
1712         generated.
1713
1714 2016-02-26  Renlin Li  <renlin.li@arm.com>
1715
1716         * testsuite/ld-aarch64/aarch64-elf.exp: Run new testcases.
1717         * testsuite/ld-aarch64/emit-relocs-270.d: Update to use new boundary.
1718         * testsuite/ld-aarch64/emit-relocs-271.d: Likewise.
1719         * testsuite/ld-aarch64/emit-relocs-272.d: Likewise.
1720         * testsuite/ld-aarch64/emit-relocs-270-overflow.d: New.
1721         * testsuite/ld-aarch64/emit-relocs-270-overflow.s: New.
1722         * testsuite/ld-aarch64/emit-relocs-271-overflow.d: New.
1723         * testsuite/ld-aarch64/emit-relocs-271-overflow.s: New.
1724         * testsuite/ld-aarch64/emit-relocs-272-overflow.d: New.
1725         * testsuite/ld-aarch64/emit-relocs-272-overflow.s: New.
1726
1727 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
1728
1729         PR ld/19609
1730         * testsuite/ld-i386/got1.dd: Updated.
1731         * testsuite/ld-i386/lea1c.d: Likewise.
1732         * testsuite/ld-i386/load1-nacl.d: Likewise.
1733         * testsuite/ld-i386/load1.d: Likewise.
1734         * testsuite/ld-i386/load4b.d: Likewise.
1735         * testsuite/ld-i386/load5b.d: Likewise.
1736         * testsuite/ld-i386/mov1b.d: Likewise.
1737         * testsuite/ld-x86-64/mov1b.d: Likewise.
1738         * testsuite/ld-x86-64/mov1d.d: Likewise.
1739         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
1740         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1741         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
1742         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1743         * testsuite/ld-x86-64/gotpcrel1.dd: Likewise.
1744         * testsuite/ld-x86-64/lea1a.d: Likewise.
1745         * testsuite/ld-x86-64/lea1b.d: Likewise.
1746         * testsuite/ld-x86-64/lea1c.d: Likewise.
1747         * testsuite/ld-x86-64/lea1d.d: Likewise.
1748         * testsuite/ld-x86-64/lea1e.d: Likewise.
1749         * testsuite/ld-x86-64/lea1f.d: Likewise.
1750         * testsuite/ld-x86-64/mov1b.d: Likewise.
1751         * testsuite/ld-x86-64/mov1d.d: Likewise.
1752         * testsuite/ld-x86-64/pr13082-3b.d: Likewise.
1753         * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
1754         * testsuite/ld-x86-64/lea1.s: Add tests for 32-bit registers.
1755         * testsuite/ld-i386/pr19609-1.s: New file.
1756         * testsuite/ld-i386/pr19609-1a.d: Likewise.
1757         * testsuite/ld-i386/pr19609-1b.d: Likewise.
1758         * testsuite/ld-i386/pr19609-1c.d: Likewise.
1759         * testsuite/ld-i386/pr19609-1d.d: Likewise.
1760         * testsuite/ld-i386/pr19609-1e.d: Likewise.
1761         * testsuite/ld-i386/pr19609-1f.d: Likewise.
1762         * testsuite/ld-i386/pr19609-1g.d: Likewise.
1763         * testsuite/ld-i386/pr19609-1h.d: Likewise.
1764         * testsuite/ld-i386/pr19609-1i.d: Likewise.
1765         * testsuite/ld-i386/pr19609-2.s: Likewise.
1766         * testsuite/ld-i386/pr19609-2a.d: Likewise.
1767         * testsuite/ld-i386/pr19609-2b.d: Likewise.
1768         * testsuite/ld-i386/pr19609-2c.d: Likewise.
1769         * testsuite/ld-i386/undefweak.s: Likewise.
1770         * testsuite/ld-i386/undefweaka.d: Likewise.
1771         * testsuite/ld-i386/undefweakb.d: Likewise.
1772         * testsuite/ld-x86-64/pr13082-3c.d: Likewise.
1773         * testsuite/ld-x86-64/pr13082-3d.d: Likewise.
1774         * testsuite/ld-x86-64/pr19609-1.s: Likewise.
1775         * testsuite/ld-x86-64/pr19609-1a.d: Likewise.
1776         * testsuite/ld-x86-64/pr19609-1b.d: Likewise.
1777         * testsuite/ld-x86-64/pr19609-1c.d: Likewise.
1778         * testsuite/ld-x86-64/pr19609-1d.d: Likewise.
1779         * testsuite/ld-x86-64/pr19609-1e.d: Likewise.
1780         * testsuite/ld-x86-64/pr19609-1f.d: Likewise.
1781         * testsuite/ld-x86-64/pr19609-1g.d: Likewise.
1782         * testsuite/ld-x86-64/pr19609-1h.d: Likewise.
1783         * testsuite/ld-x86-64/pr19609-1i.d: Likewise.
1784         * testsuite/ld-x86-64/pr19609-1j.d: Likewise.
1785         * testsuite/ld-x86-64/pr19609-1k.d: Likewise.
1786         * testsuite/ld-x86-64/pr19609-1l.d: Likewise.
1787         * testsuite/ld-x86-64/pr19609-1m.d: Likewise.
1788         * testsuite/ld-x86-64/pr19609-2.s: Likewise.
1789         * testsuite/ld-x86-64/pr19609-2a.d: Likewise.
1790         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1791         * testsuite/ld-x86-64/pr19609-2c.d: Likewise.
1792         * testsuite/ld-x86-64/pr19609-2d.d: Likewise.
1793         * testsuite/ld-x86-64/pr19609-3.s: Likewise.
1794         * testsuite/ld-x86-64/pr19609-3a.d: Likewise.
1795         * testsuite/ld-x86-64/pr19609-3b.d: Likewise.
1796         * testsuite/ld-x86-64/pr19609-4.s: Likewise.
1797         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1798         * testsuite/ld-x86-64/pr19609-4b.d: Likewise.
1799         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1800         * testsuite/ld-x86-64/pr19609-4d.d: Likewise.
1801         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1802         * testsuite/ld-x86-64/pr19609-5.s: Likewise.
1803         * testsuite/ld-x86-64/pr19609-5a.d: Likewise.
1804         * testsuite/ld-x86-64/pr19609-5b.d: Likewise.
1805         * testsuite/ld-x86-64/pr19609-5c.d: Likewise.
1806         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1807         * testsuite/ld-x86-64/pr19609-5e.d: Likewise.
1808         * testsuite/ld-x86-64/pr19609-6.s: Likewise.
1809         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1810         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1811         * testsuite/ld-x86-64/pr19609-6c.d: Likewise.
1812         * testsuite/ld-x86-64/pr19609-6d.d: Likewise.
1813         * testsuite/ld-x86-64/pr19609-7.s: Likewise.
1814         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1815         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1816         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1817         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1818         * testsuite/ld-i386/i386.exp: Run undefweak tests and tests for
1819         PR ld/19609.
1820         * testsuite/ld-x86-64/x86-64.exp: Run pr13082-3c, pr13082-3d
1821         and tests for PR ld/19609.
1822
1823 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
1824
1825         PR ld/19645
1826         * NEWS: Mention -z common/-z nocommon for ELF targets.
1827         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1828         -z common and -z nocommon.
1829         * ld.texinfo: Document -z common/-z nocommon.
1830         * lexsup.c (elf_shlib_list_options): Add -z common/-z nocommon.
1831         * testsuite/ld-elf/tls_common.exp: Test --elf-stt-common=no and
1832         --elf-stt-common=yes with assembler.
1833         * testsuite/ld-elfcomm/common-1.s: New file.
1834         * testsuite/ld-elfcomm/common-1a.d: Likewise.
1835         * testsuite/ld-elfcomm/common-1b.d: Likewise.
1836         * testsuite/ld-elfcomm/common-1c.d: Likewise.
1837         * testsuite/ld-elfcomm/common-1d.d: Likewise.
1838         * testsuite/ld-elfcomm/common-1e.d: Likewise.
1839         * testsuite/ld-elfcomm/common-1f.d: Likewise.
1840         * testsuite/ld-elfcomm/common-2.s: Likewise.
1841         * testsuite/ld-elfcomm/common-2a.d: Likewise.
1842         * testsuite/ld-elfcomm/common-2b.d: Likewise.
1843         * testsuite/ld-elfcomm/common-2c.d: Likewise.
1844         * testsuite/ld-elfcomm/common-2d.d: Likewise.
1845         * testsuite/ld-elfcomm/common-2e.d: Likewise.
1846         * testsuite/ld-elfcomm/common-2f.d: Likewise.
1847         * testsuite/ld-elfcomm/common-3a.rd: Likewise.
1848         * testsuite/ld-elfcomm/common-3b.rd: Likewise.
1849         * testsuite/ld-i386/pr19645.d: Likewise.
1850         * testsuite/ld-i386/pr19645.s: Likewise.
1851         * testsuite/ld-x86-64/largecomm-1.s: Likewise.
1852         * testsuite/ld-x86-64/largecomm-1a.d: Likewise.
1853         * testsuite/ld-x86-64/largecomm-1b.d: Likewise.
1854         * testsuite/ld-x86-64/largecomm-1c.d: Likewise.
1855         * testsuite/ld-x86-64/largecomm-1d.d: Likewise.
1856         * testsuite/ld-x86-64/largecomm-1e.d: Likewise.
1857         * testsuite/ld-x86-64/largecomm-1f.d: Likewise.
1858         * testsuite/ld-x86-64/pr19645.d: Likewise.
1859         * testsuite/ld-x86-64/pr19645.s: Likewise.
1860         * testsuite/ld-elfcomm/elfcomm.exp: Test --elf-stt-common=yes
1861         with assembler.
1862         (assembler_generates_commons): Removed.
1863         Run -z common/-z nocommon tests.  Run *.d tests.
1864         * testsuite/ld-i386/i386.exp: Run pr19645.
1865         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1866         * testsuite/ld-x86-64/dwarfreloc.exp: Test --elf-stt-common with
1867         assembler.  Test STT_COMMON with readelf.
1868
1869 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
1870
1871         PR ld/19636
1872         PR ld/19704
1873         PR ld/19719
1874         * Makefile.am (ELF_X86_DEPS): Add dynamic_undefined_weak.sh.
1875         * Makefile.in: Regenerated.
1876         * NEWS: Mention -z nodynamic-undefined-weak.
1877         * ld.texinfo: Document -z nodynamic-undefined-weak.
1878         * ldmain.c (main): Initialize dynamic_undefined_weak to -1.
1879         * emulparams/dynamic_undefined_weak.sh: New file.
1880         * emulparams/elf32_x86_64.sh: Source dynamic_undefined_weak.sh.
1881         * emulparams/elf_i386.sh: Likewise.
1882         * emulparams/elf_i386_be.sh: Likewise.
1883         * emulparams/elf_i386_chaos.sh: Likewise.
1884         * emulparams/elf_i386_ldso.sh: Likewise.
1885         * emulparams/elf_i386_vxworks.sh: Likewise.
1886         * emulparams/elf_iamcu.sh: Likewise.
1887         * emulparams/elf_k1om.sh: Likewise.
1888         * emulparams/elf_l1om.sh: Likewise.
1889         * emulparams/elf_x86_64.sh: Likewise.
1890         * emulparams/extern_protected_data.sh (PARSE_AND_LIST_OPTIONS):
1891         Append.
1892         (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
1893         * testsuite/ld-elf/pr19719a.c: New file.
1894         * testsuite/ld-elf/pr19719b.c: Likewise.
1895         * testsuite/ld-elf/pr19719c.c: Likewise.
1896         * testsuite/ld-elf/pr19719d.c: Likewise.
1897         * testsuite/ld-i386/pr19636-1.s: Likewise.
1898         * testsuite/ld-i386/pr19636-1a.d: Likewise.
1899         * testsuite/ld-i386/pr19636-1b.d: Likewise.
1900         * testsuite/ld-i386/pr19636-1c.d: Likewise.
1901         * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
1902         * testsuite/ld-i386/pr19636-1d.d: Likewise.
1903         * testsuite/ld-i386/pr19636-1e.d: Likewise.
1904         * testsuite/ld-i386/pr19636-1f.d: Likewise.
1905         * testsuite/ld-i386/pr19636-1g.d: Likewise.
1906         * testsuite/ld-i386/pr19636-1h.d: Likewise.
1907         * testsuite/ld-i386/pr19636-1i.d: Likewise.
1908         * testsuite/ld-i386/pr19636-2.s: Likewise.
1909         * testsuite/ld-i386/pr19636-2a.d: Likewise.
1910         * testsuite/ld-i386/pr19636-2b.d: Likewise.
1911         * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
1912         * testsuite/ld-i386/pr19636-2c.d: Likewise.
1913         * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
1914         * testsuite/ld-i386/pr19636-2d.d: Likewise.
1915         * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
1916         * testsuite/ld-i386/pr19636-2e.d: Likewise.
1917         * testsuite/ld-i386/pr19636-3.s: Likewise.
1918         * testsuite/ld-i386/pr19636-3a.d: Likewise.
1919         * testsuite/ld-i386/pr19636-3b.d: Likewise.
1920         * testsuite/ld-i386/pr19636-3c.d: Likewise.
1921         * testsuite/ld-i386/pr19636-3d.d: Likewise.
1922         * testsuite/ld-i386/pr19636-3e.d: Likewise.
1923         * testsuite/ld-i386/pr19636-3f.d: Likewise.
1924         * testsuite/ld-i386/pr19636-3g.d: Likewise.
1925         * testsuite/ld-i386/pr19636-4.s: Likewise.
1926         * testsuite/ld-i386/pr19636-4a.d: Likewise.
1927         * testsuite/ld-i386/pr19636-4b.d: Likewise.
1928         * testsuite/ld-i386/pr19636-4c.d: Likewise.
1929         * testsuite/ld-i386/pr19636-4d.d: Likewise.
1930         * testsuite/ld-i386/pr19704.out: Likewise.
1931         * testsuite/ld-i386/pr19704a.c: Likewise.
1932         * testsuite/ld-i386/pr19704b.c: Likewise.
1933         * testsuite/ld-x86-64/pr19636-1.s: Likewise.
1934         * testsuite/ld-x86-64/pr19636-1a.d: Likewise.
1935         * testsuite/ld-x86-64/pr19636-1b.d: Likewise.
1936         * testsuite/ld-x86-64/pr19636-1c.d: Likewise.
1937         * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
1938         * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
1939         * testsuite/ld-x86-64/pr19636-1f.d: Likewise.
1940         * testsuite/ld-x86-64/pr19636-1g.d: Likewise.
1941         * testsuite/ld-x86-64/pr19636-2.s: Likewise.
1942         * testsuite/ld-x86-64/pr19636-2a.d: Likewise.
1943         * testsuite/ld-x86-64/pr19636-2b.d: Likewise.
1944         * testsuite/ld-x86-64/pr19636-2c.d: Likewise.
1945         * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
1946         * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
1947         * testsuite/ld-x86-64/pr19636-2e.d: Likewise.
1948         * testsuite/ld-x86-64/pr19636-2f.d: Likewise.
1949         * testsuite/ld-x86-64/pr19636-2g.d: Likewise.
1950         * testsuite/ld-x86-64/pr19636-2h.d: Likewise.
1951         * testsuite/ld-x86-64/pr19636-2i.d: Likewise.
1952         * testsuite/ld-x86-64/pr19636-3.s: Likewise.
1953         * testsuite/ld-x86-64/pr19636-3a.d: Likewise.
1954         * testsuite/ld-x86-64/pr19636-3b.d: Likewise.
1955         * testsuite/ld-x86-64/pr19636-3c.d: Likewise.
1956         * testsuite/ld-x86-64/pr19636-3d.d: Likewise.
1957         * testsuite/ld-x86-64/pr19704.out: Likewise.
1958         * testsuite/ld-x86-64/pr19704a.c: Likewise.
1959         * testsuite/ld-x86-64/pr19704b.c: Likewise.
1960         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): New.
1961         Run mix_pic_and_non_pic.
1962         * testsuite/ld-i386/i386.exp (undefined_weak): New.
1963         Run undefined_weak and PR ld/19636 tests.
1964         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1965         * testsuite/ld-x86-64/pr13082-3b.d: Updated.
1966         * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
1967
1968 2016-02-25  Nick Clifton  <nickc@redhat.com>
1969
1970         * ld.h (struct ld_config_type): Remove specified_data_size field.
1971
1972 2016-02-24  H.J. Lu  <hongjiu.lu@intel.com>
1973
1974         PR ld/19698
1975         * testsuite/ld-elf/pr19698.d: New file.
1976         * testsuite/ld-elf/pr19698.s: Likewise.
1977         * testsuite/ld-elf/pr19698.t: Likewise.
1978
1979 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1980
1981         * Makefile.am (ELF_X86_DEPS): New.
1982         (eelf_i386.c): Replace $(ELF_DEPS) with $(ELF_X86_DEPS).
1983         (eelf_i386_chaos.c): Likewise.
1984         (eelf_i386_fbsd.c): Likewise.
1985         (eelf_i386_ldso.c): Likewise.
1986         (eelf_i386_nacl.c): Likewise.
1987         (eelf_i386_sol2.c): Likewise.
1988         (eelf_iamcu.c): Likewise.
1989         (eelf32_x86_64.c): Likewise.
1990         (eelf32_x86_64_nacl.c): Likewise.
1991         (eelf_l1om.c): Likewise.
1992         (eelf_l1om_fbsd.c): Likewise.
1993         (eelf_k1om.c): Likewise.
1994         (eelf_k1om_fbsd.c): Likewise.
1995         (eelf_x86_64.c): Likewise.
1996         (eelf_x86_64_cloudabi.c): Likewise.
1997         (eelf_x86_64_fbsd.c): Likewise.
1998         (eelf_x86_64_sol2.c): Likewise.
1999         * Makefile.in: Regenerated.
2000
2001 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2002
2003         * testsuite/ld-frv/fdpic-pie-6.d: Updated.
2004         * testsuite/ld-mips-elf/pie-n32.d: Likewise.
2005         * testsuite/ld-mips-elf/pie-n64.d: Likewise.
2006         * testsuite/ld-mips-elf/pie-o32.d: Likewise.
2007
2008 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
2009
2010         * testsuite/ld-elf/pr19539.d: Skip cris*-*-* targets.
2011
2012 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2013
2014         * testsuite/ld-elf/pr19617a.d: Enable only for *-*-linux*,
2015         *-*-gnu* and *-*-solaris*.
2016         * testsuite/ld-elf/pr19617b.d: Likewise.
2017         * testsuite/ld-elf/pr19617c.d: Likewise.
2018
2019 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2020
2021         PR ld/19617
2022         * testsuite/ld-elf/pr19617.s: New file.
2023         * testsuite/ld-elf/pr19617a.d: Likewise.
2024         * testsuite/ld-elf/pr19617b.d: Likewise.
2025         * testsuite/ld-elf/pr19617c.d: Likewise.
2026
2027 2016-02-18  Nick Clifton  <nickc@redhat.com>
2028
2029         * Makefile.am (CXX_FOR_TARGET): Check for the presence of an
2030         in-tree xg++ executable after checking for the presence of an
2031         in-tree g++ executable.
2032         * Makefile.in: Regenerate.
2033
2034 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2035
2036         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
2037         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
2038         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
2039
2040 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2041
2042         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
2043         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
2044         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
2045         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
2046         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
2047         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
2048         * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
2049         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
2050         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
2051         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
2052         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
2053         * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
2054         * testsuite/ld-x86-64/load1c.d: Likewise.
2055         * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
2056         * testsuite/ld-x86-64/load1d.d: Likewise.
2057         * testsuite/ld-x86-64/pr14207.d: Likewise.
2058         * testsuite/ld-x86-64/pr19162.d: Likewise.
2059         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
2060         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2061         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
2062         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
2063         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
2064         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2065
2066 2016-02-17  Nick Clifton  <nickc@redhat.com>
2067
2068         * testsuite/ld-elf/eh-frame-hdr.d: Skip for ARC ELF targets.
2069
2070 2016-02-15  Nick Clifton  <nickc@redhat.com>
2071
2072         * testsuite/ld-i386/pr12718.d: Remove dependency upon the
2073         description of the flags produced by readelf.
2074         * testsuite/ld-i386/pr12921.d: Likewise.
2075         * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
2076         * testsuite/ld-i386/tlsbin.rd: Likewise.
2077         * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
2078         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2079         * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
2080         * testsuite/ld-i386/tlsdesc.rd: Likewise.
2081         * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
2082         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
2083         * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
2084         * testsuite/ld-i386/tlsnopic.rd: Likewise.
2085         * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
2086         * testsuite/ld-i386/tlspic.rd: Likewise.
2087         * testsuite/ld-s390/tlsbin.rd: Likewise.
2088         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
2089         * testsuite/ld-s390/tlspic.rd: Likewise.
2090         * testsuite/ld-s390/tlspic_64.rd: Likewise.
2091         * testsuite/ld-sh/tlsbin-2.d: Likewise.
2092         * testsuite/ld-sh/tlspic-2.d: Likewise.
2093         * testsuite/ld-tic6x/common.d: Likewise.
2094         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2095         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2096         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2097         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2098         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2099         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2100         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2101         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2102         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2103         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2104         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2105         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2106         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2107         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
2108         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
2109         * testsuite/ld-x86-64/pr12718.d: Likewise.
2110         * testsuite/ld-x86-64/pr12921.d: Likewise.
2111         * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
2112         * testsuite/ld-x86-64/split-by-file.rd: Likewise.
2113         * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
2114         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2115         * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
2116         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2117         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
2118         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2119         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
2120         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
2121         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
2122         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2123         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2124         * testsuite/ld-xtensa/tlspic.rd: Likewise.
2125
2126 2016-02-11  H.J. Lu  <hongjiu.lu@intel.com>
2127
2128         PR ld/19615
2129         * ld.texinfo: Document -Bsymbolic and -Bsymbolic-functions for
2130         PIE.
2131         * lexsup.c (parse_args): Enable -Bsymbolic and
2132         -Bsymbolic-functions for PIE.
2133         * testsuite/ld-i386/i386.exp: Run pr19615.
2134         * testsuite/ld-i386/pr19615.d: New file.
2135         * testsuite/ld-i386/pr19615.s: Likewise.
2136         * testsuite/ld-x86-64/pr19615.d: Likewise.
2137         * testsuite/ld-x86-64/pr19615.s: Likewise.
2138
2139 2016-02-09  Nick Clifton  <nickc@redhat.com>
2140
2141         * testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
2142         * testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
2143         * testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
2144         * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
2145
2146 2016-02-04  Nick Clifton  <nickc@redhat.com>
2147
2148         * testsuite/ld-arm/arm-elf.exp: Remove ARM NOREAD section tests.
2149         * testsuite/ld-arm/thumb1-input-section-flag-match.d: Delete.
2150         * testsuite/ld-arm/thumb1-input-section-flag-match.s: Delete.
2151         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.d: Delete.
2152         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s: Delete.
2153         * testsuite/ld-arm/thumb1-noread-present-one-section.d: Delete.
2154         * testsuite/ld-arm/thumb1-noread-present-one-section.s: Delete.
2155         * testsuite/ld-arm/thumb1-noread-present-two-section.d: Delete.
2156         * testsuite/ld-arm/thumb1-noread-present-two-section.s: Delete.
2157
2158 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2159
2160         PR gas/19520
2161         * testsuite/ld-i386/branch1.d: Pass -mrelax-relocations=yes to as.
2162         * testsuite/ld-i386/call1.d: Likewise.
2163         * testsuite/ld-i386/call2.d: Likewise.
2164         * testsuite/ld-i386/call3a.d: Likewise.
2165         * testsuite/ld-i386/call3b.d: Likewise.
2166         * testsuite/ld-i386/call3c.d: Likewise.
2167         * testsuite/ld-i386/call3d.d: Likewise.
2168         * testsuite/ld-i386/call3e.d: Likewise.
2169         * testsuite/ld-i386/call3f.d: Likewise.
2170         * testsuite/ld-i386/call3g.d: Likewise.
2171         * testsuite/ld-i386/call3h.d: Likewise.
2172         * testsuite/ld-i386/jmp1.d: Likewise.
2173         * testsuite/ld-i386/jmp2.d: Likewise.
2174         * testsuite/ld-i386/lea1c.d: Likewise.
2175         * testsuite/ld-i386/load1.d: Likewise.
2176         * testsuite/ld-i386/load2.d: Likewise.
2177         * testsuite/ld-i386/load3.d: Likewise.
2178         * testsuite/ld-i386/load4a.d: Likewise.
2179         * testsuite/ld-i386/load5a.d: Likewise.
2180         * testsuite/ld-i386/mov2b.d: Likewise.
2181         * testsuite/ld-i386/mov3.d: Likewise.
2182         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
2183         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
2184         * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
2185         * testsuite/ld-x86-64/call1a.d: Likewise.
2186         * testsuite/ld-x86-64/call1b.d: Likewise.
2187         * testsuite/ld-x86-64/call1c.d: Likewise.
2188         * testsuite/ld-x86-64/call1d.d: Likewise.
2189         * testsuite/ld-x86-64/call1e.d: Likewise.
2190         * testsuite/ld-x86-64/call1f.d: Likewise.
2191         * testsuite/ld-x86-64/call1h.d: Likewise.
2192         * testsuite/ld-x86-64/call1i.d: Likewise.
2193         * testsuite/ld-x86-64/load1a.d: Likewise.
2194         * testsuite/ld-x86-64/load1b.d: Likewise.
2195         * testsuite/ld-i386/got1a.S: Load GOT into %ecx and use it.
2196         * testsuite/ld-i386/got1.dd: Updated.
2197         * testsuite/ld-i386/got1d.S (1): Removed.
2198         * testsuite/ld-i386/i386.exp: Add -Wa,-mrelax-relocations=yes.
2199         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2200
2201 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
2202
2203         PR ld/18591
2204         * testsuite/ld-x86-64/pr18591.d: New file.
2205         * testsuite/ld-x86-64/pr18591.s: Likewise.
2206         * testsuite/ld-x86-64/x86-64.exp: Run pr18591.
2207
2208 2016-02-01  H.J. Lu  <hongjiu.lu@intel.com>
2209
2210         PR ld/19553
2211         * testsuite/ld-elf/indirect.exp: Run tests for PR ld/19553.
2212         * testsuite/ld-elf/pr19553.map: New file.
2213         * testsuite/ld-elf/pr19553.map: Likewise.
2214         * testsuite/ld-elf/pr19553a.c: Likewise.
2215         * testsuite/ld-elf/pr19553b.c: Likewise.
2216         * testsuite/ld-elf/pr19553b.out: Likewise.
2217         * testsuite/ld-elf/pr19553c.c: Likewise.
2218         * testsuite/ld-elf/pr19553c.out: Likewise.
2219         * testsuite/ld-elf/pr19553d.c: Likewise.
2220         * testsuite/ld-elf/pr19553d.out: Likewise.
2221
2222 2016-01-30  H.J. Lu  <hongjiu.lu@intel.com>
2223
2224         PR ld/19539
2225         * testsuite/ld-elf/pr19539.d: New file.
2226         * testsuite/ld-elf/pr19539.s: Likewise.
2227         * testsuite/ld-elf/pr19539.t: Likewise.
2228
2229 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
2230
2231         PR ld/19533
2232         * configure.ac (compressed_debug_sections): Replace == with =.
2233         * configure: Regenerated.
2234
2235 2016-01-22  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2236
2237         * scripttempl/avr.sc (.noinit): Force .noinit VMA to end of .bss VMA.
2238         * scripttempl/avrtiny.sc (.noinit): Likewise.
2239
2240 2016-01-21  Nick Clifton  <nickc@redhat.com>
2241
2242         PR ld/19453
2243         * testsuite/ld-arm/arm-elf.exp: Skip tests that do not work for
2244         the arm-netbsdelf target.
2245
2246         PR ld/19455
2247         * testsuite/ld-arm/vxworks1-lib.dd: Update for current
2248         disassmebler output.
2249         * testsuite/ld-arm/vxworks1-lib.rd: Likewise.
2250         * testsuite/ld-arm/vxworks1.dd: Likewise.
2251         * testsuite/ld-arm/vxworks1.rd: Likewise.
2252         * testsuite/ld-arm/vxworks1.ld: Set the output format.
2253
2254 2016-01-20  Jiong Wang  <jiong.wang@arm.com>
2255
2256         * testsuite/ld-aarch64/farcall-section.d: Delete.
2257         * testsuite/ld-aarch64/farcall-section.s: Delete.
2258         * testsuite/ld-aarch64/farcall-b-section.d: New expectation file.
2259         * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
2260         * testsuite/ld-aarch64/farcall-b-section.s: New testcase.
2261         * testsuite/ld-aarch64/farcall-bl-section.s: Likewise.
2262         * testsuite/ld-aarch64/aarch64-elf.exp: Likewise.
2263
2264 2016-01-20  Nick Clifton  <nickc@redhat.com>
2265
2266         PR 19457
2267         * testsuite/ld-scripts/script.exp (extract_symbol_test): Stop test
2268         early for PE based targets.
2269         * testsuite/ld-scripts/align.t: Use 0x1000 as VMA alignment.
2270         * testsuite/ld-pe/tlssec32.d: Allow for relocatable output.
2271
2272 2016-01-20  Mickael Guene  <mickael.guene@st.com>
2273
2274         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s:
2275         Add 'y' attribute usage.
2276         * testsuite/ld-arm/thumb1-noread-present-one-section.s: Likewise.
2277         * testsuite/ld-arm/thumb1-noread-present-two-section.s: Likewise.
2278         * testsuite/ld-arm/thumb1-input-section-flag-match.s: Likewise.
2279
2280 2016-01-19  Nick Clifton  <nickc@redhat.com>
2281
2282         * testsuite/ld-elf/pr18735.d: Allow for extra symbols between
2283         foo@FOO and bar@@FOO.
2284
2285 2016-01-18  Alan Modra  <amodra@gmail.com>
2286
2287         * configure: Regenerate.
2288
2289 2016-01-18  Nick Clifton  <nickc@redhat.com>
2290
2291         * testsuite/ld-plugin/plugin.exp: Skip plugin tests if the linker
2292         is not configured to support plugins.
2293
2294         * testsuite/ld-scripts/rgn-at11.s: New file - based on rgn-at10.s
2295         but with 16 byte section alignment.
2296         * testsuite/ld-scripts/rgn-at11.d: Use new source file.  Reenable
2297         test for MIPS targets.
2298
2299 2016-01-17  Alan Modra  <amodra@gmail.com>
2300
2301         * configure: Regenerate.
2302
2303 2016-01-17  Alan Modra  <amodra@gmail.com>
2304
2305         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Exclude xgate.
2306         * testsuite/ld-elf/endsym.d: xfail m68hc11/12 and xgate.
2307         * testsuite/ld-elf/pr14156a.d: Likewise.
2308         * testsuite/ld-elf/pr14926.d: Don't run for m68hc11/12 and xgate.
2309         * testsuite/ld-elf/sec64k.exp: Likewise.
2310
2311 2016-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2312
2313         * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
2314         Set address of .foo section when linking.
2315         * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s: Place myfunc
2316         in .foo section.
2317         * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d: Adapt expected
2318         output to the above changes.
2319
2320 2016-01-13  Nick Clifton  <nickc@redhat.com>
2321
2322         * testsuite/ld-elf/elf.exp (-Bymsolic-functions): Expect to fail
2323         for MIPS targets.
2324
2325         * testsuite/ld-scripts/script.exp (extract_symbol_test): Expect to
2326         fail for MIPS targets.
2327
2328         * testsuite/ld-scripts/rgn-at11.d: Expect this test to fail for
2329         MIPS targets.
2330
2331 2016-01-12  Yury Usishchev  <y.usishchev@samsung.com>
2332
2333         * testsuite/ld-arm/arm-elf.exp: New test.
2334         * testsuite/ld-arm/unwind-mix.d: New file.
2335         * testsuite/ld-arm/unwind-mix1.s: New file.
2336         * testsuite/ld-arm/unwind-mix2.s: New file.
2337
2338 2016-01-08  Jiong Wang  <jiong.wang@arm.com>
2339
2340         PR ld/19368
2341         * testsuite/ld-arm/ifunc-3.rd: Update expected result.
2342         * testsuite/ld-arm/ifunc-4.rd: Likewise.
2343         * testsuite/ld-arm/ifunc-9.rd: Likewise.
2344         * testsuite/ld-arm/ifunc-10.rd: Likewise.
2345         * testsuite/ld-arm/ifunc-12.rd: Likewise.
2346         * testsuite/ld-arm/ifunc-13.rd: Likewise.
2347
2348 2016-01-05  Nick Clifton  <nickc@redhat.com>
2349
2350         * emulparams/msp430elf.sh (RAM_START): Move to 0x500 - above the
2351         MSP430 hardware multiply address range.
2352         * scripttempl/elf32msp430.sc (__romdatastart): Define.
2353         (__romdatacopysize): Define.
2354         * scripttempl/elf32msp430_3.sc: Likewise.
2355
2356 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
2357
2358         * emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
2359         OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
2360
2361 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
2362
2363         * testsuite/ld-mips-elf/attr-gnu-4-14.d: Update the order of
2364         messages expected according to MIPS BFD private data merge
2365         changes.
2366         * testsuite/ld-mips-elf/attr-gnu-4-24.d: Likewise.
2367         * testsuite/ld-mips-elf/attr-gnu-4-34.d: Likewise.
2368         * testsuite/ld-mips-elf/attr-gnu-4-41.d: Likewise.
2369         * testsuite/ld-mips-elf/attr-gnu-4-42.d: Likewise.
2370         * testsuite/ld-mips-elf/attr-gnu-4-43.d: Likewise.
2371         * testsuite/ld-mips-elf/attr-gnu-4-45.d: Likewise.
2372         * testsuite/ld-mips-elf/attr-gnu-4-46.d: Likewise.
2373         * testsuite/ld-mips-elf/attr-gnu-4-47.d: Likewise.
2374         * testsuite/ld-mips-elf/attr-gnu-4-48.d: Likewise.
2375         * testsuite/ld-mips-elf/attr-gnu-4-49.d: Likewise.
2376         * testsuite/ld-mips-elf/attr-gnu-4-54.d: Likewise.
2377         * testsuite/ld-mips-elf/attr-gnu-4-64.d: Likewise.
2378         * testsuite/ld-mips-elf/attr-gnu-4-74.d: Likewise.
2379
2380 2016-01-01  Alan Modra  <amodra@gmail.com>
2381
2382         Update year range in copyright notice of all files.
2383
2384 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
2385 \f
2386 Copyright (C) 2016 Free Software Foundation, Inc.
2387
2388 Copying and distribution of this file, with or without modification,
2389 are permitted in any medium without royalty provided the copyright
2390 notice and this notice are preserved.
2391
2392 Local Variables:
2393 mode: change-log
2394 left-margin: 8
2395 fill-column: 74
2396 version-control: never
2397 End: