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