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