PR20744, Incorrect PowerPC VLE relocs
[external/binutils.git] / ld / ChangeLog
1 2016-11-22  Alan Modra  <amodra@gmail.com>
2
3         PR 20744
4         * emultempl/ppc32elf.em (params): Update initializer.  Handle
5         --vle-reloc-fixup command line arg.
6
7 2016-11-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8
9         PR ld/20789
10         * ld/testsuite/ld-avr/pr20789.d: New test.
11         * ld/testsuite/ld-avr/pr20789.s: New test.
12
13
14 2016-11-14  H.J. Lu  <hongjiu.lu@intel.com>
15
16         PR ld/20800
17         * testsuite/ld-x86-64/pr20800a.S: New file.
18         * testsuite/ld-x86-64/pr20800b.S: Likewise.
19         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/20800 test.
20
21 2016-11-14  Nick Clifton  <nickc@redhat.com>
22
23         * lexsup.c (parse_args): Add break at end of default case.
24
25 2016-11-10  Jiong Wang  <jiong.wang@arm.com>
26
27         PR target/20737
28         * testsuite/ld-aarch64/pie-bind-locally-a.s: New test source.
29         * testsuite/ld-aarch64/pie-bind-locally-b.s: Likewise.
30         * testsuite/ld-aarch64/pie-bind-locally.d: New testcase.
31         * testsuite/ld-aarch64/aarch64-elf.exp: Run new testcase.
32
33 2016-11-07  Nick Clifton  <nickc@redhat.com>
34
35         PR ld/20784
36         * emultempl/elf32.em (search_needed): Fix infinite loop when
37         unable to process a token.  Add support for curly braced enclosed
38         tokens.
39         * ld.texinfo (--rpath-link): Document supprot for $ORIGIN and
40         $LIB.
41
42 2016-11-07  Nick Clifton  <nickc@redhat.com>
43
44         * ld.texinfo (--compress-debug-sections): Expand documentation of
45         this option.
46
47 2016-11-04  Nick Clifton  <nickc@redhat.com>
48
49         * emultempl/elf32.em (search_needed): Remove use of getauxval and
50         inclusion of <sys/auxv.h>.  Replace support for $PLATFORM with a
51         warning message.
52         * configure.ac (AC_CHECK_FUNCS): Remove getauxval.
53         * configure: Regenerate.
54         * config.in: Regenerate.
55
56 2016-11-04  Andrew Burgess  <andrew.burgess@embecosm.com>
57
58         * ldlang.h (struct lang_wild_statement_struct): Add
59         exclude_name_list field.
60         * ldlang.c (walk_wild_file_in_exclude_list): New function.
61         (walk_wild_consider_section): Use new
62         walk_wild_file_in_exclude_list function.
63         (walk_wild_file): Add call to walk_wild_file_in_exclude_list.
64         (print_wild_statement): Print new exclude_name_list field.
65         (lang_add_wild): Initialise new exclude_name_list field.
66         * testsuite/ld-scripts/exclude-file-1.d: New file.
67         * testsuite/ld-scripts/exclude-file-1.map: New file.
68         * testsuite/ld-scripts/exclude-file-1.t: New file.
69         * testsuite/ld-scripts/exclude-file-2.d: New file.
70         * testsuite/ld-scripts/exclude-file-2.map: New file.
71         * testsuite/ld-scripts/exclude-file-2.t: New file.
72         * testsuite/ld-scripts/exclude-file-3.d: New file.
73         * testsuite/ld-scripts/exclude-file-3.map: New file.
74         * testsuite/ld-scripts/exclude-file-3.t: New file.
75         * testsuite/ld-scripts/exclude-file-4.d: New file.
76         * testsuite/ld-scripts/exclude-file-4.map: New file.
77         * testsuite/ld-scripts/exclude-file-4.t: New file.
78         * testsuite/ld-scripts/exclude-file-a.s: New file.
79         * testsuite/ld-scripts/exclude-file-b.s: New file.
80         * testsuite/ld-scripts/exclude-file.exp: New file.
81         * ld.texinfo (Input Section Basics): Update description of
82         EXCLUDE_FILE to cover the new features.
83         * NEWS: Mention new EXCLUDE_FILE usage.
84
85 2016-11-04  Andrew Burgess  <andrew.burgess@embecosm.com>
86
87         * testsuite/lib/ld-lib.exp (run_dump_test): Use object file names
88         based on the original source file name.
89         * testsuite/ld-discard/extern.d: Update object file names.
90         * testsuite/ld-discard/start.d: Likewise.
91         * testsuite/ld-discard/static.d: Likewise.
92         * testsuite/ld-elf/orphan-8.map: Likewise.
93
94 2016-11-04  Andrew Burgess  <andrew.burgess@embecosm.com>
95
96         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Add
97         xc16x-*-elf to the list of targets that don't support -shared.
98
99 2016-11-04  Andrew Burgess  <andrew.burgess@embecosm.com>
100
101         * ldgram.y: Rename file_NAME_list to section_NAME_list
102         throughout.
103
104 2016-11-01  Palmer Dabbelt  <palmer@dabbelt.com>
105             Andrew Waterman <andrew@sifive.com>
106
107         Add support for RISC-V architecture.
108         * Makefile.am: Add riscv files.
109         * Makefile.in: Regenerate.
110         * NEWS: Mention the support for this target.
111         * configure.tgt: Add riscv entries.
112         * emulparams/elf32lriscv-defs.sh: New file.
113         * emulparams/elf32lriscv.sh: New file.
114         * emulparams/elf64lriscv-defs.sh: New file.
115         * emulparams/elf64lriscv.sh: New file.
116         * emultempl/riscvelf.em: New file.
117
118 2016-10-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
119
120         * ldmain.c (add_archive_element): Initialize input->header.type.
121         * plugin.c (plugin_maybe_claim): Assert the statement is an input
122         statement.
123
124 2016-10-15  Alan Modra  <amodra@gmail.com>
125
126         * emultempl/spu_ovl.o_c: Regenerate.
127
128 2016-10-14  Alan Modra  <amodra@gmail.com>
129
130         * scripttempl/DWARF.sc: Add .debug_addr.
131
132 2016-10-12  Alan Modra  <amodra@gmail.com>
133
134         * testsuite/ld-i386/pr19636-1d-nacl.d: Adjust for objdump change.
135         * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
136         * testsuite/ld-tic6x/shlib-1r.dd: Likewise.
137         * testsuite/ld-x86-64/plt-nacl.pd: Likewise.
138         * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
139
140 2016-10-11  Nick Clifton  <nickc@redhat.com>
141
142         * ld-aarch64/emit-relocs-515-be.d: Adjust output to match change
143         in objdump.
144         * ld-aarch64/emit-relocs-515.d: Likewise.
145         * ld-aarch64/emit-relocs-516-be.d: Likewise.
146         * ld-aarch64/emit-relocs-516.d: Likewise.
147         * ld-aarch64/farcall-b-plt.d: Likewise.
148         * ld-aarch64/farcall-bl-plt.d: Likewise.
149         * ld-aarch64/gc-plt-relocs.d: Likewise.
150         * ld-aarch64/tls-desc-ie.d: Likewise.
151         * ld-aarch64/tls-tiny-desc.d: Likewise.
152         * ld-aarch64/tls-tiny-gd.d: Likewise.
153         * ld-aarch64/tls-tiny-ie.d: Likewise.
154         * ld-arm/arm-app-abs32.d: Likewise.
155         * ld-arm/arm-app.d: Likewise.
156         * ld-arm/arm-lib-plt32.d: Likewise.
157         * ld-arm/arm-lib.d: Likewise.
158         * ld-arm/armthumb-lib.d: Likewise.
159         * ld-arm/cortex-a8-fix-b-plt.d: Likewise.
160         * ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
161         * ld-arm/cortex-a8-fix-bl-plt.d: Likewise.
162         * ld-arm/cortex-a8-fix-bl-rel-plt.d: Likewise.
163         * ld-arm/cortex-a8-fix-blx-plt.d: Likewise.
164         * ld-arm/farcall-mixed-app-v5.d: Likewise.
165         * ld-arm/farcall-mixed-app.d: Likewise.
166         * ld-arm/farcall-mixed-app2.d: Likewise.
167         * ld-arm/farcall-mixed-lib-v4t.d: Likewise.
168         * ld-arm/farcall-mixed-lib.d: Likewise.
169         * ld-arm/ifunc-10.dd: Likewise.
170         * ld-arm/ifunc-14.dd: Likewise.
171         * ld-arm/ifunc-15.dd: Likewise.
172         * ld-arm/ifunc-3.dd: Likewise.
173         * ld-arm/ifunc-4.dd: Likewise.
174         * ld-arm/ifunc-9.dd: Likewise.
175         * ld-arm/long-plt-format.d: Likewise.
176         * ld-arm/mixed-app-v5.d: Likewise.
177         * ld-arm/mixed-app.d: Likewise.
178         * ld-arm/mixed-lib.d: Likewise.
179         * ld-arm/tls-lib-loc.d: Likewise.
180         * ld-cris/dso-pltdis1.d: Likewise.
181         * ld-cris/dso-pltdis2.d: Likewise.
182         * ld-cris/dso12-pltdis.d: Likewise.
183         * ld-elf/symbolic-func.r: Likewise.
184         * ld-frv/fdpic-pie-1.d: Likewise.
185         * ld-frv/fdpic-pie-2.d: Likewise.
186         * ld-frv/fdpic-pie-6.d: Likewise.
187         * ld-frv/fdpic-pie-7.d: Likewise.
188         * ld-frv/fdpic-pie-8.d: Likewise.
189         * ld-frv/fdpic-shared-1.d: Likewise.
190         * ld-frv/fdpic-shared-2.d: Likewise.
191         * ld-frv/fdpic-shared-3.d: Likewise.
192         * ld-frv/fdpic-shared-4.d: Likewise.
193         * ld-frv/fdpic-shared-5.d: Likewise.
194         * ld-frv/fdpic-shared-6.d: Likewise.
195         * ld-frv/fdpic-shared-7.d: Likewise.
196         * ld-frv/fdpic-shared-8.d: Likewise.
197         * ld-frv/fdpic-shared-local-2.d: Likewise.
198         * ld-frv/fdpic-shared-local-8.d: Likewise.
199         * ld-frv/fdpic-static-1.d: Likewise.
200         * ld-frv/fdpic-static-2.d: Likewise.
201         * ld-frv/fdpic-static-6.d: Likewise.
202         * ld-frv/fdpic-static-7.d: Likewise.
203         * ld-frv/fdpic-static-8.d: Likewise.
204         * ld-frv/tls-dynamic-2.d: Likewise.
205         * ld-frv/tls-initial-shared-2.d: Likewise.
206         * ld-frv/tls-relax-shared-2.d: Likewise.
207         * ld-frv/tls-shared-2.d: Likewise.
208         * ld-i386/plt-nacl.pd: Likewise.
209         * ld-i386/plt-pic-nacl.pd: Likewise.
210         * ld-i386/plt-pic.pd: Likewise.
211         * ld-i386/plt.pd: Likewise.
212         * ld-i386/pr19636-1d-nacl.d: Likewise.
213         * ld-i386/pr19636-1d.d: Likewise.
214         * ld-i386/pr19636-2c-nacl.d: Likewise.
215         * ld-i386/pr19636-2c.d: Likewise.
216         * ld-ifunc/ifunc-21-x86-64.d: Likewise.
217         * ld-ifunc/ifunc-22-x86-64.d: Likewise.
218         * ld-ifunc/pr17154-i386.d: Likewise.
219         * ld-ifunc/pr17154-x86-64.d: Likewise.
220         * ld-m68k/plt1-68020.d: Likewise.
221         * ld-m68k/plt1-cpu32.d: Likewise.
222         * ld-m68k/plt1-isab.d: Likewise.
223         * ld-m68k/plt1-isac.d: Likewise.
224         * ld-metag/shared.d: Likewise.
225         * ld-metag/stub_pic_app.d: Likewise.
226         * ld-metag/stub_pic_shared.d: Likewise.
227         * ld-metag/stub_shared.d: Likewise.
228         * ld-s390/tlsbin_64.dd: Likewise.
229         * ld-s390/tlspic_64.dd: Likewise.
230         * ld-tic6x/shlib-1.dd: Likewise.
231         * ld-tic6x/shlib-1b.dd: Likewise.
232         * ld-tic6x/shlib-1rb.dd: Likewise.
233         * ld-tic6x/shlib-app-1.dd: Likewise.
234         * ld-tic6x/shlib-app-1b.dd: Likewise.
235         * ld-tic6x/shlib-app-1r.dd: Likewise.
236         * ld-tic6x/shlib-app-1rb.dd: Likewise.
237         * ld-tic6x/shlib-noindex.dd: Likewise.
238         * ld-vax-elf/export-class-data.dd: Likewise.
239         * ld-vax-elf/plt-local-lib.dd: Likewise.
240         * ld-vax-elf/plt-local.dd: Likewise.
241         * ld-x86-64/bnd-ifunc-2.d: Likewise.
242         * ld-x86-64/bnd-plt-1.d: Likewise.
243         * ld-x86-64/gotpcrel1.dd: Likewise.
244         * ld-x86-64/libno-plt-1b.dd: Likewise.
245         * ld-x86-64/load1c-nacl.d: Likewise.
246         * ld-x86-64/load1c.d: Likewise.
247         * ld-x86-64/load1d-nacl.d: Likewise.
248         * ld-x86-64/load1d.d: Likewise.
249         * ld-x86-64/mov1a.d: Likewise.
250         * ld-x86-64/mov1b.d: Likewise.
251         * ld-x86-64/mov1c.d: Likewise.
252         * ld-x86-64/mov1d.d: Likewise.
253         * ld-x86-64/mov2a.d: Likewise.
254         * ld-x86-64/mov2b.d: Likewise.
255         * ld-x86-64/mov2c.d: Likewise.
256         * ld-x86-64/mov2d.d: Likewise.
257         * ld-x86-64/mpx3.dd: Likewise.
258         * ld-x86-64/mpx4.dd: Likewise.
259         * ld-x86-64/no-plt-1a.dd: Likewise.
260         * ld-x86-64/no-plt-1b.dd: Likewise.
261         * ld-x86-64/no-plt-1c.dd: Likewise.
262         * ld-x86-64/no-plt-1e.dd: Likewise.
263         * ld-x86-64/no-plt-1f.dd: Likewise.
264         * ld-x86-64/no-plt-1g.dd: Likewise.
265         * ld-x86-64/plt-main-bnd.dd: Likewise.
266         * ld-x86-64/plt-nacl.pd: Likewise.
267         * ld-x86-64/plt.pd: Likewise.
268         * ld-x86-64/pr18591.d: Likewise.
269         * ld-x86-64/pr19609-1c.d: Likewise.
270         * ld-x86-64/pr19609-1e.d: Likewise.
271         * ld-x86-64/pr19609-1j.d: Likewise.
272         * ld-x86-64/pr19609-1l.d: Likewise.
273         * ld-x86-64/pr19609-1m.d: Likewise.
274         * ld-x86-64/pr19609-5b.d: Likewise.
275         * ld-x86-64/pr19609-5c.d: Likewise.
276         * ld-x86-64/pr19609-5e.d: Likewise.
277         * ld-x86-64/pr19609-6b.d: Likewise.
278         * ld-x86-64/pr19609-7b.d: Likewise.
279         * ld-x86-64/pr19609-7d.d: Likewise.
280         * ld-x86-64/pr19636-2d.d: Likewise.
281         * ld-x86-64/pr20093-1.d: Likewise.
282         * ld-x86-64/pr20093-2.d: Likewise.
283         * ld-x86-64/pr20253-1b.d: Likewise.
284         * ld-x86-64/pr20253-1d.d: Likewise.
285         * ld-x86-64/pr20253-1f.d: Likewise.
286         * ld-x86-64/pr20253-1h.d: Likewise.
287         * ld-x86-64/pr20253-1j.d: Likewise.
288         * ld-x86-64/pr20253-1l.d: Likewise.
289         * ld-x86-64/protected3.d: Likewise.
290         * ld-x86-64/tlsbin.dd: Likewise.
291         * ld-x86-64/tlsbin2.dd: Likewise.
292         * ld-x86-64/tlsbindesc.dd: Likewise.
293         * ld-x86-64/tlsdesc-nacl.pd: Likewise.
294         * ld-x86-64/tlsdesc.dd: Likewise.
295         * ld-x86-64/tlsdesc.pd: Likewise.
296         * ld-x86-64/tlsgd10.dd: Likewise.
297         * ld-x86-64/tlsgd5.dd: Likewise.
298         * ld-x86-64/tlsgd6.dd: Likewise.
299         * ld-x86-64/tlsgd8.dd: Likewise.
300         * ld-x86-64/tlsgdesc.dd: Likewise.
301         * ld-x86-64/tlspic.dd: Likewise.
302         * ld-x86-64/tlspic2.dd: Likewise.
303
304 2016-10-11  Nick Clifton  <nickc@redhat.com>
305
306         PR ld/20535
307         * emultempl/elf32.em (_search_needed): Add support for pseudo
308         environment variables supported by ld.so.  Namely $ORIGIN, $LIB
309         and $PLATFORM.
310         * configure.ac: Add getauxval to list AC_CHECK_FUNCS list.
311         * config.in: Regenerate.
312         * configure: Regenerate.
313
314 2016-10-11  Alan Modra  <amodra@gmail.com>
315
316         * ldlang.c (lang_do_assignments_1): Descend into output section
317         statements that do not yet have bfd sections.  Set symbol section
318         temporarily for symbols defined in such statements to the undefined
319         section.  Don't error on data or reloc statements until final phase.
320         * ldexp.c (exp_fold_tree_1 <etree_assign>): Handle bfd_und_section
321         in expld.section.
322         * testsuite/ld-mmix/bpo-10.d: Adjust.
323         * testsuite/ld-mmix/bpo-11.d: Adjust.
324
325 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
326
327         * emulparams/elf64_s390.sh: Move binary start to 16M.
328         * testsuite/ld-s390/tlsbin_64.dd: Adjust testcases accordingly.
329         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
330
331 2016-10-07  Alan Modra  <amodra@gmail.com>
332
333         * ldexp.c (MAX): Define.
334         (exp_unop, exp_binop, exp_trinop): Alloc at least enough for
335         etree_type.value.
336
337 2016-10-07  Alan Modra  <amodra@gmail.com>
338
339         * testsuite/lib/ld-lib.exp (is_generic_elf): New, extracted from..
340         * testsuite/ld-elf/elf.exp: ..here.
341
342 2016-10-06  Ludovic Courtès  <ludo@gnu.org>
343
344         * emulparams/elf32bmipn32-defs.sh: Shift quote of
345         "x$EMULATION_NAME" to the left to work around
346         <http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-007>.
347
348 2016-10-06  Alan Modra  <amodra@gmail.com>
349
350         * lexsup.c: Spell fall through comments consistently and add
351         missing fall through comments.
352
353 2016-10-06  Alan Modra  <amodra@gmail.com>
354
355         * plugin.c (asymbol_from_plugin_symbol): Avoid compiler warning
356         by adding return.
357
358 2016-10-04  Alan Modra  <amodra@gmail.com>
359
360         * ld.texinfo (Expression Section): Update result of arithmetic
361         expressions.
362         * ldexp.c (arith_result_section): New function.
363         (fold_binary): Use it.
364
365 2016-10-04  Alan Modra  <amodra@gmail.com>
366
367         * ldexp.c (exp_value_fold): New function.
368         (exp_unop, exp_binop, exp_trinop): Use it.
369
370 2016-09-30  Alan Modra  <amodra@gmail.com>
371
372         * scripttempl/v850.sc: Don't reference __ctbp, __ep, __gp when
373         not relocating.
374         * scripttempl/v850_rh850.sc: Likewise.
375
376 2016-09-30  Alan Modra  <amodra@gmail.com>
377
378         PR ld/20528
379         * testsuite/ld-elf/pr20528a.d: xfail generic elf targets.  Allow
380         multiple .text sections for hppa-linux.
381         * testsuite/ld-elf/pr20528b.d: Likewise.
382
383 2016-09-30  Alan Modra  <amodra@gmail.com>
384
385         * ldmain.c (default_bfd_error_handler): New function pointer.
386         (ld_bfd_error_handler): New function.
387         (main): Arrange to call it on bfd errors/warnings.
388         (ld_bfd_assert_handler): Enable tail call.
389
390 2016-09-30  Alan Modra  <amodra@gmail.com>
391
392         * ldlang.c (ignore_bfd_errors): Update params.
393
394 2016-09-29  H.J. Lu  <hongjiu.lu@intel.com>
395
396         PR ld/20528
397         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
398         merge 2 sections with different SHF_EXCLUDE.
399         * testsuite/ld-elf/pr20528a.d: New file.
400         * testsuite/ld-elf/pr20528a.s: Likewise.
401         * testsuite/ld-elf/pr20528b.d: Likewise.
402         * testsuite/ld-elf/pr20528b.s: Likewise.
403
404 2016-09-28  Christophe Lyon  <christophe.lyon@linaro.org>
405
406         PR ld/20608
407         * testsuite/ld-arm/arm-elf.exp: Handle new testcase.
408         * testsuite/ld-arm/farcall-mixed-app2.d: New file.
409         * testsuite/ld-arm/farcall-mixed-app2.r: Likewise.
410         * testsuite/ld-arm/farcall-mixed-app2.s: Likewise.
411         * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
412
413 2016-09-26  Vlad Zakharov  <vzakhar@synopsys.com>
414
415         * Makefile.in: Regenerate.
416         * configure: Likewise.
417
418 2016-09-26  Alan Modra  <amodra@gmail.com>
419
420         * testsuite/ld-powerpc/attr-gnu-4-4.s: Delete.
421         * testsuite/ld-powerpc/attr-gnu-4-14.d: Delete.
422         * testsuite/ld-powerpc/attr-gnu-4-24.d: Delete.
423         * testsuite/ld-powerpc/attr-gnu-4-34.d: Delete.
424         * testsuite/ld-powerpc/attr-gnu-4-41.d: Delete.
425         * testsuite/ld-powerpc/attr-gnu-4-32.d: Adjust expected warning.
426         * testsuite/ld-powerpc/attr-gnu-8-23.d: Likewise.
427         * testsuite/ld-powerpc/attr-gnu-4-01.d: Adjust expected output.
428         * testsuite/ld-powerpc/attr-gnu-4-02.d: Likewise.
429         * testsuite/ld-powerpc/attr-gnu-4-03.d: Likewise.
430         * testsuite/ld-powerpc/attr-gnu-4-10.d: Likewise.
431         * testsuite/ld-powerpc/attr-gnu-4-11.d: Likewise.
432         * testsuite/ld-powerpc/attr-gnu-4-20.d: Likewise.
433         * testsuite/ld-powerpc/attr-gnu-4-22.d: Likewise.
434         * testsuite/ld-powerpc/attr-gnu-4-33.d: Likewise.
435         * testsuite/ld-powerpc/attr-gnu-8-11.d: Likewise.
436         * testsuite/ld-powerpc/powerpc.exp: Don't run deleted tests.
437
438 2016-09-23  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
439
440         PR ld/20595
441         * testsuite/ld-arm/unwind-4.d: Add -q option to linker command
442         line and -r option to objdump command line.  Match emitted relocs
443         to make sure that superflous relocs are not generated.
444
445 2016-09-23  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
446
447         * emulparams/elf64_s390.sh: Change TEXT_START_ADDR to 256MB.
448         * testsuite/ld-s390/tlsbin_64.dd: Adjust testcase accordingly.
449         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
450
451 2016-09-22  Nick Clifton  <nickc@redhat.com>
452
453         * emultempl/elf32.em (_try_needed): In verbose mode, report failed
454         attempts to find a needed library.
455
456 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
457
458         * testsuite/ld-aarch64/emit-relocs-28.d: Expect spaces after ","
459         in addresses.
460         * testsuite/ld-aarch64/emit-relocs-301-be.d: Likewise.
461         * testsuite/ld-aarch64/emit-relocs-301.d: Likewise.
462         * testsuite/ld-aarch64/emit-relocs-302-be.d: Likewise.
463         * testsuite/ld-aarch64/emit-relocs-302.d: Likewise.
464         * testsuite/ld-aarch64/emit-relocs-310-be.d: Likewise.
465         * testsuite/ld-aarch64/emit-relocs-310.d: Likewise.
466         * testsuite/ld-aarch64/emit-relocs-313.d: Likewise.
467         * testsuite/ld-aarch64/emit-relocs-515-be.d: Likewise.
468         * testsuite/ld-aarch64/emit-relocs-515.d: Likewise.
469         * testsuite/ld-aarch64/emit-relocs-516-be.d: Likewise.
470         * testsuite/ld-aarch64/emit-relocs-516.d: Likewise.
471         * testsuite/ld-aarch64/emit-relocs-531.d: Likewise.
472         * testsuite/ld-aarch64/emit-relocs-532.d: Likewise.
473         * testsuite/ld-aarch64/emit-relocs-533.d: Likewise.
474         * testsuite/ld-aarch64/emit-relocs-534.d: Likewise.
475         * testsuite/ld-aarch64/emit-relocs-535.d: Likewise.
476         * testsuite/ld-aarch64/emit-relocs-536.d: Likewise.
477         * testsuite/ld-aarch64/emit-relocs-537.d: Likewise.
478         * testsuite/ld-aarch64/emit-relocs-538.d: Likewise.
479         * testsuite/ld-aarch64/erratum835769.d: Likewise.
480         * testsuite/ld-aarch64/erratum843419.d: Likewise.
481         * testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
482         * testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
483         * testsuite/ld-aarch64/gc-plt-relocs.d: Likewise.
484         * testsuite/ld-aarch64/ifunc-21.d: Likewise.
485         * testsuite/ld-aarch64/ifunc-7c.d: Likewise.
486         * testsuite/ld-aarch64/tls-desc-ie.d: Likewise.
487         * testsuite/ld-aarch64/tls-large-desc-be.d: Likewise.
488         * testsuite/ld-aarch64/tls-large-desc.d: Likewise.
489         * testsuite/ld-aarch64/tls-large-ie-be.d: Likewise.
490         * testsuite/ld-aarch64/tls-large-ie.d: Likewise.
491         * testsuite/ld-aarch64/tls-relax-all.d: Likewise.
492         * testsuite/ld-aarch64/tls-relax-gd-ie.d: Likewise.
493         * testsuite/ld-aarch64/tls-relax-gdesc-ie-2.d: Likewise.
494         * testsuite/ld-aarch64/tls-relax-gdesc-ie.d: Likewise.
495         * testsuite/ld-aarch64/tls-relax-large-desc-ie-be.d: Likewise.
496         * testsuite/ld-aarch64/tls-relax-large-desc-ie.d: Likewise.
497         * testsuite/ld-aarch64/tls-tiny-desc.d: Likewise.
498         * testsuite/ld-aarch64/tls-tiny-gd.d: Likewise.
499
500 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
501
502         * testsuite/ld-aarch64/emit-relocs-280.d: Match branch comments.
503         * testsuite/ld-aarch64/weak-undefined.d: Likewise.
504
505 2016-09-20  Andrew Burgess  <andrew.burgess@embecosm.com>
506
507         * ld.texinfo (Input Section Basics): Expand the description of
508         EXCLUDE_FILE.
509
510 2016-09-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
511
512         * testsuite/ld-arm/cmse-veneers.s: Add a test for ARMv8-M Security
513         Extensions entry functions in absolute section.
514         * testsuite/ld-arm/cmse-veneers.rd: Adapt expected output accordingly.
515
516 2016-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
517
518         * testsuite/ld-arc/tls-dtpoff.dd: New file.
519         * testsuite/ld-arc/tls-dtpoff.rd: Likewise.
520         * testsuite/ld-arc/tls-dtpoff.s: Likewise.
521         * testsuite/ld-arc/tls-relocs.ld: Likewise.
522         * testsuite/ld-arc/arc.exp: Add new tdpoff test.
523
524 2016-09-14  Nick Clifton  <nickc@redhat.com>
525
526         PR ld/20537
527         * emultempl/elf32.em: More OPTION_xxx values into an enum.  Add
528         OPTION_NO_EH_FRAME_HDR.
529         (_add_options): Add support for --no-eh-frame-hdr.
530         * ld.texinfo: Document new option.
531         * lexsup.c (elf_shlib_list_options): List new option.
532         * NEWS: Mention the new option.
533
534 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
535
536         PR ld/20550
537         * testsuite/ld-x86-64/pr20550a.s: New file.
538         * testsuite/ld-x86-64/pr20550b.s: Likewise.
539         * testsuite/ld-x86-64/x86-64.exp (x86_64tests): Add tests for
540         PR ld/20550.
541
542 2016-09-06  Nick Clifton  <nickc@redhat.com>
543
544         * Makefile.am (CFLAGS_FOR_TARGET): Define as a copy of CFLAGS but
545         without any sanitization options.
546         (CXXFLAGS_FOR_TARGET): Define as a copy of CXXFLAGS but without
547         any sanitization options.
548         (check-DEJAGNU): Pass CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET
549         as CFLAGS and CXXFLAGS respectively.
550
551 2016-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
552
553         PR ld/20545
554         * testsuite/ld-avr/avr-prop-7.d: New test.
555         * testsuite/ld-avr/avr-prop-7.s: New test.
556         * testsuite/ld-avr/avr-prop-8.d: New test.
557         * testsuite/ld-avr/avr-prop-8.s: New test.
558
559 2016-09-02  H.J. Lu  <hongjiu.lu@intel.com>
560
561         * testsuite/ld-elf/pr20513c.d: Limit to *-*-linux* and *-*-gnu*
562         targets.
563         * testsuite/ld-elf/pr20513d.d: Likewise.
564
565 2016-09-01  H.J. Lu  <hongjiu.lu@intel.com>
566
567         PR ld/20513
568         * testsuite/ld-elf/pr20513a.d: New file.
569         * testsuite/ld-elf/pr20513a.s: Likewise.
570         * testsuite/ld-elf/pr20513b.d: Likewise.
571         * testsuite/ld-elf/pr20513b.s: Likewise.
572         * testsuite/ld-elf/pr20513c.d: Likewise.
573         * testsuite/ld-elf/pr20513d.d: Likewise.
574         * testsuite/ld-elf/pr20513e.d: Likewise.
575         * testsuite/ld-elf/pr20513f.d: Likewise.
576
577 2016-08-31  Alan Modra  <amodra@gmail.com>
578
579         PR 20513
580         * ldlang.c (section_already_linked): Deal with SHF_EXCLUDE sections.
581
582 2016-08-31  Alan Modra  <amodra@gmail.com>
583
584         * testsuite/ld-powerpc/vle-multiseg-1.d: Adjust to suit segment change.
585         * testsuite/ld-powerpc/vle-multiseg-2.d: Likewise.
586         * testsuite/ld-powerpc/vle-multiseg-3.d: Likewise.
587         * testsuite/ld-powerpc/vle-multiseg-6.d: Likewise.
588         * testsuite/ld-powerpc/vle-reloc-2.d: Likewise.
589
590 2016-08-30  Cupertino Miranda  <cmiranda@synopsys.com>
591
592         * testsuite/ld-arc/tls_gs-01.d: Set to XFAIL on arc*-*-elf*.
593         * testsuite/ld-arc/tls_ie-01.d: Likewise.
594
595 2016-08-29  H.J. Lu  <hongjiu.lu@intel.com>
596
597         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/19784 tests only
598         if ifunc attribute works.
599
600 2016-08-29  H.J. Lu  <hongjiu.lu@intel.com>
601
602         PR ld/14961
603         PR ld/20515
604         * testsuite/ld-i386/i386.exp: Run pr20515.
605         * testsuite/ld-i386/pr20515.d: New file.
606         * testsuite/ld-i386/pr20515.s: Likewise.
607         * testsuite/ld-ifunc/ifunc-14a.s: Use R_386_PLT32 to call IFUNC
608         function.
609         * testsuite/ld-ifunc/ifunc-14c.s: Likewise.
610         * testsuite/ld-ifunc/ifunc-2-i386.s: Likewise.
611         * testsuite/ld-ifunc/ifunc-2-local-i386.s: Likewise.
612         * testsuite/ld-ifunc/ifunc.exp: Move PR ld/19784 tests to ...
613         * testsuite/ld-x86-64/x86-64.exp: Here.
614         * testsuite/ld-ifunc/pr19784a.c: Moved to ...
615         * testsuite/ld-x86-64/pr19784a.c: Here.
616         * testsuite/ld-ifunc/pr19784b.c: Moved to ...
617         * testsuite/ld-x86-64/pr19784b.c: Here.
618         * testsuite/ld-ifunc/pr19784c.c: Moved to ...
619         * testsuite/ld-x86-64/pr19784c.c: Here.
620
621 2016-08-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
622
623         * emultempl/armelf.em (params): New static variable.
624         (thumb_entry_symbol, byteswap_code, target1_is_rel, target2_type,
625         fix_v4bx, use_blx, vfp11_denorm_fix, stm32l4xx_fix, fix_cortex_a8,
626         no_enum_size_warning, no_wchar_size_warning, pic_veneer,
627         merge_exidx_entries, fix_arm1176, cmse_implib): move as part of the
628         above new structure.
629         (arm_elf_before_allocation): Access static variable from the params
630         structure.
631         (gld${EMULATION_NAME}_finish): Likewise.
632         (arm_elf_create_output_section_statements): Likewise and pass the
633         address of that structure to bfd_elf32_arm_set_target_relocs instead
634         of the static variables.
635         (PARSE_AND_LIST_ARGS_CASES): Access static variable from the params
636         structure.
637
638 2016-08-26  Cupertino Miranda  <cmiranda@synopsys.com>
639
640         * ld/testsuite/ld-arc/tls_gd-01.s: Added a testcase for this patch.
641         * ld/testsuite/ld-arc/tls_gd-01.d: Likewise.
642
643 2016-08-26  Cupertino Miranda  <cmiranda@synopsys.com>
644
645         * testsuite/ld-arc/tls_ie-01.s: Added to verify associated fix.
646         * testsuite/ld-arc/tls_ie-01.d: Likewise
647
648 2016-08-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
649
650         * emultempl/armelf.em (in_implib_filename): Declare and initialize new
651         variable.
652         (arm_elf_create_output_section_statements): Open import input library
653         file for writing and pass resulting in_implib_bfd to
654         bfd_elf32_arm_set_target_relocs.
655         (PARSE_AND_LIST_PROLOGUE): Define OPTION_IN_IMPLIB option.
656         (PARSE_AND_LIST_LONGOPTS): Define --in-implib option.
657         (PARSE_AND_LIST_OPTIONS): Add help message for --in-implib option.
658         (PARSE_AND_LIST_ARGS_CASES): Handle new OPTION_IN_IMPLIB case.
659         * ld.texinfo (--cmse-implib): Update to mention --in-implib.
660         (--in-implib): Document new option.
661         * NEWS: Likewise.
662         * testsuite/ld-arm/arm-elf.exp
663         (Secure gateway import library generation): add --defsym VER=1 to gas
664         CLI.
665         (Secure gateway import library generation: errors): Likewise.
666         (Input secure gateway import library): New test.
667         (Input secure gateway import library: no output import library):
668         Likewise.
669         (Input secure gateway import library: not an SG input import library):
670         Likewise.
671         (Input secure gateway import library: earlier stub section base):
672         Likewise.
673         (Input secure gateway import library: later stub section base):
674         Likewise.
675         (Input secure gateway import library: veneer comeback): Likewise.
676         (Input secure gateway import library: entry function change):
677         Likewise.
678         * testsuite/ld-arm/cmse-implib.s: Add input import library testing.
679         * testsuite/ld-arm/cmse-implib.rd: Update accordingly.
680         * testsuite/ld-arm/cmse-new-implib.out: New file.
681         * testsuite/ld-arm/cmse-new-implib.rd: Likewise.
682         * testsuite/ld-arm/cmse-new-implib-no-output.out: Likewise.
683         * testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out: Likewise.
684         * testsuite/ld-arm/cmse-new-earlier-later-implib.out: Likewise.
685         * testsuite/ld-arm/cmse-new-comeback-implib.rd: Likewise.
686         * testsuite/ld-arm/cmse-new-wrong-implib.out: Likewise.
687
688 2016-08-25  Alan Modra  <amodra@gmail.com>
689
690         * configure.tgt (powerpc*-*-linux* et al): Rewrite, adding LE
691         support for BE.  First output all target endian configury
692         values, then opposite endian.  Handle more tooldirs.  Fix
693         bogus matches with strings in MANUF-OS part of target triple.
694
695 2016-08-23  Alan Modra  <amodra@gmail.com>
696
697         * testsuite/lib/ld-lib.exp (run_cc_link_tests): Don't fail tests
698         twice.
699
700 2016-08-19  Nick Clifton  <nickc@redhat.com>
701
702         * emultempl/aarch64elf.em (before_parse): Initialise the relro
703         field in the link_info structure.
704         * emultempl/armelf.em (before_parse): Likewise.
705         * emultempl/linux.em (before_parse): Likewise.
706         * emultempl/scoreelf.em (before_parse): Likewise.
707
708         * testsuite/ld-alpha/tlsbin.rd: Adjust expected ordering of sections.
709         * testsuite/ld-alpha/tlsbinr.rd: Likewise.
710         * testsuite/ld-alpha/tlspic.rd: Likewise.
711         * testsuite/ld-cris/libdso-2.d: Likewise.
712         * testsuite/ld-i386/nogot1.d: Likewise.
713         * testsuite/ld-i386/pr12718.d: Likewise.
714         * testsuite/ld-i386/pr12921.d: Likewise.
715         * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
716         * testsuite/ld-i386/tlsbin.rd: Likewise.
717         * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
718         * testsuite/ld-i386/tlsbin2.rd: Likewise.
719         * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
720         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
721         * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
722         * testsuite/ld-i386/tlsdesc.rd: Likewise.
723         * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
724         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
725         * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
726         * testsuite/ld-i386/tlsnopic.rd: Likewise.
727         * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
728         * testsuite/ld-i386/tlspic.rd: Likewise.
729         * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
730         * testsuite/ld-i386/tlspic2.rd: Likewise.
731         * testsuite/ld-ia64/tlsbin.rd: Likewise.
732         * testsuite/ld-ia64/tlspic.rd: Likewise.
733         * testsuite/ld-mips-elf/attr-gnu-4-10.d: Likewise.
734         * testsuite/ld-mips-elf/attr-gnu-4-50.d: Likewise.
735         * testsuite/ld-mips-elf/attr-gnu-4-60.d: Likewise.
736         * testsuite/ld-mips-elf/attr-gnu-4-70.d: Likewise.
737         * testsuite/ld-mmix/bspec1.d: Likewise.
738         * testsuite/ld-mmix/bspec2.d: Likewise.
739         * testsuite/ld-mmix/local1.d: Likewise.
740         * testsuite/ld-mmix/local3.d: Likewise.
741         * testsuite/ld-mmix/local5.d: Likewise.
742         * testsuite/ld-mmix/local7.d: Likewise.
743         * testsuite/ld-mmix/undef-3.d: Likewise.
744         * testsuite/ld-powerpc/tlsexe.r: Likewise.
745         * testsuite/ld-powerpc/tlsexe32.r: Likewise.
746         * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
747         * testsuite/ld-powerpc/tlsso.r: Likewise.
748         * testsuite/ld-powerpc/tlsso32.r: Likewise.
749         * testsuite/ld-powerpc/tlstocso.r: Likewise.
750         * testsuite/ld-s390/tlsbin.rd: Likewise.
751         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
752         * testsuite/ld-s390/tlspic.rd: Likewise.
753         * testsuite/ld-s390/tlspic_64.rd: Likewise.
754         * testsuite/ld-sh/sh64/crange1.rd: Likewise.
755         * testsuite/ld-sh/sh64/crange2.rd: Likewise.
756         * testsuite/ld-sh/sh64/crange3-cmpct.rd: Likewise.
757         * testsuite/ld-sh/sh64/crange3-media.rd: Likewise.
758         * testsuite/ld-sh/sh64/crange3.rd: Likewise.
759         * testsuite/ld-sh/sh64/crangerel1.rd: Likewise.
760         * testsuite/ld-sh/sh64/crangerel2.rd: Likewise.
761         * testsuite/ld-sh/tlsbin-2.d: Likewise.
762         * testsuite/ld-sh/tlspic-2.d: Likewise.
763         * testsuite/ld-sparc/gotop32.rd: Likewise.
764         * testsuite/ld-sparc/gotop64.rd: Likewise.
765         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
766         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
767         * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
768         * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
769         * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
770         * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
771         * testsuite/ld-tic6x/common.d: Likewise.
772         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
773         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
774         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
775         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
776         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
777         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
778         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
779         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
780         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
781         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
782         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
783         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
784         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
785         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
786         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
787         * testsuite/ld-x86-64/nogot1.d: Likewise.
788         * testsuite/ld-x86-64/pr12718.d: Likewise.
789         * testsuite/ld-x86-64/pr12921.d: Likewise.
790         * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
791         * testsuite/ld-x86-64/split-by-file.rd: Likewise.
792         * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
793         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
794         * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
795         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
796         * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
797         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
798         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
799         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
800         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
801         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
802         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
803         * testsuite/ld-x86-64/tlspic.rd: Likewise.
804         * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
805         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
806         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
807         * testsuite/ld-xtensa/tlspic.rd: Likewise.
808
809 2016-08-18  Alan Modra  <amodra@gmail.com>
810
811         * testsuite/ld-undefined/weak-undef.exp: Use unsupported not
812         unresolved.
813
814 2016-08-12  Alan Modra  <amodra@gmail.com>
815
816         * testsuite/ld-tic6x/shlib-1.rd: Correct expected .dynsym sh_info.
817         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
818         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
819         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
820         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
821         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
822         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
823         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
824         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
825         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
826         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
827         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
828         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
829
830 2016-08-12  Alan Modra  <amodra@gmail.com>
831
832         * testsuite/ld-undefined/weak-fundef.s: New.
833         * testsuite/ld-undefined/weak-undef.t: Don't specify filename.
834         * testsuite/ld-undefined/weak-undef.exp: Run new tests.  Rearrange
835         much of old code.  Use is_elf_format to select targets.
836
837 2016-08-11  Alan Modra  <amodra@gmail.com>
838
839         PR ld/20436
840         * testsuite/lib/ld-lib.exp (at_least_gcc_version): Don't ignore
841         remote_exec status.
842         (check_gcc_plugin_enabled): Likewise.  Revert previous patch.
843
844 2016-08-11  Nick Clifton  <nickc@redhat.com>
845
846         PR ld/20436
847         * testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): When not
848         testing remotely, check to see if target compiler is installed
849         before trying to run it.
850
851 2016-08-10  Maciej W. Rozycki  <macro@imgtec.com>
852
853         PR ld/15428
854         * testsuite/ld-mips-elf/mips-elf.exp: Un-KFAIL `__ehdr_start'
855         test 2.
856
857 2016-08-10  Maciej W. Rozycki  <macro@imgtec.com>
858
859         * testsuite/ld-mips-elf/pic-and-nonpic-1-micromips-rel.dd: New
860         test.
861         * testsuite/ld-mips-elf/pic-and-nonpic-1-micromips-rel.nd: New
862         test.
863         * testsuite/ld-mips-elf/pic-and-nonpic-1-micromips.dd: New test.
864         * testsuite/ld-mips-elf/pic-and-nonpic-1-micromips.nd: New test.
865         * testsuite/ld-mips-elf/pic-and-nonpic-1a-micromips.s: New test
866         source.
867         * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s: New test
868         source.
869         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
870
871 2016-08-09  H.J. Lu  <hongjiu.lu@intel.com>
872
873         PR ld/20436
874         * testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): New
875         proc.
876         (check_lto_available): Return 0 if check_gcc_plugin_enabled
877         returns 0.
878         (check_lto_fat_available): Likewise.
879         (check_lto_shared_available): Likewise.
880
881 2016-08-09  Roland McGrath  <roland@hack.frob.com>
882
883         * emulparams/armelf.sh (GENERATE_PIE_SCRIPT): Set to yes.
884
885 2016-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
886
887         * emultempl/armelf.em (cmse_implib): Declare and define this new
888         static variable.
889         (arm_elf_create_output_section_statements): Add new cmse_implib
890         parameter.
891         (OPTION_CMSE_IMPLIB): Define macro.
892         (PARSE_AND_LIST_LONGOPTS): Add entry for new --cmse-implib switch.
893         (PARSE_AND_LIST_OPTIONS): Likewise.
894         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_CMSE_IMPLIB case.
895         * ld.texinfo (--cmse-implib): Document new option.
896         * testsuite/ld-arm/arm-elf.exp
897         (Secure gateway import library generation): New test.
898         (Secure gateway import library generation: errors): Likewise.
899         * testsuite/ld-arm/cmse-implib.s: New file.
900         * testsuite/ld-arm/cmse-implib-errors.out: Likewise.
901         * testsuite/ld-arm/cmse-implib.rd: Likewise.
902
903 2016-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
904
905         * ld.texinfo (Placement of SG veneers): New concept entry.
906         * testsuite/ld-arm/arm-elf.exp
907         (Secure gateway veneers: no .gnu.sgstubs section): New test.
908         (Secure gateway veneers: wrong entry functions): Likewise.
909         (Secure gateway veneers (ARMv8-M Baseline)): Likewise.
910         (Secure gateway veneers (ARMv8-M Mainline)): Likewise.
911         * testsuite/ld-arm/cmse-veneers.s: New file.
912         * testsuite/ld-arm/cmse-veneers.d: Likewise.
913         * testsuite/ld-arm/cmse-veneers.rd: Likewise.
914         * testsuite/ld-arm/cmse-veneers.sd: Likewise.
915         * testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out: Likewise.
916         * testsuite/ld-arm/cmse-veneers-wrong-entryfct.out: Likewise.
917
918 2016-08-02  Nick Clifton  <nickc@redhat.com>
919
920         PR ld/17739
921         * emulparams/shelf.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Define with
922         valye 'yes'.
923         * emulparams/shelf32.sh: Likewise.
924         * emulparams/shelf32.sh: Likewise.
925         * emulparams/shelf_nto.sh: Likewise.
926         * emulparams/shelf_nto.sh: Likewise.
927         * emulparams/shelf_vxworks.sh: Likewise.
928         * emulparams/shelf_vxworks.sh: Likewise.
929         * emulparams/shlelf32_linux.sh: Likewise.
930         * emulparams/shlelf32_linux.sh: Likewise.
931         * emulparams/shlelf_linux.sh: Likewise.
932         * emulparams/shlelf_linux.sh: Likewise.
933         * emulparams/shlelf_nto.sh: Likewise.
934         * emulparams/shlelf_nto.sh: Likewise.
935
936 2016-07-27  Maciej W. Rozycki  <macro@imgtec.com>
937
938         * testsuite/ld-mips-elf/micromips-branch-absolute.d: Update
939         patterns for branch compaction.
940         * testsuite/ld-mips-elf/micromips-branch-absolute-addend.d:
941         Likewise.
942
943 2016-07-27  Nick Clifton  <nickc@redhat.com>
944
945         * testsuite/ld-gc/personality.d: Use "target cfi" to restrict the
946         test to targets which support cfi.
947
948 2016-07-27  Igor Kudrin  <ikudrin@accesssoftek.com>
949
950         * ldbuildid.c (generate_build_id): Warning fix.
951
952 2016-07-26  Maciej W. Rozycki  <macro@imgtec.com>
953
954         * testsuite/ld-mips-elf/compressed-plt-1.s: Add branch support.
955         * testsuite/ld-mips-elf/compressed-plt-1a.s: Likewise.
956         * testsuite/ld-mips-elf/compressed-plt-1b.s: Likewise.
957         * testsuite/ld-mips-elf/compressed-plt-1-o32-branch.od: New
958         test.
959         * testsuite/ld-mips-elf/compressed-plt-1-o32-branch.rd: New
960         test.
961         * testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-bronly.od:
962         New test.
963         * testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-bronly.rd:
964         New test.
965         * testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-branch.od:
966         New test.
967         * testsuite/ld-mips-elf/compressed-plt-1-o32-mips16-branch.rd:
968         New test.
969         * testsuite/ld-mips-elf/compressed-plt-1-o32-umips-bronly.od:
970         New test.
971         * testsuite/ld-mips-elf/compressed-plt-1-o32-umips-bronly.rd:
972         New test.
973         * testsuite/ld-mips-elf/compressed-plt-1-o32-umips-branch.od:
974         New test.
975         * testsuite/ld-mips-elf/compressed-plt-1-o32-umips-branch.rd:
976         New test.
977         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
978
979 2016-07-26  Igor Kudrin  <ikudrin@accesssoftek.com>
980
981         * ldbuildid.c: Changes for MinGW32:
982         Include windows.h and rpcdce.h.
983         (validate_build_id_style): Allow "uuid" style.
984         (generate_build_id): Fill in id_bits using UuidCreate().
985
986 2016-07-25  Alan Modra  <amodra@gmail.com>
987
988         * testsuite/ld-elf/sec64k.exp: Run test for arc, msp430, or1k
989         and m32r.  Correct comment.  Relax ld -r match to account for
990         msp increased number of default sections.
991
992 2016-07-22  Cupertino Miranda  <cmiranda@synopsys.com>
993
994         * testsuite/ld-arc/got-01.d: New file.
995         * testsuite/ld-arc/got-01.s: New file.
996
997 2016-07-21  H.J. Lu  <hongjiu.lu@intel.com>
998
999         * configure: Regenerated.
1000
1001 2016-07-21  Alan Modra  <amodra@gmail.com>
1002
1003         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Replace
1004         "targets_to_xfail" parameter with "args".
1005         * testsuite/ld-elf/compress.exp: Remove empty list of xfails on
1006         all calls to run_ld_link_exec_tests.
1007         * testsuite/ld-elf/dwarf.exp: Likewise.
1008         * testsuite/ld-elf/indirect.exp: Likewise.
1009         * testsuite/ld-elf/wrap.exp: Likewise.
1010         * testsuite/ld-i386/i386.exp: Likewise.
1011         * testsuite/ld-i386/no-plt.exp: Likewise.
1012         * testsuite/ld-i386/tls.exp: Likewise.
1013         * testsuite/ld-ifunc/ifunc.exp: Likewise.
1014         * testsuite/ld-pie/pie.exp: Likewise.
1015         * testsuite/ld-plugin/lto.exp: Likewise.
1016         * testsuite/ld-size/size.exp: Likewise.
1017         * testsuite/ld-x86-64/mpx.exp: Likewise.
1018         * testsuite/ld-x86-64/no-plt.exp: Likewise.
1019         * testsuite/ld-x86-64/tls.exp: Likewise.
1020         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1021         * testsuite/ld-elf/elf.exp: Likewise.  Reorder args when providing
1022         xfails and simplify lists.
1023         * testsuite/ld-elf/shared.exp: Likewise.
1024
1025 2016-07-21  Alan Modra  <amodra@gmail.com>
1026
1027         * testsuite/lib/ld-lib.exp (run_ld_link_tests): Add optional
1028         parameter to pass list of xfails.
1029         * testsuite/ld-elf/elf.exp: Add xfails for implib tests.  Tidy
1030         implib test formatting.  Don't set .data start address.
1031         * testsuite/ld-elf/implib.s: Remove first .bss directive and
1032         replace second one with equivalent .section directive.
1033         * testsuite/ld-elf/empty-implib.out: Add expected final error.
1034         * testsuite/ld-elf/implib.rd: Update.
1035
1036 2016-07-20  Alan Modra  <amodra@gmail.com>
1037
1038         * ldexp.c (exp_unop, exp_binop, exp_trinop, exp_nameop): Don't
1039         fold expression.
1040         * testsuite/ld-elf/maxpage3b.d: Expect correct maxpagesize.
1041
1042 2016-07-19  Roland McGrath  <roland@hack.frob.com>
1043
1044         * emulparams/aarch64elf.sh (GENERATE_PIE_SCRIPT): Set to yes.
1045         * emulparams/aarch64elf32.sh: Likewise.
1046
1047 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
1048
1049         * testsuite/ld-mips-elf/unaligned-branch-2.d: Update error
1050         messages expected.
1051         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
1052         * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
1053         * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
1054         * testsuite/ld-mips-elf/bal-jalx-addend.d: New test.
1055         * testsuite/ld-mips-elf/bal-jalx-local.d: New test.
1056         * testsuite/ld-mips-elf/bal-jalx-pic.d: New test.
1057         * testsuite/ld-mips-elf/bal-jalx-addend-n32.d: New test.
1058         * testsuite/ld-mips-elf/bal-jalx-local-n32.d: New test.
1059         * testsuite/ld-mips-elf/bal-jalx-pic-n32.d: New test.
1060         * testsuite/ld-mips-elf/bal-jalx-addend-n64.d: New test.
1061         * testsuite/ld-mips-elf/bal-jalx-local-n64.d: New test.
1062         * testsuite/ld-mips-elf/bal-jalx-pic-n64.d: New test.
1063         * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
1064         * testsuite/ld-mips-elf/unaligned-jalx-3.d: New test.
1065         * testsuite/ld-mips-elf/unaligned-jalx-addend-2.d: New test.
1066         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: New test.
1067         * testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
1068         * testsuite/ld-mips-elf/unaligned-jalx-3.s: New test source.
1069         * testsuite/ld-mips-elf/unaligned-jalx-addend-2.s: New test
1070         source.
1071         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.s: New test
1072         source.
1073         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1074
1075 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
1076
1077         * testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error message
1078         expected.
1079         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
1080         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
1081         Likewise.
1082         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
1083         Likewise.
1084         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
1085         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
1086         * testsuite/ld-mips-elf/undefweak-overflow.s: Add jumps,
1087         microMIPS BAL and MIPS16 instructions.
1088         * testsuite/ld-mips-elf/undefweak-overflow.d: Update
1089         accordingly.
1090         * testsuite/ld-mips-elf/unaligned-branch-2.d: New test.
1091         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: New test.
1092         * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: New test.
1093         * testsuite/ld-mips-elf/unaligned-branch-mips16.d: New test.
1094         * testsuite/ld-mips-elf/unaligned-branch-micromips.d: New test.
1095         * testsuite/ld-mips-elf/unaligned-jump-mips16.d: New test.
1096         * testsuite/ld-mips-elf/unaligned-jump-micromips.d: New test.
1097         * testsuite/ld-mips-elf/unaligned-jump.d: New test.
1098         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1099
1100 2016-07-19  Andrew Burgess  <andrew.burgess@embecosm.com>
1101
1102         * plugin.c (plugin_call_claim_file): Restore the file offset after
1103         an unsuccessful attempt to claim a file.
1104         * testplug.c (bytes_to_read_before_claim): New global.
1105         (record_read_length): New function, sets new global
1106         bytes_to_read_before_claim.
1107         (parse_option): Handle 'read:<NUMBER>' option.
1108         (onclaim_file): Read file content before checking for claim.
1109         * testsuite/ld-plugin/plugin-30.d: New file.
1110         * testsuite/ld-plugin/plugin.exp: Add new test.
1111
1112 2016-07-16  Alan Modra  <amodra@gmail.com>
1113
1114         * plugin.c: Don't include libbfd.h.  Include plugin-api.h
1115         before bfd/plugin.h.
1116         (plugin_object_p): Use bfd_plugin_open_input.
1117
1118 2016-07-16  Alan Modra  <amodra@gmail.com>
1119
1120         * ldlang.c (open_output): Replace bfd_search_for_target with
1121         bfd_iterate_over_targets.  Localize vars.
1122
1123 2016-07-16  Alan Modra  <amodra@gmail.com>
1124
1125         * ldlang.c: Don't include libbfd.h.
1126         * emultempl/nds32elf.em: Likewise.
1127         * emultempl/ppc64elf.em: Likewise.
1128         * emultempl/ppc32elf.em: Likewise.
1129         (pagesize): Delete.
1130         (params): Update init.
1131         (ppc_after_open_output): Use params.pagesize.  Don't call bfd_log2.
1132         (PARSE_AND_LIST_ARGS_CASES): Use params.pagesize.
1133         * emultempl/sh64elf.em: Don't include libbfd.h.
1134         (after_allocation): Use ASSERT, not BFD_ASSERT.
1135         * emultempl/xtensaelf.em: Don't include libbfd.h.
1136         (replace_insn_sec_with_prop_sec): Use xmalloc, not bfd_malloc.
1137         * Makefile.am: Update dependencies.
1138         * Makefile.in: Regenerate.
1139
1140 2016-07-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1141             Nick Clifton  <nickc@redhat.com>
1142
1143         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Open import
1144         library file for writing and initialize implib_bfd field of link_info
1145         structure.
1146         * emultempl/pe.em (pe_implib_filename): Remove variable declaration.
1147         (OPTION_IMPLIB_FILENAME): Remove macro definition.
1148         (gld${EMULATION_NAME}_add_options): Remove --out-implib option.
1149         (gld_${EMULATION_NAME}_list_options): Likewise.
1150         (gld${EMULATION_NAME}_handle_option): Likewise.
1151         (gld_${EMULATION_NAME}_finish): Use command_line.out_implib_filename
1152         instead of pe_implib_filename.
1153         * emultempl/pep.em (pep_implib_filename): Remove variable declaration.
1154         (OPTION_IMPLIB_FILENAME): Remove enumerator.
1155         (gld${EMULATION_NAME}_add_options): Remove --out-implib option.
1156         (gld_${EMULATION_NAME}_list_options): Likewise.
1157         (gld${EMULATION_NAME}_handle_option): Likewise.
1158         (gld_${EMULATION_NAME}_finish): Use command_line.out_implib_filename
1159         instead of pep_implib_filename.
1160         * ld.h (args_type): Declare new out_implib_filename field.
1161         * ld.texinfo (--out-implib): Move documentation to arch-independent
1162         part and rephrase to apply to ELF targets.
1163         * ldexp.c (exp_fold_tree_1): Set ldscript_def field to 1 for symbols
1164         defined in linker scripts.
1165         * ldlex.h (enum option_values): Declare new OPTION_OUT_IMPLIB
1166         enumerator.
1167         * lexsup.c (ld_options): Add entry for new --out-implib switch.
1168         (parse_args): Handle OPTION_OUT_IMPLIB case.
1169         * testsuite/ld-elf/elf.exp (Generate empty import library): New test.
1170         (Generate import library): Likewise.
1171         * testsuite/ld-elf/implib.s: Likewise.
1172         * testsuite/ld-elf/implib.rd: New file.
1173         * testsuite/ld-elf/empty-implib.out: Likewise
1174
1175 2016-07-15  Nick Clifton  <nickc@redhat.com>
1176
1177         * testsuite/ld-arc/arc.exp: Always run the sda-relocs test in
1178         little endian mode.
1179
1180 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
1181
1182         * testsuite/ld-mips-elf/mips-elf.exp: Run
1183         `branch-absolute-addend', `mips16-branch-absolute',
1184         `mips16-branch-absolute-addend' and
1185         `micromips-branch-absolute-addend'.
1186
1187 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
1188
1189         * testsuite/ld-mips-elf/mips16-branch-absolute.d: New test.
1190         * testsuite/ld-mips-elf/mips16-branch-absolute-n32.d: New test.
1191         * testsuite/ld-mips-elf/mips16-branch-absolute-n64.d: New test.
1192         * testsuite/ld-mips-elf/mips16-branch-absolute-addend.d: New
1193         test.
1194         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d: New
1195         test.
1196         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d: New
1197         test.
1198         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except
1199         from `mips16-branch-absolute' and
1200         `mips16-branch-absolute-addend', referred indirectly only.
1201
1202 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
1203
1204         * testsuite/ld-mips-elf/branch-absolute.d: New test.
1205         * testsuite/ld-mips-elf/branch-absolute-n32.d: New test.
1206         * testsuite/ld-mips-elf/branch-absolute-n64.d: New test.
1207         * testsuite/ld-mips-elf/branch-absolute-addend.d: New test.
1208         * testsuite/ld-mips-elf/branch-absolute-addend-n32.d: New test.
1209         * testsuite/ld-mips-elf/branch-absolute-addend-n64.d: New test.
1210         * testsuite/ld-mips-elf/micromips-branch-absolute.d: New test.
1211         * testsuite/ld-mips-elf/micromips-branch-absolute-n32.d: New
1212         test.
1213         * testsuite/ld-mips-elf/micromips-branch-absolute-n64.d: New
1214         test.
1215         * testsuite/ld-mips-elf/micromips-branch-absolute-addend.d: New
1216         test.
1217         * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d:
1218         New test.
1219         * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d:
1220         New test.
1221         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests, except
1222         from `branch-absolute-addend' and
1223         `micromips-branch-absolute-addend', referred indirectly only.
1224
1225 2016-07-14  Claudiu Zissulescu  <claziss@synopsys.com>
1226
1227         * emulparams/arcelf.sh (SDATA_START_SYMBOLS): Add offset.
1228         * testsuite/ld-arc/sda-relocs.dd: New file.
1229         * testsuite/ld-arc/sda-relocs.ld: Likewise.
1230         * testsuite/ld-arc/sda-relocs.rd: Likewise.
1231         * testsuite/ld-arc/sda-relocs.s: Likewise.
1232         * testsuite/ld-arc/arc.exp: Add SDA tests.
1233
1234 2016-07-11  Claudiu Zissulescu  <claziss@synopsys.com>
1235
1236         * testsuite/ld-arc/nps-1b.err: Update test to handle more
1237         verbosity.
1238
1239 2016-07-09  Alan Modra  <amodra@gmail.com>
1240
1241         * testsuite/ld-powerpc/elfv2exe.d: Update.
1242
1243 2016-07-06  James Bowman  <james.bowman@ftdichip.com>
1244
1245         * scripttempl/ft32.sc (__PMSIZE): Correct __PMSIZE_.
1246         (DATA): add ALIGN.
1247         (BSS): add ALIGN
1248
1249 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1250
1251         * testsuite/ld-plugin/lto.exp: Add -flto to PR ld/20321 test.
1252
1253 2016-07-05  Andre Vieria  <andre.simoesdiasvieira@arm.com>
1254
1255         * testsuite/ld-arm/farcall-thumb2-purecode.d: New test result.
1256         * testsuite/ld-arm/farcall-thumb2-purecode.s: New test.
1257         * testsuite/ld-arm/arm-elf.exp: Run it.
1258
1259 2016-07-05  Andre Vieria  <andre.simoesdiasvieira@arm.com>
1260
1261         * testsuite/ld-arm/arm_noread.ld: Renamed to ...
1262         testsuite/ld-arm/arm_purecode.ld: ... this, and replaced
1263         all noread's by purecode.
1264
1265 2016-07-05  Jan Beulich  <jbeulich@suse.com>
1266
1267         * ldexp.c (exp_fold_tree_1): Set linker_def field based on
1268         assignment line number.
1269         * ldlex.l (lineno): Drop initializer.
1270         (<<EOF>>): Set lineno to zero after reaching top of stack.
1271
1272 2016-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1273
1274         PR ld/20321
1275         * plugin.c (plugin_opt_plugin): Warn and return if plugin has
1276         been loaded already.
1277         * testsuite/ld-plugin/lto.exp: Run PR ld/20321 test.
1278         * testsuite/ld-plugin/pr20321.c: New file.
1279
1280 2016-07-04  Nick Clifton  <nickc@redhat.com>
1281
1282         * scripttempl/ft32.sc (__PMSIZE_): If not defined, set to 256K.
1283         (__RAMSIZE): If not defined, set to 64K.
1284         (MEMORY): Set the flash region size to __PMSIZE and the ram region
1285         size to __RAMSIZE.
1286
1287 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
1288
1289         * testsuite/ld-mips-elf/branch-misc-2.d: New test.
1290         * testsuite/ld-mips-elf/mips-elf.exp: Run it.
1291
1292 2016-07-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1293
1294         * testsuite/ld-arm/arm-elf.exp (Thumb-2 BL): Assemble for ARMv7.
1295         (Thumb-2 BL on ARMv6-M): New testcase.
1296         * testsuite/ld-arm/thumb2-bl.d: Do not try to match testcase filename.
1297         * testsuite/ld-arm/thumb2-bl.s: Do not select architecture.
1298
1299 2016-07-01  Tristan Gingold  <gingold@adacore.com>
1300
1301         * NEWS: Add marker for 2.27.
1302
1303 2016-06-28  H.J. Lu  <hongjiu.lu@intel.com>
1304
1305         * testsuite/ld-gc/gc.exp: Run pr20306 test.
1306         * ld-gc/pr20306.c: New file.
1307         * ld-gc/pr20306.d: Likewise.
1308
1309 2016-06-28  Nick Clifton  <nickc@redhat.com>
1310
1311         * testsuite/ld-elf/comm-data.exp: Expect comm-data2 test to fail
1312         for bfin.
1313         * testsuite/ld-elf/elf.exp: Expect pr14170 and symbolic function
1314         tests to fail for bfin.
1315         * testsuite/ld-elf/endsym.d: Expect to fail with cr16, crx, dlx,
1316         nds32 and visium.
1317         * testsuite/ld-elf/var1.d: Expect to fail with d30v, dlx, ft32 and
1318         microblaze.
1319         * testsuite/ld-pe/pe.exp: Expect foreign symbol test to fail for
1320         mcore-pe.
1321
1322 2016-06-28  Nick Clifton  <nickc@redhat.com>
1323
1324         * testsuite/ld-elf/merge.d: Add m68hc11 to list of targets that
1325         expect to fail this test.
1326         * testsuite/ld-scripts/overlay-size.d: Skip the entire test for
1327         RX.
1328         * testsuite/ld-scripts/rgn-at10.d: No longer expect this test to
1329         fail for the RX.
1330         * testsuite/ld-scripts/rgn-at11.d: Likewise.
1331         * testsuite/ld-scripts/rgn-at2.d: Likewise.
1332         * testsuite/ld-scripts/rgn-at6.d: Likewise.
1333         * testsuite/ld-scripts/rgn-at7.d: Likewise.
1334         * testsuite/ld-scripts/rgn-at8.d: Likewise.
1335
1336 2016-06-28  James Clarke  <jrtc27@jrtc27.com>
1337
1338         * testsuite/ld-elf/symbolic-func.r: Allow non-zero offsets from
1339         .text.
1340
1341 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
1342
1343         * testsuite/ld-mips-elf/attr-gnu-4-10.d: Match any UNIX OS/ABI.
1344         * testsuite/ld-mips-elf/attr-gnu-4-50.d: Likewise.
1345         * testsuite/ld-mips-elf/attr-gnu-4-60.d: Likewise.
1346         * testsuite/ld-mips-elf/attr-gnu-4-70.d: Likewise.
1347
1348 2016-06-28  Alan Modra  <amodra@gmail.com>
1349
1350         PR ld/20302
1351         * testsuite/ld-scripts/pr20302.d: Exclude *-*-*aout.
1352
1353 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
1354
1355         * testsuite/ld-mips-elf/mips16-branch-2.d: New test.
1356         * testsuite/ld-mips-elf/mips16-branch-3.d: New test.
1357         * testsuite/ld-mips-elf/mips16-branch-addend-2.d: New test.
1358         * testsuite/ld-mips-elf/mips16-branch-addend-3.d: New test.
1359         * testsuite/ld-mips-elf/mips16-branch.s: New test source.
1360         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1361
1362 2016-06-27  Nick Clifton  <nickc@redhat.com>
1363
1364         PR ld/20302
1365         * lexsup.c (set_segment_start): If resetting the start address of
1366         a section, remember to generate a new script element as well.
1367         * testsuite/ld-scripts/pr20302.d: New test.
1368         * testsuite/ld-scripts/scripts.exp: Run the new test.
1369
1370 2016-06-24  Alan Modra  <amodra@gmail.com>
1371
1372         * testsuite/ld-aarch64/aarch64-elf.exp (aarch64_choose_ilp32_emul):
1373         Don't error out, always return an emulation.
1374
1375 2016-06-24  Dilyan Palauzov <dilyan.palauzov@aegee.org>
1376             H.J. Lu  <hongjiu.lu@intel.com>
1377
1378         * lexsup.c (elf_shlib_list_options): Check DEFAULT_LD_Z_RELRO
1379         for -z relro help message.
1380
1381 2016-06-22  Maciej W. Rozycki  <macro@imgtec.com>
1382
1383         * testsuite/ld-mips-elf/undefweak-overflow.d: Use wildcard
1384         address matching.
1385
1386 2016-06-22  Maciej W. Rozycki  <macro@imgtec.com>
1387
1388         * testsuite/ld-mips-elf/mips-elf.exp: Uniquely identify
1389         `undefweak-overflow' tests.
1390
1391 2016-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1392
1393         PR ld/20283
1394         * NEWS: Mention --enable-relro.
1395         * configure.ac: Add --enable-relro.
1396         (DEFAULT_LD_Z_RELRO): New.  Set by --enable-relro.
1397         * configure.tgt (ac_default_ld_z_relro): Default it to 1 for
1398         some Linux targets.
1399         * config.in: Regenerated.
1400         * configure: Likewise.
1401         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
1402         link_info.relro to DEFAULT_LD_Z_RELRO.
1403         * testsuite/config/default.exp (ld_elf_shared_opt): New.
1404         * testsuite/lib/ld-lib.exp (run_dump_test): Pass
1405         $ld_elf_shared_opt to ld for ELF targets with shared object
1406         support.
1407         (run_ld_link_tests): Likewise.
1408
1409 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
1410
1411         * testsuite/ld-mips-elf/mode-change-error-1a.s: Trigger an error
1412         twice rather than once.
1413         * testsuite/ld-mips-elf/mode-change-error-1.d: Adjust
1414         accordingly.  Remove the full stop from the end of the message.
1415
1416 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
1417
1418         * testsuite/ld-arc/nps-1a.d: Use -mcpu=arc700 -mnps400.
1419         * testsuite/ld-arc/nps-1b.d: Likewise.
1420
1421 2016-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1422
1423         PR ld/20267
1424         * testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
1425         PR ld/20267.
1426         (lto_run_tests): Likewise.
1427         * testsuite/ld-plugin/pr20267a.c: New file.
1428         * testsuite/ld-plugin/pr20267b.c: Likewise.
1429
1430 2016-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1431             Alan Modra  <amodra@gmail.com>
1432
1433         PR ld/20276
1434         * plugin.c (plugin_notice): Set non_ir_ref on common symbols.
1435         * testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
1436         PR ld/20276.
1437         (lto_run_tests): Likewise.
1438         * testsuite/ld-plugin/pass.out: New file.
1439         * testsuite/ld-plugin/pr20276a.c: Likewise.
1440         * testsuite/ld-plugin/pr20276b.c: Likewise.
1441
1442 2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1443
1444         * plugin.c (plugin_object_p): Replace bfd_plugin_uknown
1445         with bfd_plugin_unknown.
1446
1447 2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1448
1449         PR ld/20253
1450         * testsuite/ld-i386/i386.exp: Run PR ld/20253 tests.
1451         * testsuite/ld-i386/no-plt.exp: Likewise.
1452         * testsuite/ld-x86-64/no-plt.exp: Likewise.
1453         * testsuite/ld-i386/pr13302.d: Remove .rel.plt section.
1454         * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
1455         * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
1456         * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
1457         * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
1458         * testsuite/ld-x86-64/pr13082-5a.d: Likewise.
1459         * testsuite/ld-x86-64/pr13082-5b.d: Likewise.
1460         * testsuite/ld-x86-64/pr13082-6a.d: Likewise.
1461         * testsuite/ld-x86-64/pr13082-6b.d: Likewise.
1462         * testsuite/ld-i386/pr20244-2a.d: Remove .plt section.
1463         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
1464         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1465         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
1466         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1467         * testsuite/ld-i386/pr20244-2b.d: Updated.
1468         * testsuite/ld-i386/pr20244-2c.d: Likewise.
1469         * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
1470         * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
1471         * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
1472         * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
1473         * testsuite/ld-i386/pr20253-1a.c: New file.
1474         * testsuite/ld-i386/pr20253-1b.S: Likewise.
1475         * testsuite/ld-i386/pr20253-1c.S: Likewise.
1476         * testsuite/ld-i386/pr20253-1d.S: Likewise.
1477         * testsuite/ld-i386/pr20253-2a.c: Likewise.
1478         * testsuite/ld-i386/pr20253-2b.S: Likewise.
1479         * testsuite/ld-i386/pr20253-2c.S: Likewise.
1480         * testsuite/ld-i386/pr20253-2d.S: Likewise.
1481         * testsuite/ld-i386/pr20253-3.d: Likewise.
1482         * testsuite/ld-i386/pr20253-3.s: Likewise.
1483         * testsuite/ld-i386/pr20253-4.s: Likewise.
1484         * testsuite/ld-i386/pr20253-4a.d: Likewise.
1485         * testsuite/ld-i386/pr20253-4b.d: Likewise.
1486         * testsuite/ld-i386/pr20253-4c.d: Likewise.
1487         * testsuite/ld-i386/pr20253-5.d: Likewise.
1488         * testsuite/ld-i386/pr20253-5.s: Likewise.
1489         * testsuite/ld-ifunc/ifunc-23-x86.s: Likewise.
1490         * testsuite/ld-ifunc/ifunc-23a-x86.d: Likewise.
1491         * testsuite/ld-ifunc/ifunc-23b-x86.d: Likewise.
1492         * testsuite/ld-ifunc/ifunc-23c-x86.d: Likewise.
1493         * testsuite/ld-ifunc/ifunc-24-x86.s: Likewise.
1494         * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
1495         * testsuite/ld-ifunc/ifunc-24b-x86.d: Likewise.
1496         * testsuite/ld-ifunc/ifunc-24c-x86.d: Likewise.
1497         * testsuite/ld-ifunc/ifunc-25-x86.s: Likewise.
1498         * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
1499         * testsuite/ld-ifunc/ifunc-25b-x86.d: Likewise.
1500         * testsuite/ld-ifunc/ifunc-25c-x86.d: Likewise.
1501         * testsuite/ld-x86-64/pr20253-1.s: Likewise.
1502         * testsuite/ld-x86-64/pr20253-1a.d: Likewise.
1503         * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
1504         * testsuite/ld-x86-64/pr20253-1c.d: Likewise.
1505         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1506         * testsuite/ld-x86-64/pr20253-1e.d: Likewise.
1507         * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
1508         * testsuite/ld-x86-64/pr20253-1g.d: Likewise.
1509         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1510         * testsuite/ld-x86-64/pr20253-1i.d: Likewise.
1511         * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
1512         * testsuite/ld-x86-64/pr20253-1k.d: Likewise.
1513         * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
1514         * testsuite/ld-x86-64/pr20253-2a.c: Likewise.
1515         * testsuite/ld-x86-64/pr20253-2b.S: Likewise.
1516         * testsuite/ld-x86-64/pr20253-2c.S: Likewise.
1517         * testsuite/ld-x86-64/pr20253-2d.S: Likewise.
1518         * testsuite/ld-x86-64/pr20253-3.d: Likewise.
1519         * testsuite/ld-x86-64/pr20253-3.s: Likewise.
1520         * testsuite/ld-x86-64/pr20253-4.s: Likewise.
1521         * testsuite/ld-x86-64/pr20253-4a.d: Likewise.
1522         * testsuite/ld-x86-64/pr20253-4b.d: Likewise.
1523         * testsuite/ld-x86-64/pr20253-4c.d: Likewise.
1524         * testsuite/ld-x86-64/pr20253-4d.d: Likewise.
1525         * testsuite/ld-x86-64/pr20253-4e.d: Likewise.
1526         * testsuite/ld-x86-64/pr20253-4f.d: Likewise.
1527         * testsuite/ld-x86-64/pr20253-5.s: Likewise.
1528         * testsuite/ld-x86-64/pr20253-5a.d: Likewise.
1529         * testsuite/ld-x86-64/pr20253-5b.d: Likewise.
1530         * testsuite/ld-ifunc/ifunc-18a-i386.d: Remove extra IRELATIVE
1531         relocation.
1532         * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
1533         * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
1534         * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
1535         * testsuite/ld-ifunc/ifunc-18a.s: Fix a typo.
1536         * testsuite/ld-x86-64/x86-64.exp: Run pr20253-1 tests.
1537
1538 2016-06-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1539             Tony Wang  <tony.wang@arm.com>
1540
1541         * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall M profile):
1542         Assemble for ARMv6-M.
1543         (Thumb2-Thumb2 farcall M profile): New testcase.
1544         * testsuite/ld-arm/farcall-thumb2-thumb2-m.d: New file.
1545         * testsuite/ld-arm/jump-reloc-veneers-cond-long-backward.d: Update to
1546         reflect the use of Thumb-2 veneers for Thumb-2 capable targets.
1547         * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Likewise.
1548
1549 2016-06-16  H.J. Lu  <hongjiu.lu@intel.com>
1550
1551         * testsuite/ld-i386/i386.exp: Run pr19636-2e-nacl.
1552         * testsuite/ld-i386/pr19636-2e.d: Skip for NaCl targets.
1553         Remove .rel.plt section.
1554         * testsuite/ld-i386/pr19636-2e-nacl.d: New file.
1555
1556 2016-06-15  H.J. Lu  <hongjiu.lu@intel.com>
1557
1558         * testsuite/ld-i386/no-plt-check1a.S (check): Test static
1559         function pointer.
1560         * testsuite/ld-i386/no-plt-check1b.S (check): Likewise.
1561         * testsuite/ld-x86-64/no-plt-check1.S (check): Likewise.
1562         * testsuite/ld-i386/no-plt-extern1a.S (func_p): New.  Static
1563         function pointer.
1564         * testsuite/ld-i386/no-plt-extern1b.S (func_p): Likewise.
1565         * testsuite/ld-x86-64/no-plt-extern1.S (func_p): Likewise.
1566         * testsuite/ld-i386/no-plt-1a.dd: Updated.
1567         * testsuite/ld-i386/no-plt-1b.dd: Likewise.
1568         * testsuite/ld-i386/no-plt-1c.dd: Likewise.
1569         * testsuite/ld-i386/no-plt-1d.dd: Likewise.
1570         * testsuite/ld-i386/no-plt-1e.dd: Likewise.
1571         * testsuite/ld-i386/no-plt-1f.dd: Likewise.
1572         * testsuite/ld-i386/no-plt-1g.dd: Likewise.
1573         * testsuite/ld-i386/no-plt-1h.dd: Likewise.
1574         * testsuite/ld-i386/no-plt-1i.dd: Likewise.
1575         * testsuite/ld-i386/no-plt-1j.dd: Likewise.
1576         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
1577         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
1578         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
1579         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
1580         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
1581         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
1582         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
1583
1584 2016-06-14  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1585
1586         PR ld/20254
1587         * testsuite/ld-avr/avr-prop-6.d: New test.
1588         * testsuite/ld-avr/avr-prop-6.s: New test.
1589
1590 2016-06-14  Alan Modra  <amodra@gmail.com>
1591
1592         * ldbuildid.c: Formatting.
1593         * ldcref.c: Formatting.
1594         * ldctor.c: Formatting.
1595         * ldemul.c: Formatting.
1596         * ldexp.c: Formatting.
1597         * ldfile.c: Formatting.
1598         * ldlang.c: Formatting.
1599         * ldmain.c: Formatting.
1600         * ldwrite.c: Formatting.
1601
1602 2016-06-14  Alan Modra  <amodra@gmail.com>
1603
1604         * ldlang.c: Expand uses of bfd_my_archive.
1605         * ldmain.c: Likewise.
1606         * ldmisc.c: Likewise.
1607         * plugin.c: Likewise.
1608
1609 2016-06-14  Alan Modra  <amodra@gmail.com>
1610
1611         PR ld/20241
1612         * ldmain.c (add_archive_element): Just print file name of file within
1613         thin archives.
1614         * ldmisc.c (vfinfo): Likewise.
1615         * plugin.c (plugin_object_p): Open file within thin archives.
1616         (plugin_maybe_claim): Expand comment.
1617
1618 2016-06-13  H.J. Lu  <hongjiu.lu@intel.com>
1619
1620         PR ld/20244
1621         * testsuite/ld-i386/i386.exp: Run pr20244-2a, pr20244-2b,
1622         pr20244-2c and pr20244-2d.
1623         * testsuite/ld-i386/no-plt.exp: Run pr20244-3a and pr20244-3b.
1624         * testsuite/ld-i386/pr20244-2.s: New file.
1625         * testsuite/ld-i386/pr20244-2a.d: Likewise.
1626         * testsuite/ld-i386/pr20244-2b.d: Likewise.
1627         * testsuite/ld-i386/pr20244-2c.d: Likewise.
1628         * testsuite/ld-i386/pr20244-2d.d: Likewise.
1629         * testsuite/ld-i386/pr20244-3a.c: Likewise.
1630         * testsuite/ld-i386/pr20244-3b.S: Likewise.
1631         * testsuite/ld-i386/pr20244-3c.S: Likewise.
1632         * testsuite/ld-i386/pr20244-3d.S: Likewise.
1633
1634 2016-06-13  H.J. Lu  <hongjiu.lu@intel.com>
1635
1636         * testsuite/ld-i386/i386.exp: Run ifunc-1a and ifunc-1b.
1637         * testsuite/ld-i386/ifunc-1a.c: New file.
1638         * testsuite/ld-i386/ifunc-1b.S: Likewise.
1639         * testsuite/ld-i386/ifunc-1c.S: Likewise.
1640         * testsuite/ld-i386/ifunc-1d.S: Likewise.
1641
1642 2016-06-13  Cupertino Miranda  <cmiranda@synospsy.com>
1643
1644         * testsuite/ld-srec/srec.exp: Changed to XFAIL on both little and
1645         big endian ARC targets.
1646
1647 2016-06-12  H.J. Lu  <hongjiu.lu@intel.com>
1648
1649         * testsuite/ld-x86-64/libno-plt-1b.dd: Updated for x32.
1650         * testsuite/ld-x86-64/libno-plt-1b.rd: Likewise.
1651         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
1652         * testsuite/ld-x86-64/no-plt-1a.rd: Likewise.
1653         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
1654         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
1655         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
1656         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
1657         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
1658         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
1659         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
1660         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
1661         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
1662         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
1663         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
1664
1665 2016-06-11  H.J. Lu  <hongjiu.lu@intel.com>
1666
1667         PR ld/20244
1668         * testsuite/ld-i386/i386.exp: Run pr20244-1a and pr20244-1b.
1669         * testsuite/ld-i386/pr20244-1.s: New file.
1670         * testsuite/ld-i386/pr20244-1a.d: Likewise.
1671         * testsuite/ld-i386/pr20244-1b.d: Likewise.
1672         * testsuite/ld-i386/pr20244-1c.d: Likewise.
1673
1674 2016-06-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1675
1676         PR ld/20221
1677         * testsuite/ld-avr/avr-prop-5.d: New.
1678         * testsuite/ld-avr/avr-prop-5.s: New.
1679
1680 2016-06-09  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1681
1682         * testsuite/ld-avr/lds-mega.d: New test.
1683         * testsuite/ld-avr/lds-mega.s: New test source.
1684         * testsuite/ld-avr/lds-tiny.d: New test.
1685         * testsuite/ld-avr/lds-tiny.s: New test source.
1686
1687 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1688
1689         * testsuite/ld-i386/libno-plt-1b.dd: New file.
1690         * testsuite/ld-i386/libno-plt-1b.rd: Likewise.
1691         * testsuite/ld-i386/no-plt-1a.dd: Likewise.
1692         * testsuite/ld-i386/no-plt-1a.rd: Likewise.
1693         * testsuite/ld-i386/no-plt-1b.dd: Likewise.
1694         * testsuite/ld-i386/no-plt-1b.rd: Likewise.
1695         * testsuite/ld-i386/no-plt-1c.dd: Likewise.
1696         * testsuite/ld-i386/no-plt-1c.rd: Likewise.
1697         * testsuite/ld-i386/no-plt-1d.dd: Likewise.
1698         * testsuite/ld-i386/no-plt-1d.rd: Likewise.
1699         * testsuite/ld-i386/no-plt-1e.dd: Likewise.
1700         * testsuite/ld-i386/no-plt-1e.rd: Likewise.
1701         * testsuite/ld-i386/no-plt-1f.dd: Likewise.
1702         * testsuite/ld-i386/no-plt-1f.rd: Likewise.
1703         * testsuite/ld-i386/no-plt-1g.dd: Likewise.
1704         * testsuite/ld-i386/no-plt-1g.rd: Likewise.
1705         * testsuite/ld-i386/no-plt-1h.dd: Likewise.
1706         * testsuite/ld-i386/no-plt-1h.rd: Likewise.
1707         * testsuite/ld-i386/no-plt-1i.dd: Likewise.
1708         * testsuite/ld-i386/no-plt-1i.rd: Likewise.
1709         * testsuite/ld-i386/no-plt-1j.dd: Likewise.
1710         * testsuite/ld-i386/no-plt-1j.rd: Likewise.
1711         * testsuite/ld-i386/no-plt-check1a.S: Likewise.
1712         * testsuite/ld-i386/no-plt-check1b.S: Likewise.
1713         * testsuite/ld-i386/no-plt-extern1a.S: Likewise.
1714         * testsuite/ld-i386/no-plt-extern1b.S: Likewise.
1715         * testsuite/ld-i386/no-plt-func1.c: Likewise.
1716         * testsuite/ld-i386/no-plt-main1.c: Likewise.
1717         * testsuite/ld-i386/no-plt.exp: Likewise.
1718
1719 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1720
1721         * testsuite/ld-x86-64/tls.exp (run_cc_link_tests): Update test
1722         name.
1723
1724 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1725
1726         * testsuite/ld-i386/i386.exp: Run libtlspic2.so, tlsbin2,
1727         tlsgd3, tlsld2, tlsgd4, tlspie3a, tlspie3b and tlspie3c.
1728         * testsuite/ld-i386/pass.out: New file.
1729         * testsuite/ld-i386/tls-def1.c: Likewise.
1730         * testsuite/ld-i386/tls-gd1.S: Likewise.
1731         * testsuite/ld-i386/tls-ld1.S: Likewise.
1732         * testsuite/ld-i386/tls-main1.c: Likewise.
1733         * testsuite/ld-i386/tls.exp: Likewise.
1734         * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
1735         * testsuite/ld-i386/tlsbin2.dd: Likewise.
1736         * testsuite/ld-i386/tlsbin2.rd: Likewise.
1737         * testsuite/ld-i386/tlsbin2.sd: Likewise.
1738         * testsuite/ld-i386/tlsbin2.td: Likewise.
1739         * testsuite/ld-i386/tlsbinpic2.s: Likewise.
1740         * testsuite/ld-i386/tlsgd3.dd: Likewise.
1741         * testsuite/ld-i386/tlsgd3.s: Likewise.
1742         * testsuite/ld-i386/tlsgd4.d: Likewise.
1743         * testsuite/ld-i386/tlsgd4.s: Likewise.
1744         * testsuite/ld-i386/tlsld2.s: Likewise.
1745         * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
1746         * testsuite/ld-i386/tlspic2.dd: Likewise.
1747         * testsuite/ld-i386/tlspic2.rd: Likewise.
1748         * testsuite/ld-i386/tlspic2.sd: Likewise.
1749         * testsuite/ld-i386/tlspic2.td: Likewise.
1750         * testsuite/ld-i386/tlspic3.s: Likewise.
1751         * testsuite/ld-i386/tlspie3.s: Likewise.
1752         * testsuite/ld-i386/tlspie3a.d: Likewise.
1753         * testsuite/ld-i386/tlspie3b.d: Likewise.
1754         * testsuite/ld-i386/tlspie3c.d: Likewise.
1755
1756 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1757
1758         * testsuite/ld-x86-64/no-plt-1a.rd: Support any relocation order.
1759         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
1760         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
1761         * testsuite/ld-x86-64/no-plt-1d.rd: Likewise.
1762         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
1763         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
1764         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
1765         * testsuite/ld-x86-64/no-plt.exp: Fix a typo.
1766
1767 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1768
1769         * testsuite/ld-x86-64/libno-plt-1b.dd: Likewise.
1770         * testsuite/ld-x86-64/libno-plt-1b.rd: Likewise.
1771         * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
1772         * testsuite/ld-x86-64/no-plt-1a.rd: Likewise.
1773         * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
1774         * testsuite/ld-x86-64/no-plt-1b.rd: Likewise.
1775         * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
1776         * testsuite/ld-x86-64/no-plt-1c.rd: Likewise.
1777         * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
1778         * testsuite/ld-x86-64/no-plt-1d.rd: Likewise.
1779         * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
1780         * testsuite/ld-x86-64/no-plt-1e.rd: Likewise.
1781         * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
1782         * testsuite/ld-x86-64/no-plt-1f.rd: Likewise.
1783         * testsuite/ld-x86-64/no-plt-1g.dd: Likewise.
1784         * testsuite/ld-x86-64/no-plt-1g.rd: Likewise.
1785         * testsuite/ld-x86-64/no-plt-check1.S: Likewise.
1786         * testsuite/ld-x86-64/no-plt.exp: Likewise.
1787         * testsuite/ld-x86-64/no-plt-extern1.S: Likewise.
1788         * testsuite/ld-x86-64/no-plt-func1.c: Likewise.
1789         * testsuite/ld-x86-64/no-plt-main1.c: Likewise.
1790
1791 2016-06-07  Maciej W. Rozycki  <macro@imgtec.com>
1792
1793         * testsuite/ld-elf/init-fini-arrays.d: Remove `ft32-*-*' xfail.
1794
1795 2016-06-07  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1796
1797         * testsuite/ld-s390/pltoffset-1.dd: New test.
1798         * testsuite/ld-s390/pltoffset-1.ld: New test.
1799         * testsuite/ld-s390/pltoffset-1.s: New test.
1800         * testsuite/ld-s390/s390.exp: Run new test.
1801
1802 2016-06-07  Alan Modra  <amodra@gmail.com>
1803
1804         * testsuite/ld-powerpc/apuinfo1.s: Delete nop.
1805         * testsuite/ld-powerpc/apuinfo-vle2.s: New.
1806         * testsuite/ld-powerpc/powerpc.exp: Use apuinfo-vle2.s.
1807
1808 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1809
1810         * testsuite/ld-x86-64/pass.out: New file.
1811         * testsuite/ld-x86-64/tls-def1.c: Likewise.
1812         * testsuite/ld-x86-64/tls-gd1.S: Likewise.
1813         * testsuite/ld-x86-64/tls-ld1.S: Likewise.
1814         * testsuite/ld-x86-64/tls-main1.c: Likewise.
1815         * testsuite/ld-x86-64/tls.exp: Likewise.
1816         * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
1817         * testsuite/ld-x86-64/tlsbin2.dd: Likewise.
1818         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1819         * testsuite/ld-x86-64/tlsbin2.sd: Likewise.
1820         * testsuite/ld-x86-64/tlsbin2.td: Likewise.
1821         * testsuite/ld-x86-64/tlsbinpic2.s: Likewise.
1822         * testsuite/ld-x86-64/tlsgd10.dd: Likewise.
1823         * testsuite/ld-x86-64/tlsgd10.s: Likewise.
1824         * testsuite/ld-x86-64/tlsgd11.dd: Likewise.
1825         * testsuite/ld-x86-64/tlsgd11.s: Likewise.
1826         * testsuite/ld-x86-64/tlsgd12.d: Likewise.
1827         * testsuite/ld-x86-64/tlsgd12.s: Likewise.
1828         * testsuite/ld-x86-64/tlsgd13.d: Likewise.
1829         * testsuite/ld-x86-64/tlsgd13.s: Likewise.
1830         * testsuite/ld-x86-64/tlsgd14.dd: Likewise.
1831         * testsuite/ld-x86-64/tlsgd14.s: Likewise.
1832         * testsuite/ld-x86-64/tlsgd5c.s: Likewise.
1833         * testsuite/ld-x86-64/tlsgd6c.s: Likewise.
1834         * testsuite/ld-x86-64/tlsgd9.dd: Likewise.
1835         * testsuite/ld-x86-64/tlsgd9.s: Likewise.
1836         * testsuite/ld-x86-64/tlsld4.dd: Likewise.
1837         * testsuite/ld-x86-64/tlsld4.s: Likewise.
1838         * testsuite/ld-x86-64/tlsld5.dd: Likewise.
1839         * testsuite/ld-x86-64/tlsld5.s: Likewise.
1840         * testsuite/ld-x86-64/tlsld6.dd: Likewise.
1841         * testsuite/ld-x86-64/tlsld6.s: Likewise.
1842         * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
1843         * testsuite/ld-x86-64/tlspic2.dd: Likewise.
1844         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1845         * testsuite/ld-x86-64/tlspic2.sd: Likewise.
1846         * testsuite/ld-x86-64/tlspic2.td: Likewise.
1847         * testsuite/ld-x86-64/tlspic3.s: Likewise.
1848         * testsuite/ld-x86-64/tlspie2.s: Likewise.
1849         * testsuite/ld-x86-64/tlspie2a.d: Likewise.
1850         * testsuite/ld-x86-64/tlspie2b.d: Likewise.
1851         * testsuite/ld-x86-64/tlspie2c.d: Likewise.
1852         * testsuite/ld-x86-64/tlsgd5.dd: Updated.
1853         * testsuite/ld-x86-64/tlsgd6.dd: Likewise.
1854         * testsuite/ld-x86-64/x86-64.exp: Run libtlspic2.so, tlsbin2,
1855         tlsgd5b, tlsgd6b, tlsld4, tlsld5, tlsld6, tlsgd9, tlsgd10,
1856         tlsgd11, tlsgd14, tlsgd12, tlsgd13, tlspie2a, tlspie2b and
1857         tlspie2c.
1858
1859 2016-06-04  Christian Groessler  <chris@groessler.org>
1860
1861         * testsuite/ld-z8k/0filler.s: New file.
1862         * testsuite/ld-z8k/branch-target.s: New file.
1863         * testsuite/ld-z8k/branch-target2.s: New file.
1864         * testsuite/ld-z8k/calr-back-8001.d: New file.
1865         * testsuite/ld-z8k/calr-back-8002.d: New file.
1866         * testsuite/ld-z8k/calr-back-fail-8001.d: New file.
1867         * testsuite/ld-z8k/calr-back-fail-8002.d: New file.
1868         * testsuite/ld-z8k/calr-forw-8001.d: New file.
1869         * testsuite/ld-z8k/calr-forw-8002.d: New file.
1870         * testsuite/ld-z8k/calr-forw-fail-8001.d: New file.
1871         * testsuite/ld-z8k/calr-forw-fail-8002.d: New file.
1872         * testsuite/ld-z8k/calr-opcode.s: New file.
1873         * testsuite/ld-z8k/dbjnz-forw-8001.d: New file.
1874         * testsuite/ld-z8k/dbjnz-forw-8002.d: New file.
1875         * testsuite/ld-z8k/dbjnz-forw-fail-8001.d: New file.
1876         * testsuite/ld-z8k/dbjnz-forw-fail-8002.d: New file.
1877         * testsuite/ld-z8k/dbjnz-opcode.s: New file.
1878         * testsuite/ld-z8k/djnz-back-8001.d: New file.
1879         * testsuite/ld-z8k/djnz-back-8002.d: New file.
1880         * testsuite/ld-z8k/djnz-back-fail-8001.d: New file.
1881         * testsuite/ld-z8k/djnz-back-fail-8002.d: New file.
1882         * testsuite/ld-z8k/djnz-forw-8001.d: New file.
1883         * testsuite/ld-z8k/djnz-forw-8002.d: New file.
1884         * testsuite/ld-z8k/djnz-forw-fail-8001.d: New file.
1885         * testsuite/ld-z8k/djnz-forw-fail-8002.d: New file.
1886         * testsuite/ld-z8k/djnz-opcode.s: New file.
1887         * testsuite/ld-z8k/filler.s: New file.
1888         * testsuite/ld-z8k/jr-back-8001.d: New file.
1889         * testsuite/ld-z8k/jr-back-8002.d: New file.
1890         * testsuite/ld-z8k/jr-back-fail-8001.d: New file.
1891         * testsuite/ld-z8k/jr-back-fail-8002.d: New file.
1892         * testsuite/ld-z8k/jr-forw-8001.d: New file.
1893         * testsuite/ld-z8k/jr-forw-8002.d: New file.
1894         * testsuite/ld-z8k/jr-forw-fail-8001.d: New file.
1895         * testsuite/ld-z8k/jr-forw-fail-8002.d: New file.
1896         * testsuite/ld-z8k/jr-opcode.s: New file.
1897         * testsuite/ld-z8k/ldr-back-8001.d: New file.
1898         * testsuite/ld-z8k/ldr-back-8002.d: New file.
1899         * testsuite/ld-z8k/ldr-back-fail-8001.d: New file.
1900         * testsuite/ld-z8k/ldr-back-fail-8002.d: New file.
1901         * testsuite/ld-z8k/ldr-forw-8001.d: New file.
1902         * testsuite/ld-z8k/ldr-forw-8002.d: New file.
1903         * testsuite/ld-z8k/ldr-forw-fail-8001.d: New file.
1904         * testsuite/ld-z8k/ldr-forw-fail-8002.d: New file.
1905         * testsuite/ld-z8k/ldr-opcode.s: New file.
1906         * testsuite/ld-z8k/ldrb-forw-8001.d: New file.
1907         * testsuite/ld-z8k/ldrb-forw-8002.d: New file.
1908         * testsuite/ld-z8k/ldrb-forw-fail-8001.d: New file.
1909         * testsuite/ld-z8k/ldrb-forw-fail-8002.d: New file.
1910         * testsuite/ld-z8k/ldrb-opcode.s: New file.
1911         * testsuite/ld-z8k/ldrb-opcode2.s: New file.
1912         * testsuite/ld-z8k/other-file.s: New file.
1913         * testsuite/ld-z8k/reloc.dd: New file.
1914         * testsuite/ld-z8k/reloc.ld: New file.
1915         * testsuite/ld-z8k/relocseg.dd: New file.
1916         * testsuite/ld-z8k/relocseg.ld: New file.
1917         * testsuite/ld-z8k/relocseg1.dd: New file.
1918         * testsuite/ld-z8k/this-file.s: New file.
1919         * testsuite/ld-z8k/z8k.exp: New file.
1920
1921 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1922
1923         * testsuite/ld-i386/i386.exp: Assemble gotpc1.o and pr19319b.o
1924         with -mrelax-relocations=yes.
1925         * testsuite/ld-i386/lea1a.d (as): Add -mrelax-relocations=yes.
1926         * testsuite/ld-i386/lea1b.d (as): Likewise.
1927         * testsuite/ld-i386/lea1d.d (as): Likewise.
1928         * testsuite/ld-i386/lea1e.d (as): Likewise.
1929         * testsuite/ld-i386/lea1f.d (as): Likewise.
1930         * testsuite/ld-i386/load7.d (as): Likewise.
1931         * testsuite/ld-i386/mov1b.d (as): Likewise.
1932         * testsuite/ld-i386/pr19175.d (as): Likewise.
1933         * testsuite/ld-ifunc/ifunc-13-i386.d (as): Likewise.
1934         * testsuite/ld-ifunc/ifunc-21-i386.d (as): Likewise.
1935         * testsuite/ld-ifunc/ifunc-22-i386.d (as): Likewise.
1936         * testsuite/ld-x86-64/x86-64.exp: Assemble gotpcrel1a.o,
1937         gotpcrel1b.o and gotpcrel1c.o with -mrelax-relocations=yes.
1938
1939 2016-06-02  Vineet Gupta  <Vineet.Gupta1@synopsys.com>
1940
1941         * configure.tgt: Replace -uclibc with *.
1942
1943 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
1944
1945         * testsuite/ld-mips-elf/unaligned-branch.d: New test.
1946         * testsuite/ld-mips-elf/unaligned-branch.s: New test source.
1947         * testsuite/ld-mips-elf/unaligned-text.s: New test source.
1948         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1949
1950 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
1951
1952         * testsuite/ld-mips-elf/unaligned-syms.s: Rename to...
1953         * testsuite/ld-mips-elf/unaligned-data.s: ... this.
1954         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Adjust accordingly.
1955         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
1956         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Likewise.
1957         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
1958
1959 2016-05-28  Maciej W. Rozycki  <macro@imgtec.com>
1960
1961         * testsuite/ld-mips-elf/jal-global-overflow-0.d: New test.
1962         * testsuite/ld-mips-elf/jal-global-overflow-1.d: New test.
1963         * testsuite/ld-mips-elf/jal-local-overflow-0.d: New test.
1964         * testsuite/ld-mips-elf/jal-local-overflow-1.d: New test.
1965         * testsuite/ld-mips-elf/jal-global-overflow.s: New test source.
1966         * testsuite/ld-mips-elf/jal-local-overflow.s: New test source.
1967         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1968
1969 2016-05-28  Alan Modra  <amodra@gmail.com>
1970
1971         * ldmain.c (multiple_definition, multiple_common, add_to_set,
1972         constructor_callback, warning_callback, undefined_symbol,
1973         reloc_overflow, reloc_dangerous, unattached_reloc): Return void.
1974         * emultempl/elf32.em: Adjust callback calls.
1975
1976 2016-05-27  Maciej W. Rozycki  <macro@imgtec.com>
1977
1978         * testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: New test.
1979         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: New test.
1980         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d: New
1981         test.
1982         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d: New
1983         test.
1984         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d: New
1985         test.
1986         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d: New
1987         test.
1988         * testsuite/ld-mips-elf/unaligned-jalx-addend-0.s: New test
1989         source.
1990         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.s: New test
1991         source.
1992         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1993
1994 2016-05-27  Maciej W. Rozycki  <macro@imgtec.com>
1995
1996         * testsuite/ld-mips-elf/reloc-local-overflow.d: New test.
1997         * testsuite/ld-mips-elf/reloc-local-overflow.s: Source for the
1998         new test.
1999         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
2000
2001 2016-05-26  Maciej W. Rozycki  <macro@imgtec.com>
2002
2003         * testsuite/ld-mips-elf/unaligned-jalx-0.d: Fold
2004         `unaligned-jalx-2' here.
2005         * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: Fold
2006         `unaligned-jalx-mips16-2' here.
2007         * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: Fold
2008         `unaligned-jalx-micromips-2' here.
2009         * testsuite/ld-mips-elf/unaligned-jalx-0.s: Update accordingly.
2010         * testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error
2011         message.
2012         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
2013         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
2014         * testsuite/ld-mips-elf/unaligned-jalx-2.d: Remove test.
2015         * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: Remove test.
2016         * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: Remove
2017         test.
2018         * testsuite/ld-mips-elf/unaligned-jalx-2.s: Remove test source.
2019         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Fold
2020         `unaligned-lwpc-3' here.
2021         * testsuite/ld-mips-elf/unaligned-lwpc-0.s: Update accordingly.
2022         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Fold
2023         `unaligned-lwpc-2' here.
2024         * testsuite/ld-mips-elf/unaligned-lwpc-1.s: Update accordingly.
2025         * testsuite/ld-mips-elf/unaligned-lwpc-2.d: Remove test.
2026         * testsuite/ld-mips-elf/unaligned-lwpc-2.s: Remove test source.
2027         * testsuite/ld-mips-elf/unaligned-lwpc-3.d: Remove test.
2028         * testsuite/ld-mips-elf/unaligned-lwpc-3.s: Remove test source.
2029         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Fold
2030         `unaligned-ldpc-4' here.
2031         * testsuite/ld-mips-elf/unaligned-ldpc-0.s: Update accordingly.
2032         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Update error
2033         message.  Fold `unaligned-ldpc-2' and `unaligned-ldpc-3' here.
2034         * testsuite/ld-mips-elf/unaligned-ldpc-1.s: Update accordingly.
2035         * testsuite/ld-mips-elf/unaligned-ldpc-2.d: Remove test.
2036         * testsuite/ld-mips-elf/unaligned-ldpc-2.s: Remove test source.
2037         * testsuite/ld-mips-elf/unaligned-ldpc-3.d: Remove test.
2038         * testsuite/ld-mips-elf/unaligned-ldpc-3.s: Remove test source.
2039         * testsuite/ld-mips-elf/unaligned-ldpc-4.d: Remove test.
2040         * testsuite/ld-mips-elf/unaligned-ldpc-4.s: Remove test source.
2041         * testsuite/ld-mips-elf/mips-elf.exp: Delete removed tests.
2042
2043 2016-05-26  Nick Clifton  <nickc@redhat.com>
2044
2045         PR target/20134
2046         * scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
2047         __bsssize.
2048         * scripttempl/elf32msp430_3.sc (.bss): Likewise.
2049
2050 2016-05-25  Maciej W. Rozycki  <macro@imgtec.com>
2051
2052         * testsuite/ld-mips-elf/unaligned-jalx-0.d: New test.
2053         * testsuite/ld-mips-elf/unaligned-jalx-1.d: New test.
2054         * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
2055         * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: New test.
2056         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: New test.
2057         * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: New test.
2058         * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: New test.
2059         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: New test.
2060         * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: New test.
2061         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: New test.
2062         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: New test.
2063         * testsuite/ld-mips-elf/unaligned-lwpc-2.d: New test.
2064         * testsuite/ld-mips-elf/unaligned-lwpc-3.d: New test.
2065         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: New test.
2066         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: New test.
2067         * testsuite/ld-mips-elf/unaligned-ldpc-2.d: New test.
2068         * testsuite/ld-mips-elf/unaligned-ldpc-3.d: New test.
2069         * testsuite/ld-mips-elf/unaligned-ldpc-4.d: New test.
2070         * testsuite/ld-mips-elf/unaligned-jalx-0.s: New test source.
2071         * testsuite/ld-mips-elf/unaligned-jalx-1.s: New test source.
2072         * testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
2073         * testsuite/ld-mips-elf/unaligned-insn.s: New test source.
2074         * testsuite/ld-mips-elf/unaligned-lwpc-0.s: New test source.
2075         * testsuite/ld-mips-elf/unaligned-lwpc-1.s: New test source.
2076         * testsuite/ld-mips-elf/unaligned-lwpc-2.s: New test source.
2077         * testsuite/ld-mips-elf/unaligned-lwpc-3.s: New test source.
2078         * testsuite/ld-mips-elf/unaligned-ldpc-0.s: New test source.
2079         * testsuite/ld-mips-elf/unaligned-ldpc-1.s: New test source.
2080         * testsuite/ld-mips-elf/unaligned-ldpc-2.s: New test source.
2081         * testsuite/ld-mips-elf/unaligned-ldpc-3.s: New test source.
2082         * testsuite/ld-mips-elf/unaligned-ldpc-4.s: New test source.
2083         * testsuite/ld-mips-elf/unaligned-syms.s: New test source.
2084         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2085
2086 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2087
2088         PR ld/20103
2089         * ldmain.c (add_archive_element): Don't claim new IR symbols
2090         after all IR symbols have been claimed.
2091         * plugin.c (plugin_call_claim_file): Remove no_more_claiming
2092         check.
2093         * testsuite/ld-plugin/lto.exp (pr20103): New proc.
2094         Run PR ld/20103 tests.
2095         * testsuite/ld-plugin/pr20103a.c: New file.
2096         * testsuite/ld-plugin/pr20103b.c: Likewise.
2097         * testsuite/ld-plugin/pr20103c.c: Likewise.
2098
2099 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
2100
2101         * testsuite/ld-mips-elf/jalx-local.d: New test.
2102         * testsuite/ld-mips-elf/jalx-local-n32.d: New test.
2103         * testsuite/ld-mips-elf/jalx-local-n64.d: New test.
2104         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2105
2106 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
2107
2108         * Makefile.am: Add earmelf_phoenix.c.
2109         * Makefile.in: Regenerate.
2110         * configure.tgt: Add entry for arm-phoenix.
2111         * emulparams/armelf_phoenix.sh: New file.
2112
2113 2016-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2114
2115         * emultempl/armelf.em (arm_elf_before_allocation): Call
2116         bfd_elf32_arm_keep_private_stub_output_sections before generic
2117         before_allocation function.
2118
2119 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
2120
2121         * testsuite/ld-mips-elf/jalx-addend.d: New test.
2122         * testsuite/ld-mips-elf/jalx-addend-n32.d: New test.
2123         * testsuite/ld-mips-elf/jalx-addend-n64.d: New test.
2124         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2125
2126 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2127
2128         PR ld/20117
2129         * testsuite/ld-i386/i386.exp: Run pr20117.
2130         * testsuite/ld-i386/pr19609-1i.d: Updated.
2131         * testsuite/ld-i386/pr20117.d: New file.
2132         * testsuite/ld-i386/pr20117.s: Likewise.
2133
2134 2016-05-19  Cupertino Miranda  <cmiranda@synopsys.com>
2135
2136         * testsuite/ld-elf/compressed1d.d: Removed from notarget.
2137         * testsuite/ld-elf/group8a.d: Likewise.
2138         * testsuite/ld-elf/group8b.d: Likewise.
2139         * testsuite/ld-elf/group9a.d: Likewise.
2140         * testsuite/ld-elf/group9b.d: Likewise.
2141         * testsuite/ld-elf/pr12851.d: Likewise.
2142         * testsuite/ld-elf/pr12975.d: Likewise.
2143         * testsuite/ld-elf/pr13177.d: Likewise.
2144         * testsuite/ld-elf/pr13195.d: Likewise.
2145         * testsuite/ld-elf/pr17615.d: Likewise.
2146         * testsuite/ld-elf/eh-frame-hdr.d: Removed from xfail.
2147         * testsuite/ld-elf/group3b.d: Likewise.
2148         * testsuite/ld-srec/srec.exp: Likewise.
2149         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark ARC
2150         as supporting gc.
2151         (check_shared_lib_support): Mark ARC as supporting.
2152
2153 2016-05-19  Cupertino Miranda  <cmiranda@synopsys.com>
2154
2155         * emulparams/arcelf.sh: Changed.
2156         * emulparams/arclinux.sh: Likewise.
2157         * scripttempl/arclinux.sc: Moved to a more standard implementation
2158         similar to elf.sc.
2159
2160 2016-05-19  Maciej W. Rozycki  <macro@imgtec.com>
2161
2162         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Reorder
2163         `ft32-*-*' behind `frv-*-*'.
2164
2165 2016-05-19  Maciej W. Rozycki  <macro@imgtec.com>
2166
2167         * configure.tgt: Remove `am34-*-linux*' support.
2168
2169 2016-05-19  Alan Modra  <amodra@gmail.com>
2170
2171         * testsuite/ld-scripts/crossref.exp: Remove -mcall-aixdesc hack.
2172         * testsuite/ld-scripts/cross2.t: Tweak .opd and .toc placement.
2173         * testsuite/ld-scripts/cross3.t: Likewise.
2174         * testsuite/ld-scripts/cross4.t: Likewise.
2175         * testsuite/ld-scripts/cross5.t: Likewise.
2176         * testsuite/ld-scripts/cross6.t: Likewise.
2177         * testsuite/ld-scripts/cross7.t: Likewise.
2178
2179 2016-05-19  Alan Modra  <amodra@gmail.com>
2180
2181         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Pass in
2182         exe name rather than constructing testname.  Fix typo in
2183         sub-test name.  Log copying.  Use -rpath rather than -R.
2184
2185 2016-05-18  Nick Clifton  <nickc@redhat.com>
2186
2187         * scripttempl/ft32.sc: Use fixed constants for memory region
2188         lengths.  Include DWARF debug sections.
2189         (.data .bss): Do not assign locations during relocatable links.
2190         * testsuite/ld-elf/compressed1d.d: Skip for FT32.
2191         * testsuite/ld-elf/sec-to-seg.exp: Likewise.
2192         * testsuite/ld-elf/sec64k.exp: Likewise.
2193         * testsuite/ld-elf/init-fini-array.d: XFail for FT32.
2194         * testsuite/ld-elf/merge.d: Likewise.
2195         * testsuite/ld-elf/orphan-region.d: Likewise.
2196         * testsuite/ld-elf/orphan.s: Likewise.
2197         * testsuite/ld-elf/orphan3.d: Likewise.
2198         * testsuite/ld-elf/pr349.d: Likewise.
2199         * testsuite/ld-elf/warn2.d: Likewise.
2200         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Note
2201         that the FT32 does not support shared libraries.
2202
2203 2016-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2204
2205         * testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
2206         global CC.
2207
2208 2016-05-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2209
2210         * scripttempl/avr.sc (text): Place .progmem.data from avr-libc
2211         above .progmem*.
2212         * scripttempl/avrtiny.sc (text): Likewise.
2213
2214 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
2215
2216         * testsuite/ld-unique/unique.exp: Use `is_elf_format' and
2217         `supports_gnu_unique' to qualify testing.
2218
2219 2016-05-16  Maciej W. Rozycki  <macro@imgtec.com>
2220
2221         * testsuite/ld-elf/flags1.d: Update the xfail list.
2222
2223 2016-05-15  Maciej W. Rozycki  <macro@imgtec.com>
2224
2225         * testsuite/ld-elf/flags1.d: Update for `*-*-nacl*' xfail
2226         removal.
2227
2228 2016-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2229
2230         PR ld/20097
2231         * testplug2.c (onall_symbols_read): Remove redundant sizeof
2232         on EXPECTED_VIEW_LENGTH.
2233         * testplug4.c (onall_symbols_read): Likewise.
2234
2235 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2236
2237         PR ld/20093
2238         * testsuite/ld-x86-64/pr20093-1.d: New file.
2239         * testsuite/ld-x86-64/pr20093-1.s: Likewise.
2240         * testsuite/ld-x86-64/pr20093-2.d: Likewise.
2241         * testsuite/ld-x86-64/pr20093-2.s: Likewise.
2242         * testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
2243
2244 2016-05-13  Alan Modra  <amodra@gmail.com>
2245
2246         * testsuite/ld-arm/arm-elf.exp: Adjust for arm-no-rel-plt now passing.
2247         Use different output file name for static app without .rel.plt.
2248         * testsuite/ld-arm/arm-no-rel-plt.ld: Align .rel.dyn and .rela.dyn.
2249         * testsuite/ld-arm/arm-no-rel-plt.out: Delete.
2250         * testsuite/ld-arm/arm-no-rel-plt.r: New.
2251         * testsuite/ld-arm/arm-static-app.d: Don't check file name.
2252         * testsuite/ld-arm/arm-static-app.r: Likewise.
2253
2254 2016-05-12  H.J. Lu  <hongjiu.lu@intel.com>
2255
2256         PR ld/20070
2257         * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug4.la.
2258         (libldtestplug4_la_SOURCES): New.
2259         (libldtestplug4_la_CFLAGS): Likewise.
2260         (libldtestplug4_la_LDFLAGS): Likewise.
2261         * Makefile.in: Regenerated.
2262         * plugin.c (get_symbols): Return resolution based on IR symbol
2263         kinds for symbols defined/referenced only within IR.
2264         * testplug4.c: New file.
2265         * ld/testsuite/ld-plugin/pr20070.d: Likewise.
2266         * ld/testsuite/ld-plugin/pr20070a.c: Likewise.
2267         * ld/testsuite/ld-plugin/pr20070b.c: Likewise.
2268         * testsuite/ld-plugin/plugin.exp (plugin4_name): New.
2269         (plugin4_path): Likewise.
2270         Add a test for ld/20070.
2271
2272 2016-05-11  Alan Modra  <amodra@gmail.com>
2273
2274         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
2275         Call elf32_hppa_init_stub_bfd.
2276
2277 2016-05-11  Alan Modra  <amodra@gmail.com>
2278
2279         PR 20060
2280         * testsuite/ld-powerpc/powerpc.exp: Run new tests.
2281         * testsuite/ld-powerpc/tlsdll.s: New.
2282         * testsuite/ld-powerpc/tlsdll.ver: New.
2283         * testsuite/ld-powerpc/tlsdll_32.s: New.
2284         * testsuite/ld-powerpc/tlsopt5.d: New.
2285         * testsuite/ld-powerpc/tlsopt5.s: New.
2286         * testsuite/ld-powerpc/tlsopt5_32.d: New.
2287         * testsuite/ld-powerpc/tlsopt5_32.s: New.
2288
2289 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2290
2291         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use
2292         ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
2293
2294 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2295
2296         * emultempl/armelf.em (elf32_arm_add_stub_section): Add output_section
2297         parameter and rename input_section parameter to after_input_section.
2298         Append input stub section to the output section if after_input_section
2299         is NULL.
2300
2301 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2302
2303         * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 10 (DSP)): New
2304         test.
2305         * testsuite/ld-arm/attr-merge-10b-dsp.s: New file.
2306         * testsuite/ld-arm/attr-merge-10-dsp.attr: Likewise.
2307
2308 2016-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
2309
2310         * ld/testsuite/ld-elf/flags1.d (xfail): Remove *-*-nacl*".
2311
2312 2016-05-09  Christophe Monat  <christophe.monat@st.com>
2313
2314         PR ld/20030
2315         * testsuite/ld-arm/arm-elf.exp: Run new stm32l4xx-fix-vldm-dp
2316         tests. Fix misnamed stm32l4xx-fix-all.
2317         * testsuite/ld-arm/stm32l4xx-fix-vldm-dp.s: New tests for multiple
2318         loads with DP registers.
2319         * testsuite/ld-arm/stm32l4xx-fix-vldm-dp.d: New reference file.
2320         * testsuite/ld-arm/stm32l4xx-fix-vldm.s: Add missing comment.
2321         * testsuite/ld-arm/stm32l4xx-fix-all.s: Add tests for multiple
2322         loads with DP registers.
2323         * testsuite/ld-arm/stm32l4xx-fix-all.d: Update reference.
2324
2325 2016-05-09  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2326
2327         * testsuite/ld-elf/flags1.d (readelf): Dump section header instead
2328         program headers.
2329         (xfail): Remove avr-*-*.
2330         Update regex to check the section flags.
2331         * testsuite/ld-elf/merge.d (xfail): Remove avr-*-*.
2332
2333 2016-05-09  Alan Modra  <amodra@gmail.com>
2334
2335         * Makefile.am (ealphavms.c, eelf64_ia64_vms): Correct .em deps.
2336         * Makefile.in: Regenerate.
2337
2338 2016-05-09  Alan Modra  <amodra@gmail.com>
2339
2340         * testsuite/ld-scripts/pr14962-2.t: Match .text, not *.text.
2341         * testsuite/ld-scripts/rgn-at5.t: Similarly, .sec not *.sec.
2342         * testsuite/ld-scripts/section-match-1.t: Likewise.
2343
2344 2016-05-06  H.J. Lu  <hongjiu.lu@intel.com>
2345
2346         PR ld/17550
2347         * testsuite/ld-elf/pr17550-1.s: New file.
2348         * testsuite/ld-elf/pr17550-2.s: Likewise.
2349         * testsuite/ld-elf/pr17550-3.s: Likewise.
2350         * testsuite/ld-elf/pr17550-4.s: Likewise.
2351         * testsuite/ld-elf/pr17550a.d: Likewise.
2352         * testsuite/ld-elf/pr17550b.d: Likewise.
2353         * testsuite/ld-elf/pr17550c.d: Likewise.
2354         * testsuite/ld-elf/pr17550d.d: Likewise.
2355
2356 2016-05-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2357
2358         * ld/testsuite/ld-srec/srec.exp: Mark test as XFAIL for AVR.
2359
2360 2016-05-06  H.J. Lu  <hongjiu.lu@intel.com>
2361
2362         * testsuite/ld-i386/i386.exp: Run load7.
2363         * testsuite/ld-i386/load7.d: New file.
2364         * testsuite/ld-i386/load7.map: Likewise.
2365         * testsuite/ld-i386/load7.s: Likewise.
2366         * testsuite/ld-x86-64/load2.d: Likewise.
2367         * testsuite/ld-x86-64/load2.map: Likewise.
2368         * testsuite/ld-x86-64/load2.s: Likewise.
2369         * testsuite/ld-x86-64/x86-64.exp: Run load2.
2370
2371 2016-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2372
2373         * emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): New.
2374         * emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2375         Likewise.
2376         * emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2377         Likewise.
2378
2379 2016-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2380
2381         * testsuite/ld-x86-64/pr18591.d: Pass --no-relax to ld.
2382
2383 2016-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2384
2385         * ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
2386
2387 2016-05-04  Maciej W. Rozycki  <macro@imgtec.com>
2388
2389         * testsuite/ld-unique/unique.d: New test.
2390         * testsuite/ld-unique/unique.exp: Run the new test.  Adjust
2391         messages for compiled tests.
2392
2393 2016-05-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2394
2395         * testsuite/ld-elf/pr18735.d: Allow other symbols.
2396         * testsuite/ld-elf/sec64k.exp: Skip 64ksec for avr.
2397         * testsuite/ld-gc/pr14265.d: Allow other symbols.
2398         * testsuite/ld-plugin/plugin.exp: Add PR ld/17973 to
2399         plugin_tests only if check_shared_lib_support is true.
2400         * testsuite/ld-selective/selective.exp: Add --section-start
2401         flag for avr.
2402
2403 2016-05-03  Maciej W. Rozycki  <macro@imgtec.com>
2404
2405         PR 10549
2406         * testsuite/ld-unique/unique.exp: Also run for `mips*-*-*'.
2407
2408 2016-05-03  Jiong Wang  <jiong.wang@arm.com>
2409
2410         * emultempl/aarch64elf.em (--no-apply-dynamic-relocs): New option.
2411         * NEWS: Mention --no-apply-dynamic-relocs.
2412         * ld.texinfo (ld and the ARM family): Document
2413         --no-apply-dynamic-relocs.
2414         * testsuite/ld-aarch64/rela-abs-relative.s: New test source.
2415         * testsuite/ld-aarch64/rela-abs-relative.d: New expected result.
2416         * testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise for big-endian.
2417         * estsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise, but enable new
2418         option.
2419
2420 2016-05-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2421
2422         * testsuite/ld-elfcomm/elfcomm.exp: Check for shared lib support
2423         before running STT_COMMON tests.
2424
2425 2016-04-29  H.J. Lu  <hongjiu.lu@intel.com>
2426
2427         * config/default.exp (NOPIE_CFLAGS): Download source only on
2428         remote host.
2429         (NOPIE_LDFLAGS): Likewise.
2430         * testsuite/lib/ld-lib.exp (check_lto_available): Likewise.
2431         (check_lto_fat_available): Likewise.
2432         (check_lto_shared_available): Likewise.
2433         (check_ifunc_available): Likewise.
2434         (check_ifunc_attribute_available): Likewise.
2435
2436 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
2437
2438         * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
2439
2440 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
2441
2442         PR ld/20006
2443         * testsuite/ld-elfvsb/elfvsb.exp (COMPRESS_LDFLAG): New.
2444         (visibility_run): Pass COMPRESS_LDFLAG to visibility_test on
2445         ELF targets.
2446
2447 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
2448
2449         * testsuite/ld-elf/compressed1b.d: Pass
2450         --compress-debug-sections=none to ld.
2451         * testsuite/ld-elf/compressed1c.d: Likewise.
2452
2453 2016-04-27  Alan Modra  <amodra@gmail.com>
2454
2455         PR target/19985
2456         * configure.tgt: Don't use var+=.
2457
2458 2016-04-25  Nick Clifton  <nickc@redhat.com>
2459
2460         PR target/19985
2461         * configure.tgt: Include big endian PPC64 emulations with little
2462         endian PPC64 targets.
2463
2464 2016-04-25  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2465
2466         * scripttempl/avrtiny.sc (.text): Do not set LMA to zero.
2467
2468 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
2469
2470         * testsuite/lib/ld-lib.exp (check_lto_available): Return 1 on
2471         Linux with GCC 4.9 or newer.
2472         (check_lto_fat_available): Likewise.
2473         (check_lto_shared_available): Likewise.
2474
2475 2016-04-21  Nick Clifton  <nickc@redhat.com>
2476
2477         * ldlang.c (lang_check_relocs): Use bfd_link_check_relocs in
2478         prefernce to _bfd_elf_link_check_relocs.  Drop test for ELF
2479         targets.  Do not stop the checks when problems are encountered.
2480
2481 2016-04-21  Alan Modra  <amodra@gmail.com>
2482
2483         * testsuite/ld-scripts/cross3.t: Add commonly used data
2484         and text section names to output section statements.
2485         * testsuite/ld-scripts/cross4.t: Likewise.
2486         * testsuite/ld-scripts/cross5.t: Likewise.
2487         * testsuite/ld-scripts/cross6.t: Likewise.
2488         * testsuite/ld-scripts/cross7.t: Likewise.
2489
2490 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2491
2492         * ldlang.c (lang_check_relocs): New function.
2493         (lang_process): Call lang_check_relocs after lang_gc_sections.
2494         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
2495         call _bfd_elf_link_check_relocs here.
2496
2497 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2498
2499         PR ld/19972
2500         * testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for
2501         R_386_NONE or R_X86_64_NONE.
2502
2503 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         * testsuite/ld-x86-64/pic1.d: New file.
2506         * testsuite/ld-x86-64/pic1.s: Likewise.
2507         * testsuite/ld-x86-64/x86-64.exp: Run pic1.
2508
2509 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2510
2511         * testsuite/ld-x86-64/pie2.d: New file.
2512         * testsuite/ld-x86-64/pie2.s: Likewise.
2513         * testsuite/ld-x86-64/x86-64.exp: Run pie2.
2514
2515 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2516
2517         PR ld/19969
2518         * testsuite/ld-x86-64/pr19969.d: New file.
2519         * testsuite/ld-x86-64/pr19969a.S: Likewise.
2520         * testsuite/ld-x86-64/pr19969b.S: Likewise.
2521         * testsuite/ld-x86-64/x86-64.exp: Run pr19969 tests.
2522
2523 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2524
2525         * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2526         New.
2527         * emulparams/elf_i386.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2528         Likewise.
2529         * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2530         Likewise.
2531         * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2532         Likewise.
2533         * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2534         Likewise.
2535         * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2536         Likewise.
2537         * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2538         Likewise.
2539         * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2540         Likewise.
2541         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
2542         Set check_relocs_after_open_input to TRUE if
2543         CHECK_RELOCS_AFTER_OPEN_INPUT is yes.
2544         (gld${EMULATION_NAME}_after_open): Call
2545         _bfd_elf_link_check_relocs on all inputs if
2546         check_relocs_after_open_input is TRUE.
2547
2548 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2549
2550         * testsuite/ld-elf/eh6.s: Replace .long with .dc.a on
2551         my_personality_v0.
2552
2553 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2554
2555         * emultempl/scoreelf.em: Likewise.
2556
2557 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
2558
2559         PR ld/19719
2560         * testsuite/ld-x86-64/pr19719.d: New file.
2561         * testsuite/ld-x86-64/pr19719.s: Likewise.
2562         * testsuite/ld-x86-64/x86-64.exp: Run pr19719.
2563
2564 2016-04-18  Matthew Fortune  <matthew.fortune@imgtec.com>
2565
2566         * ld.texinfo: Document NOCROSSREFS_TO script command.
2567         * ldlang.h (struct lang_nocrossrefs): Add onlyfirst field.
2568         (lang_add_nocrossref_to): New prototype.
2569         * ldcref.c (check_local_sym_xref): Use onlyfirst to only look for
2570         symbols defined in the first section.
2571         (check_nocrossref): Likewise.
2572         * ldgram.y (NOCROSSREFS_TO): New script command.
2573         * ldlang.c (lang_add_nocrossref): Set onlyfirst to FALSE.
2574         (lang_add_nocrossref_to): New function.
2575         * ldlex.l (NOCROSSREFS_TO): New token.
2576         * NEWS: Mention NOCROSSREFS_TO.
2577         * testsuite/ld-scripts/cross4.t: New file.
2578         * testsuite/ld-scripts/cross5.t: Likewise.
2579         * testsuite/ld-scripts/cross6.t: Likewise.
2580         * testsuite/ld-scripts/cross7.t: Likewise.
2581         * testsuite/ld-scripts/crossref.exp: Run 4 new NOCROSSREFS_TO
2582         tests.
2583
2584 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
2585
2586         * Makefile.in: Regenerated with automake 1.11.6.
2587         * aclocal.m4: Likewise.
2588
2589 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
2590
2591         * testsuite/ld-arc/arc.exp: New file.
2592         * testsuite/ld-arc/nps-1.s: New file.
2593         * testsuite/ld-arc/nps-1a.d: New file.
2594         * testsuite/ld-arc/nps-1b.d: New file.
2595         * testsuite/ld-arc/nps-1b.err: New file.
2596
2597 2016-04-14  Nick Clifton  <nickc@redhat.com>
2598
2599         PR 19457
2600         * testsuite/ld-scripts/script.exp (extract_symbol_test): Add
2601         exceptions for Mingw and Cygwin.
2602
2603 2016-04-13  Andrew Burgess  <andrew.burgess@embecosm.com>
2604
2605         * testsuite/lib/ld-lib.exp (run_dump_test): Initialise
2606         check_ld(terminal).
2607
2608 2016-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2609
2610         PR ld/19774
2611         * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr17689b.o before
2612         tmpdir/pr17689.so, fix gotpcrel1 test and add more --as-needed
2613         tests.
2614
2615 2016-04-11  H.J. Lu  <hongjiu.lu@intel.com>
2616
2617         PR ld/19939
2618         * testsuite/ld-i386/i386.exp: Run PR ld/19939 tests.
2619         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2620         * testsuite/ld-i386/pr19939.s: New file.
2621         * testsuite/ld-i386/pr19939a.d: Likewise.
2622         * testsuite/ld-i386/pr19939b.d: Likewise.
2623         * testsuite/ld-x86-64/pr19939.s: Likewise.
2624         * testsuite/ld-x86-64/pr19939a.d: Likewise.
2625         * testsuite/ld-x86-64/pr19939b.d: Likewise.
2626
2627 2016-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
2628
2629         * emulparams/shelf.sh: Set stack area to 0x3FFFFF00.
2630
2631 2016-04-08  Alan Modra  <amodra@gmail.com>
2632
2633         PR 18452
2634         * ldlang.c (maybe_overlays): Delete.
2635         (lang_size_sections_1): Remove code setting maybe_overlays.
2636         (lang_check_section_addresses): Instead detect overlays by
2637         exact match of section VMAs here.  Fix memory leak.
2638
2639 2016-04-08  Dan Gisselquist  <dgisselq@ieee.org>
2640
2641         * ldlang.c (print_output_section_statement): Show minfo size
2642         in target machine address units.
2643         (print_reloc_statement): Likewise.
2644         (print_padding_statement): Likewise.
2645         (print_data_statement): Likewise.  Ensure minimum print_dot
2646         increment of one address unit.
2647
2648 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2649
2650         * emulparams/arc-endianness.sh: Make little endian default choice.
2651
2652 2016-04-07  Nick Clifton  <nickc@redhat.com>
2653
2654         * scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in
2655         section name.
2656         * scripttempl/elf32msp430_3.sc (.MSP430.attributes): Likewise.
2657
2658 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
2659
2660         * emulparams/arc-endianness.sh: New file.
2661         * emulparams/arcebelf.sh: Deleted.
2662         * emulparams/arcebelf_prof.sh: Deleted.
2663         * emulparams/arceblinux.sh: Deleted.
2664         * emulparams/arceblinux_prof.sh: Deleted.
2665         * emulparams/arcelf.sh: Include arc-endinness.sh.
2666         * emulparams/arcelf_prof.sh: Include arc-endinness.sh.
2667         * emulparams/arclinux.sh: Include arc-endinness.sh.
2668         * emulparams/arclinux_prof.sh: Include arc-endinness.sh.
2669         * emulparams/arcv2elf.sh: Include arc-endinness.sh.
2670         * emulparams/arcv2elfx.sh: Include arc-endinness.sh.
2671         * testsuite/ld-elf/compressed1d.d: Update pattern for big and
2672         little endian arc targets.
2673         * testsuite/ld-elf/eh-frame-hdr.d: Likewise.
2674         * testsuite/ld-elf/group1.d: Likewise.
2675         * testsuite/ld-elf/group3b.d: Likewise.
2676         * testsuite/ld-elf/group8a.d: Likewise.
2677         * testsuite/ld-elf/group8b.d: Likewise.
2678         * testsuite/ld-elf/group9a.d: Likewise.
2679         * testsuite/ld-elf/group9b.d: Likewise.
2680         * testsuite/ld-elf/linkonce2.d: Likewise.
2681         * testsuite/ld-elf/pr12851.d: Likewise.
2682         * testsuite/ld-elf/pr12975.d: Likewise.
2683         * testsuite/ld-elf/pr13177.d: Likewise.
2684         * testsuite/ld-elf/pr13195.d: Likewise.
2685         * testsuite/ld-elf/pr17615.d: Likewise.
2686         * testsuite/ld-elf/pr19162.d: Likewise.
2687         * testsuite/ld-elf/sec64k.exp: Likewise.
2688         * testsuite/lib/ld-lib.exp: Likewise.
2689
2690 2016-04-05  Maciej W. Rozycki  <macro@imgtec.com>
2691
2692         PR ld/19908
2693         * testsuite/ld-cris/tls-e-20.d: Adjust for hidden symbol
2694         handling fix.
2695         * testsuite/ld-cris/tls-e-20a.d: Likewise.
2696         * testsuite/ld-cris/tls-e-21.d: Likewise.
2697         * testsuite/ld-cris/tls-e-23.d: Likewise.
2698         * testsuite/ld-cris/tls-e-80.d: Likewise.
2699         * testsuite/ld-cris/tls-gd-3h.d: Likewise.
2700         * testsuite/ld-cris/tls-leie-19.d: Likewise.
2701         * testsuite/ld-mips-elf/export-class-ref-lib.sd: New test.
2702         * testsuite/ld-mips-elf/export-hidden-ref.sd: New test.
2703         * testsuite/ld-mips-elf/export-internal-ref.sd: New test.
2704         * testsuite/ld-mips-elf/export-protected-ref.sd: New test.
2705         * testsuite/ld-mips-elf/export-class-ref-f0.s: New test source.
2706         * testsuite/ld-mips-elf/export-class-ref-f1.s: New test source.
2707         * testsuite/ld-mips-elf/export-class-ref-f2.s: New test source.
2708         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2709
2710 2016-04-05  Cupertino Miranda  <cmiranda@synopsys.com>
2711
2712         * testsuite/ld-discard/extern.d: Removed xfail for ARC.
2713         * testsuite/ld-discard/start.d: Likewise.
2714         * testsuite/ld-discard/static.d: Likewise.
2715         * testsuite/ld-elf/group1.d: Likewise.
2716         * testsuite/ld-elf/group3b.d: Likewise.
2717         * testsuite/ld-elf/orphan-region.d: Likewise.
2718         * testsuite/ld-elf/orphan.d: Likewise.
2719         * testsuite/ld-elf/orphan3.d: Likewise.
2720         * testsuite/ld-elf/pr349.d: Likewise.
2721         * testsuite/ld-elf/warn1.d: Likewise.
2722         * testsuite/ld-elf/warn2.d: Likewise.
2723         * testsuite/ld-elf/warn3.d: Likewise.
2724         * testsuite/ld-scripts/crossref.exp: Add __SDATA_BEGIN__ symbol
2725         through linker flags.
2726         * testsuite/ld-srec/srec.exp: Set as xfail.
2727
2728 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
2729
2730         PR ld/19827
2731         * testsuite/ld-i386/pr19827-nacl.rd: New file.
2732         * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
2733
2734 2016-04-04  Nick Clifton  <nickc@redhat.com>
2735
2736         PR 19803
2737         * emultempl/pe.em (change_undef): New function.  Encapsulates
2738         duplicated code in pe_fixup_stdcalls and adds the newly defined
2739         sym to the gc root list.
2740         (pe_fixup_stdcall): Use the new function.
2741         * pe-dll.c (process_def_file_and_drectve); Add alias of exported
2742         symbol to gc root list.
2743
2744 2016-03-31  Alan Modra  <amodra@gmail.com>
2745
2746         * ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file.
2747         (lang_insert_orphan): Use TO_ADDR in __stop sym calculation.
2748         (print_input_section): Don't use TO_ADDR when printing section
2749         size.
2750         (lang_size_sections_1): Use TO_ADDR in overlay lma calculation.
2751         (lang_size_sections): Use TO_ADDR in relro end calculation.
2752
2753 2016-03-30  Andrew Burgess  <andrew.burgess@embecosm.com>
2754
2755         * testsuite/lib/ld-lib.exp (run_dump_test): Fix check of return
2756         value from regexp_diff.
2757         * testsuite/ld-elf/orphan-5.l: Fix expected output.
2758         * testsuite/ld-elf/orphan-6.l: Likewise.
2759
2760 2016-03-30  Alan Modra  <amodra@gmail.com>
2761
2762         PR 18452
2763         * ldlang.c (maybe_overlays): New static var.
2764         (lang_size_sections_1): Set it here.
2765         (struct check_sec): New.
2766         (sort_sections_by_lma): Adjust for array of structs.
2767         (sort_sections_by_vma): New function.
2768         (lang_check_section_addresses): Check both LMA and VMA for overlap.
2769         * testsuite/ld-scripts/rgn-over7.d: Adjust.
2770
2771 2016-03-30  Alan Modra  <amodra@gmail.com>
2772
2773         * ldlang.c (lang_size_sections_1): Correct code detecting a
2774         backward non-overlapping move.
2775
2776 2016-03-30  Alan Modra  <amodra@gmail.com>
2777
2778         * ldlang.c (IS_TBSS): New macro, extracted from..
2779         (IGNORE_SECTION): ..here.
2780         (lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION.
2781         (lang_size_sections, lang_do_assignments_1): Use IS_TBSS.
2782
2783 2016-03-22  Nick Clifton  <nickc@redhat.com>
2784
2785         PR ld/19803
2786         * ldlang.c (lang_add_gc_name): New function.  Adds the provided
2787         symbol name to the list of gc symbols.
2788         (lang_process): Call lang_add_gc_name with entry_symbol_default if
2789         entry_symbol.name is NULL.  Use lang_add_gc_name to add the init
2790         and fini function names.
2791         * pe-dll.c (process_def_file_and_drectve): Add exported names to
2792         the gc symbol list.
2793         * testsuite/ld-pe/pr19803.s: Do not export _testval symbol.
2794         * testsuite/ld-pe/pr19803.d: Tweak expected output.
2795
2796 2016-03-22  Nick Clifton  <nickc@redhat.com>
2797
2798         * configure: Regenerate.
2799
2800 2016-03-21  Nick Clifton  <nickc@redhat.com>
2801
2802         * emultempl/msp430.em: Replace use of alloca with call to xmalloc.
2803         * plugin.c: Likewise.
2804         * pe-dll.c: Likewise.
2805
2806 2016-03-18  Awson  <kyrab@mail.ru>
2807
2808         PR 19531
2809         * scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP
2810         this section.
2811         * scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise.
2812
2813 2016-03-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2814
2815         * ld-avr/gc-section-debugline.d: Relax regex check for CU.
2816
2817 2016-03-15  H.J. Lu  <hongjiu.lu@intel.com>
2818
2819         PR ld/19827
2820         * testsuite/ld-i386/i386.exp: Run PR ld/19827 tests.
2821         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2822         * testsuite/ld-i386/pr19827.rd: New file.
2823         * testsuite/ld-i386/pr19827a.S: Likewise.
2824         * testsuite/ld-i386/pr19827b.S: Likewise.
2825         * testsuite/ld-x86-64/pr19827.rd: Likewise.
2826         * testsuite/ld-x86-64/pr19827a.S: Likewise.
2827         * testsuite/ld-x86-64/pr19827b.S: Likewise.
2828
2829 2016-03-15  H.J. Lu  <hongjiu.lu@intel.com>
2830
2831         PR ld/19807
2832         * Makefile.am (ELF_X86_DEPS): Add
2833         $(srcdir)/emulparams/reloc_overflow.sh.
2834         * Makefile.in: Regenerated.
2835         * NEWS: Mention -z noreloc-overflow.
2836         * ld.texinfo: Document -z noreloc-overflow.
2837         * emulparams/elf32_x86_64.sh: Source
2838         ${srcdir}/emulparams/reloc_overflow.sh.
2839         * emulparams/elf_x86_64.sh: Likewise.
2840         * emulparams/reloc_overflow.sh: New file.
2841         * testsuite/ld-x86-64/pr19807-1.s: New file.
2842         * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
2843         * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
2844         * testsuite/ld-x86-64/pr19807-2.s: Likewise.
2845         * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
2846         * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
2847         * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
2848         * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
2849         * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
2850         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/19807 tests.
2851
2852 2016-03-13  H.J. Lu  <hongjiu.lu@intel.com>
2853
2854         PR ld/19539
2855         * testsuite/ld-i386/i386.exp: Run pr19539.
2856         * testsuite/ld-i386/pr19539.d: New file.
2857         * testsuite/ld-i386/pr19539.s: Likewise.
2858         * testsuite/ld-i386/pr19539.t: Likewise.
2859         * testsuite/ld-x86-64/pr19539.s: Likewise.
2860         * testsuite/ld-x86-64/pr19539.t: Likewise.
2861         * testsuite/ld-x86-64/pr19539a.d: Likewise.
2862         * testsuite/ld-x86-64/pr19539b.d: Likewise.
2863         * testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.
2864
2865 2016-03-10  Mickael Guene  <mickael.guene@st.com>
2866
2867         PR gas/19744
2868         * testsuite/ld-arm/arm-elf.exp: New tests.
2869         * testsuite/ld-arm/thumb1-adds-armv7-m.s: New.
2870         * testsuite/ld-arm/thumb1-movs-armv7-m.s: New.
2871
2872 2016-03-10  Nick Clifton  <nickc@redhat.com>
2873
2874         * scripttempl/elf32msp430.sc (.rodata): Remove spurious LONG(0).
2875
2876 2016-03-09  Pedro Alves  <palves@redhat.com>
2877
2878         * scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH.
2879         * scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH.
2880
2881 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
2882
2883         PR ld/19789
2884         * testsuite/ld-elf/pr19789.d: New file.
2885         * testsuite/ld-elf/pr19789.s: Likewise.
2886
2887 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
2888
2889         PR ld/19784
2890         * testsuite/ld-i386/i386.exp: Remove pr19636-2e-nacl test.
2891         * testsuite/ld-i386/pr19636-2e-nacl.d: Moved to ...
2892         * testsuite/ld-i386/pr19636-2e.d: Here.  Remove notarget.
2893         * testsuite/ld-ifunc/ifunc.exp: Run PR ld/19784 tests.
2894         * testsuite/ld-ifunc/pass.out: New file.
2895         * testsuite/ld-ifunc/pr19784a.c: Likewise.
2896         * testsuite/ld-ifunc/pr19784b.c: Likewise.
2897         * testsuite/ld-ifunc/pr19784c.c: Likewise.
2898
2899 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
2900
2901         PR ld/19774
2902         * testsuite/ld-ifunc/ifunc.exp: Link tmpdir/pr18808a.o before
2903         tmpdir/libpr18808.so.  Link tmpdir/pr18841a.o before
2904         tmpdir/libpr18841b.so and tmpdir/libpr18841c.so.  Test
2905         --as-needed for pr18841c.
2906
2907 2016-03-07  H.J. Lu  <hongjiu.lu@intel.com>
2908
2909         PR ld/19774
2910         * testsuite/ld-i386/i386.exp: Link tmpdir/pr18900.o before
2911         tmpdir/pr18900.so and test --as-needed.  Link tmpdir/gotpc1.o
2912         before tmpdir/got1d.so and test --as-needed.
2913         * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr18900.o before
2914         tmpdir/pr18900.so and test --as-needed.
2915
2916 2016-03-07  Jiong Wang  <jiong.wang@arm.com>
2917
2918         * testsuite/ld-aarch64/implicit_got_section_1.s: New test source file.
2919         * testsuite/ld-aarch64/implicit_got_section_1.d: New test expected
2920         result.
2921         * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
2922
2923 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
2924
2925         * testsuite/ld-i386/i386.exp: Link tmpdir/copyreloc-main.o
2926         before tmpdir/copyreloc-lib.so and test --as-needed.
2927         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2928
2929 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
2930
2931         PR ld/19579
2932         * testsuite/ld-elf/pr19579a.c: New file.
2933         * testsuite/ld-elf/pr19579b.c: Likewise.
2934         * testsuite/ld-elf/shared.exp: Run PR ld/19579 test.
2935
2936 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2937
2938         * testsuite/ld-elf/pr19162.d: Skip hppa-*-*.
2939
2940 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2941
2942         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
2943         Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".
2944
2945 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2946
2947         PR ld/19739
2948         * emultempl/mmo.em (mmo_place_orphan): Don't merge flags of other
2949         input sections for relocatable link.
2950         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2951         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2952
2953 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2954
2955         PR ld/19739
2956         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2957         merge flags of other input sections for relocatable link.
2958
2959 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2960
2961         * testsuite/ld-plugin/lto.exp: Update PR ld/12365 test for GCC 6.
2962
2963 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2964
2965         * testsuite/ld-elf/pr19162.d: Skip arc target.
2966
2967 2016-02-29  H.J. Lu  <hongjiu.lu@intel.com>
2968
2969         PR ld/19162
2970         * testsuite/ld-elf/pr19162.d: New file.
2971         * testsuite/ld-elf/pr19162a.s: Likwise.
2972         * testsuite/ld-elf/pr19162b.s: Likwise.
2973
2974 2016-02-29 Cupertino Miranda  <cmiranda@synopsys.com>
2975
2976         * testsuite/ld-elf/merge.d: Removed xfail for ARC.
2977         * testsuite/ld-elf/merge2.d: Likewise.
2978         * testsuite/ld-elf/merge3.d: Likewise.
2979
2980 2016-02-29  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
2981
2982         * scripttempl/arclinux.sc: Force .tdata and .tbss to always be
2983         generated.
2984
2985 2016-02-26  Renlin Li  <renlin.li@arm.com>
2986
2987         * testsuite/ld-aarch64/aarch64-elf.exp: Run new testcases.
2988         * testsuite/ld-aarch64/emit-relocs-270.d: Update to use new boundary.
2989         * testsuite/ld-aarch64/emit-relocs-271.d: Likewise.
2990         * testsuite/ld-aarch64/emit-relocs-272.d: Likewise.
2991         * testsuite/ld-aarch64/emit-relocs-270-overflow.d: New.
2992         * testsuite/ld-aarch64/emit-relocs-270-overflow.s: New.
2993         * testsuite/ld-aarch64/emit-relocs-271-overflow.d: New.
2994         * testsuite/ld-aarch64/emit-relocs-271-overflow.s: New.
2995         * testsuite/ld-aarch64/emit-relocs-272-overflow.d: New.
2996         * testsuite/ld-aarch64/emit-relocs-272-overflow.s: New.
2997
2998 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
2999
3000         PR ld/19609
3001         * testsuite/ld-i386/got1.dd: Updated.
3002         * testsuite/ld-i386/lea1c.d: Likewise.
3003         * testsuite/ld-i386/load1-nacl.d: Likewise.
3004         * testsuite/ld-i386/load1.d: Likewise.
3005         * testsuite/ld-i386/load4b.d: Likewise.
3006         * testsuite/ld-i386/load5b.d: Likewise.
3007         * testsuite/ld-i386/mov1b.d: Likewise.
3008         * testsuite/ld-x86-64/mov1b.d: Likewise.
3009         * testsuite/ld-x86-64/mov1d.d: Likewise.
3010         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
3011         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
3012         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
3013         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
3014         * testsuite/ld-x86-64/gotpcrel1.dd: Likewise.
3015         * testsuite/ld-x86-64/lea1a.d: Likewise.
3016         * testsuite/ld-x86-64/lea1b.d: Likewise.
3017         * testsuite/ld-x86-64/lea1c.d: Likewise.
3018         * testsuite/ld-x86-64/lea1d.d: Likewise.
3019         * testsuite/ld-x86-64/lea1e.d: Likewise.
3020         * testsuite/ld-x86-64/lea1f.d: Likewise.
3021         * testsuite/ld-x86-64/mov1b.d: Likewise.
3022         * testsuite/ld-x86-64/mov1d.d: Likewise.
3023         * testsuite/ld-x86-64/pr13082-3b.d: Likewise.
3024         * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
3025         * testsuite/ld-x86-64/lea1.s: Add tests for 32-bit registers.
3026         * testsuite/ld-i386/pr19609-1.s: New file.
3027         * testsuite/ld-i386/pr19609-1a.d: Likewise.
3028         * testsuite/ld-i386/pr19609-1b.d: Likewise.
3029         * testsuite/ld-i386/pr19609-1c.d: Likewise.
3030         * testsuite/ld-i386/pr19609-1d.d: Likewise.
3031         * testsuite/ld-i386/pr19609-1e.d: Likewise.
3032         * testsuite/ld-i386/pr19609-1f.d: Likewise.
3033         * testsuite/ld-i386/pr19609-1g.d: Likewise.
3034         * testsuite/ld-i386/pr19609-1h.d: Likewise.
3035         * testsuite/ld-i386/pr19609-1i.d: Likewise.
3036         * testsuite/ld-i386/pr19609-2.s: Likewise.
3037         * testsuite/ld-i386/pr19609-2a.d: Likewise.
3038         * testsuite/ld-i386/pr19609-2b.d: Likewise.
3039         * testsuite/ld-i386/pr19609-2c.d: Likewise.
3040         * testsuite/ld-i386/undefweak.s: Likewise.
3041         * testsuite/ld-i386/undefweaka.d: Likewise.
3042         * testsuite/ld-i386/undefweakb.d: Likewise.
3043         * testsuite/ld-x86-64/pr13082-3c.d: Likewise.
3044         * testsuite/ld-x86-64/pr13082-3d.d: Likewise.
3045         * testsuite/ld-x86-64/pr19609-1.s: Likewise.
3046         * testsuite/ld-x86-64/pr19609-1a.d: Likewise.
3047         * testsuite/ld-x86-64/pr19609-1b.d: Likewise.
3048         * testsuite/ld-x86-64/pr19609-1c.d: Likewise.
3049         * testsuite/ld-x86-64/pr19609-1d.d: Likewise.
3050         * testsuite/ld-x86-64/pr19609-1e.d: Likewise.
3051         * testsuite/ld-x86-64/pr19609-1f.d: Likewise.
3052         * testsuite/ld-x86-64/pr19609-1g.d: Likewise.
3053         * testsuite/ld-x86-64/pr19609-1h.d: Likewise.
3054         * testsuite/ld-x86-64/pr19609-1i.d: Likewise.
3055         * testsuite/ld-x86-64/pr19609-1j.d: Likewise.
3056         * testsuite/ld-x86-64/pr19609-1k.d: Likewise.
3057         * testsuite/ld-x86-64/pr19609-1l.d: Likewise.
3058         * testsuite/ld-x86-64/pr19609-1m.d: Likewise.
3059         * testsuite/ld-x86-64/pr19609-2.s: Likewise.
3060         * testsuite/ld-x86-64/pr19609-2a.d: Likewise.
3061         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
3062         * testsuite/ld-x86-64/pr19609-2c.d: Likewise.
3063         * testsuite/ld-x86-64/pr19609-2d.d: Likewise.
3064         * testsuite/ld-x86-64/pr19609-3.s: Likewise.
3065         * testsuite/ld-x86-64/pr19609-3a.d: Likewise.
3066         * testsuite/ld-x86-64/pr19609-3b.d: Likewise.
3067         * testsuite/ld-x86-64/pr19609-4.s: Likewise.
3068         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
3069         * testsuite/ld-x86-64/pr19609-4b.d: Likewise.
3070         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
3071         * testsuite/ld-x86-64/pr19609-4d.d: Likewise.
3072         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
3073         * testsuite/ld-x86-64/pr19609-5.s: Likewise.
3074         * testsuite/ld-x86-64/pr19609-5a.d: Likewise.
3075         * testsuite/ld-x86-64/pr19609-5b.d: Likewise.
3076         * testsuite/ld-x86-64/pr19609-5c.d: Likewise.
3077         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
3078         * testsuite/ld-x86-64/pr19609-5e.d: Likewise.
3079         * testsuite/ld-x86-64/pr19609-6.s: Likewise.
3080         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
3081         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
3082         * testsuite/ld-x86-64/pr19609-6c.d: Likewise.
3083         * testsuite/ld-x86-64/pr19609-6d.d: Likewise.
3084         * testsuite/ld-x86-64/pr19609-7.s: Likewise.
3085         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
3086         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
3087         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
3088         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
3089         * testsuite/ld-i386/i386.exp: Run undefweak tests and tests for
3090         PR ld/19609.
3091         * testsuite/ld-x86-64/x86-64.exp: Run pr13082-3c, pr13082-3d
3092         and tests for PR ld/19609.
3093
3094 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
3095
3096         PR ld/19645
3097         * NEWS: Mention -z common/-z nocommon for ELF targets.
3098         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
3099         -z common and -z nocommon.
3100         * ld.texinfo: Document -z common/-z nocommon.
3101         * lexsup.c (elf_shlib_list_options): Add -z common/-z nocommon.
3102         * testsuite/ld-elf/tls_common.exp: Test --elf-stt-common=no and
3103         --elf-stt-common=yes with assembler.
3104         * testsuite/ld-elfcomm/common-1.s: New file.
3105         * testsuite/ld-elfcomm/common-1a.d: Likewise.
3106         * testsuite/ld-elfcomm/common-1b.d: Likewise.
3107         * testsuite/ld-elfcomm/common-1c.d: Likewise.
3108         * testsuite/ld-elfcomm/common-1d.d: Likewise.
3109         * testsuite/ld-elfcomm/common-1e.d: Likewise.
3110         * testsuite/ld-elfcomm/common-1f.d: Likewise.
3111         * testsuite/ld-elfcomm/common-2.s: Likewise.
3112         * testsuite/ld-elfcomm/common-2a.d: Likewise.
3113         * testsuite/ld-elfcomm/common-2b.d: Likewise.
3114         * testsuite/ld-elfcomm/common-2c.d: Likewise.
3115         * testsuite/ld-elfcomm/common-2d.d: Likewise.
3116         * testsuite/ld-elfcomm/common-2e.d: Likewise.
3117         * testsuite/ld-elfcomm/common-2f.d: Likewise.
3118         * testsuite/ld-elfcomm/common-3a.rd: Likewise.
3119         * testsuite/ld-elfcomm/common-3b.rd: Likewise.
3120         * testsuite/ld-i386/pr19645.d: Likewise.
3121         * testsuite/ld-i386/pr19645.s: Likewise.
3122         * testsuite/ld-x86-64/largecomm-1.s: Likewise.
3123         * testsuite/ld-x86-64/largecomm-1a.d: Likewise.
3124         * testsuite/ld-x86-64/largecomm-1b.d: Likewise.
3125         * testsuite/ld-x86-64/largecomm-1c.d: Likewise.
3126         * testsuite/ld-x86-64/largecomm-1d.d: Likewise.
3127         * testsuite/ld-x86-64/largecomm-1e.d: Likewise.
3128         * testsuite/ld-x86-64/largecomm-1f.d: Likewise.
3129         * testsuite/ld-x86-64/pr19645.d: Likewise.
3130         * testsuite/ld-x86-64/pr19645.s: Likewise.
3131         * testsuite/ld-elfcomm/elfcomm.exp: Test --elf-stt-common=yes
3132         with assembler.
3133         (assembler_generates_commons): Removed.
3134         Run -z common/-z nocommon tests.  Run *.d tests.
3135         * testsuite/ld-i386/i386.exp: Run pr19645.
3136         * testsuite/ld-x86-64/x86-64.exp: Likewise.
3137         * testsuite/ld-x86-64/dwarfreloc.exp: Test --elf-stt-common with
3138         assembler.  Test STT_COMMON with readelf.
3139
3140 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
3141
3142         PR ld/19636
3143         PR ld/19704
3144         PR ld/19719
3145         * Makefile.am (ELF_X86_DEPS): Add dynamic_undefined_weak.sh.
3146         * Makefile.in: Regenerated.
3147         * NEWS: Mention -z nodynamic-undefined-weak.
3148         * ld.texinfo: Document -z nodynamic-undefined-weak.
3149         * ldmain.c (main): Initialize dynamic_undefined_weak to -1.
3150         * emulparams/dynamic_undefined_weak.sh: New file.
3151         * emulparams/elf32_x86_64.sh: Source dynamic_undefined_weak.sh.
3152         * emulparams/elf_i386.sh: Likewise.
3153         * emulparams/elf_i386_be.sh: Likewise.
3154         * emulparams/elf_i386_chaos.sh: Likewise.
3155         * emulparams/elf_i386_ldso.sh: Likewise.
3156         * emulparams/elf_i386_vxworks.sh: Likewise.
3157         * emulparams/elf_iamcu.sh: Likewise.
3158         * emulparams/elf_k1om.sh: Likewise.
3159         * emulparams/elf_l1om.sh: Likewise.
3160         * emulparams/elf_x86_64.sh: Likewise.
3161         * emulparams/extern_protected_data.sh (PARSE_AND_LIST_OPTIONS):
3162         Append.
3163         (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
3164         * testsuite/ld-elf/pr19719a.c: New file.
3165         * testsuite/ld-elf/pr19719b.c: Likewise.
3166         * testsuite/ld-elf/pr19719c.c: Likewise.
3167         * testsuite/ld-elf/pr19719d.c: Likewise.
3168         * testsuite/ld-i386/pr19636-1.s: Likewise.
3169         * testsuite/ld-i386/pr19636-1a.d: Likewise.
3170         * testsuite/ld-i386/pr19636-1b.d: Likewise.
3171         * testsuite/ld-i386/pr19636-1c.d: Likewise.
3172         * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
3173         * testsuite/ld-i386/pr19636-1d.d: Likewise.
3174         * testsuite/ld-i386/pr19636-1e.d: Likewise.
3175         * testsuite/ld-i386/pr19636-1f.d: Likewise.
3176         * testsuite/ld-i386/pr19636-1g.d: Likewise.
3177         * testsuite/ld-i386/pr19636-1h.d: Likewise.
3178         * testsuite/ld-i386/pr19636-1i.d: Likewise.
3179         * testsuite/ld-i386/pr19636-2.s: Likewise.
3180         * testsuite/ld-i386/pr19636-2a.d: Likewise.
3181         * testsuite/ld-i386/pr19636-2b.d: Likewise.
3182         * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
3183         * testsuite/ld-i386/pr19636-2c.d: Likewise.
3184         * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
3185         * testsuite/ld-i386/pr19636-2d.d: Likewise.
3186         * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
3187         * testsuite/ld-i386/pr19636-2e.d: Likewise.
3188         * testsuite/ld-i386/pr19636-3.s: Likewise.
3189         * testsuite/ld-i386/pr19636-3a.d: Likewise.
3190         * testsuite/ld-i386/pr19636-3b.d: Likewise.
3191         * testsuite/ld-i386/pr19636-3c.d: Likewise.
3192         * testsuite/ld-i386/pr19636-3d.d: Likewise.
3193         * testsuite/ld-i386/pr19636-3e.d: Likewise.
3194         * testsuite/ld-i386/pr19636-3f.d: Likewise.
3195         * testsuite/ld-i386/pr19636-3g.d: Likewise.
3196         * testsuite/ld-i386/pr19636-4.s: Likewise.
3197         * testsuite/ld-i386/pr19636-4a.d: Likewise.
3198         * testsuite/ld-i386/pr19636-4b.d: Likewise.
3199         * testsuite/ld-i386/pr19636-4c.d: Likewise.
3200         * testsuite/ld-i386/pr19636-4d.d: Likewise.
3201         * testsuite/ld-i386/pr19704.out: Likewise.
3202         * testsuite/ld-i386/pr19704a.c: Likewise.
3203         * testsuite/ld-i386/pr19704b.c: Likewise.
3204         * testsuite/ld-x86-64/pr19636-1.s: Likewise.
3205         * testsuite/ld-x86-64/pr19636-1a.d: Likewise.
3206         * testsuite/ld-x86-64/pr19636-1b.d: Likewise.
3207         * testsuite/ld-x86-64/pr19636-1c.d: Likewise.
3208         * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
3209         * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
3210         * testsuite/ld-x86-64/pr19636-1f.d: Likewise.
3211         * testsuite/ld-x86-64/pr19636-1g.d: Likewise.
3212         * testsuite/ld-x86-64/pr19636-2.s: Likewise.
3213         * testsuite/ld-x86-64/pr19636-2a.d: Likewise.
3214         * testsuite/ld-x86-64/pr19636-2b.d: Likewise.
3215         * testsuite/ld-x86-64/pr19636-2c.d: Likewise.
3216         * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
3217         * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
3218         * testsuite/ld-x86-64/pr19636-2e.d: Likewise.
3219         * testsuite/ld-x86-64/pr19636-2f.d: Likewise.
3220         * testsuite/ld-x86-64/pr19636-2g.d: Likewise.
3221         * testsuite/ld-x86-64/pr19636-2h.d: Likewise.
3222         * testsuite/ld-x86-64/pr19636-2i.d: Likewise.
3223         * testsuite/ld-x86-64/pr19636-3.s: Likewise.
3224         * testsuite/ld-x86-64/pr19636-3a.d: Likewise.
3225         * testsuite/ld-x86-64/pr19636-3b.d: Likewise.
3226         * testsuite/ld-x86-64/pr19636-3c.d: Likewise.
3227         * testsuite/ld-x86-64/pr19636-3d.d: Likewise.
3228         * testsuite/ld-x86-64/pr19704.out: Likewise.
3229         * testsuite/ld-x86-64/pr19704a.c: Likewise.
3230         * testsuite/ld-x86-64/pr19704b.c: Likewise.
3231         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): New.
3232         Run mix_pic_and_non_pic.
3233         * testsuite/ld-i386/i386.exp (undefined_weak): New.
3234         Run undefined_weak and PR ld/19636 tests.
3235         * testsuite/ld-x86-64/x86-64.exp: Likewise.
3236         * testsuite/ld-x86-64/pr13082-3b.d: Updated.
3237         * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
3238
3239 2016-02-25  Nick Clifton  <nickc@redhat.com>
3240
3241         * ld.h (struct ld_config_type): Remove specified_data_size field.
3242
3243 2016-02-24  H.J. Lu  <hongjiu.lu@intel.com>
3244
3245         PR ld/19698
3246         * testsuite/ld-elf/pr19698.d: New file.
3247         * testsuite/ld-elf/pr19698.s: Likewise.
3248         * testsuite/ld-elf/pr19698.t: Likewise.
3249
3250 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
3251
3252         * Makefile.am (ELF_X86_DEPS): New.
3253         (eelf_i386.c): Replace $(ELF_DEPS) with $(ELF_X86_DEPS).
3254         (eelf_i386_chaos.c): Likewise.
3255         (eelf_i386_fbsd.c): Likewise.
3256         (eelf_i386_ldso.c): Likewise.
3257         (eelf_i386_nacl.c): Likewise.
3258         (eelf_i386_sol2.c): Likewise.
3259         (eelf_iamcu.c): Likewise.
3260         (eelf32_x86_64.c): Likewise.
3261         (eelf32_x86_64_nacl.c): Likewise.
3262         (eelf_l1om.c): Likewise.
3263         (eelf_l1om_fbsd.c): Likewise.
3264         (eelf_k1om.c): Likewise.
3265         (eelf_k1om_fbsd.c): Likewise.
3266         (eelf_x86_64.c): Likewise.
3267         (eelf_x86_64_cloudabi.c): Likewise.
3268         (eelf_x86_64_fbsd.c): Likewise.
3269         (eelf_x86_64_sol2.c): Likewise.
3270         * Makefile.in: Regenerated.
3271
3272 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
3273
3274         * testsuite/ld-frv/fdpic-pie-6.d: Updated.
3275         * testsuite/ld-mips-elf/pie-n32.d: Likewise.
3276         * testsuite/ld-mips-elf/pie-n64.d: Likewise.
3277         * testsuite/ld-mips-elf/pie-o32.d: Likewise.
3278
3279 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
3280
3281         * testsuite/ld-elf/pr19539.d: Skip cris*-*-* targets.
3282
3283 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3284
3285         * testsuite/ld-elf/pr19617a.d: Enable only for *-*-linux*,
3286         *-*-gnu* and *-*-solaris*.
3287         * testsuite/ld-elf/pr19617b.d: Likewise.
3288         * testsuite/ld-elf/pr19617c.d: Likewise.
3289
3290 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3291
3292         PR ld/19617
3293         * testsuite/ld-elf/pr19617.s: New file.
3294         * testsuite/ld-elf/pr19617a.d: Likewise.
3295         * testsuite/ld-elf/pr19617b.d: Likewise.
3296         * testsuite/ld-elf/pr19617c.d: Likewise.
3297
3298 2016-02-18  Nick Clifton  <nickc@redhat.com>
3299
3300         * Makefile.am (CXX_FOR_TARGET): Check for the presence of an
3301         in-tree xg++ executable after checking for the presence of an
3302         in-tree g++ executable.
3303         * Makefile.in: Regenerate.
3304
3305 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3306
3307         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
3308         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
3309         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
3310
3311 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3312
3313         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
3314         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
3315         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
3316         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
3317         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
3318         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
3319         * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
3320         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
3321         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
3322         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
3323         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
3324         * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
3325         * testsuite/ld-x86-64/load1c.d: Likewise.
3326         * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
3327         * testsuite/ld-x86-64/load1d.d: Likewise.
3328         * testsuite/ld-x86-64/pr14207.d: Likewise.
3329         * testsuite/ld-x86-64/pr19162.d: Likewise.
3330         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
3331         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
3332         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
3333         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
3334         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
3335         * testsuite/ld-x86-64/tlspic.rd: Likewise.
3336
3337 2016-02-17  Nick Clifton  <nickc@redhat.com>
3338
3339         * testsuite/ld-elf/eh-frame-hdr.d: Skip for ARC ELF targets.
3340
3341 2016-02-15  Nick Clifton  <nickc@redhat.com>
3342
3343         * testsuite/ld-i386/pr12718.d: Remove dependency upon the
3344         description of the flags produced by readelf.
3345         * testsuite/ld-i386/pr12921.d: Likewise.
3346         * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
3347         * testsuite/ld-i386/tlsbin.rd: Likewise.
3348         * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
3349         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
3350         * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
3351         * testsuite/ld-i386/tlsdesc.rd: Likewise.
3352         * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
3353         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
3354         * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
3355         * testsuite/ld-i386/tlsnopic.rd: Likewise.
3356         * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
3357         * testsuite/ld-i386/tlspic.rd: Likewise.
3358         * testsuite/ld-s390/tlsbin.rd: Likewise.
3359         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
3360         * testsuite/ld-s390/tlspic.rd: Likewise.
3361         * testsuite/ld-s390/tlspic_64.rd: Likewise.
3362         * testsuite/ld-sh/tlsbin-2.d: Likewise.
3363         * testsuite/ld-sh/tlspic-2.d: Likewise.
3364         * testsuite/ld-tic6x/common.d: Likewise.
3365         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
3366         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
3367         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
3368         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
3369         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
3370         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
3371         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
3372         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
3373         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
3374         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
3375         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
3376         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
3377         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
3378         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
3379         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
3380         * testsuite/ld-x86-64/pr12718.d: Likewise.
3381         * testsuite/ld-x86-64/pr12921.d: Likewise.
3382         * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
3383         * testsuite/ld-x86-64/split-by-file.rd: Likewise.
3384         * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
3385         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
3386         * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
3387         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
3388         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
3389         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
3390         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
3391         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
3392         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
3393         * testsuite/ld-x86-64/tlspic.rd: Likewise.
3394         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
3395         * testsuite/ld-xtensa/tlspic.rd: Likewise.
3396
3397 2016-02-11  H.J. Lu  <hongjiu.lu@intel.com>
3398
3399         PR ld/19615
3400         * ld.texinfo: Document -Bsymbolic and -Bsymbolic-functions for
3401         PIE.
3402         * lexsup.c (parse_args): Enable -Bsymbolic and
3403         -Bsymbolic-functions for PIE.
3404         * testsuite/ld-i386/i386.exp: Run pr19615.
3405         * testsuite/ld-i386/pr19615.d: New file.
3406         * testsuite/ld-i386/pr19615.s: Likewise.
3407         * testsuite/ld-x86-64/pr19615.d: Likewise.
3408         * testsuite/ld-x86-64/pr19615.s: Likewise.
3409
3410 2016-02-09  Nick Clifton  <nickc@redhat.com>
3411
3412         * testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
3413         * testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
3414         * testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
3415         * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
3416
3417 2016-02-04  Nick Clifton  <nickc@redhat.com>
3418
3419         * testsuite/ld-arm/arm-elf.exp: Remove ARM NOREAD section tests.
3420         * testsuite/ld-arm/thumb1-input-section-flag-match.d: Delete.
3421         * testsuite/ld-arm/thumb1-input-section-flag-match.s: Delete.
3422         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.d: Delete.
3423         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s: Delete.
3424         * testsuite/ld-arm/thumb1-noread-present-one-section.d: Delete.
3425         * testsuite/ld-arm/thumb1-noread-present-one-section.s: Delete.
3426         * testsuite/ld-arm/thumb1-noread-present-two-section.d: Delete.
3427         * testsuite/ld-arm/thumb1-noread-present-two-section.s: Delete.
3428
3429 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3430
3431         PR gas/19520
3432         * testsuite/ld-i386/branch1.d: Pass -mrelax-relocations=yes to as.
3433         * testsuite/ld-i386/call1.d: Likewise.
3434         * testsuite/ld-i386/call2.d: Likewise.
3435         * testsuite/ld-i386/call3a.d: Likewise.
3436         * testsuite/ld-i386/call3b.d: Likewise.
3437         * testsuite/ld-i386/call3c.d: Likewise.
3438         * testsuite/ld-i386/call3d.d: Likewise.
3439         * testsuite/ld-i386/call3e.d: Likewise.
3440         * testsuite/ld-i386/call3f.d: Likewise.
3441         * testsuite/ld-i386/call3g.d: Likewise.
3442         * testsuite/ld-i386/call3h.d: Likewise.
3443         * testsuite/ld-i386/jmp1.d: Likewise.
3444         * testsuite/ld-i386/jmp2.d: Likewise.
3445         * testsuite/ld-i386/lea1c.d: Likewise.
3446         * testsuite/ld-i386/load1.d: Likewise.
3447         * testsuite/ld-i386/load2.d: Likewise.
3448         * testsuite/ld-i386/load3.d: Likewise.
3449         * testsuite/ld-i386/load4a.d: Likewise.
3450         * testsuite/ld-i386/load5a.d: Likewise.
3451         * testsuite/ld-i386/mov2b.d: Likewise.
3452         * testsuite/ld-i386/mov3.d: Likewise.
3453         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
3454         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
3455         * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
3456         * testsuite/ld-x86-64/call1a.d: Likewise.
3457         * testsuite/ld-x86-64/call1b.d: Likewise.
3458         * testsuite/ld-x86-64/call1c.d: Likewise.
3459         * testsuite/ld-x86-64/call1d.d: Likewise.
3460         * testsuite/ld-x86-64/call1e.d: Likewise.
3461         * testsuite/ld-x86-64/call1f.d: Likewise.
3462         * testsuite/ld-x86-64/call1h.d: Likewise.
3463         * testsuite/ld-x86-64/call1i.d: Likewise.
3464         * testsuite/ld-x86-64/load1a.d: Likewise.
3465         * testsuite/ld-x86-64/load1b.d: Likewise.
3466         * testsuite/ld-i386/got1a.S: Load GOT into %ecx and use it.
3467         * testsuite/ld-i386/got1.dd: Updated.
3468         * testsuite/ld-i386/got1d.S (1): Removed.
3469         * testsuite/ld-i386/i386.exp: Add -Wa,-mrelax-relocations=yes.
3470         * testsuite/ld-x86-64/x86-64.exp: Likewise.
3471
3472 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
3473
3474         PR ld/18591
3475         * testsuite/ld-x86-64/pr18591.d: New file.
3476         * testsuite/ld-x86-64/pr18591.s: Likewise.
3477         * testsuite/ld-x86-64/x86-64.exp: Run pr18591.
3478
3479 2016-02-01  H.J. Lu  <hongjiu.lu@intel.com>
3480
3481         PR ld/19553
3482         * testsuite/ld-elf/indirect.exp: Run tests for PR ld/19553.
3483         * testsuite/ld-elf/pr19553.map: New file.
3484         * testsuite/ld-elf/pr19553.map: Likewise.
3485         * testsuite/ld-elf/pr19553a.c: Likewise.
3486         * testsuite/ld-elf/pr19553b.c: Likewise.
3487         * testsuite/ld-elf/pr19553b.out: Likewise.
3488         * testsuite/ld-elf/pr19553c.c: Likewise.
3489         * testsuite/ld-elf/pr19553c.out: Likewise.
3490         * testsuite/ld-elf/pr19553d.c: Likewise.
3491         * testsuite/ld-elf/pr19553d.out: Likewise.
3492
3493 2016-01-30  H.J. Lu  <hongjiu.lu@intel.com>
3494
3495         PR ld/19539
3496         * testsuite/ld-elf/pr19539.d: New file.
3497         * testsuite/ld-elf/pr19539.s: Likewise.
3498         * testsuite/ld-elf/pr19539.t: Likewise.
3499
3500 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
3501
3502         PR ld/19533
3503         * configure.ac (compressed_debug_sections): Replace == with =.
3504         * configure: Regenerated.
3505
3506 2016-01-22  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3507
3508         * scripttempl/avr.sc (.noinit): Force .noinit VMA to end of .bss VMA.
3509         * scripttempl/avrtiny.sc (.noinit): Likewise.
3510
3511 2016-01-21  Nick Clifton  <nickc@redhat.com>
3512
3513         PR ld/19453
3514         * testsuite/ld-arm/arm-elf.exp: Skip tests that do not work for
3515         the arm-netbsdelf target.
3516
3517         PR ld/19455
3518         * testsuite/ld-arm/vxworks1-lib.dd: Update for current
3519         disassmebler output.
3520         * testsuite/ld-arm/vxworks1-lib.rd: Likewise.
3521         * testsuite/ld-arm/vxworks1.dd: Likewise.
3522         * testsuite/ld-arm/vxworks1.rd: Likewise.
3523         * testsuite/ld-arm/vxworks1.ld: Set the output format.
3524
3525 2016-01-20  Jiong Wang  <jiong.wang@arm.com>
3526
3527         * testsuite/ld-aarch64/farcall-section.d: Delete.
3528         * testsuite/ld-aarch64/farcall-section.s: Delete.
3529         * testsuite/ld-aarch64/farcall-b-section.d: New expectation file.
3530         * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
3531         * testsuite/ld-aarch64/farcall-b-section.s: New testcase.
3532         * testsuite/ld-aarch64/farcall-bl-section.s: Likewise.
3533         * testsuite/ld-aarch64/aarch64-elf.exp: Likewise.
3534
3535 2016-01-20  Nick Clifton  <nickc@redhat.com>
3536
3537         PR 19457
3538         * testsuite/ld-scripts/script.exp (extract_symbol_test): Stop test
3539         early for PE based targets.
3540         * testsuite/ld-scripts/align.t: Use 0x1000 as VMA alignment.
3541         * testsuite/ld-pe/tlssec32.d: Allow for relocatable output.
3542
3543 2016-01-20  Mickael Guene  <mickael.guene@st.com>
3544
3545         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s:
3546         Add 'y' attribute usage.
3547         * testsuite/ld-arm/thumb1-noread-present-one-section.s: Likewise.
3548         * testsuite/ld-arm/thumb1-noread-present-two-section.s: Likewise.
3549         * testsuite/ld-arm/thumb1-input-section-flag-match.s: Likewise.
3550
3551 2016-01-19  Nick Clifton  <nickc@redhat.com>
3552
3553         * testsuite/ld-elf/pr18735.d: Allow for extra symbols between
3554         foo@FOO and bar@@FOO.
3555
3556 2016-01-18  Alan Modra  <amodra@gmail.com>
3557
3558         * configure: Regenerate.
3559
3560 2016-01-18  Nick Clifton  <nickc@redhat.com>
3561
3562         * testsuite/ld-plugin/plugin.exp: Skip plugin tests if the linker
3563         is not configured to support plugins.
3564
3565         * testsuite/ld-scripts/rgn-at11.s: New file - based on rgn-at10.s
3566         but with 16 byte section alignment.
3567         * testsuite/ld-scripts/rgn-at11.d: Use new source file.  Reenable
3568         test for MIPS targets.
3569
3570 2016-01-17  Alan Modra  <amodra@gmail.com>
3571
3572         * configure: Regenerate.
3573
3574 2016-01-17  Alan Modra  <amodra@gmail.com>
3575
3576         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Exclude xgate.
3577         * testsuite/ld-elf/endsym.d: xfail m68hc11/12 and xgate.
3578         * testsuite/ld-elf/pr14156a.d: Likewise.
3579         * testsuite/ld-elf/pr14926.d: Don't run for m68hc11/12 and xgate.
3580         * testsuite/ld-elf/sec64k.exp: Likewise.
3581
3582 2016-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3583
3584         * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
3585         Set address of .foo section when linking.
3586         * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s: Place myfunc
3587         in .foo section.
3588         * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d: Adapt expected
3589         output to the above changes.
3590
3591 2016-01-13  Nick Clifton  <nickc@redhat.com>
3592
3593         * testsuite/ld-elf/elf.exp (-Bymsolic-functions): Expect to fail
3594         for MIPS targets.
3595
3596         * testsuite/ld-scripts/script.exp (extract_symbol_test): Expect to
3597         fail for MIPS targets.
3598
3599         * testsuite/ld-scripts/rgn-at11.d: Expect this test to fail for
3600         MIPS targets.
3601
3602 2016-01-12  Yury Usishchev  <y.usishchev@samsung.com>
3603
3604         * testsuite/ld-arm/arm-elf.exp: New test.
3605         * testsuite/ld-arm/unwind-mix.d: New file.
3606         * testsuite/ld-arm/unwind-mix1.s: New file.
3607         * testsuite/ld-arm/unwind-mix2.s: New file.
3608
3609 2016-01-08  Jiong Wang  <jiong.wang@arm.com>
3610
3611         PR ld/19368
3612         * testsuite/ld-arm/ifunc-3.rd: Update expected result.
3613         * testsuite/ld-arm/ifunc-4.rd: Likewise.
3614         * testsuite/ld-arm/ifunc-9.rd: Likewise.
3615         * testsuite/ld-arm/ifunc-10.rd: Likewise.
3616         * testsuite/ld-arm/ifunc-12.rd: Likewise.
3617         * testsuite/ld-arm/ifunc-13.rd: Likewise.
3618
3619 2016-01-05  Nick Clifton  <nickc@redhat.com>
3620
3621         * emulparams/msp430elf.sh (RAM_START): Move to 0x500 - above the
3622         MSP430 hardware multiply address range.
3623         * scripttempl/elf32msp430.sc (__romdatastart): Define.
3624         (__romdatacopysize): Define.
3625         * scripttempl/elf32msp430_3.sc: Likewise.
3626
3627 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
3628
3629         * emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
3630         OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
3631
3632 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
3633
3634         * testsuite/ld-mips-elf/attr-gnu-4-14.d: Update the order of
3635         messages expected according to MIPS BFD private data merge
3636         changes.
3637         * testsuite/ld-mips-elf/attr-gnu-4-24.d: Likewise.
3638         * testsuite/ld-mips-elf/attr-gnu-4-34.d: Likewise.
3639         * testsuite/ld-mips-elf/attr-gnu-4-41.d: Likewise.
3640         * testsuite/ld-mips-elf/attr-gnu-4-42.d: Likewise.
3641         * testsuite/ld-mips-elf/attr-gnu-4-43.d: Likewise.
3642         * testsuite/ld-mips-elf/attr-gnu-4-45.d: Likewise.
3643         * testsuite/ld-mips-elf/attr-gnu-4-46.d: Likewise.
3644         * testsuite/ld-mips-elf/attr-gnu-4-47.d: Likewise.
3645         * testsuite/ld-mips-elf/attr-gnu-4-48.d: Likewise.
3646         * testsuite/ld-mips-elf/attr-gnu-4-49.d: Likewise.
3647         * testsuite/ld-mips-elf/attr-gnu-4-54.d: Likewise.
3648         * testsuite/ld-mips-elf/attr-gnu-4-64.d: Likewise.
3649         * testsuite/ld-mips-elf/attr-gnu-4-74.d: Likewise.
3650
3651 2016-01-01  Alan Modra  <amodra@gmail.com>
3652
3653         Update year range in copyright notice of all files.
3654
3655 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
3656 \f
3657 Copyright (C) 2016 Free Software Foundation, Inc.
3658
3659 Copying and distribution of this file, with or without modification,
3660 are permitted in any medium without royalty provided the copyright
3661 notice and this notice are preserved.
3662
3663 Local Variables:
3664 mode: change-log
3665 left-margin: 8
3666 fill-column: 74
3667 version-control: never
3668 End: