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