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