Fix SH GOT allocation in the presence of linker garbage collection.
[external/binutils.git] / ld / ChangeLog
1 2016-08-02  Nick Clifton  <nickc@redhat.com>
2
3         PR ld/17739
4         * emulparams/shelf.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Define with
5         valye 'yes'.
6         * emulparams/shelf32.sh: Likewise.
7         * emulparams/shelf32.sh: Likewise.
8         * emulparams/shelf_nto.sh: Likewise.
9         * emulparams/shelf_nto.sh: Likewise.
10         * emulparams/shelf_vxworks.sh: Likewise.
11         * emulparams/shelf_vxworks.sh: Likewise.
12         * emulparams/shlelf32_linux.sh: Likewise.
13         * emulparams/shlelf32_linux.sh: Likewise.
14         * emulparams/shlelf_linux.sh: Likewise.
15         * emulparams/shlelf_linux.sh: Likewise.
16         * emulparams/shlelf_nto.sh: Likewise.
17         * emulparams/shlelf_nto.sh: Likewise.
18
19 2016-07-27  Maciej W. Rozycki  <macro@imgtec.com>
20
21         * testsuite/ld-mips-elf/micromips-branch-absolute.d: Update
22         patterns for branch compaction.
23         * testsuite/ld-mips-elf/micromips-branch-absolute-addend.d:
24         Likewise.
25
26 2016-07-27  Nick Clifton  <nickc@redhat.com>
27
28         * testsuite/ld-gc/personality.d: Use "target cfi" to restrict the
29         test to targets which support cfi.
30
31 2016-07-27  Igor Kudrin  <ikudrin@accesssoftek.com>
32
33         * ldbuildid.c (generate_build_id): Warning fix.
34
35 2016-07-26  Maciej W. Rozycki  <macro@imgtec.com>
36
37         * testsuite/ld-mips-elf/compressed-plt-1.s: Add branch support.
38         * testsuite/ld-mips-elf/compressed-plt-1a.s: Likewise.
39         * testsuite/ld-mips-elf/compressed-plt-1b.s: Likewise.
40         * testsuite/ld-mips-elf/compressed-plt-1-o32-branch.od: New
41         test.
42         * testsuite/ld-mips-elf/compressed-plt-1-o32-branch.rd: New
43         test.
44         * testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-bronly.od:
45         New test.
46         * testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-bronly.rd:
47         New test.
48         * testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-branch.od:
49         New test.
50         * testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-branch.rd:
51         New test.
52         * testsuite/ld-mips-elf/compressed-plt-1-o32-umips-bronly.od:
53         New test.
54         * testsuite/ld-mips-elf/compressed-plt-1-o32-umips-bronly.rd:
55         New test.
56         * testsuite/ld-mips-elf/compressed-plt-1-o32-umips-branch.od:
57         New test.
58         * testsuite/ld-mips-elf/compressed-plt-1-o32-umips-branch.rd:
59         New test.
60         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
61
62 2016-07-26  Igor Kudrin  <ikudrin@accesssoftek.com>
63
64         * ldbuildid.c: Changes for MinGW32:
65         Include windows.h and rpcdce.h.
66         (validate_build_id_style): Allow "uuid" style.
67         (generate_build_id): Fill in id_bits using UuidCreate().
68
69 2016-07-25  Alan Modra  <amodra@gmail.com>
70
71         * testsuite/ld-elf/sec64k.exp: Run test for arc, msp430, or1k
72         and m32r.  Correct comment.  Relax ld -r match to account for
73         msp increased number of default sections.
74
75 2016-07-22  Cupertino Miranda  <cmiranda@synopsys.com>
76
77         * testsuite/ld-arc/got-01.d: New file.
78         * testsuite/ld-arc/got-01.s: New file.
79
80 2016-07-21  H.J. Lu  <hongjiu.lu@intel.com>
81
82         * configure: Regenerated.
83
84 2016-07-21  Alan Modra  <amodra@gmail.com>
85
86         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Replace
87         "targets_to_xfail" parameter with "args".
88         * testsuite/ld-elf/compress.exp: Remove empty list of xfails on
89         all calls to run_ld_link_exec_tests.
90         * testsuite/ld-elf/dwarf.exp: Likewise.
91         * testsuite/ld-elf/indirect.exp: Likewise.
92         * testsuite/ld-elf/wrap.exp: Likewise.
93         * testsuite/ld-i386/i386.exp: Likewise.
94         * testsuite/ld-i386/no-plt.exp: Likewise.
95         * testsuite/ld-i386/tls.exp: Likewise.
96         * testsuite/ld-ifunc/ifunc.exp: Likewise.
97         * testsuite/ld-pie/pie.exp: Likewise.
98         * testsuite/ld-plugin/lto.exp: Likewise.
99         * testsuite/ld-size/size.exp: Likewise.
100         * testsuite/ld-x86-64/mpx.exp: Likewise.
101         * testsuite/ld-x86-64/no-plt.exp: Likewise.
102         * testsuite/ld-x86-64/tls.exp: Likewise.
103         * testsuite/ld-x86-64/x86-64.exp: Likewise.
104         * testsuite/ld-elf/elf.exp: Likewise.  Reorder args when providing
105         xfails and simplify lists.
106         * testsuite/ld-elf/shared.exp: Likewise.
107
108 2016-07-21  Alan Modra  <amodra@gmail.com>
109
110         * testsuite/lib/ld-lib.exp (run_ld_link_tests): Add optional
111         parameter to pass list of xfails.
112         * testsuite/ld-elf/elf.exp: Add xfails for implib tests.  Tidy
113         implib test formatting.  Don't set .data start address.
114         * testsuite/ld-elf/implib.s: Remove first .bss directive and
115         replace second one with equivalent .section directive.
116         * testsuite/ld-elf/empty-implib.out: Add expected final error.
117         * testsuite/ld-elf/implib.rd: Update.
118
119 2016-07-20  Alan Modra  <amodra@gmail.com>
120
121         * ldexp.c (exp_unop, exp_binop, exp_trinop, exp_nameop): Don't
122         fold expression.
123         * testsuite/ld-elf/maxpage3b.d: Expect correct maxpagesize.
124
125 2016-07-19  Roland McGrath  <roland@hack.frob.com>
126
127         * emulparams/aarch64elf.sh (GENERATE_PIE_SCRIPT): Set to yes.
128         * emulparams/aarch64elf32.sh: Likewise.
129
130 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
131
132         * testsuite/ld-mips-elf/unaligned-branch-2.d: Update error
133         messages expected.
134         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
135         * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
136         * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
137         * testsuite/ld-mips-elf/bal-jalx-addend.d: New test.
138         * testsuite/ld-mips-elf/bal-jalx-local.d: New test.
139         * testsuite/ld-mips-elf/bal-jalx-pic.d: New test.
140         * testsuite/ld-mips-elf/bal-jalx-addend-n32.d: New test.
141         * testsuite/ld-mips-elf/bal-jalx-local-n32.d: New test.
142         * testsuite/ld-mips-elf/bal-jalx-pic-n32.d: New test.
143         * testsuite/ld-mips-elf/bal-jalx-addend-n64.d: New test.
144         * testsuite/ld-mips-elf/bal-jalx-local-n64.d: New test.
145         * testsuite/ld-mips-elf/bal-jalx-pic-n64.d: New test.
146         * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
147         * testsuite/ld-mips-elf/unaligned-jalx-3.d: New test.
148         * testsuite/ld-mips-elf/unaligned-jalx-addend-2.d: New test.
149         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: New test.
150         * testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
151         * testsuite/ld-mips-elf/unaligned-jalx-3.s: New test source.
152         * testsuite/ld-mips-elf/unaligned-jalx-addend-2.s: New test
153         source.
154         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.s: New test
155         source.
156         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
157
158 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
159
160         * testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error message
161         expected.
162         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
163         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
164         Likewise.
165         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
166         Likewise.
167         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
168         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
169         * testsuite/ld-mips-elf/undefweak-overflow.s: Add jumps,
170         microMIPS BAL and MIPS16 instructions.
171         * testsuite/ld-mips-elf/undefweak-overflow.d: Update
172         accordingly.
173         * testsuite/ld-mips-elf/unaligned-branch-2.d: New test.
174         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: New test.
175         * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: New test.
176         * testsuite/ld-mips-elf/unaligned-branch-mips16.d: New test.
177         * testsuite/ld-mips-elf/unaligned-branch-micromips.d: New test.
178         * testsuite/ld-mips-elf/unaligned-jump-mips16.d: New test.
179         * testsuite/ld-mips-elf/unaligned-jump-micromips.d: New test.
180         * testsuite/ld-mips-elf/unaligned-jump.d: New test.
181         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
182
183 2016-07-19  Andrew Burgess  <andrew.burgess@embecosm.com>
184
185         * plugin.c (plugin_call_claim_file): Restore the file offset after
186         an unsuccessful attempt to claim a file.
187         * testplug.c (bytes_to_read_before_claim): New global.
188         (record_read_length): New function, sets new global
189         bytes_to_read_before_claim.
190         (parse_option): Handle 'read:<NUMBER>' option.
191         (onclaim_file): Read file content before checking for claim.
192         * testsuite/ld-plugin/plugin-30.d: New file.
193         * testsuite/ld-plugin/plugin.exp: Add new test.
194
195 2016-07-16  Alan Modra  <amodra@gmail.com>
196
197         * plugin.c: Don't include libbfd.h.  Include plugin-api.h
198         before bfd/plugin.h.
199         (plugin_object_p): Use bfd_plugin_open_input.
200
201 2016-07-16  Alan Modra  <amodra@gmail.com>
202
203         * ldlang.c (open_output): Replace bfd_search_for_target with
204         bfd_iterate_over_targets.  Localize vars.
205
206 2016-07-16  Alan Modra  <amodra@gmail.com>
207
208         * ldlang.c: Don't include libbfd.h.
209         * emultempl/nds32elf.em: Likewise.
210         * emultempl/ppc64elf.em: Likewise.
211         * emultempl/ppc32elf.em: Likewise.
212         (pagesize): Delete.
213         (params): Update init.
214         (ppc_after_open_output): Use params.pagesize.  Don't call bfd_log2.
215         (PARSE_AND_LIST_ARGS_CASES): Use params.pagesize.
216         * emultempl/sh64elf.em: Don't include libbfd.h.
217         (after_allocation): Use ASSERT, not BFD_ASSERT.
218         * emultempl/xtensaelf.em: Don't include libbfd.h.
219         (replace_insn_sec_with_prop_sec): Use xmalloc, not bfd_malloc.
220         * Makefile.am: Update dependencies.
221         * Makefile.in: Regenerate.
222
223 2016-07-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
224             Nick Clifton  <nickc@redhat.com>
225
226         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Open import
227         library file for writing and initialize implib_bfd field of link_info
228         structure.
229         * emultempl/pe.em (pe_implib_filename): Remove variable declaration.
230         (OPTION_IMPLIB_FILENAME): Remove macro definition.
231         (gld${EMULATION_NAME}_add_options): Remove --out-implib option.
232         (gld_${EMULATION_NAME}_list_options): Likewise.
233         (gld${EMULATION_NAME}_handle_option): Likewise.
234         (gld_${EMULATION_NAME}_finish): Use command_line.out_implib_filename
235         instead of pe_implib_filename.
236         * emultempl/pep.em (pep_implib_filename): Remove variable declaration.
237         (OPTION_IMPLIB_FILENAME): Remove enumerator.
238         (gld${EMULATION_NAME}_add_options): Remove --out-implib option.
239         (gld_${EMULATION_NAME}_list_options): Likewise.
240         (gld${EMULATION_NAME}_handle_option): Likewise.
241         (gld_${EMULATION_NAME}_finish): Use command_line.out_implib_filename
242         instead of pep_implib_filename.
243         * ld.h (args_type): Declare new out_implib_filename field.
244         * ld.texinfo (--out-implib): Move documentation to arch-independent
245         part and rephrase to apply to ELF targets.
246         * ldexp.c (exp_fold_tree_1): Set ldscript_def field to 1 for symbols
247         defined in linker scripts.
248         * ldlex.h (enum option_values): Declare new OPTION_OUT_IMPLIB
249         enumerator.
250         * lexsup.c (ld_options): Add entry for new --out-implib switch.
251         (parse_args): Handle OPTION_OUT_IMPLIB case.
252         * testsuite/ld-elf/elf.exp (Generate empty import library): New test.
253         (Generate import library): Likewise.
254         * testsuite/ld-elf/implib.s: Likewise.
255         * testsuite/ld-elf/implib.rd: New file.
256         * testsuite/ld-elf/empty-implib.out: Likewise
257
258 2016-07-15  Nick Clifton  <nickc@redhat.com>
259
260         * testsuite/ld-arc/arc.exp: Always run the sda-relocs test in
261         little endian mode.
262
263 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
264
265         * testsuite/ld-mips-elf/mips-elf.exp: Run
266         `branch-absolute-addend', `mips16-branch-absolute',
267         `mips16-branch-absolute-addend' and
268         `micromips-branch-absolute-addend'.
269
270 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
271
272         * testsuite/ld-mips-elf/mips16-branch-absolute.d: New test.
273         * testsuite/ld-mips-elf/mips16-branch-absolute-n32.d: New test.
274         * testsuite/ld-mips-elf/mips16-branch-absolute-n64.d: New test.
275         * testsuite/ld-mips-elf/mips16-branch-absolute-addend.d: New
276         test.
277         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d: New
278         test.
279         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d: New
280         test.
281         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except
282         from `mips16-branch-absolute' and
283         `mips16-branch-absolute-addend', referred indirectly only.
284
285 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
286
287         * testsuite/ld-mips-elf/branch-absolute.d: New test.
288         * testsuite/ld-mips-elf/branch-absolute-n32.d: New test.
289         * testsuite/ld-mips-elf/branch-absolute-n64.d: New test.
290         * testsuite/ld-mips-elf/branch-absolute-addend.d: New test.
291         * testsuite/ld-mips-elf/branch-absolute-addend-n32.d: New test.
292         * testsuite/ld-mips-elf/branch-absolute-addend-n64.d: New test.
293         * testsuite/ld-mips-elf/micromips-branch-absolute.d: New test.
294         * testsuite/ld-mips-elf/micromips-branch-absolute-n32.d: New
295         test.
296         * testsuite/ld-mips-elf/micromips-branch-absolute-n64.d: New
297         test.
298         * testsuite/ld-mips-elf/micromips-branch-absolute-addend.d: New
299         test.
300         * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d:
301         New test.
302         * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d:
303         New test.
304         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except
305         from `branch-absolute-addend' and
306         `micromips-branch-absolute-addend', referred indirectly only.
307
308 2016-07-14  Claudiu Zissulescu  <claziss@synopsys.com>
309
310         * emulparams/arcelf.sh (SDATA_START_SYMBOLS): Add offset.
311         * testsuite/ld-arc/sda-relocs.dd: New file.
312         * testsuite/ld-arc/sda-relocs.ld: Likewise.
313         * testsuite/ld-arc/sda-relocs.rd: Likewise.
314         * testsuite/ld-arc/sda-relocs.s: Likewise.
315         * testsuite/ld-arc/arc.exp: Add SDA tests.
316
317 2016-07-11  Claudiu Zissulescu  <claziss@synopsys.com>
318
319         * testsuite/ld-arc/nps-1b.err: Update test to handle more
320         verbosity.
321
322 2016-07-09  Alan Modra  <amodra@gmail.com>
323
324         * testsuite/ld-powerpc/elfv2exe.d: Update.
325
326 2016-07-06  James Bowman  <james.bowman@ftdichip.com>
327
328         * scripttempl/ft32.sc (__PMSIZE): Correct __PMSIZE_.
329         (DATA): add ALIGN.
330         (BSS): add ALIGN
331
332 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
333
334         * testsuite/ld-plugin/lto.exp: Add -flto to PR ld/20321 test.
335
336 2016-07-05  Andre Vieria  <andre.simoesdiasvieira@arm.com>
337
338         * testsuite/ld-arm/farcall-thumb2-purecode.d: New test result.
339         * testsuite/ld-arm/farcall-thumb2-purecode.s: New test.
340         * testsuite/ld-arm/arm-elf.exp: Run it.
341
342 2016-07-05  Andre Vieria  <andre.simoesdiasvieira@arm.com>
343
344         * testsuite/ld-arm/arm_noread.ld: Renamed to ...
345         testsuite/ld-arm/arm_purecode.ld: ... this, and replaced
346         all noread's by purecode.
347
348 2016-07-05  Jan Beulich  <jbeulich@suse.com>
349
350         * ldexp.c (exp_fold_tree_1): Set linker_def field based on
351         assignment line number.
352         * ldlex.l (lineno): Drop initializer.
353         (<<EOF>>): Set lineno to zero after reaching top of stack.
354
355 2016-07-04  H.J. Lu  <hongjiu.lu@intel.com>
356
357         PR ld/20321
358         * plugin.c (plugin_opt_plugin): Warn and return if plugin has
359         been loaded already.
360         * testsuite/ld-plugin/lto.exp: Run PR ld/20321 test.
361         * testsuite/ld-plugin/pr20321.c: New file.
362
363 2016-07-04  Nick Clifton  <nickc@redhat.com>
364
365         * scripttempl/ft32.sc (__PMSIZE_): If not defined, set to 256K.
366         (__RAMSIZE): If not defined, set to 64K.
367         (MEMORY): Set the flash region size to __PMSIZE and the ram region
368         size to __RAMSIZE.
369
370 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
371
372         * testsuite/ld-mips-elf/branch-misc-2.d: New test.
373         * testsuite/ld-mips-elf/mips-elf.exp: Run it.
374
375 2016-07-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
376
377         * testsuite/ld-arm/arm-elf.exp (Thumb-2 BL): Assemble for ARMv7.
378         (Thumb-2 BL on ARMv6-M): New testcase.
379         * testsuite/ld-arm/thumb2-bl.d: Do not try to match testcase filename.
380         * testsuite/ld-arm/thumb2-bl.s: Do not select architecture.
381
382 2016-07-01  Tristan Gingold  <gingold@adacore.com>
383
384         * NEWS: Add marker for 2.27.
385
386 2016-06-28  H.J. Lu  <hongjiu.lu@intel.com>
387
388         * testsuite/ld-gc/gc.exp: Run pr20306 test.
389         * ld-gc/pr20306.c: New file.
390         * ld-gc/pr20306.d: Likewise.
391
392 2016-06-28  Nick Clifton  <nickc@redhat.com>
393
394         * testsuite/ld-elf/comm-data.exp: Expect comm-data2 test to fail
395         for bfin.
396         * testsuite/ld-elf/elf.exp: Expect pr14170 and symbolic function
397         tests to fail for bfin.
398         * testsuite/ld-elf/endsym.d: Expect to fail with cr16, crx, dlx,
399         nds32 and visium.
400         * testsuite/ld-elf/var1.d: Expect to fail with d30v, dlx, ft32 and
401         microblaze.
402         * testsuite/ld-pe/pe.exp: Expect foreign symbol test to fail for
403         mcore-pe.
404
405 2016-06-28  Nick Clifton  <nickc@redhat.com>
406
407         * testsuite/ld-elf/merge.d: Add m68hc11 to list of targets that
408         expect to fail this test.
409         * testsuite/ld-scripts/overlay-size.d: Skip the entire test for
410         RX.
411         * testsuite/ld-scripts/rgn-at10.d: No longer expect this test to
412         fail for the RX.
413         * testsuite/ld-scripts/rgn-at11.d: Likewise.
414         * testsuite/ld-scripts/rgn-at2.d: Likewise.
415         * testsuite/ld-scripts/rgn-at6.d: Likewise.
416         * testsuite/ld-scripts/rgn-at7.d: Likewise.
417         * testsuite/ld-scripts/rgn-at8.d: Likewise.
418
419 2016-06-28  James Clarke  <jrtc27@jrtc27.com>
420
421         * testsuite/ld-elf/symbolic-func.r: Allow non-zero offsets from
422         .text.
423
424 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
425
426         * testsuite/ld-mips-elf/attr-gnu-4-10.d: Match any UNIX OS/ABI.
427         * testsuite/ld-mips-elf/attr-gnu-4-50.d: Likewise.
428         * testsuite/ld-mips-elf/attr-gnu-4-60.d: Likewise.
429         * testsuite/ld-mips-elf/attr-gnu-4-70.d: Likewise.
430
431 2016-06-28  Alan Modra  <amodra@gmail.com>
432
433         PR ld/20302
434         * testsuite/ld-scripts/pr20302.d: Exclude *-*-*aout.
435
436 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
437
438         * testsuite/ld-mips-elf/mips16-branch-2.d: New test.
439         * testsuite/ld-mips-elf/mips16-branch-3.d: New test.
440         * testsuite/ld-mips-elf/mips16-branch-addend-2.d: New test.
441         * testsuite/ld-mips-elf/mips16-branch-addend-3.d: New test.
442         * testsuite/ld-mips-elf/mips16-branch.s: New test source.
443         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
444
445 2016-06-27  Nick Clifton  <nickc@redhat.com>
446
447         PR ld/20302
448         * lexsup.c (set_segment_start): If resetting the start address of
449         a section, remember to generate a new script element as well.
450         * testsuite/ld-scripts/pr20302.d: New test.
451         * testsuite/ld-scripts/scripts.exp: Run the new test.
452
453 2016-06-24  Alan Modra  <amodra@gmail.com>
454
455         * testsuite/ld-aarch64/aarch64-elf.exp (aarch64_choose_ilp32_emul):
456         Don't error out, always return an emulation.
457
458 2016-06-24  Dilyan Palauzov <dilyan.palauzov@aegee.org>
459             H.J. Lu  <hongjiu.lu@intel.com>
460
461         * lexsup.c (elf_shlib_list_options): Check DEFAULT_LD_Z_RELRO
462         for -z relro help message.
463
464 2016-06-22  Maciej W. Rozycki  <macro@imgtec.com>
465
466         * testsuite/ld-mips-elf/undefweak-overflow.d: Use wildcard
467         address matching.
468
469 2016-06-22  Maciej W. Rozycki  <macro@imgtec.com>
470
471         * testsuite/ld-mips-elf/mips-elf.exp: Uniquely identify
472         `undefweak-overflow' tests.
473
474 2016-06-22  H.J. Lu  <hongjiu.lu@intel.com>
475
476         PR ld/20283
477         * NEWS: Mention --enable-relro.
478         * configure.ac: Add --enable-relro.
479         (DEFAULT_LD_Z_RELRO): New.  Set by --enable-relro.
480         * configure.tgt (ac_default_ld_z_relro): Default it to 1 for
481         some Linux targets.
482         * config.in: Regenerated.
483         * configure: Likewise.
484         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
485         link_info.relro to DEFAULT_LD_Z_RELRO.
486         * testsuite/config/default.exp (ld_elf_shared_opt): New.
487         * testsuite/lib/ld-lib.exp (run_dump_test): Pass
488         $ld_elf_shared_opt to ld for ELF targets with shared object
489         support.
490         (run_ld_link_tests): Likewise.
491
492 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
493
494         * testsuite/ld-mips-elf/mode-change-error-1a.s: Trigger an error
495         twice rather than once.
496         * testsuite/ld-mips-elf/mode-change-error-1.d: Adjust
497         accordingly.  Remove the full stop from the end of the message.
498
499 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
500
501         * testsuite/ld-arc/nps-1a.d: Use -mcpu=arc700 -mnps400.
502         * testsuite/ld-arc/nps-1b.d: Likewise.
503
504 2016-06-20  H.J. Lu  <hongjiu.lu@intel.com>
505
506         PR ld/20267
507         * testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
508         PR ld/20267.
509         (lto_run_tests): Likewise.
510         * testsuite/ld-plugin/pr20267a.c: New file.
511         * testsuite/ld-plugin/pr20267b.c: Likewise.
512
513 2016-06-20  H.J. Lu  <hongjiu.lu@intel.com>
514             Alan Modra  <amodra@gmail.com>
515
516         PR ld/20276
517         * plugin.c (plugin_notice): Set non_ir_ref on common symbols.
518         * testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
519         PR ld/20276.
520         (lto_run_tests): Likewise.
521         * testsuite/ld-plugin/pass.out: New file.
522         * testsuite/ld-plugin/pr20276a.c: Likewise.
523         * testsuite/ld-plugin/pr20276b.c: Likewise.
524
525 2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
526
527         * plugin.c (plugin_object_p): Replace bfd_plugin_uknown
528         with bfd_plugin_unknown.
529
530 2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
531
532         PR ld/20253
533         * testsuite/ld-i386/i386.exp: Run PR ld/20253 tests.
534         * testsuite/ld-i386/no-plt.exp: Likewise.
535         * testsuite/ld-x86-64/no-plt.exp: Likewise.
536         * testsuite/ld-i386/pr13302.d: Remove .rel.plt section.
537         * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
538         * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
539         * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
540         * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
541         * testsuite/ld-x86-64/pr13082-5a.d: Likewise.
542         * testsuite/ld-x86-64/pr13082-5b.d: Likewise.
543         * testsuite/ld-x86-64/pr13082-6a.d: Likewise.
544         * testsuite/ld-x86-64/pr13082-6b.d: Likewise.
545         * testsuite/ld-i386/pr20244-2a.d: Remove .plt section.
546         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
547         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
548         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
549         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
550         * testsuite/ld-i386/pr20244-2b.d: Updated.
551         * testsuite/ld-i386/pr20244-2c.d: Likewise.
552         * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
553         * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
554         * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
555         * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
556         * testsuite/ld-i386/pr20253-1a.c: New file.
557         * testsuite/ld-i386/pr20253-1b.S: Likewise.
558         * testsuite/ld-i386/pr20253-1c.S: Likewise.
559         * testsuite/ld-i386/pr20253-1d.S: Likewise.
560         * testsuite/ld-i386/pr20253-2a.c: Likewise.
561         * testsuite/ld-i386/pr20253-2b.S: Likewise.
562         * testsuite/ld-i386/pr20253-2c.S: Likewise.
563         * testsuite/ld-i386/pr20253-2d.S: Likewise.
564         * testsuite/ld-i386/pr20253-3.d: Likewise.
565         * testsuite/ld-i386/pr20253-3.s: Likewise.
566         * testsuite/ld-i386/pr20253-4.s: Likewise.
567         * testsuite/ld-i386/pr20253-4a.d: Likewise.
568         * testsuite/ld-i386/pr20253-4b.d: Likewise.
569         * testsuite/ld-i386/pr20253-4c.d: Likewise.
570         * testsuite/ld-i386/pr20253-5.d: Likewise.
571         * testsuite/ld-i386/pr20253-5.s: Likewise.
572         * testsuite/ld-ifunc/ifunc-23-x86.s: Likewise.
573         * testsuite/ld-ifunc/ifunc-23a-x86.d: Likewise.
574         * testsuite/ld-ifunc/ifunc-23b-x86.d: Likewise.
575         * testsuite/ld-ifunc/ifunc-23c-x86.d: Likewise.
576         * testsuite/ld-ifunc/ifunc-24-x86.s: Likewise.
577         * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
578         * testsuite/ld-ifunc/ifunc-24b-x86.d: Likewise.
579         * testsuite/ld-ifunc/ifunc-24c-x86.d: Likewise.
580         * testsuite/ld-ifunc/ifunc-25-x86.s: Likewise.
581         * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
582         * testsuite/ld-ifunc/ifunc-25b-x86.d: Likewise.
583         * testsuite/ld-ifunc/ifunc-25c-x86.d: Likewise.
584         * testsuite/ld-x86-64/pr20253-1.s: Likewise.
585         * testsuite/ld-x86-64/pr20253-1a.d: Likewise.
586         * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
587         * testsuite/ld-x86-64/pr20253-1c.d: Likewise.
588         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
589         * testsuite/ld-x86-64/pr20253-1e.d: Likewise.
590         * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
591         * testsuite/ld-x86-64/pr20253-1g.d: Likewise.
592         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
593         * testsuite/ld-x86-64/pr20253-1i.d: Likewise.
594         * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
595         * testsuite/ld-x86-64/pr20253-1k.d: Likewise.
596         * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
597         * testsuite/ld-x86-64/pr20253-2a.c: Likewise.
598         * testsuite/ld-x86-64/pr20253-2b.S: Likewise.
599         * testsuite/ld-x86-64/pr20253-2c.S: Likewise.
600         * testsuite/ld-x86-64/pr20253-2d.S: Likewise.
601         * testsuite/ld-x86-64/pr20253-3.d: Likewise.
602         * testsuite/ld-x86-64/pr20253-3.s: Likewise.
603         * testsuite/ld-x86-64/pr20253-4.s: Likewise.
604         * testsuite/ld-x86-64/pr20253-4a.d: Likewise.
605         * testsuite/ld-x86-64/pr20253-4b.d: Likewise.
606         * testsuite/ld-x86-64/pr20253-4c.d: Likewise.
607         * testsuite/ld-x86-64/pr20253-4d.d: Likewise.
608         * testsuite/ld-x86-64/pr20253-4e.d: Likewise.
609         * testsuite/ld-x86-64/pr20253-4f.d: Likewise.
610         * testsuite/ld-x86-64/pr20253-5.s: Likewise.
611         * testsuite/ld-x86-64/pr20253-5a.d: Likewise.
612         * testsuite/ld-x86-64/pr20253-5b.d: Likewise.
613         * testsuite/ld-ifunc/ifunc-18a-i386.d: Remove extra IRELATIVE
614         relocation.
615         * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
616         * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
617         * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
618         * testsuite/ld-ifunc/ifunc-18a.s: Fix a typo.
619         * testsuite/ld-x86-64/x86-64.exp: Run pr20253-1 tests.
620
621 2016-06-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
622             Tony Wang  <tony.wang@arm.com>
623
624         * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall M profile):
625         Assemble for ARMv6-M.
626         (Thumb2-Thumb2 farcall M profile): New testcase.
627         * testsuite/ld-arm/farcall-thumb2-thumb2-m.d: New file.
628         * testsuite/ld-arm/jump-reloc-veneers-cond-long-backward.d: Update to
629         reflect the use of Thumb-2 veneers for Thumb-2 capable targets.
630         * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Likewise.
631
632 2016-06-16  H.J. Lu  <hongjiu.lu@intel.com>
633
634         * testsuite/ld-i386/i386.exp: Run pr19636-2e-nacl.
635         * testsuite/ld-i386/pr19636-2e.d: Skip for NaCl targets.
636         Remove .rel.plt section.
637         * testsuite/ld-i386/pr19636-2e-nacl.d: New file.
638
639 2016-06-15  H.J. Lu  <hongjiu.lu@intel.com>
640
641         * testsuite/ld-i386/no-plt-check1a.S (check): Test static
642         function pointer.
643         * testsuite/ld-i386/no-plt-check1b.S (check): Likewise.
644         * testsuite/ld-x86-64/no-plt-check1.S (check): Likewise.
645         * testsuite/ld-i386/no-plt-extern1a.S (func_p): New.  Static
646         function pointer.
647         * testsuite/ld-i386/no-plt-extern1b.S (func_p): Likewise.
648         * testsuite/ld-x86-64/no-plt-extern1.S (func_p): Likewise.
649         * testsuite/ld-i386/no-plt-1a.dd: Updated.
650         * testsuite/ld-i386/no-plt-1b.dd: Likewise.
651         * testsuite/ld-i386/no-plt-1c.dd: Likewise.
652         * testsuite/ld-i386/no-plt-1d.dd: Likewise.
653         * testsuite/ld-i386/no-plt-1e.dd: Likewise.
654         * testsuite/ld-i386/no-plt-1f.dd: Likewise.
655         * testsuite/ld-i386/no-plt-1g.dd: Likewise.
656         * testsuite/ld-i386/no-plt-1h.dd: Likewise.
657         * testsuite/ld-i386/no-plt-1i.dd: Likewise.
658         * testsuite/ld-i386/no-plt-1j.dd: Likewise.
659         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
660         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
661         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
662         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
663         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
664         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
665         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
666
667 2016-06-14  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
668
669         PR ld/20254
670         * testsuite/ld-avr/avr-prop-6.d: New test.
671         * testsuite/ld-avr/avr-prop-6.s: New test.
672
673 2016-06-14  Alan Modra  <amodra@gmail.com>
674
675         * ldbuildid.c: Formatting.
676         * ldcref.c: Formatting.
677         * ldctor.c: Formatting.
678         * ldemul.c: Formatting.
679         * ldexp.c: Formatting.
680         * ldfile.c: Formatting.
681         * ldlang.c: Formatting.
682         * ldmain.c: Formatting.
683         * ldwrite.c: Formatting.
684
685 2016-06-14  Alan Modra  <amodra@gmail.com>
686
687         * ldlang.c: Expand uses of bfd_my_archive.
688         * ldmain.c: Likewise.
689         * ldmisc.c: Likewise.
690         * plugin.c: Likewise.
691
692 2016-06-14  Alan Modra  <amodra@gmail.com>
693
694         PR ld/20241
695         * ldmain.c (add_archive_element): Just print file name of file within
696         thin archives.
697         * ldmisc.c (vfinfo): Likewise.
698         * plugin.c (plugin_object_p): Open file within thin archives.
699         (plugin_maybe_claim): Expand comment.
700
701 2016-06-13  H.J. Lu  <hongjiu.lu@intel.com>
702
703         PR ld/20244
704         * testsuite/ld-i386/i386.exp: Run pr20244-2a, pr20244-2b,
705         pr20244-2c and pr20244-2d.
706         * testsuite/ld-i386/no-plt.exp: Run pr20244-3a and pr20244-3b.
707         * testsuite/ld-i386/pr20244-2.s: New file.
708         * testsuite/ld-i386/pr20244-2a.d: Likewise.
709         * testsuite/ld-i386/pr20244-2b.d: Likewise.
710         * testsuite/ld-i386/pr20244-2c.d: Likewise.
711         * testsuite/ld-i386/pr20244-2d.d: Likewise.
712         * testsuite/ld-i386/pr20244-3a.c: Likewise.
713         * testsuite/ld-i386/pr20244-3b.S: Likewise.
714         * testsuite/ld-i386/pr20244-3c.S: Likewise.
715         * testsuite/ld-i386/pr20244-3d.S: Likewise.
716
717 2016-06-13  H.J. Lu  <hongjiu.lu@intel.com>
718
719         * testsuite/ld-i386/i386.exp: Run ifunc-1a and ifunc-1b.
720         * testsuite/ld-i386/ifunc-1a.c: New file.
721         * testsuite/ld-i386/ifunc-1b.S: Likewise.
722         * testsuite/ld-i386/ifunc-1c.S: Likewise.
723         * testsuite/ld-i386/ifunc-1d.S: Likewise.
724
725 2016-06-13  Cupertino Miranda  <cmiranda@synospsy.com>
726
727         * testsuite/ld-srec/srec.exp: Changed to XFAIL on both little and
728         big endian ARC targets.
729
730 2016-06-12  H.J. Lu  <hongjiu.lu@intel.com>
731
732         * testsuite/ld-x86-64/libno-plt-1b.dd: Updated for x32.
733         * testsuite/ld-x86-64/libno-plt-1b.rd: Likewise.
734         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
735         * testsuite/ld-x86-64/no-plt-1a.rd: Likewise.
736         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
737         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
738         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
739         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
740         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
741         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
742         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
743         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
744         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
745         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
746         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
747
748 2016-06-11  H.J. Lu  <hongjiu.lu@intel.com>
749
750         PR ld/20244
751         * testsuite/ld-i386/i386.exp: Run pr20244-1a and pr20244-1b.
752         * testsuite/ld-i386/pr20244-1.s: New file.
753         * testsuite/ld-i386/pr20244-1a.d: Likewise.
754         * testsuite/ld-i386/pr20244-1b.d: Likewise.
755         * testsuite/ld-i386/pr20244-1c.d: Likewise.
756
757 2016-06-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
758
759         PR ld/20221
760         * testsuite/ld-avr/avr-prop-5.d: New.
761         * testsuite/ld-avr/avr-prop-5.s: New.
762
763 2016-06-09  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
764
765         * testsuite/ld-avr/lds-mega.d: New test.
766         * testsuite/ld-avr/lds-mega.s: New test source.
767         * testsuite/ld-avr/lds-tiny.d: New test.
768         * testsuite/ld-avr/lds-tiny.s: New test source.
769
770 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
771
772         * testsuite/ld-i386/libno-plt-1b.dd: New file.
773         * testsuite/ld-i386/libno-plt-1b.rd: Likewise.
774         * testsuite/ld-i386/no-plt-1a.dd: Likewise.
775         * testsuite/ld-i386/no-plt-1a.rd: Likewise.
776         * testsuite/ld-i386/no-plt-1b.dd: Likewise.
777         * testsuite/ld-i386/no-plt-1b.rd: Likewise.
778         * testsuite/ld-i386/no-plt-1c.dd: Likewise.
779         * testsuite/ld-i386/no-plt-1c.rd: Likewise.
780         * testsuite/ld-i386/no-plt-1d.dd: Likewise.
781         * testsuite/ld-i386/no-plt-1d.rd: Likewise.
782         * testsuite/ld-i386/no-plt-1e.dd: Likewise.
783         * testsuite/ld-i386/no-plt-1e.rd: Likewise.
784         * testsuite/ld-i386/no-plt-1f.dd: Likewise.
785         * testsuite/ld-i386/no-plt-1f.rd: Likewise.
786         * testsuite/ld-i386/no-plt-1g.dd: Likewise.
787         * testsuite/ld-i386/no-plt-1g.rd: Likewise.
788         * testsuite/ld-i386/no-plt-1h.dd: Likewise.
789         * testsuite/ld-i386/no-plt-1h.rd: Likewise.
790         * testsuite/ld-i386/no-plt-1i.dd: Likewise.
791         * testsuite/ld-i386/no-plt-1i.rd: Likewise.
792         * testsuite/ld-i386/no-plt-1j.dd: Likewise.
793         * testsuite/ld-i386/no-plt-1j.rd: Likewise.
794         * testsuite/ld-i386/no-plt-check1a.S: Likewise.
795         * testsuite/ld-i386/no-plt-check1b.S: Likewise.
796         * testsuite/ld-i386/no-plt-extern1a.S: Likewise.
797         * testsuite/ld-i386/no-plt-extern1b.S: Likewise.
798         * testsuite/ld-i386/no-plt-func1.c: Likewise.
799         * testsuite/ld-i386/no-plt-main1.c: Likewise.
800         * testsuite/ld-i386/no-plt.exp: Likewise.
801
802 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
803
804         * testsuite/ld-x86-64/tls.exp (run_cc_link_tests): Update test
805         name.
806
807 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
808
809         * testsuite/ld-i386/i386.exp: Run libtlspic2.so, tlsbin2,
810         tlsgd3, tlsld2, tlsgd4, tlspie3a, tlspie3b and tlspie3c.
811         * testsuite/ld-i386/pass.out: New file.
812         * testsuite/ld-i386/tls-def1.c: Likewise.
813         * testsuite/ld-i386/tls-gd1.S: Likewise.
814         * testsuite/ld-i386/tls-ld1.S: Likewise.
815         * testsuite/ld-i386/tls-main1.c: Likewise.
816         * testsuite/ld-i386/tls.exp: Likewise.
817         * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
818         * testsuite/ld-i386/tlsbin2.dd: Likewise.
819         * testsuite/ld-i386/tlsbin2.rd: Likewise.
820         * testsuite/ld-i386/tlsbin2.sd: Likewise.
821         * testsuite/ld-i386/tlsbin2.td: Likewise.
822         * testsuite/ld-i386/tlsbinpic2.s: Likewise.
823         * testsuite/ld-i386/tlsgd3.dd: Likewise.
824         * testsuite/ld-i386/tlsgd3.s: Likewise.
825         * testsuite/ld-i386/tlsgd4.d: Likewise.
826         * testsuite/ld-i386/tlsgd4.s: Likewise.
827         * testsuite/ld-i386/tlsld2.s: Likewise.
828         * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
829         * testsuite/ld-i386/tlspic2.dd: Likewise.
830         * testsuite/ld-i386/tlspic2.rd: Likewise.
831         * testsuite/ld-i386/tlspic2.sd: Likewise.
832         * testsuite/ld-i386/tlspic2.td: Likewise.
833         * testsuite/ld-i386/tlspic3.s: Likewise.
834         * testsuite/ld-i386/tlspie3.s: Likewise.
835         * testsuite/ld-i386/tlspie3a.d: Likewise.
836         * testsuite/ld-i386/tlspie3b.d: Likewise.
837         * testsuite/ld-i386/tlspie3c.d: Likewise.
838
839 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
840
841         * testsuite/ld-x86-64/no-plt-1a.rd: Support any relocation order.
842         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
843         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
844         * testsuite/ld-x86-64/no-plt-1d.rd: Likewise.
845         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
846         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
847         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
848         * testsuite/ld-x86-64/no-plt.exp: Fix a typo.
849
850 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
851
852         * testsuite/ld-x86-64/libno-plt-1b.dd: Likewise.
853         * testsuite/ld-x86-64/libno-plt-1b.rd: Likewise.
854         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
855         * testsuite/ld-x86-64/no-plt-1a.rd: Likewise.
856         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
857         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
858         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
859         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
860         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
861         * testsuite/ld-x86-64/no-plt-1d.rd: Likewise.
862         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
863         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
864         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
865         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
866         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
867         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
868         * testsuite/ld-x86-64/no-plt-check1.S: Likewise.
869         * testsuite/ld-x86-64/no-plt.exp: Likewise.
870         * testsuite/ld-x86-64/no-plt-extern1.S: Likewise.
871         * testsuite/ld-x86-64/no-plt-func1.c: Likewise.
872         * testsuite/ld-x86-64/no-plt-main1.c: Likewise.
873
874 2016-06-07  Maciej W. Rozycki  <macro@imgtec.com>
875
876         * testsuite/ld-elf/init-fini-arrays.d: Remove `ft32-*-*' xfail.
877
878 2016-06-07  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
879
880         * testsuite/ld-s390/pltoffset-1.dd: New test.
881         * testsuite/ld-s390/pltoffset-1.ld: New test.
882         * testsuite/ld-s390/pltoffset-1.s: New test.
883         * testsuite/ld-s390/s390.exp: Run new test.
884
885 2016-06-07  Alan Modra  <amodra@gmail.com>
886
887         * testsuite/ld-powerpc/apuinfo1.s: Delete nop.
888         * testsuite/ld-powerpc/apuinfo-vle2.s: New.
889         * testsuite/ld-powerpc/powerpc.exp: Use apuinfo-vle2.s.
890
891 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
892
893         * testsuite/ld-x86-64/pass.out: New file.
894         * testsuite/ld-x86-64/tls-def1.c: Likewise.
895         * testsuite/ld-x86-64/tls-gd1.S: Likewise.
896         * testsuite/ld-x86-64/tls-ld1.S: Likewise.
897         * testsuite/ld-x86-64/tls-main1.c: Likewise.
898         * testsuite/ld-x86-64/tls.exp: Likewise.
899         * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
900         * testsuite/ld-x86-64/tlsbin2.dd: Likewise.
901         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
902         * testsuite/ld-x86-64/tlsbin2.sd: Likewise.
903         * testsuite/ld-x86-64/tlsbin2.td: Likewise.
904         * testsuite/ld-x86-64/tlsbinpic2.s: Likewise.
905         * testsuite/ld-x86-64/tlsgd10.dd: Likewise.
906         * testsuite/ld-x86-64/tlsgd10.s: Likewise.
907         * testsuite/ld-x86-64/tlsgd11.dd: Likewise.
908         * testsuite/ld-x86-64/tlsgd11.s: Likewise.
909         * testsuite/ld-x86-64/tlsgd12.d: Likewise.
910         * testsuite/ld-x86-64/tlsgd12.s: Likewise.
911         * testsuite/ld-x86-64/tlsgd13.d: Likewise.
912         * testsuite/ld-x86-64/tlsgd13.s: Likewise.
913         * testsuite/ld-x86-64/tlsgd14.dd: Likewise.
914         * testsuite/ld-x86-64/tlsgd14.s: Likewise.
915         * testsuite/ld-x86-64/tlsgd5c.s: Likewise.
916         * testsuite/ld-x86-64/tlsgd6c.s: Likewise.
917         * testsuite/ld-x86-64/tlsgd9.dd: Likewise.
918         * testsuite/ld-x86-64/tlsgd9.s: Likewise.
919         * testsuite/ld-x86-64/tlsld4.dd: Likewise.
920         * testsuite/ld-x86-64/tlsld4.s: Likewise.
921         * testsuite/ld-x86-64/tlsld5.dd: Likewise.
922         * testsuite/ld-x86-64/tlsld5.s: Likewise.
923         * testsuite/ld-x86-64/tlsld6.dd: Likewise.
924         * testsuite/ld-x86-64/tlsld6.s: Likewise.
925         * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
926         * testsuite/ld-x86-64/tlspic2.dd: Likewise.
927         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
928         * testsuite/ld-x86-64/tlspic2.sd: Likewise.
929         * testsuite/ld-x86-64/tlspic2.td: Likewise.
930         * testsuite/ld-x86-64/tlspic3.s: Likewise.
931         * testsuite/ld-x86-64/tlspie2.s: Likewise.
932         * testsuite/ld-x86-64/tlspie2a.d: Likewise.
933         * testsuite/ld-x86-64/tlspie2b.d: Likewise.
934         * testsuite/ld-x86-64/tlspie2c.d: Likewise.
935         * testsuite/ld-x86-64/tlsgd5.dd: Updated.
936         * testsuite/ld-x86-64/tlsgd6.dd: Likewise.
937         * testsuite/ld-x86-64/x86-64.exp: Run libtlspic2.so, tlsbin2,
938         tlsgd5b, tlsgd6b, tlsld4, tlsld5, tlsld6, tlsgd9, tlsgd10,
939         tlsgd11, tlsgd14, tlsgd12, tlsgd13, tlspie2a, tlspie2b and
940         tlspie2c.
941
942 2016-06-04  Christian Groessler  <chris@groessler.org>
943
944         * testsuite/ld-z8k/0filler.s: New file.
945         * testsuite/ld-z8k/branch-target.s: New file.
946         * testsuite/ld-z8k/branch-target2.s: New file.
947         * testsuite/ld-z8k/calr-back-8001.d: New file.
948         * testsuite/ld-z8k/calr-back-8002.d: New file.
949         * testsuite/ld-z8k/calr-back-fail-8001.d: New file.
950         * testsuite/ld-z8k/calr-back-fail-8002.d: New file.
951         * testsuite/ld-z8k/calr-forw-8001.d: New file.
952         * testsuite/ld-z8k/calr-forw-8002.d: New file.
953         * testsuite/ld-z8k/calr-forw-fail-8001.d: New file.
954         * testsuite/ld-z8k/calr-forw-fail-8002.d: New file.
955         * testsuite/ld-z8k/calr-opcode.s: New file.
956         * testsuite/ld-z8k/dbjnz-forw-8001.d: New file.
957         * testsuite/ld-z8k/dbjnz-forw-8002.d: New file.
958         * testsuite/ld-z8k/dbjnz-forw-fail-8001.d: New file.
959         * testsuite/ld-z8k/dbjnz-forw-fail-8002.d: New file.
960         * testsuite/ld-z8k/dbjnz-opcode.s: New file.
961         * testsuite/ld-z8k/djnz-back-8001.d: New file.
962         * testsuite/ld-z8k/djnz-back-8002.d: New file.
963         * testsuite/ld-z8k/djnz-back-fail-8001.d: New file.
964         * testsuite/ld-z8k/djnz-back-fail-8002.d: New file.
965         * testsuite/ld-z8k/djnz-forw-8001.d: New file.
966         * testsuite/ld-z8k/djnz-forw-8002.d: New file.
967         * testsuite/ld-z8k/djnz-forw-fail-8001.d: New file.
968         * testsuite/ld-z8k/djnz-forw-fail-8002.d: New file.
969         * testsuite/ld-z8k/djnz-opcode.s: New file.
970         * testsuite/ld-z8k/filler.s: New file.
971         * testsuite/ld-z8k/jr-back-8001.d: New file.
972         * testsuite/ld-z8k/jr-back-8002.d: New file.
973         * testsuite/ld-z8k/jr-back-fail-8001.d: New file.
974         * testsuite/ld-z8k/jr-back-fail-8002.d: New file.
975         * testsuite/ld-z8k/jr-forw-8001.d: New file.
976         * testsuite/ld-z8k/jr-forw-8002.d: New file.
977         * testsuite/ld-z8k/jr-forw-fail-8001.d: New file.
978         * testsuite/ld-z8k/jr-forw-fail-8002.d: New file.
979         * testsuite/ld-z8k/jr-opcode.s: New file.
980         * testsuite/ld-z8k/ldr-back-8001.d: New file.
981         * testsuite/ld-z8k/ldr-back-8002.d: New file.
982         * testsuite/ld-z8k/ldr-back-fail-8001.d: New file.
983         * testsuite/ld-z8k/ldr-back-fail-8002.d: New file.
984         * testsuite/ld-z8k/ldr-forw-8001.d: New file.
985         * testsuite/ld-z8k/ldr-forw-8002.d: New file.
986         * testsuite/ld-z8k/ldr-forw-fail-8001.d: New file.
987         * testsuite/ld-z8k/ldr-forw-fail-8002.d: New file.
988         * testsuite/ld-z8k/ldr-opcode.s: New file.
989         * testsuite/ld-z8k/ldrb-forw-8001.d: New file.
990         * testsuite/ld-z8k/ldrb-forw-8002.d: New file.
991         * testsuite/ld-z8k/ldrb-forw-fail-8001.d: New file.
992         * testsuite/ld-z8k/ldrb-forw-fail-8002.d: New file.
993         * testsuite/ld-z8k/ldrb-opcode.s: New file.
994         * testsuite/ld-z8k/ldrb-opcode2.s: New file.
995         * testsuite/ld-z8k/other-file.s: New file.
996         * testsuite/ld-z8k/reloc.dd: New file.
997         * testsuite/ld-z8k/reloc.ld: New file.
998         * testsuite/ld-z8k/relocseg.dd: New file.
999         * testsuite/ld-z8k/relocseg.ld: New file.
1000         * testsuite/ld-z8k/relocseg1.dd: New file.
1001         * testsuite/ld-z8k/this-file.s: New file.
1002         * testsuite/ld-z8k/z8k.exp: New file.
1003
1004 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1005
1006         * testsuite/ld-i386/i386.exp: Assemble gotpc1.o and pr19319b.o
1007         with -mrelax-relocations=yes.
1008         * testsuite/ld-i386/lea1a.d (as): Add -mrelax-relocations=yes.
1009         * testsuite/ld-i386/lea1b.d (as): Likewise.
1010         * testsuite/ld-i386/lea1d.d (as): Likewise.
1011         * testsuite/ld-i386/lea1e.d (as): Likewise.
1012         * testsuite/ld-i386/lea1f.d (as): Likewise.
1013         * testsuite/ld-i386/load7.d (as): Likewise.
1014         * testsuite/ld-i386/mov1b.d (as): Likewise.
1015         * testsuite/ld-i386/pr19175.d (as): Likewise.
1016         * testsuite/ld-ifunc/ifunc-13-i386.d (as): Likewise.
1017         * testsuite/ld-ifunc/ifunc-21-i386.d (as): Likewise.
1018         * testsuite/ld-ifunc/ifunc-22-i386.d (as): Likewise.
1019         * testsuite/ld-x86-64/x86-64.exp: Assemble gotpcrel1a.o,
1020         gotpcrel1b.o and gotpcrel1c.o with -mrelax-relocations=yes.
1021
1022 2016-06-02  Vineet Gupta  <Vineet.Gupta1@synopsys.com>
1023
1024         * configure.tgt: Replace -uclibc with *.
1025
1026 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
1027
1028         * testsuite/ld-mips-elf/unaligned-branch.d: New test.
1029         * testsuite/ld-mips-elf/unaligned-branch.s: New test source.
1030         * testsuite/ld-mips-elf/unaligned-text.s: New test source.
1031         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1032
1033 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
1034
1035         * testsuite/ld-mips-elf/unaligned-syms.s: Rename to...
1036         * testsuite/ld-mips-elf/unaligned-data.s: ... this.
1037         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Adjust accordingly.
1038         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
1039         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Likewise.
1040         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
1041
1042 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
1043
1044         * testsuite/ld-mips-elf/jal-global-overflow-0.d: New test.
1045         * testsuite/ld-mips-elf/jal-global-overflow-1.d: New test.
1046         * testsuite/ld-mips-elf/jal-local-overflow-0.d: New test.
1047         * testsuite/ld-mips-elf/jal-local-overflow-1.d: New test.
1048         * testsuite/ld-mips-elf/jal-global-overflow.s: New test source.
1049         * testsuite/ld-mips-elf/jal-local-overflow.s: New test source.
1050         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1051
1052 2016-05-28  Alan Modra  <amodra@gmail.com>
1053
1054         * ldmain.c (multiple_definition, multiple_common, add_to_set,
1055         constructor_callback, warning_callback, undefined_symbol,
1056         reloc_overflow, reloc_dangerous, unattached_reloc): Return void.
1057         * emultempl/elf32.em: Adjust callback calls.
1058
1059 2016-05-27  Maciej W. Rozycki  <macro@imgtec.com>
1060
1061         * testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: New test.
1062         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: New test.
1063         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d: New
1064         test.
1065         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d: New
1066         test.
1067         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d: New
1068         test.
1069         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d: New
1070         test.
1071         * testsuite/ld-mips-elf/unaligned-jalx-addend-0.s: New test
1072         source.
1073         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.s: New test
1074         source.
1075         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1076
1077 2016-05-27  Maciej W. Rozycki  <macro@imgtec.com>
1078
1079         * testsuite/ld-mips-elf/reloc-local-overflow.d: New test.
1080         * testsuite/ld-mips-elf/reloc-local-overflow.s: Source for the
1081         new test.
1082         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1083
1084 2016-05-26  Maciej W. Rozycki  <macro@imgtec.com>
1085
1086         * testsuite/ld-mips-elf/unaligned-jalx-0.d: Fold
1087         `unaligned-jalx-2' here.
1088         * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: Fold
1089         `unaligned-jalx-mips16-2' here.
1090         * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: Fold
1091         `unaligned-jalx-micromips-2' here.
1092         * testsuite/ld-mips-elf/unaligned-jalx-0.s: Update accordingly.
1093         * testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error
1094         message.
1095         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
1096         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
1097         * testsuite/ld-mips-elf/unaligned-jalx-2.d: Remove test.
1098         * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: Remove test.
1099         * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: Remove
1100         test.
1101         * testsuite/ld-mips-elf/unaligned-jalx-2.s: Remove test source.
1102         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Fold
1103         `unaligned-lwpc-3' here.
1104         * testsuite/ld-mips-elf/unaligned-lwpc-0.s: Update accordingly.
1105         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Fold
1106         `unaligned-lwpc-2' here.
1107         * testsuite/ld-mips-elf/unaligned-lwpc-1.s: Update accordingly.
1108         * testsuite/ld-mips-elf/unaligned-lwpc-2.d: Remove test.
1109         * testsuite/ld-mips-elf/unaligned-lwpc-2.s: Remove test source.
1110         * testsuite/ld-mips-elf/unaligned-lwpc-3.d: Remove test.
1111         * testsuite/ld-mips-elf/unaligned-lwpc-3.s: Remove test source.
1112         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Fold
1113         `unaligned-ldpc-4' here.
1114         * testsuite/ld-mips-elf/unaligned-ldpc-0.s: Update accordingly.
1115         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Update error
1116         message.  Fold `unaligned-ldpc-2' and `unaligned-ldpc-3' here.
1117         * testsuite/ld-mips-elf/unaligned-ldpc-1.s: Update accordingly.
1118         * testsuite/ld-mips-elf/unaligned-ldpc-2.d: Remove test.
1119         * testsuite/ld-mips-elf/unaligned-ldpc-2.s: Remove test source.
1120         * testsuite/ld-mips-elf/unaligned-ldpc-3.d: Remove test.
1121         * testsuite/ld-mips-elf/unaligned-ldpc-3.s: Remove test source.
1122         * testsuite/ld-mips-elf/unaligned-ldpc-4.d: Remove test.
1123         * testsuite/ld-mips-elf/unaligned-ldpc-4.s: Remove test source.
1124         * testsuite/ld-mips-elf/mips-elf.exp: Delete removed tests.
1125
1126 2016-05-26  Nick Clifton  <nickc@redhat.com>
1127
1128         PR target/20134
1129         * scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
1130         __bsssize.
1131         * scripttempl/elf32msp430_3.sc (.bss): Likewise.
1132
1133 2016-05-25  Maciej W. Rozycki  <macro@imgtec.com>
1134
1135         * testsuite/ld-mips-elf/unaligned-jalx-0.d: New test.
1136         * testsuite/ld-mips-elf/unaligned-jalx-1.d: New test.
1137         * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
1138         * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: New test.
1139         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: New test.
1140         * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: New test.
1141         * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: New test.
1142         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: New test.
1143         * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: New test.
1144         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: New test.
1145         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: New test.
1146         * testsuite/ld-mips-elf/unaligned-lwpc-2.d: New test.
1147         * testsuite/ld-mips-elf/unaligned-lwpc-3.d: New test.
1148         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: New test.
1149         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: New test.
1150         * testsuite/ld-mips-elf/unaligned-ldpc-2.d: New test.
1151         * testsuite/ld-mips-elf/unaligned-ldpc-3.d: New test.
1152         * testsuite/ld-mips-elf/unaligned-ldpc-4.d: New test.
1153         * testsuite/ld-mips-elf/unaligned-jalx-0.s: New test source.
1154         * testsuite/ld-mips-elf/unaligned-jalx-1.s: New test source.
1155         * testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
1156         * testsuite/ld-mips-elf/unaligned-insn.s: New test source.
1157         * testsuite/ld-mips-elf/unaligned-lwpc-0.s: New test source.
1158         * testsuite/ld-mips-elf/unaligned-lwpc-1.s: New test source.
1159         * testsuite/ld-mips-elf/unaligned-lwpc-2.s: New test source.
1160         * testsuite/ld-mips-elf/unaligned-lwpc-3.s: New test source.
1161         * testsuite/ld-mips-elf/unaligned-ldpc-0.s: New test source.
1162         * testsuite/ld-mips-elf/unaligned-ldpc-1.s: New test source.
1163         * testsuite/ld-mips-elf/unaligned-ldpc-2.s: New test source.
1164         * testsuite/ld-mips-elf/unaligned-ldpc-3.s: New test source.
1165         * testsuite/ld-mips-elf/unaligned-ldpc-4.s: New test source.
1166         * testsuite/ld-mips-elf/unaligned-syms.s: New test source.
1167         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1168
1169 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1170
1171         PR ld/20103
1172         * ldmain.c (add_archive_element): Don't claim new IR symbols
1173         after all IR symbols have been claimed.
1174         * plugin.c (plugin_call_claim_file): Remove no_more_claiming
1175         check.
1176         * testsuite/ld-plugin/lto.exp (pr20103): New proc.
1177         Run PR ld/20103 tests.
1178         * testsuite/ld-plugin/pr20103a.c: New file.
1179         * testsuite/ld-plugin/pr20103b.c: Likewise.
1180         * testsuite/ld-plugin/pr20103c.c: Likewise.
1181
1182 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
1183
1184         * testsuite/ld-mips-elf/jalx-local.d: New test.
1185         * testsuite/ld-mips-elf/jalx-local-n32.d: New test.
1186         * testsuite/ld-mips-elf/jalx-local-n64.d: New test.
1187         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1188
1189 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
1190
1191         * Makefile.am: Add earmelf_phoenix.c.
1192         * Makefile.in: Regenerate.
1193         * configure.tgt: Add entry for arm-phoenix.
1194         * emulparams/armelf_phoenix.sh: New file.
1195
1196 2016-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1197
1198         * emultempl/armelf.em (arm_elf_before_allocation): Call
1199         bfd_elf32_arm_keep_private_stub_output_sections before generic
1200         before_allocation function.
1201
1202 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
1203
1204         * testsuite/ld-mips-elf/jalx-addend.d: New test.
1205         * testsuite/ld-mips-elf/jalx-addend-n32.d: New test.
1206         * testsuite/ld-mips-elf/jalx-addend-n64.d: New test.
1207         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1208
1209 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1210
1211         PR ld/20117
1212         * testsuite/ld-i386/i386.exp: Run pr20117.
1213         * testsuite/ld-i386/pr19609-1i.d: Updated.
1214         * testsuite/ld-i386/pr20117.d: New file.
1215         * testsuite/ld-i386/pr20117.s: Likewise.
1216
1217 2016-05-19  Cupertino Miranda  <cmiranda@synopsys.com>
1218
1219         * testsuite/ld-elf/compressed1d.d: Removed from notarget.
1220         * testsuite/ld-elf/group8a.d: Likewise.
1221         * testsuite/ld-elf/group8b.d: Likewise.
1222         * testsuite/ld-elf/group9a.d: Likewise.
1223         * testsuite/ld-elf/group9b.d: Likewise.
1224         * testsuite/ld-elf/pr12851.d: Likewise.
1225         * testsuite/ld-elf/pr12975.d: Likewise.
1226         * testsuite/ld-elf/pr13177.d: Likewise.
1227         * testsuite/ld-elf/pr13195.d: Likewise.
1228         * testsuite/ld-elf/pr17615.d: Likewise.
1229         * testsuite/ld-elf/eh-frame-hdr.d: Removed from xfail.
1230         * testsuite/ld-elf/group3b.d: Likewise.
1231         * testsuite/ld-srec/srec.exp: Likewise.
1232         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark ARC
1233         as supporting gc.
1234         (check_shared_lib_support): Mark ARC as supporting.
1235
1236 2016-05-19  Cupertino Miranda  <cmiranda@synopsys.com>
1237
1238         * emulparams/arcelf.sh: Changed.
1239         * emulparams/arclinux.sh: Likewise.
1240         * scripttempl/arclinux.sc: Moved to a more standard implementation
1241         similar to elf.sc.
1242
1243 2016-05-19  Maciej W. Rozycki  <macro@imgtec.com>
1244
1245         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Reorder
1246         `ft32-*-*' behind `frv-*-*'.
1247
1248 2016-05-19  Maciej W. Rozycki  <macro@imgtec.com>
1249
1250         * configure.tgt: Remove `am34-*-linux*' support.
1251
1252 2016-05-19  Alan Modra  <amodra@gmail.com>
1253
1254         * testsuite/ld-scripts/crossref.exp: Remove -mcall-aixdesc hack.
1255         * testsuite/ld-scripts/cross2.t: Tweak .opd and .toc placement.
1256         * testsuite/ld-scripts/cross3.t: Likewise.
1257         * testsuite/ld-scripts/cross4.t: Likewise.
1258         * testsuite/ld-scripts/cross5.t: Likewise.
1259         * testsuite/ld-scripts/cross6.t: Likewise.
1260         * testsuite/ld-scripts/cross7.t: Likewise.
1261
1262 2016-05-19  Alan Modra  <amodra@gmail.com>
1263
1264         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Pass in
1265         exe name rather than constructing testname.  Fix typo in
1266         sub-test name.  Log copying.  Use -rpath rather than -R.
1267
1268 2016-05-18  Nick Clifton  <nickc@redhat.com>
1269
1270         * scripttempl/ft32.sc: Use fixed constants for memory region
1271         lengths.  Include DWARF debug sections.
1272         (.data .bss): Do not assign locations during relocatable links.
1273         * testsuite/ld-elf/compressed1d.d: Skip for FT32.
1274         * testsuite/ld-elf/sec-to-seg.exp: Likewise.
1275         * testsuite/ld-elf/sec64k.exp: Likewise.
1276         * testsuite/ld-elf/init-fini-array.d: XFail for FT32.
1277         * testsuite/ld-elf/merge.d: Likewise.
1278         * testsuite/ld-elf/orphan-region.d: Likewise.
1279         * testsuite/ld-elf/orphan.s: Likewise.
1280         * testsuite/ld-elf/orphan3.d: Likewise.
1281         * testsuite/ld-elf/pr349.d: Likewise.
1282         * testsuite/ld-elf/warn2.d: Likewise.
1283         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Note
1284         that the FT32 does not support shared libraries.
1285
1286 2016-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1287
1288         * testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
1289         global CC.
1290
1291 2016-05-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1292
1293         * scripttempl/avr.sc (text): Place .progmem.data from avr-libc
1294         above .progmem*.
1295         * scripttempl/avrtiny.sc (text): Likewise.
1296
1297 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
1298
1299         * testsuite/ld-unique/unique.exp: Use `is_elf_format' and
1300         `supports_gnu_unique' to qualify testing.
1301
1302 2016-05-16  Maciej W. Rozycki  <macro@imgtec.com>
1303
1304         * testsuite/ld-elf/flags1.d: Update the xfail list.
1305
1306 2016-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1307
1308         * testsuite/ld-elf/flags1.d: Update for `*-*-nacl*' xfail
1309         removal.
1310
1311 2016-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1312
1313         PR ld/20097
1314         * testplug2.c (onall_symbols_read): Remove redundant sizeof
1315         on EXPECTED_VIEW_LENGTH.
1316         * testplug4.c (onall_symbols_read): Likewise.
1317
1318 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1319
1320         PR ld/20093
1321         * testsuite/ld-x86-64/pr20093-1.d: New file.
1322         * testsuite/ld-x86-64/pr20093-1.s: Likewise.
1323         * testsuite/ld-x86-64/pr20093-2.d: Likewise.
1324         * testsuite/ld-x86-64/pr20093-2.s: Likewise.
1325         * testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
1326
1327 2016-05-13  Alan Modra  <amodra@gmail.com>
1328
1329         * testsuite/ld-arm/arm-elf.exp: Adjust for arm-no-rel-plt now passing.
1330         Use different output file name for static app without .rel.plt.
1331         * testsuite/ld-arm/arm-no-rel-plt.ld: Align .rel.dyn and .rela.dyn.
1332         * testsuite/ld-arm/arm-no-rel-plt.out: Delete.
1333         * testsuite/ld-arm/arm-no-rel-plt.r: New.
1334         * testsuite/ld-arm/arm-static-app.d: Don't check file name.
1335         * testsuite/ld-arm/arm-static-app.r: Likewise.
1336
1337 2016-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1338
1339         PR ld/20070
1340         * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug4.la.
1341         (libldtestplug4_la_SOURCES): New.
1342         (libldtestplug4_la_CFLAGS): Likewise.
1343         (libldtestplug4_la_LDFLAGS): Likewise.
1344         * Makefile.in: Regenerated.
1345         * plugin.c (get_symbols): Return resolution based on IR symbol
1346         kinds for symbols defined/referenced only within IR.
1347         * testplug4.c: New file.
1348         * ld/testsuite/ld-plugin/pr20070.d: Likewise.
1349         * ld/testsuite/ld-plugin/pr20070a.c: Likewise.
1350         * ld/testsuite/ld-plugin/pr20070b.c: Likewise.
1351         * testsuite/ld-plugin/plugin.exp (plugin4_name): New.
1352         (plugin4_path): Likewise.
1353         Add a test for ld/20070.
1354
1355 2016-05-11  Alan Modra  <amodra@gmail.com>
1356
1357         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1358         Call elf32_hppa_init_stub_bfd.
1359
1360 2016-05-11  Alan Modra  <amodra@gmail.com>
1361
1362         PR 20060
1363         * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1364         * testsuite/ld-powerpc/tlsdll.s: New.
1365         * testsuite/ld-powerpc/tlsdll.ver: New.
1366         * testsuite/ld-powerpc/tlsdll_32.s: New.
1367         * testsuite/ld-powerpc/tlsopt5.d: New.
1368         * testsuite/ld-powerpc/tlsopt5.s: New.
1369         * testsuite/ld-powerpc/tlsopt5_32.d: New.
1370         * testsuite/ld-powerpc/tlsopt5_32.s: New.
1371
1372 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1373
1374         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use
1375         ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
1376
1377 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1378
1379         * emultempl/armelf.em (elf32_arm_add_stub_section): Add output_section
1380         parameter and rename input_section parameter to after_input_section.
1381         Append input stub section to the output section if after_input_section
1382         is NULL.
1383
1384 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1385
1386         * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 10 (DSP)): New
1387         test.
1388         * testsuite/ld-arm/attr-merge-10b-dsp.s: New file.
1389         * testsuite/ld-arm/attr-merge-10-dsp.attr: Likewise.
1390
1391 2016-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
1392
1393         * ld/testsuite/ld-elf/flags1.d (xfail): Remove *-*-nacl*".
1394
1395 2016-05-09  Christophe Monat  <christophe.monat@st.com>
1396
1397         PR ld/20030
1398         * testsuite/ld-arm/arm-elf.exp: Run new stm32l4xx-fix-vldm-dp
1399         tests. Fix misnamed stm32l4xx-fix-all.
1400         * testsuite/ld-arm/stm32l4xx-fix-vldm-dp.s: New tests for multiple
1401         loads with DP registers.
1402         * testsuite/ld-arm/stm32l4xx-fix-vldm-dp.d: New reference file.
1403         * testsuite/ld-arm/stm32l4xx-fix-vldm.s: Add missing comment.
1404         * testsuite/ld-arm/stm32l4xx-fix-all.s: Add tests for multiple
1405         loads with DP registers.
1406         * testsuite/ld-arm/stm32l4xx-fix-all.d: Update reference.
1407
1408 2016-05-09  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1409
1410         * testsuite/ld-elf/flags1.d (readelf): Dump section header instead
1411         program headers.
1412         (xfail): Remove avr-*-*.
1413         Update regex to check the section flags.
1414         * testsuite/ld-elf/merge.d (xfail): Remove avr-*-*.
1415
1416 2016-05-09  Alan Modra  <amodra@gmail.com>
1417
1418         * Makefile.am (ealphavms.c, eelf64_ia64_vms): Correct .em deps.
1419         * Makefile.in: Regenerate.
1420
1421 2016-05-09  Alan Modra  <amodra@gmail.com>
1422
1423         * testsuite/ld-scripts/pr14962-2.t: Match .text, not *.text.
1424         * testsuite/ld-scripts/rgn-at5.t: Similarly, .sec not *.sec.
1425         * testsuite/ld-scripts/section-match-1.t: Likewise.
1426
1427 2016-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1428
1429         PR ld/17550
1430         * testsuite/ld-elf/pr17550-1.s: New file.
1431         * testsuite/ld-elf/pr17550-2.s: Likewise.
1432         * testsuite/ld-elf/pr17550-3.s: Likewise.
1433         * testsuite/ld-elf/pr17550-4.s: Likewise.
1434         * testsuite/ld-elf/pr17550a.d: Likewise.
1435         * testsuite/ld-elf/pr17550b.d: Likewise.
1436         * testsuite/ld-elf/pr17550c.d: Likewise.
1437         * testsuite/ld-elf/pr17550d.d: Likewise.
1438
1439 2016-05-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1440
1441         * ld/testsuite/ld-srec/srec.exp: Mark test as XFAIL for AVR.
1442
1443 2016-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1444
1445         * testsuite/ld-i386/i386.exp: Run load7.
1446         * testsuite/ld-i386/load7.d: New file.
1447         * testsuite/ld-i386/load7.map: Likewise.
1448         * testsuite/ld-i386/load7.s: Likewise.
1449         * testsuite/ld-x86-64/load2.d: Likewise.
1450         * testsuite/ld-x86-64/load2.map: Likewise.
1451         * testsuite/ld-x86-64/load2.s: Likewise.
1452         * testsuite/ld-x86-64/x86-64.exp: Run load2.
1453
1454 2016-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1455
1456         * emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): New.
1457         * emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1458         Likewise.
1459         * emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1460         Likewise.
1461
1462 2016-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1463
1464         * testsuite/ld-x86-64/pr18591.d: Pass --no-relax to ld.
1465
1466 2016-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1467
1468         * ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
1469
1470 2016-05-04  Maciej W. Rozycki  <macro@imgtec.com>
1471
1472         * testsuite/ld-unique/unique.d: New test.
1473         * testsuite/ld-unique/unique.exp: Run the new test.  Adjust
1474         messages for compiled tests.
1475
1476 2016-05-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1477
1478         * testsuite/ld-elf/pr18735.d: Allow other symbols.
1479         * testsuite/ld-elf/sec64k.exp: Skip 64ksec for avr.
1480         * testsuite/ld-gc/pr14265.d: Allow other symbols.
1481         * testsuite/ld-plugin/plugin.exp: Add PR ld/17973 to
1482         plugin_tests only if check_shared_lib_support is true.
1483         * testsuite/ld-selective/selective.exp: Add --section-start
1484         flag for avr.
1485
1486 2016-05-03  Maciej W. Rozycki  <macro@imgtec.com>
1487
1488         PR 10549
1489         * testsuite/ld-unique/unique.exp: Also run for `mips*-*-*'.
1490
1491 2016-05-03  Jiong Wang  <jiong.wang@arm.com>
1492
1493         * emultempl/aarch64elf.em (--no-apply-dynamic-relocs): New option.
1494         * NEWS: Mention --no-apply-dynamic-relocs.
1495         * ld.texinfo (ld and the ARM family): Document
1496         --no-apply-dynamic-relocs.
1497         * testsuite/ld-aarch64/rela-abs-relative.s: New test source.
1498         * testsuite/ld-aarch64/rela-abs-relative.d: New expected result.
1499         * testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise for big-endian.
1500         * estsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise, but enable new
1501         option.
1502
1503 2016-05-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1504
1505         * testsuite/ld-elfcomm/elfcomm.exp: Check for shared lib support
1506         before running STT_COMMON tests.
1507
1508 2016-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1509
1510         * config/default.exp (NOPIE_CFLAGS): Download source only on
1511         remote host.
1512         (NOPIE_LDFLAGS): Likewise.
1513         * testsuite/lib/ld-lib.exp (check_lto_available): Likewise.
1514         (check_lto_fat_available): Likewise.
1515         (check_lto_shared_available): Likewise.
1516         (check_ifunc_available): Likewise.
1517         (check_ifunc_attribute_available): Likewise.
1518
1519 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1520
1521         * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
1522
1523 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1524
1525         PR ld/20006
1526         * testsuite/ld-elfvsb/elfvsb.exp (COMPRESS_LDFLAG): New.
1527         (visibility_run): Pass COMPRESS_LDFLAG to visibility_test on
1528         ELF targets.
1529
1530 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1531
1532         * testsuite/ld-elf/compressed1b.d: Pass
1533         --compress-debug-sections=none to ld.
1534         * testsuite/ld-elf/compressed1c.d: Likewise.
1535
1536 2016-04-27  Alan Modra  <amodra@gmail.com>
1537
1538         PR target/19985
1539         * configure.tgt: Don't use var+=.
1540
1541 2016-04-25  Nick Clifton  <nickc@redhat.com>
1542
1543         PR target/19985
1544         * configure.tgt: Include big endian PPC64 emulations with little
1545         endian PPC64 targets.
1546
1547 2016-04-25  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1548
1549         * scripttempl/avrtiny.sc (.text): Do not set LMA to zero.
1550
1551 2016-04-21  Nick Clifton  <nickc@redhat.com>
1552
1553         * ldlang.c (lang_check_relocs): Use bfd_link_check_relocs in
1554         prefernce to _bfd_elf_link_check_relocs.  Drop test for ELF
1555         targets.  Do not stop the checks when problems are encountered.
1556
1557 2016-04-21  Alan Modra  <amodra@gmail.com>
1558
1559         * testsuite/ld-scripts/cross3.t: Add commonly used data
1560         and text section names to output section statements.
1561         * testsuite/ld-scripts/cross4.t: Likewise.
1562         * testsuite/ld-scripts/cross5.t: Likewise.
1563         * testsuite/ld-scripts/cross6.t: Likewise.
1564         * testsuite/ld-scripts/cross7.t: Likewise.
1565
1566 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1567
1568         * ldlang.c (lang_check_relocs): New function.
1569         (lang_process): Call lang_check_relocs after lang_gc_sections.
1570         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1571         call _bfd_elf_link_check_relocs here.
1572
1573 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1574
1575         PR ld/19972
1576         * testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for
1577         R_386_NONE or R_X86_64_NONE.
1578
1579 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1580
1581         * testsuite/ld-x86-64/pic1.d: New file.
1582         * testsuite/ld-x86-64/pic1.s: Likewise.
1583         * testsuite/ld-x86-64/x86-64.exp: Run pic1.
1584
1585 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1586
1587         * testsuite/ld-x86-64/pie2.d: New file.
1588         * testsuite/ld-x86-64/pie2.s: Likewise.
1589         * testsuite/ld-x86-64/x86-64.exp: Run pie2.
1590
1591 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1592
1593         PR ld/19969
1594         * testsuite/ld-x86-64/pr19969.d: New file.
1595         * testsuite/ld-x86-64/pr19969a.S: Likewise.
1596         * testsuite/ld-x86-64/pr19969b.S: Likewise.
1597         * testsuite/ld-x86-64/x86-64.exp: Run pr19969 tests.
1598
1599 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1600
1601         * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1602         New.
1603         * emulparams/elf_i386.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1604         Likewise.
1605         * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1606         Likewise.
1607         * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1608         Likewise.
1609         * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1610         Likewise.
1611         * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1612         Likewise.
1613         * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1614         Likewise.
1615         * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1616         Likewise.
1617         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
1618         Set check_relocs_after_open_input to TRUE if
1619         CHECK_RELOCS_AFTER_OPEN_INPUT is yes.
1620         (gld${EMULATION_NAME}_after_open): Call
1621         _bfd_elf_link_check_relocs on all inputs if
1622         check_relocs_after_open_input is TRUE.
1623
1624 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1625
1626         * testsuite/ld-elf/eh6.s: Replace .long with .dc.a on
1627         my_personality_v0.
1628
1629 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1630
1631         * emultempl/scoreelf.em: Likewise.
1632
1633 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
1634
1635         PR ld/19719
1636         * testsuite/ld-x86-64/pr19719.d: New file.
1637         * testsuite/ld-x86-64/pr19719.s: Likewise.
1638         * testsuite/ld-x86-64/x86-64.exp: Run pr19719.
1639
1640 2016-04-18  Matthew Fortune  <matthew.fortune@imgtec.com>
1641
1642         * ld.texinfo: Document NOCROSSREFS_TO script command.
1643         * ldlang.h (struct lang_nocrossrefs): Add onlyfirst field.
1644         (lang_add_nocrossref_to): New prototype.
1645         * ldcref.c (check_local_sym_xref): Use onlyfirst to only look for
1646         symbols defined in the first section.
1647         (check_nocrossref): Likewise.
1648         * ldgram.y (NOCROSSREFS_TO): New script command.
1649         * ldlang.c (lang_add_nocrossref): Set onlyfirst to FALSE.
1650         (lang_add_nocrossref_to): New function.
1651         * ldlex.l (NOCROSSREFS_TO): New token.
1652         * NEWS: Mention NOCROSSREFS_TO.
1653         * testsuite/ld-scripts/cross4.t: New file.
1654         * testsuite/ld-scripts/cross5.t: Likewise.
1655         * testsuite/ld-scripts/cross6.t: Likewise.
1656         * testsuite/ld-scripts/cross7.t: Likewise.
1657         * testsuite/ld-scripts/crossref.exp: Run 4 new NOCROSSREFS_TO
1658         tests.
1659
1660 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1661
1662         * Makefile.in: Regenerated with automake 1.11.6.
1663         * aclocal.m4: Likewise.
1664
1665 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
1666
1667         * testsuite/ld-arc/arc.exp: New file.
1668         * testsuite/ld-arc/nps-1.s: New file.
1669         * testsuite/ld-arc/nps-1a.d: New file.
1670         * testsuite/ld-arc/nps-1b.d: New file.
1671         * testsuite/ld-arc/nps-1b.err: New file.
1672
1673 2016-04-14  Nick Clifton  <nickc@redhat.com>
1674
1675         PR 19457
1676         * testsuite/ld-scripts/script.exp (extract_symbol_test): Add
1677         exceptions for Mingw and Cygwin.
1678
1679 2016-04-13  Andrew Burgess  <andrew.burgess@embecosm.com>
1680
1681         * testsuite/lib/ld-lib.exp (run_dump_test): Initialise
1682         check_ld(terminal).
1683
1684 2016-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1685
1686         PR ld/19774
1687         * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr17689b.o before
1688         tmpdir/pr17689.so, fix gotpcrel1 test and add more --as-needed
1689         tests.
1690
1691 2016-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1692
1693         PR ld/19939
1694         * testsuite/ld-i386/i386.exp: Run PR ld/19939 tests.
1695         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1696         * testsuite/ld-i386/pr19939.s: New file.
1697         * testsuite/ld-i386/pr19939a.d: Likewise.
1698         * testsuite/ld-i386/pr19939b.d: Likewise.
1699         * testsuite/ld-x86-64/pr19939.s: Likewise.
1700         * testsuite/ld-x86-64/pr19939a.d: Likewise.
1701         * testsuite/ld-x86-64/pr19939b.d: Likewise.
1702
1703 2016-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
1704
1705         * emulparams/shelf.sh: Set stack area to 0x3FFFFF00.
1706
1707 2016-04-08  Alan Modra  <amodra@gmail.com>
1708
1709         PR 18452
1710         * ldlang.c (maybe_overlays): Delete.
1711         (lang_size_sections_1): Remove code setting maybe_overlays.
1712         (lang_check_section_addresses): Instead detect overlays by
1713         exact match of section VMAs here.  Fix memory leak.
1714
1715 2016-04-08  Dan Gisselquist  <dgisselq@ieee.org>
1716
1717         * ldlang.c (print_output_section_statement): Show minfo size
1718         in target machine address units.
1719         (print_reloc_statement): Likewise.
1720         (print_padding_statement): Likewise.
1721         (print_data_statement): Likewise.  Ensure minimum print_dot
1722         increment of one address unit.
1723
1724 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1725
1726         * emulparams/arc-endianness.sh: Make little endian default choice.
1727
1728 2016-04-07  Nick Clifton  <nickc@redhat.com>
1729
1730         * scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in
1731         section name.
1732         * scripttempl/elf32msp430_3.sc (.MSP430.attributes): Likewise.
1733
1734 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
1735
1736         * emulparams/arc-endianness.sh: New file.
1737         * emulparams/arcebelf.sh: Deleted.
1738         * emulparams/arcebelf_prof.sh: Deleted.
1739         * emulparams/arceblinux.sh: Deleted.
1740         * emulparams/arceblinux_prof.sh: Deleted.
1741         * emulparams/arcelf.sh: Include arc-endinness.sh.
1742         * emulparams/arcelf_prof.sh: Include arc-endinness.sh.
1743         * emulparams/arclinux.sh: Include arc-endinness.sh.
1744         * emulparams/arclinux_prof.sh: Include arc-endinness.sh.
1745         * emulparams/arcv2elf.sh: Include arc-endinness.sh.
1746         * emulparams/arcv2elfx.sh: Include arc-endinness.sh.
1747         * testsuite/ld-elf/compressed1d.d: Update pattern for big and
1748         little endian arc targets.
1749         * testsuite/ld-elf/eh-frame-hdr.d: Likewise.
1750         * testsuite/ld-elf/group1.d: Likewise.
1751         * testsuite/ld-elf/group3b.d: Likewise.
1752         * testsuite/ld-elf/group8a.d: Likewise.
1753         * testsuite/ld-elf/group8b.d: Likewise.
1754         * testsuite/ld-elf/group9a.d: Likewise.
1755         * testsuite/ld-elf/group9b.d: Likewise.
1756         * testsuite/ld-elf/linkonce2.d: Likewise.
1757         * testsuite/ld-elf/pr12851.d: Likewise.
1758         * testsuite/ld-elf/pr12975.d: Likewise.
1759         * testsuite/ld-elf/pr13177.d: Likewise.
1760         * testsuite/ld-elf/pr13195.d: Likewise.
1761         * testsuite/ld-elf/pr17615.d: Likewise.
1762         * testsuite/ld-elf/pr19162.d: Likewise.
1763         * testsuite/ld-elf/sec64k.exp: Likewise.
1764         * testsuite/lib/ld-lib.exp: Likewise.
1765
1766 2016-04-05  Maciej W. Rozycki  <macro@imgtec.com>
1767
1768         PR ld/19908
1769         * testsuite/ld-cris/tls-e-20.d: Adjust for hidden symbol
1770         handling fix.
1771         * testsuite/ld-cris/tls-e-20a.d: Likewise.
1772         * testsuite/ld-cris/tls-e-21.d: Likewise.
1773         * testsuite/ld-cris/tls-e-23.d: Likewise.
1774         * testsuite/ld-cris/tls-e-80.d: Likewise.
1775         * testsuite/ld-cris/tls-gd-3h.d: Likewise.
1776         * testsuite/ld-cris/tls-leie-19.d: Likewise.
1777         * testsuite/ld-mips-elf/export-class-ref-lib.sd: New test.
1778         * testsuite/ld-mips-elf/export-hidden-ref.sd: New test.
1779         * testsuite/ld-mips-elf/export-internal-ref.sd: New test.
1780         * testsuite/ld-mips-elf/export-protected-ref.sd: New test.
1781         * testsuite/ld-mips-elf/export-class-ref-f0.s: New test source.
1782         * testsuite/ld-mips-elf/export-class-ref-f1.s: New test source.
1783         * testsuite/ld-mips-elf/export-class-ref-f2.s: New test source.
1784         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1785
1786 2016-04-05  Cupertino Miranda  <cmiranda@synopsys.com>
1787
1788         * testsuite/ld-discard/extern.d: Removed xfail for ARC.
1789         * testsuite/ld-discard/start.d: Likewise.
1790         * testsuite/ld-discard/static.d: Likewise.
1791         * testsuite/ld-elf/group1.d: Likewise.
1792         * testsuite/ld-elf/group3b.d: Likewise.
1793         * testsuite/ld-elf/orphan-region.d: Likewise.
1794         * testsuite/ld-elf/orphan.d: Likewise.
1795         * testsuite/ld-elf/orphan3.d: Likewise.
1796         * testsuite/ld-elf/pr349.d: Likewise.
1797         * testsuite/ld-elf/warn1.d: Likewise.
1798         * testsuite/ld-elf/warn2.d: Likewise.
1799         * testsuite/ld-elf/warn3.d: Likewise.
1800         * testsuite/ld-scripts/crossref.exp: Add __SDATA_BEGIN__ symbol
1801         through linker flags.
1802         * testsuite/ld-srec/srec.exp: Set as xfail.
1803
1804 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1805
1806         PR ld/19827
1807         * testsuite/ld-i386/pr19827-nacl.rd: New file.
1808         * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
1809
1810 2016-04-04  Nick Clifton  <nickc@redhat.com>
1811
1812         PR 19803
1813         * emultempl/pe.em (change_undef): New function.  Encapsulates
1814         duplicated code in pe_fixup_stdcalls and adds the newly defined
1815         sym to the gc root list.
1816         (pe_fixup_stdcall): Use the new function.
1817         * pe-dll.c (process_def_file_and_drectve); Add alias of exported
1818         symbol to gc root list.
1819
1820 2016-03-31  Alan Modra  <amodra@gmail.com>
1821
1822         * ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file.
1823         (lang_insert_orphan): Use TO_ADDR in __stop sym calculation.
1824         (print_input_section): Don't use TO_ADDR when printing section
1825         size.
1826         (lang_size_sections_1): Use TO_ADDR in overlay lma calculation.
1827         (lang_size_sections): Use TO_ADDR in relro end calculation.
1828
1829 2016-03-30  Andrew Burgess  <andrew.burgess@embecosm.com>
1830
1831         * testsuite/lib/ld-lib.exp (run_dump_test): Fix check of return
1832         value from regexp_diff.
1833         * testsuite/ld-elf/orphan-5.l: Fix expected output.
1834         * testsuite/ld-elf/orphan-6.l: Likewise.
1835
1836 2016-03-30  Alan Modra  <amodra@gmail.com>
1837
1838         PR 18452
1839         * ldlang.c (maybe_overlays): New static var.
1840         (lang_size_sections_1): Set it here.
1841         (struct check_sec): New.
1842         (sort_sections_by_lma): Adjust for array of structs.
1843         (sort_sections_by_vma): New function.
1844         (lang_check_section_addresses): Check both LMA and VMA for overlap.
1845         * testsuite/ld-scripts/rgn-over7.d: Adjust.
1846
1847 2016-03-30  Alan Modra  <amodra@gmail.com>
1848
1849         * ldlang.c (lang_size_sections_1): Correct code detecting a
1850         backward non-overlapping move.
1851
1852 2016-03-30  Alan Modra  <amodra@gmail.com>
1853
1854         * ldlang.c (IS_TBSS): New macro, extracted from..
1855         (IGNORE_SECTION): ..here.
1856         (lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION.
1857         (lang_size_sections, lang_do_assignments_1): Use IS_TBSS.
1858
1859 2016-03-22  Nick Clifton  <nickc@redhat.com>
1860
1861         PR ld/19803
1862         * ldlang.c (lang_add_gc_name): New function.  Adds the provided
1863         symbol name to the list of gc symbols.
1864         (lang_process): Call lang_add_gc_name with entry_symbol_default if
1865         entry_symbol.name is NULL.  Use lang_add_gc_name to add the init
1866         and fini function names.
1867         * pe-dll.c (process_def_file_and_drectve): Add exported names to
1868         the gc symbol list.
1869         * testsuite/ld-pe/pr19803.s: Do not export _testval symbol.
1870         * testsuite/ld-pe/pr19803.d: Tweak expected output.
1871
1872 2016-03-22  Nick Clifton  <nickc@redhat.com>
1873
1874         * configure: Regenerate.
1875
1876 2016-03-21  Nick Clifton  <nickc@redhat.com>
1877
1878         * emultempl/msp430.em: Replace use of alloca with call to xmalloc.
1879         * plugin.c: Likewise.
1880         * pe-dll.c: Likewise.
1881
1882 2016-03-18  Awson  <kyrab@mail.ru>
1883
1884         PR 19531
1885         * scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP
1886         this section.
1887         * scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise.
1888
1889 2016-03-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1890
1891         * ld-avr/gc-section-debugline.d: Relax regex check for CU.
1892
1893 2016-03-15  H.J. Lu  <hongjiu.lu@intel.com>
1894
1895         PR ld/19827
1896         * testsuite/ld-i386/i386.exp: Run PR ld/19827 tests.
1897         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1898         * testsuite/ld-i386/pr19827.rd: New file.
1899         * testsuite/ld-i386/pr19827a.S: Likewise.
1900         * testsuite/ld-i386/pr19827b.S: Likewise.
1901         * testsuite/ld-x86-64/pr19827.rd: Likewise.
1902         * testsuite/ld-x86-64/pr19827a.S: Likewise.
1903         * testsuite/ld-x86-64/pr19827b.S: Likewise.
1904
1905 2016-03-15  H.J. Lu  <hongjiu.lu@intel.com>
1906
1907         PR ld/19807
1908         * Makefile.am (ELF_X86_DEPS): Add
1909         $(srcdir)/emulparams/reloc_overflow.sh.
1910         * Makefile.in: Regenerated.
1911         * NEWS: Mention -z noreloc-overflow.
1912         * ld.texinfo: Document -z noreloc-overflow.
1913         * emulparams/elf32_x86_64.sh: Source
1914         ${srcdir}/emulparams/reloc_overflow.sh.
1915         * emulparams/elf_x86_64.sh: Likewise.
1916         * emulparams/reloc_overflow.sh: New file.
1917         * testsuite/ld-x86-64/pr19807-1.s: New file.
1918         * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
1919         * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
1920         * testsuite/ld-x86-64/pr19807-2.s: Likewise.
1921         * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1922         * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
1923         * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
1924         * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
1925         * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
1926         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/19807 tests.
1927
1928 2016-03-13  H.J. Lu  <hongjiu.lu@intel.com>
1929
1930         PR ld/19539
1931         * testsuite/ld-i386/i386.exp: Run pr19539.
1932         * testsuite/ld-i386/pr19539.d: New file.
1933         * testsuite/ld-i386/pr19539.s: Likewise.
1934         * testsuite/ld-i386/pr19539.t: Likewise.
1935         * testsuite/ld-x86-64/pr19539.s: Likewise.
1936         * testsuite/ld-x86-64/pr19539.t: Likewise.
1937         * testsuite/ld-x86-64/pr19539a.d: Likewise.
1938         * testsuite/ld-x86-64/pr19539b.d: Likewise.
1939         * testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.
1940
1941 2016-03-10  Mickael Guene  <mickael.guene@st.com>
1942
1943         PR gas/19744
1944         * testsuite/ld-arm/arm-elf.exp: New tests.
1945         * testsuite/ld-arm/thumb1-adds-armv7-m.s: New.
1946         * testsuite/ld-arm/thumb1-movs-armv7-m.s: New.
1947
1948 2016-03-10  Nick Clifton  <nickc@redhat.com>
1949
1950         * scripttempl/elf32msp430.sc (.rodata): Remove spurious LONG(0).
1951
1952 2016-03-09  Pedro Alves  <palves@redhat.com>
1953
1954         * scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH.
1955         * scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH.
1956
1957 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1958
1959         PR ld/19789
1960         * testsuite/ld-elf/pr19789.d: New file.
1961         * testsuite/ld-elf/pr19789.s: Likewise.
1962
1963 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1964
1965         PR ld/19784
1966         * testsuite/ld-i386/i386.exp: Remove pr19636-2e-nacl test.
1967         * testsuite/ld-i386/pr19636-2e-nacl.d: Moved to ...
1968         * testsuite/ld-i386/pr19636-2e.d: Here.  Remove notarget.
1969         * testsuite/ld-ifunc/ifunc.exp: Run PR ld/19784 tests.
1970         * testsuite/ld-ifunc/pass.out: New file.
1971         * testsuite/ld-ifunc/pr19784a.c: Likewise.
1972         * testsuite/ld-ifunc/pr19784b.c: Likewise.
1973         * testsuite/ld-ifunc/pr19784c.c: Likewise.
1974
1975 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
1976
1977         PR ld/19774
1978         * testsuite/ld-ifunc/ifunc.exp: Link tmpdir/pr18808a.o before
1979         tmpdir/libpr18808.so.  Link tmpdir/pr18841a.o before
1980         tmpdir/libpr18841b.so and tmpdir/libpr18841c.so.  Test
1981         --as-needed for pr18841c.
1982
1983 2016-03-07  H.J. Lu  <hongjiu.lu@intel.com>
1984
1985         PR ld/19774
1986         * testsuite/ld-i386/i386.exp: Link tmpdir/pr18900.o before
1987         tmpdir/pr18900.so and test --as-needed.  Link tmpdir/gotpc1.o
1988         before tmpdir/got1d.so and test --as-needed.
1989         * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr18900.o before
1990         tmpdir/pr18900.so and test --as-needed.
1991
1992 2016-03-07  Jiong Wang  <jiong.wang@arm.com>
1993
1994         * testsuite/ld-aarch64/implicit_got_section_1.s: New test source file.
1995         * testsuite/ld-aarch64/implicit_got_section_1.d: New test expected
1996         result.
1997         * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
1998
1999 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
2000
2001         * testsuite/ld-i386/i386.exp: Link tmpdir/copyreloc-main.o
2002         before tmpdir/copyreloc-lib.so and test --as-needed.
2003         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2004
2005 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
2006
2007         PR ld/19579
2008         * testsuite/ld-elf/pr19579a.c: New file.
2009         * testsuite/ld-elf/pr19579b.c: Likewise.
2010         * testsuite/ld-elf/shared.exp: Run PR ld/19579 test.
2011
2012 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2013
2014         * testsuite/ld-elf/pr19162.d: Skip hppa-*-*.
2015
2016 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2017
2018         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
2019         Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".
2020
2021 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2022
2023         PR ld/19739
2024         * emultempl/mmo.em (mmo_place_orphan): Don't merge flags of other
2025         input sections for relocatable link.
2026         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2027         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2028
2029 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2030
2031         PR ld/19739
2032         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2033         merge flags of other input sections for relocatable link.
2034
2035 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2036
2037         * testsuite/ld-plugin/lto.exp: Update PR ld/12365 test for GCC 6.
2038
2039 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2040
2041         * testsuite/ld-elf/pr19162.d: Skip arc target.
2042
2043 2016-02-29  H.J. Lu  <hongjiu.lu@intel.com>
2044
2045         PR ld/19162
2046         * testsuite/ld-elf/pr19162.d: New file.
2047         * testsuite/ld-elf/pr19162a.s: Likwise.
2048         * testsuite/ld-elf/pr19162b.s: Likwise.
2049
2050 2016-02-29 Cupertino Miranda  <cmiranda@synopsys.com>
2051
2052         * testsuite/ld-elf/merge.d: Removed xfail for ARC.
2053         * testsuite/ld-elf/merge2.d: Likewise.
2054         * testsuite/ld-elf/merge3.d: Likewise.
2055
2056 2016-02-29  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
2057
2058         * scripttempl/arclinux.sc: Force .tdata and .tbss to always be
2059         generated.
2060
2061 2016-02-26  Renlin Li  <renlin.li@arm.com>
2062
2063         * testsuite/ld-aarch64/aarch64-elf.exp: Run new testcases.
2064         * testsuite/ld-aarch64/emit-relocs-270.d: Update to use new boundary.
2065         * testsuite/ld-aarch64/emit-relocs-271.d: Likewise.
2066         * testsuite/ld-aarch64/emit-relocs-272.d: Likewise.
2067         * testsuite/ld-aarch64/emit-relocs-270-overflow.d: New.
2068         * testsuite/ld-aarch64/emit-relocs-270-overflow.s: New.
2069         * testsuite/ld-aarch64/emit-relocs-271-overflow.d: New.
2070         * testsuite/ld-aarch64/emit-relocs-271-overflow.s: New.
2071         * testsuite/ld-aarch64/emit-relocs-272-overflow.d: New.
2072         * testsuite/ld-aarch64/emit-relocs-272-overflow.s: New.
2073
2074 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
2075
2076         PR ld/19609
2077         * testsuite/ld-i386/got1.dd: Updated.
2078         * testsuite/ld-i386/lea1c.d: Likewise.
2079         * testsuite/ld-i386/load1-nacl.d: Likewise.
2080         * testsuite/ld-i386/load1.d: Likewise.
2081         * testsuite/ld-i386/load4b.d: Likewise.
2082         * testsuite/ld-i386/load5b.d: Likewise.
2083         * testsuite/ld-i386/mov1b.d: Likewise.
2084         * testsuite/ld-x86-64/mov1b.d: Likewise.
2085         * testsuite/ld-x86-64/mov1d.d: Likewise.
2086         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
2087         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
2088         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
2089         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
2090         * testsuite/ld-x86-64/gotpcrel1.dd: Likewise.
2091         * testsuite/ld-x86-64/lea1a.d: Likewise.
2092         * testsuite/ld-x86-64/lea1b.d: Likewise.
2093         * testsuite/ld-x86-64/lea1c.d: Likewise.
2094         * testsuite/ld-x86-64/lea1d.d: Likewise.
2095         * testsuite/ld-x86-64/lea1e.d: Likewise.
2096         * testsuite/ld-x86-64/lea1f.d: Likewise.
2097         * testsuite/ld-x86-64/mov1b.d: Likewise.
2098         * testsuite/ld-x86-64/mov1d.d: Likewise.
2099         * testsuite/ld-x86-64/pr13082-3b.d: Likewise.
2100         * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
2101         * testsuite/ld-x86-64/lea1.s: Add tests for 32-bit registers.
2102         * testsuite/ld-i386/pr19609-1.s: New file.
2103         * testsuite/ld-i386/pr19609-1a.d: Likewise.
2104         * testsuite/ld-i386/pr19609-1b.d: Likewise.
2105         * testsuite/ld-i386/pr19609-1c.d: Likewise.
2106         * testsuite/ld-i386/pr19609-1d.d: Likewise.
2107         * testsuite/ld-i386/pr19609-1e.d: Likewise.
2108         * testsuite/ld-i386/pr19609-1f.d: Likewise.
2109         * testsuite/ld-i386/pr19609-1g.d: Likewise.
2110         * testsuite/ld-i386/pr19609-1h.d: Likewise.
2111         * testsuite/ld-i386/pr19609-1i.d: Likewise.
2112         * testsuite/ld-i386/pr19609-2.s: Likewise.
2113         * testsuite/ld-i386/pr19609-2a.d: Likewise.
2114         * testsuite/ld-i386/pr19609-2b.d: Likewise.
2115         * testsuite/ld-i386/pr19609-2c.d: Likewise.
2116         * testsuite/ld-i386/undefweak.s: Likewise.
2117         * testsuite/ld-i386/undefweaka.d: Likewise.
2118         * testsuite/ld-i386/undefweakb.d: Likewise.
2119         * testsuite/ld-x86-64/pr13082-3c.d: Likewise.
2120         * testsuite/ld-x86-64/pr13082-3d.d: Likewise.
2121         * testsuite/ld-x86-64/pr19609-1.s: Likewise.
2122         * testsuite/ld-x86-64/pr19609-1a.d: Likewise.
2123         * testsuite/ld-x86-64/pr19609-1b.d: Likewise.
2124         * testsuite/ld-x86-64/pr19609-1c.d: Likewise.
2125         * testsuite/ld-x86-64/pr19609-1d.d: Likewise.
2126         * testsuite/ld-x86-64/pr19609-1e.d: Likewise.
2127         * testsuite/ld-x86-64/pr19609-1f.d: Likewise.
2128         * testsuite/ld-x86-64/pr19609-1g.d: Likewise.
2129         * testsuite/ld-x86-64/pr19609-1h.d: Likewise.
2130         * testsuite/ld-x86-64/pr19609-1i.d: Likewise.
2131         * testsuite/ld-x86-64/pr19609-1j.d: Likewise.
2132         * testsuite/ld-x86-64/pr19609-1k.d: Likewise.
2133         * testsuite/ld-x86-64/pr19609-1l.d: Likewise.
2134         * testsuite/ld-x86-64/pr19609-1m.d: Likewise.
2135         * testsuite/ld-x86-64/pr19609-2.s: Likewise.
2136         * testsuite/ld-x86-64/pr19609-2a.d: Likewise.
2137         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
2138         * testsuite/ld-x86-64/pr19609-2c.d: Likewise.
2139         * testsuite/ld-x86-64/pr19609-2d.d: Likewise.
2140         * testsuite/ld-x86-64/pr19609-3.s: Likewise.
2141         * testsuite/ld-x86-64/pr19609-3a.d: Likewise.
2142         * testsuite/ld-x86-64/pr19609-3b.d: Likewise.
2143         * testsuite/ld-x86-64/pr19609-4.s: Likewise.
2144         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
2145         * testsuite/ld-x86-64/pr19609-4b.d: Likewise.
2146         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
2147         * testsuite/ld-x86-64/pr19609-4d.d: Likewise.
2148         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
2149         * testsuite/ld-x86-64/pr19609-5.s: Likewise.
2150         * testsuite/ld-x86-64/pr19609-5a.d: Likewise.
2151         * testsuite/ld-x86-64/pr19609-5b.d: Likewise.
2152         * testsuite/ld-x86-64/pr19609-5c.d: Likewise.
2153         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
2154         * testsuite/ld-x86-64/pr19609-5e.d: Likewise.
2155         * testsuite/ld-x86-64/pr19609-6.s: Likewise.
2156         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
2157         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
2158         * testsuite/ld-x86-64/pr19609-6c.d: Likewise.
2159         * testsuite/ld-x86-64/pr19609-6d.d: Likewise.
2160         * testsuite/ld-x86-64/pr19609-7.s: Likewise.
2161         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
2162         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
2163         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
2164         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
2165         * testsuite/ld-i386/i386.exp: Run undefweak tests and tests for
2166         PR ld/19609.
2167         * testsuite/ld-x86-64/x86-64.exp: Run pr13082-3c, pr13082-3d
2168         and tests for PR ld/19609.
2169
2170 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
2171
2172         PR ld/19645
2173         * NEWS: Mention -z common/-z nocommon for ELF targets.
2174         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2175         -z common and -z nocommon.
2176         * ld.texinfo: Document -z common/-z nocommon.
2177         * lexsup.c (elf_shlib_list_options): Add -z common/-z nocommon.
2178         * testsuite/ld-elf/tls_common.exp: Test --elf-stt-common=no and
2179         --elf-stt-common=yes with assembler.
2180         * testsuite/ld-elfcomm/common-1.s: New file.
2181         * testsuite/ld-elfcomm/common-1a.d: Likewise.
2182         * testsuite/ld-elfcomm/common-1b.d: Likewise.
2183         * testsuite/ld-elfcomm/common-1c.d: Likewise.
2184         * testsuite/ld-elfcomm/common-1d.d: Likewise.
2185         * testsuite/ld-elfcomm/common-1e.d: Likewise.
2186         * testsuite/ld-elfcomm/common-1f.d: Likewise.
2187         * testsuite/ld-elfcomm/common-2.s: Likewise.
2188         * testsuite/ld-elfcomm/common-2a.d: Likewise.
2189         * testsuite/ld-elfcomm/common-2b.d: Likewise.
2190         * testsuite/ld-elfcomm/common-2c.d: Likewise.
2191         * testsuite/ld-elfcomm/common-2d.d: Likewise.
2192         * testsuite/ld-elfcomm/common-2e.d: Likewise.
2193         * testsuite/ld-elfcomm/common-2f.d: Likewise.
2194         * testsuite/ld-elfcomm/common-3a.rd: Likewise.
2195         * testsuite/ld-elfcomm/common-3b.rd: Likewise.
2196         * testsuite/ld-i386/pr19645.d: Likewise.
2197         * testsuite/ld-i386/pr19645.s: Likewise.
2198         * testsuite/ld-x86-64/largecomm-1.s: Likewise.
2199         * testsuite/ld-x86-64/largecomm-1a.d: Likewise.
2200         * testsuite/ld-x86-64/largecomm-1b.d: Likewise.
2201         * testsuite/ld-x86-64/largecomm-1c.d: Likewise.
2202         * testsuite/ld-x86-64/largecomm-1d.d: Likewise.
2203         * testsuite/ld-x86-64/largecomm-1e.d: Likewise.
2204         * testsuite/ld-x86-64/largecomm-1f.d: Likewise.
2205         * testsuite/ld-x86-64/pr19645.d: Likewise.
2206         * testsuite/ld-x86-64/pr19645.s: Likewise.
2207         * testsuite/ld-elfcomm/elfcomm.exp: Test --elf-stt-common=yes
2208         with assembler.
2209         (assembler_generates_commons): Removed.
2210         Run -z common/-z nocommon tests.  Run *.d tests.
2211         * testsuite/ld-i386/i386.exp: Run pr19645.
2212         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2213         * testsuite/ld-x86-64/dwarfreloc.exp: Test --elf-stt-common with
2214         assembler.  Test STT_COMMON with readelf.
2215
2216 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
2217
2218         PR ld/19636
2219         PR ld/19704
2220         PR ld/19719
2221         * Makefile.am (ELF_X86_DEPS): Add dynamic_undefined_weak.sh.
2222         * Makefile.in: Regenerated.
2223         * NEWS: Mention -z nodynamic-undefined-weak.
2224         * ld.texinfo: Document -z nodynamic-undefined-weak.
2225         * ldmain.c (main): Initialize dynamic_undefined_weak to -1.
2226         * emulparams/dynamic_undefined_weak.sh: New file.
2227         * emulparams/elf32_x86_64.sh: Source dynamic_undefined_weak.sh.
2228         * emulparams/elf_i386.sh: Likewise.
2229         * emulparams/elf_i386_be.sh: Likewise.
2230         * emulparams/elf_i386_chaos.sh: Likewise.
2231         * emulparams/elf_i386_ldso.sh: Likewise.
2232         * emulparams/elf_i386_vxworks.sh: Likewise.
2233         * emulparams/elf_iamcu.sh: Likewise.
2234         * emulparams/elf_k1om.sh: Likewise.
2235         * emulparams/elf_l1om.sh: Likewise.
2236         * emulparams/elf_x86_64.sh: Likewise.
2237         * emulparams/extern_protected_data.sh (PARSE_AND_LIST_OPTIONS):
2238         Append.
2239         (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
2240         * testsuite/ld-elf/pr19719a.c: New file.
2241         * testsuite/ld-elf/pr19719b.c: Likewise.
2242         * testsuite/ld-elf/pr19719c.c: Likewise.
2243         * testsuite/ld-elf/pr19719d.c: Likewise.
2244         * testsuite/ld-i386/pr19636-1.s: Likewise.
2245         * testsuite/ld-i386/pr19636-1a.d: Likewise.
2246         * testsuite/ld-i386/pr19636-1b.d: Likewise.
2247         * testsuite/ld-i386/pr19636-1c.d: Likewise.
2248         * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
2249         * testsuite/ld-i386/pr19636-1d.d: Likewise.
2250         * testsuite/ld-i386/pr19636-1e.d: Likewise.
2251         * testsuite/ld-i386/pr19636-1f.d: Likewise.
2252         * testsuite/ld-i386/pr19636-1g.d: Likewise.
2253         * testsuite/ld-i386/pr19636-1h.d: Likewise.
2254         * testsuite/ld-i386/pr19636-1i.d: Likewise.
2255         * testsuite/ld-i386/pr19636-2.s: Likewise.
2256         * testsuite/ld-i386/pr19636-2a.d: Likewise.
2257         * testsuite/ld-i386/pr19636-2b.d: Likewise.
2258         * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
2259         * testsuite/ld-i386/pr19636-2c.d: Likewise.
2260         * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
2261         * testsuite/ld-i386/pr19636-2d.d: Likewise.
2262         * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
2263         * testsuite/ld-i386/pr19636-2e.d: Likewise.
2264         * testsuite/ld-i386/pr19636-3.s: Likewise.
2265         * testsuite/ld-i386/pr19636-3a.d: Likewise.
2266         * testsuite/ld-i386/pr19636-3b.d: Likewise.
2267         * testsuite/ld-i386/pr19636-3c.d: Likewise.
2268         * testsuite/ld-i386/pr19636-3d.d: Likewise.
2269         * testsuite/ld-i386/pr19636-3e.d: Likewise.
2270         * testsuite/ld-i386/pr19636-3f.d: Likewise.
2271         * testsuite/ld-i386/pr19636-3g.d: Likewise.
2272         * testsuite/ld-i386/pr19636-4.s: Likewise.
2273         * testsuite/ld-i386/pr19636-4a.d: Likewise.
2274         * testsuite/ld-i386/pr19636-4b.d: Likewise.
2275         * testsuite/ld-i386/pr19636-4c.d: Likewise.
2276         * testsuite/ld-i386/pr19636-4d.d: Likewise.
2277         * testsuite/ld-i386/pr19704.out: Likewise.
2278         * testsuite/ld-i386/pr19704a.c: Likewise.
2279         * testsuite/ld-i386/pr19704b.c: Likewise.
2280         * testsuite/ld-x86-64/pr19636-1.s: Likewise.
2281         * testsuite/ld-x86-64/pr19636-1a.d: Likewise.
2282         * testsuite/ld-x86-64/pr19636-1b.d: Likewise.
2283         * testsuite/ld-x86-64/pr19636-1c.d: Likewise.
2284         * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
2285         * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
2286         * testsuite/ld-x86-64/pr19636-1f.d: Likewise.
2287         * testsuite/ld-x86-64/pr19636-1g.d: Likewise.
2288         * testsuite/ld-x86-64/pr19636-2.s: Likewise.
2289         * testsuite/ld-x86-64/pr19636-2a.d: Likewise.
2290         * testsuite/ld-x86-64/pr19636-2b.d: Likewise.
2291         * testsuite/ld-x86-64/pr19636-2c.d: Likewise.
2292         * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
2293         * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
2294         * testsuite/ld-x86-64/pr19636-2e.d: Likewise.
2295         * testsuite/ld-x86-64/pr19636-2f.d: Likewise.
2296         * testsuite/ld-x86-64/pr19636-2g.d: Likewise.
2297         * testsuite/ld-x86-64/pr19636-2h.d: Likewise.
2298         * testsuite/ld-x86-64/pr19636-2i.d: Likewise.
2299         * testsuite/ld-x86-64/pr19636-3.s: Likewise.
2300         * testsuite/ld-x86-64/pr19636-3a.d: Likewise.
2301         * testsuite/ld-x86-64/pr19636-3b.d: Likewise.
2302         * testsuite/ld-x86-64/pr19636-3c.d: Likewise.
2303         * testsuite/ld-x86-64/pr19636-3d.d: Likewise.
2304         * testsuite/ld-x86-64/pr19704.out: Likewise.
2305         * testsuite/ld-x86-64/pr19704a.c: Likewise.
2306         * testsuite/ld-x86-64/pr19704b.c: Likewise.
2307         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): New.
2308         Run mix_pic_and_non_pic.
2309         * testsuite/ld-i386/i386.exp (undefined_weak): New.
2310         Run undefined_weak and PR ld/19636 tests.
2311         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2312         * testsuite/ld-x86-64/pr13082-3b.d: Updated.
2313         * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
2314
2315 2016-02-25  Nick Clifton  <nickc@redhat.com>
2316
2317         * ld.h (struct ld_config_type): Remove specified_data_size field.
2318
2319 2016-02-24  H.J. Lu  <hongjiu.lu@intel.com>
2320
2321         PR ld/19698
2322         * testsuite/ld-elf/pr19698.d: New file.
2323         * testsuite/ld-elf/pr19698.s: Likewise.
2324         * testsuite/ld-elf/pr19698.t: Likewise.
2325
2326 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2327
2328         * Makefile.am (ELF_X86_DEPS): New.
2329         (eelf_i386.c): Replace $(ELF_DEPS) with $(ELF_X86_DEPS).
2330         (eelf_i386_chaos.c): Likewise.
2331         (eelf_i386_fbsd.c): Likewise.
2332         (eelf_i386_ldso.c): Likewise.
2333         (eelf_i386_nacl.c): Likewise.
2334         (eelf_i386_sol2.c): Likewise.
2335         (eelf_iamcu.c): Likewise.
2336         (eelf32_x86_64.c): Likewise.
2337         (eelf32_x86_64_nacl.c): Likewise.
2338         (eelf_l1om.c): Likewise.
2339         (eelf_l1om_fbsd.c): Likewise.
2340         (eelf_k1om.c): Likewise.
2341         (eelf_k1om_fbsd.c): Likewise.
2342         (eelf_x86_64.c): Likewise.
2343         (eelf_x86_64_cloudabi.c): Likewise.
2344         (eelf_x86_64_fbsd.c): Likewise.
2345         (eelf_x86_64_sol2.c): Likewise.
2346         * Makefile.in: Regenerated.
2347
2348 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2349
2350         * testsuite/ld-frv/fdpic-pie-6.d: Updated.
2351         * testsuite/ld-mips-elf/pie-n32.d: Likewise.
2352         * testsuite/ld-mips-elf/pie-n64.d: Likewise.
2353         * testsuite/ld-mips-elf/pie-o32.d: Likewise.
2354
2355 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
2356
2357         * testsuite/ld-elf/pr19539.d: Skip cris*-*-* targets.
2358
2359 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2360
2361         * testsuite/ld-elf/pr19617a.d: Enable only for *-*-linux*,
2362         *-*-gnu* and *-*-solaris*.
2363         * testsuite/ld-elf/pr19617b.d: Likewise.
2364         * testsuite/ld-elf/pr19617c.d: Likewise.
2365
2366 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2367
2368         PR ld/19617
2369         * testsuite/ld-elf/pr19617.s: New file.
2370         * testsuite/ld-elf/pr19617a.d: Likewise.
2371         * testsuite/ld-elf/pr19617b.d: Likewise.
2372         * testsuite/ld-elf/pr19617c.d: Likewise.
2373
2374 2016-02-18  Nick Clifton  <nickc@redhat.com>
2375
2376         * Makefile.am (CXX_FOR_TARGET): Check for the presence of an
2377         in-tree xg++ executable after checking for the presence of an
2378         in-tree g++ executable.
2379         * Makefile.in: Regenerate.
2380
2381 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2382
2383         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
2384         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
2385         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
2386
2387 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2388
2389         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
2390         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
2391         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
2392         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
2393         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
2394         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
2395         * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
2396         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
2397         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
2398         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
2399         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
2400         * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
2401         * testsuite/ld-x86-64/load1c.d: Likewise.
2402         * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
2403         * testsuite/ld-x86-64/load1d.d: Likewise.
2404         * testsuite/ld-x86-64/pr14207.d: Likewise.
2405         * testsuite/ld-x86-64/pr19162.d: Likewise.
2406         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
2407         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2408         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
2409         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
2410         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
2411         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2412
2413 2016-02-17  Nick Clifton  <nickc@redhat.com>
2414
2415         * testsuite/ld-elf/eh-frame-hdr.d: Skip for ARC ELF targets.
2416
2417 2016-02-15  Nick Clifton  <nickc@redhat.com>
2418
2419         * testsuite/ld-i386/pr12718.d: Remove dependency upon the
2420         description of the flags produced by readelf.
2421         * testsuite/ld-i386/pr12921.d: Likewise.
2422         * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
2423         * testsuite/ld-i386/tlsbin.rd: Likewise.
2424         * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
2425         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2426         * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
2427         * testsuite/ld-i386/tlsdesc.rd: Likewise.
2428         * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
2429         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
2430         * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
2431         * testsuite/ld-i386/tlsnopic.rd: Likewise.
2432         * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
2433         * testsuite/ld-i386/tlspic.rd: Likewise.
2434         * testsuite/ld-s390/tlsbin.rd: Likewise.
2435         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
2436         * testsuite/ld-s390/tlspic.rd: Likewise.
2437         * testsuite/ld-s390/tlspic_64.rd: Likewise.
2438         * testsuite/ld-sh/tlsbin-2.d: Likewise.
2439         * testsuite/ld-sh/tlspic-2.d: Likewise.
2440         * testsuite/ld-tic6x/common.d: Likewise.
2441         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2442         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2443         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2444         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2445         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2446         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2447         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2448         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2449         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2450         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2451         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2452         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2453         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2454         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
2455         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
2456         * testsuite/ld-x86-64/pr12718.d: Likewise.
2457         * testsuite/ld-x86-64/pr12921.d: Likewise.
2458         * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
2459         * testsuite/ld-x86-64/split-by-file.rd: Likewise.
2460         * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
2461         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2462         * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
2463         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2464         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
2465         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2466         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
2467         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
2468         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
2469         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2470         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2471         * testsuite/ld-xtensa/tlspic.rd: Likewise.
2472
2473 2016-02-11  H.J. Lu  <hongjiu.lu@intel.com>
2474
2475         PR ld/19615
2476         * ld.texinfo: Document -Bsymbolic and -Bsymbolic-functions for
2477         PIE.
2478         * lexsup.c (parse_args): Enable -Bsymbolic and
2479         -Bsymbolic-functions for PIE.
2480         * testsuite/ld-i386/i386.exp: Run pr19615.
2481         * testsuite/ld-i386/pr19615.d: New file.
2482         * testsuite/ld-i386/pr19615.s: Likewise.
2483         * testsuite/ld-x86-64/pr19615.d: Likewise.
2484         * testsuite/ld-x86-64/pr19615.s: Likewise.
2485
2486 2016-02-09  Nick Clifton  <nickc@redhat.com>
2487
2488         * testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
2489         * testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
2490         * testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
2491         * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
2492
2493 2016-02-04  Nick Clifton  <nickc@redhat.com>
2494
2495         * testsuite/ld-arm/arm-elf.exp: Remove ARM NOREAD section tests.
2496         * testsuite/ld-arm/thumb1-input-section-flag-match.d: Delete.
2497         * testsuite/ld-arm/thumb1-input-section-flag-match.s: Delete.
2498         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.d: Delete.
2499         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s: Delete.
2500         * testsuite/ld-arm/thumb1-noread-present-one-section.d: Delete.
2501         * testsuite/ld-arm/thumb1-noread-present-one-section.s: Delete.
2502         * testsuite/ld-arm/thumb1-noread-present-two-section.d: Delete.
2503         * testsuite/ld-arm/thumb1-noread-present-two-section.s: Delete.
2504
2505 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2506
2507         PR gas/19520
2508         * testsuite/ld-i386/branch1.d: Pass -mrelax-relocations=yes to as.
2509         * testsuite/ld-i386/call1.d: Likewise.
2510         * testsuite/ld-i386/call2.d: Likewise.
2511         * testsuite/ld-i386/call3a.d: Likewise.
2512         * testsuite/ld-i386/call3b.d: Likewise.
2513         * testsuite/ld-i386/call3c.d: Likewise.
2514         * testsuite/ld-i386/call3d.d: Likewise.
2515         * testsuite/ld-i386/call3e.d: Likewise.
2516         * testsuite/ld-i386/call3f.d: Likewise.
2517         * testsuite/ld-i386/call3g.d: Likewise.
2518         * testsuite/ld-i386/call3h.d: Likewise.
2519         * testsuite/ld-i386/jmp1.d: Likewise.
2520         * testsuite/ld-i386/jmp2.d: Likewise.
2521         * testsuite/ld-i386/lea1c.d: Likewise.
2522         * testsuite/ld-i386/load1.d: Likewise.
2523         * testsuite/ld-i386/load2.d: Likewise.
2524         * testsuite/ld-i386/load3.d: Likewise.
2525         * testsuite/ld-i386/load4a.d: Likewise.
2526         * testsuite/ld-i386/load5a.d: Likewise.
2527         * testsuite/ld-i386/mov2b.d: Likewise.
2528         * testsuite/ld-i386/mov3.d: Likewise.
2529         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
2530         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
2531         * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
2532         * testsuite/ld-x86-64/call1a.d: Likewise.
2533         * testsuite/ld-x86-64/call1b.d: Likewise.
2534         * testsuite/ld-x86-64/call1c.d: Likewise.
2535         * testsuite/ld-x86-64/call1d.d: Likewise.
2536         * testsuite/ld-x86-64/call1e.d: Likewise.
2537         * testsuite/ld-x86-64/call1f.d: Likewise.
2538         * testsuite/ld-x86-64/call1h.d: Likewise.
2539         * testsuite/ld-x86-64/call1i.d: Likewise.
2540         * testsuite/ld-x86-64/load1a.d: Likewise.
2541         * testsuite/ld-x86-64/load1b.d: Likewise.
2542         * testsuite/ld-i386/got1a.S: Load GOT into %ecx and use it.
2543         * testsuite/ld-i386/got1.dd: Updated.
2544         * testsuite/ld-i386/got1d.S (1): Removed.
2545         * testsuite/ld-i386/i386.exp: Add -Wa,-mrelax-relocations=yes.
2546         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2547
2548 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
2549
2550         PR ld/18591
2551         * testsuite/ld-x86-64/pr18591.d: New file.
2552         * testsuite/ld-x86-64/pr18591.s: Likewise.
2553         * testsuite/ld-x86-64/x86-64.exp: Run pr18591.
2554
2555 2016-02-01  H.J. Lu  <hongjiu.lu@intel.com>
2556
2557         PR ld/19553
2558         * testsuite/ld-elf/indirect.exp: Run tests for PR ld/19553.
2559         * testsuite/ld-elf/pr19553.map: New file.
2560         * testsuite/ld-elf/pr19553.map: Likewise.
2561         * testsuite/ld-elf/pr19553a.c: Likewise.
2562         * testsuite/ld-elf/pr19553b.c: Likewise.
2563         * testsuite/ld-elf/pr19553b.out: Likewise.
2564         * testsuite/ld-elf/pr19553c.c: Likewise.
2565         * testsuite/ld-elf/pr19553c.out: Likewise.
2566         * testsuite/ld-elf/pr19553d.c: Likewise.
2567         * testsuite/ld-elf/pr19553d.out: Likewise.
2568
2569 2016-01-30  H.J. Lu  <hongjiu.lu@intel.com>
2570
2571         PR ld/19539
2572         * testsuite/ld-elf/pr19539.d: New file.
2573         * testsuite/ld-elf/pr19539.s: Likewise.
2574         * testsuite/ld-elf/pr19539.t: Likewise.
2575
2576 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
2577
2578         PR ld/19533
2579         * configure.ac (compressed_debug_sections): Replace == with =.
2580         * configure: Regenerated.
2581
2582 2016-01-22  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2583
2584         * scripttempl/avr.sc (.noinit): Force .noinit VMA to end of .bss VMA.
2585         * scripttempl/avrtiny.sc (.noinit): Likewise.
2586
2587 2016-01-21  Nick Clifton  <nickc@redhat.com>
2588
2589         PR ld/19453
2590         * testsuite/ld-arm/arm-elf.exp: Skip tests that do not work for
2591         the arm-netbsdelf target.
2592
2593         PR ld/19455
2594         * testsuite/ld-arm/vxworks1-lib.dd: Update for current
2595         disassmebler output.
2596         * testsuite/ld-arm/vxworks1-lib.rd: Likewise.
2597         * testsuite/ld-arm/vxworks1.dd: Likewise.
2598         * testsuite/ld-arm/vxworks1.rd: Likewise.
2599         * testsuite/ld-arm/vxworks1.ld: Set the output format.
2600
2601 2016-01-20  Jiong Wang  <jiong.wang@arm.com>
2602
2603         * testsuite/ld-aarch64/farcall-section.d: Delete.
2604         * testsuite/ld-aarch64/farcall-section.s: Delete.
2605         * testsuite/ld-aarch64/farcall-b-section.d: New expectation file.
2606         * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
2607         * testsuite/ld-aarch64/farcall-b-section.s: New testcase.
2608         * testsuite/ld-aarch64/farcall-bl-section.s: Likewise.
2609         * testsuite/ld-aarch64/aarch64-elf.exp: Likewise.
2610
2611 2016-01-20  Nick Clifton  <nickc@redhat.com>
2612
2613         PR 19457
2614         * testsuite/ld-scripts/script.exp (extract_symbol_test): Stop test
2615         early for PE based targets.
2616         * testsuite/ld-scripts/align.t: Use 0x1000 as VMA alignment.
2617         * testsuite/ld-pe/tlssec32.d: Allow for relocatable output.
2618
2619 2016-01-20  Mickael Guene  <mickael.guene@st.com>
2620
2621         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s:
2622         Add 'y' attribute usage.
2623         * testsuite/ld-arm/thumb1-noread-present-one-section.s: Likewise.
2624         * testsuite/ld-arm/thumb1-noread-present-two-section.s: Likewise.
2625         * testsuite/ld-arm/thumb1-input-section-flag-match.s: Likewise.
2626
2627 2016-01-19  Nick Clifton  <nickc@redhat.com>
2628
2629         * testsuite/ld-elf/pr18735.d: Allow for extra symbols between
2630         foo@FOO and bar@@FOO.
2631
2632 2016-01-18  Alan Modra  <amodra@gmail.com>
2633
2634         * configure: Regenerate.
2635
2636 2016-01-18  Nick Clifton  <nickc@redhat.com>
2637
2638         * testsuite/ld-plugin/plugin.exp: Skip plugin tests if the linker
2639         is not configured to support plugins.
2640
2641         * testsuite/ld-scripts/rgn-at11.s: New file - based on rgn-at10.s
2642         but with 16 byte section alignment.
2643         * testsuite/ld-scripts/rgn-at11.d: Use new source file.  Reenable
2644         test for MIPS targets.
2645
2646 2016-01-17  Alan Modra  <amodra@gmail.com>
2647
2648         * configure: Regenerate.
2649
2650 2016-01-17  Alan Modra  <amodra@gmail.com>
2651
2652         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Exclude xgate.
2653         * testsuite/ld-elf/endsym.d: xfail m68hc11/12 and xgate.
2654         * testsuite/ld-elf/pr14156a.d: Likewise.
2655         * testsuite/ld-elf/pr14926.d: Don't run for m68hc11/12 and xgate.
2656         * testsuite/ld-elf/sec64k.exp: Likewise.
2657
2658 2016-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2659
2660         * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
2661         Set address of .foo section when linking.
2662         * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s: Place myfunc
2663         in .foo section.
2664         * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d: Adapt expected
2665         output to the above changes.
2666
2667 2016-01-13  Nick Clifton  <nickc@redhat.com>
2668
2669         * testsuite/ld-elf/elf.exp (-Bymsolic-functions): Expect to fail
2670         for MIPS targets.
2671
2672         * testsuite/ld-scripts/script.exp (extract_symbol_test): Expect to
2673         fail for MIPS targets.
2674
2675         * testsuite/ld-scripts/rgn-at11.d: Expect this test to fail for
2676         MIPS targets.
2677
2678 2016-01-12  Yury Usishchev  <y.usishchev@samsung.com>
2679
2680         * testsuite/ld-arm/arm-elf.exp: New test.
2681         * testsuite/ld-arm/unwind-mix.d: New file.
2682         * testsuite/ld-arm/unwind-mix1.s: New file.
2683         * testsuite/ld-arm/unwind-mix2.s: New file.
2684
2685 2016-01-08  Jiong Wang  <jiong.wang@arm.com>
2686
2687         PR ld/19368
2688         * testsuite/ld-arm/ifunc-3.rd: Update expected result.
2689         * testsuite/ld-arm/ifunc-4.rd: Likewise.
2690         * testsuite/ld-arm/ifunc-9.rd: Likewise.
2691         * testsuite/ld-arm/ifunc-10.rd: Likewise.
2692         * testsuite/ld-arm/ifunc-12.rd: Likewise.
2693         * testsuite/ld-arm/ifunc-13.rd: Likewise.
2694
2695 2016-01-05  Nick Clifton  <nickc@redhat.com>
2696
2697         * emulparams/msp430elf.sh (RAM_START): Move to 0x500 - above the
2698         MSP430 hardware multiply address range.
2699         * scripttempl/elf32msp430.sc (__romdatastart): Define.
2700         (__romdatacopysize): Define.
2701         * scripttempl/elf32msp430_3.sc: Likewise.
2702
2703 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
2704
2705         * emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
2706         OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
2707
2708 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
2709
2710         * testsuite/ld-mips-elf/attr-gnu-4-14.d: Update the order of
2711         messages expected according to MIPS BFD private data merge
2712         changes.
2713         * testsuite/ld-mips-elf/attr-gnu-4-24.d: Likewise.
2714         * testsuite/ld-mips-elf/attr-gnu-4-34.d: Likewise.
2715         * testsuite/ld-mips-elf/attr-gnu-4-41.d: Likewise.
2716         * testsuite/ld-mips-elf/attr-gnu-4-42.d: Likewise.
2717         * testsuite/ld-mips-elf/attr-gnu-4-43.d: Likewise.
2718         * testsuite/ld-mips-elf/attr-gnu-4-45.d: Likewise.
2719         * testsuite/ld-mips-elf/attr-gnu-4-46.d: Likewise.
2720         * testsuite/ld-mips-elf/attr-gnu-4-47.d: Likewise.
2721         * testsuite/ld-mips-elf/attr-gnu-4-48.d: Likewise.
2722         * testsuite/ld-mips-elf/attr-gnu-4-49.d: Likewise.
2723         * testsuite/ld-mips-elf/attr-gnu-4-54.d: Likewise.
2724         * testsuite/ld-mips-elf/attr-gnu-4-64.d: Likewise.
2725         * testsuite/ld-mips-elf/attr-gnu-4-74.d: Likewise.
2726
2727 2016-01-01  Alan Modra  <amodra@gmail.com>
2728
2729         Update year range in copyright notice of all files.
2730
2731 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
2732 \f
2733 Copyright (C) 2016 Free Software Foundation, Inc.
2734
2735 Copying and distribution of this file, with or without modification,
2736 are permitted in any medium without royalty provided the copyright
2737 notice and this notice are preserved.
2738
2739 Local Variables:
2740 mode: change-log
2741 left-margin: 8
2742 fill-column: 74
2743 version-control: never
2744 End: