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