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