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