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