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