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