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