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