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