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