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