Fix some AVR test failures.
[external/binutils.git] / ld / ChangeLog
1 2016-05-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2
3         * testsuite/ld-elf/pr18735.d: Allow other symbols.
4         * testsuite/ld-elf/sec64k.exp: Skip 64ksec for avr.
5         * testsuite/ld-gc/pr14265.d: Allow other symbols.
6         * testsuite/ld-plugin/plugin.exp: Add PR ld/17973 to
7         plugin_tests only if check_shared_lib_support is true.
8         * testsuite/ld-selective/selective.exp: Add --section-start
9         flag for avr.
10
11 2016-05-03  Maciej W. Rozycki  <macro@imgtec.com>
12
13         PR 10549
14         * testsuite/ld-unique/unique.exp: Also run for `mips*-*-*'.
15
16 2016-05-03  Jiong Wang  <jiong.wang@arm.com>
17
18         * emultempl/aarch64elf.em (--no-apply-dynamic-relocs): New option.
19         * NEWS: Mention --no-apply-dynamic-relocs.
20         * ld.texinfo (ld and the ARM family): Document
21         --no-apply-dynamic-relocs.
22         * testsuite/ld-aarch64/rela-abs-relative.s: New test source.
23         * testsuite/ld-aarch64/rela-abs-relative.d: New expected result.
24         * testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise for big-endian.
25         * estsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise, but enable new
26         option.
27
28 2016-05-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29
30         * testsuite/ld-elfcomm/elfcomm.exp: Check for shared lib support
31         before running STT_COMMON tests.
32
33 2016-04-29  H.J. Lu  <hongjiu.lu@intel.com>
34
35         * config/default.exp (NOPIE_CFLAGS): Download source only on
36         remote host.
37         (NOPIE_LDFLAGS): Likewise.
38         * testsuite/lib/ld-lib.exp (check_lto_available): Likewise.
39         (check_lto_fat_available): Likewise.
40         (check_lto_shared_available): Likewise.
41         (check_ifunc_available): Likewise.
42         (check_ifunc_attribute_available): Likewise.
43
44 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
45
46         * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
47
48 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
49
50         PR ld/20006
51         * testsuite/ld-elfvsb/elfvsb.exp (COMPRESS_LDFLAG): New.
52         (visibility_run): Pass COMPRESS_LDFLAG to visibility_test on
53         ELF targets.
54
55 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
56
57         * testsuite/ld-elf/compressed1b.d: Pass
58         --compress-debug-sections=none to ld.
59         * testsuite/ld-elf/compressed1c.d: Likewise.
60
61 2016-04-27  Alan Modra  <amodra@gmail.com>
62
63         PR target/19985
64         * configure.tgt: Don't use var+=.
65
66 2016-04-25  Nick Clifton  <nickc@redhat.com>
67
68         PR target/19985
69         * configure.tgt: Include big endian PPC64 emulations with little
70         endian PPC64 targets.
71
72 2016-04-25  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
73
74         * scripttempl/avrtiny.sc (.text): Do not set LMA to zero.
75
76 2016-04-21  Nick Clifton  <nickc@redhat.com>
77
78         * ldlang.c (lang_check_relocs): Use bfd_link_check_relocs in
79         prefernce to _bfd_elf_link_check_relocs.  Drop test for ELF
80         targets.  Do not stop the checks when problems are encountered.
81
82 2016-04-21  Alan Modra  <amodra@gmail.com>
83
84         * testsuite/ld-scripts/cross3.t: Add commonly used data
85         and text section names to output section statements.
86         * testsuite/ld-scripts/cross4.t: Likewise.
87         * testsuite/ld-scripts/cross5.t: Likewise.
88         * testsuite/ld-scripts/cross6.t: Likewise.
89         * testsuite/ld-scripts/cross7.t: Likewise.
90
91 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
92
93         * ldlang.c (lang_check_relocs): New function.
94         (lang_process): Call lang_check_relocs after lang_gc_sections.
95         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
96         call _bfd_elf_link_check_relocs here.
97
98 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
99
100         PR ld/19972
101         * testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for
102         R_386_NONE or R_X86_64_NONE.
103
104 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
105
106         * testsuite/ld-x86-64/pic1.d: New file.
107         * testsuite/ld-x86-64/pic1.s: Likewise.
108         * testsuite/ld-x86-64/x86-64.exp: Run pic1.
109
110 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
111
112         * testsuite/ld-x86-64/pie2.d: New file.
113         * testsuite/ld-x86-64/pie2.s: Likewise.
114         * testsuite/ld-x86-64/x86-64.exp: Run pie2.
115
116 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
117
118         PR ld/19969
119         * testsuite/ld-x86-64/pr19969.d: New file.
120         * testsuite/ld-x86-64/pr19969a.S: Likewise.
121         * testsuite/ld-x86-64/pr19969b.S: Likewise.
122         * testsuite/ld-x86-64/x86-64.exp: Run pr19969 tests.
123
124 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
125
126         * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
127         New.
128         * emulparams/elf_i386.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
129         Likewise.
130         * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
131         Likewise.
132         * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
133         Likewise.
134         * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
135         Likewise.
136         * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
137         Likewise.
138         * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
139         Likewise.
140         * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
141         Likewise.
142         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
143         Set check_relocs_after_open_input to TRUE if
144         CHECK_RELOCS_AFTER_OPEN_INPUT is yes.
145         (gld${EMULATION_NAME}_after_open): Call
146         _bfd_elf_link_check_relocs on all inputs if
147         check_relocs_after_open_input is TRUE.
148
149 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
150
151         * testsuite/ld-elf/eh6.s: Replace .long with .dc.a on
152         my_personality_v0.
153
154 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
155
156         * emultempl/scoreelf.em: Likewise.
157
158 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
159
160         PR ld/19719
161         * testsuite/ld-x86-64/pr19719.d: New file.
162         * testsuite/ld-x86-64/pr19719.s: Likewise.
163         * testsuite/ld-x86-64/x86-64.exp: Run pr19719.
164
165 2016-04-18  Matthew Fortune  <matthew.fortune@imgtec.com>
166
167         * ld.texinfo: Document NOCROSSREFS_TO script command.
168         * ldlang.h (struct lang_nocrossrefs): Add onlyfirst field.
169         (lang_add_nocrossref_to): New prototype.
170         * ldcref.c (check_local_sym_xref): Use onlyfirst to only look for
171         symbols defined in the first section.
172         (check_nocrossref): Likewise.
173         * ldgram.y (NOCROSSREFS_TO): New script command.
174         * ldlang.c (lang_add_nocrossref): Set onlyfirst to FALSE.
175         (lang_add_nocrossref_to): New function.
176         * ldlex.l (NOCROSSREFS_TO): New token.
177         * NEWS: Mention NOCROSSREFS_TO.
178         * testsuite/ld-scripts/cross4.t: New file.
179         * testsuite/ld-scripts/cross5.t: Likewise.
180         * testsuite/ld-scripts/cross6.t: Likewise.
181         * testsuite/ld-scripts/cross7.t: Likewise.
182         * testsuite/ld-scripts/crossref.exp: Run 4 new NOCROSSREFS_TO
183         tests.
184
185 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
186
187         * Makefile.in: Regenerated with automake 1.11.6.
188         * aclocal.m4: Likewise.
189
190 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
191
192         * testsuite/ld-arc/arc.exp: New file.
193         * testsuite/ld-arc/nps-1.s: New file.
194         * testsuite/ld-arc/nps-1a.d: New file.
195         * testsuite/ld-arc/nps-1b.d: New file.
196         * testsuite/ld-arc/nps-1b.err: New file.
197
198 2016-04-14  Nick Clifton  <nickc@redhat.com>
199
200         PR 19457
201         * testsuite/ld-scripts/script.exp (extract_symbol_test): Add
202         exceptions for Mingw and Cygwin.
203
204 2016-04-13  Andrew Burgess  <andrew.burgess@embecosm.com>
205
206         * testsuite/lib/ld-lib.exp (run_dump_test): Initialise
207         check_ld(terminal).
208
209 2016-04-13  H.J. Lu  <hongjiu.lu@intel.com>
210
211         PR ld/19774
212         * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr17689b.o before
213         tmpdir/pr17689.so, fix gotpcrel1 test and add more --as-needed
214         tests.
215
216 2016-04-11  H.J. Lu  <hongjiu.lu@intel.com>
217
218         PR ld/19939
219         * testsuite/ld-i386/i386.exp: Run PR ld/19939 tests.
220         * testsuite/ld-x86-64/x86-64.exp: Likewise.
221         * testsuite/ld-i386/pr19939.s: New file.
222         * testsuite/ld-i386/pr19939a.d: Likewise.
223         * testsuite/ld-i386/pr19939b.d: Likewise.
224         * testsuite/ld-x86-64/pr19939.s: Likewise.
225         * testsuite/ld-x86-64/pr19939a.d: Likewise.
226         * testsuite/ld-x86-64/pr19939b.d: Likewise.
227
228 2016-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
229
230         * emulparams/shelf.sh: Set stack area to 0x3FFFFF00.
231
232 2016-04-08  Alan Modra  <amodra@gmail.com>
233
234         PR 18452
235         * ldlang.c (maybe_overlays): Delete.
236         (lang_size_sections_1): Remove code setting maybe_overlays.
237         (lang_check_section_addresses): Instead detect overlays by
238         exact match of section VMAs here.  Fix memory leak.
239
240 2016-04-08  Dan Gisselquist  <dgisselq@ieee.org>
241
242         * ldlang.c (print_output_section_statement): Show minfo size
243         in target machine address units.
244         (print_reloc_statement): Likewise.
245         (print_padding_statement): Likewise.
246         (print_data_statement): Likewise.  Ensure minimum print_dot
247         increment of one address unit.
248
249 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
250
251         * emulparams/arc-endianness.sh: Make little endian default choice.
252
253 2016-04-07  Nick Clifton  <nickc@redhat.com>
254
255         * scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in
256         section name.
257         * scripttempl/elf32msp430_3.sc (.MSP430.attributes): Likewise.
258
259 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
260
261         * emulparams/arc-endianness.sh: New file.
262         * emulparams/arcebelf.sh: Deleted.
263         * emulparams/arcebelf_prof.sh: Deleted.
264         * emulparams/arceblinux.sh: Deleted.
265         * emulparams/arceblinux_prof.sh: Deleted.
266         * emulparams/arcelf.sh: Include arc-endinness.sh.
267         * emulparams/arcelf_prof.sh: Include arc-endinness.sh.
268         * emulparams/arclinux.sh: Include arc-endinness.sh.
269         * emulparams/arclinux_prof.sh: Include arc-endinness.sh.
270         * emulparams/arcv2elf.sh: Include arc-endinness.sh.
271         * emulparams/arcv2elfx.sh: Include arc-endinness.sh.
272         * testsuite/ld-elf/compressed1d.d: Update pattern for big and
273         little endian arc targets.
274         * testsuite/ld-elf/eh-frame-hdr.d: Likewise.
275         * testsuite/ld-elf/group1.d: Likewise.
276         * testsuite/ld-elf/group3b.d: Likewise.
277         * testsuite/ld-elf/group8a.d: Likewise.
278         * testsuite/ld-elf/group8b.d: Likewise.
279         * testsuite/ld-elf/group9a.d: Likewise.
280         * testsuite/ld-elf/group9b.d: Likewise.
281         * testsuite/ld-elf/linkonce2.d: Likewise.
282         * testsuite/ld-elf/pr12851.d: Likewise.
283         * testsuite/ld-elf/pr12975.d: Likewise.
284         * testsuite/ld-elf/pr13177.d: Likewise.
285         * testsuite/ld-elf/pr13195.d: Likewise.
286         * testsuite/ld-elf/pr17615.d: Likewise.
287         * testsuite/ld-elf/pr19162.d: Likewise.
288         * testsuite/ld-elf/sec64k.exp: Likewise.
289         * testsuite/lib/ld-lib.exp: Likewise.
290
291 2016-04-05  Maciej W. Rozycki  <macro@imgtec.com>
292
293         PR ld/19908
294         * testsuite/ld-cris/tls-e-20.d: Adjust for hidden symbol
295         handling fix.
296         * testsuite/ld-cris/tls-e-20a.d: Likewise.
297         * testsuite/ld-cris/tls-e-21.d: Likewise.
298         * testsuite/ld-cris/tls-e-23.d: Likewise.
299         * testsuite/ld-cris/tls-e-80.d: Likewise.
300         * testsuite/ld-cris/tls-gd-3h.d: Likewise.
301         * testsuite/ld-cris/tls-leie-19.d: Likewise.
302         * testsuite/ld-mips-elf/export-class-ref-lib.sd: New test.
303         * testsuite/ld-mips-elf/export-hidden-ref.sd: New test.
304         * testsuite/ld-mips-elf/export-internal-ref.sd: New test.
305         * testsuite/ld-mips-elf/export-protected-ref.sd: New test.
306         * testsuite/ld-mips-elf/export-class-ref-f0.s: New test source.
307         * testsuite/ld-mips-elf/export-class-ref-f1.s: New test source.
308         * testsuite/ld-mips-elf/export-class-ref-f2.s: New test source.
309         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
310
311 2016-04-05  Cupertino Miranda  <cmiranda@synopsys.com>
312
313         * testsuite/ld-discard/extern.d: Removed xfail for ARC.
314         * testsuite/ld-discard/start.d: Likewise.
315         * testsuite/ld-discard/static.d: Likewise.
316         * testsuite/ld-elf/group1.d: Likewise.
317         * testsuite/ld-elf/group3b.d: Likewise.
318         * testsuite/ld-elf/orphan-region.d: Likewise.
319         * testsuite/ld-elf/orphan.d: Likewise.
320         * testsuite/ld-elf/orphan3.d: Likewise.
321         * testsuite/ld-elf/pr349.d: Likewise.
322         * testsuite/ld-elf/warn1.d: Likewise.
323         * testsuite/ld-elf/warn2.d: Likewise.
324         * testsuite/ld-elf/warn3.d: Likewise.
325         * testsuite/ld-scripts/crossref.exp: Add __SDATA_BEGIN__ symbol
326         through linker flags.
327         * testsuite/ld-srec/srec.exp: Set as xfail.
328
329 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
330
331         PR ld/19827
332         * testsuite/ld-i386/pr19827-nacl.rd: New file.
333         * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
334
335 2016-04-04  Nick Clifton  <nickc@redhat.com>
336
337         PR 19803
338         * emultempl/pe.em (change_undef): New function.  Encapsulates
339         duplicated code in pe_fixup_stdcalls and adds the newly defined
340         sym to the gc root list.
341         (pe_fixup_stdcall): Use the new function.
342         * pe-dll.c (process_def_file_and_drectve); Add alias of exported
343         symbol to gc root list.
344
345 2016-03-31  Alan Modra  <amodra@gmail.com>
346
347         * ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file.
348         (lang_insert_orphan): Use TO_ADDR in __stop sym calculation.
349         (print_input_section): Don't use TO_ADDR when printing section
350         size.
351         (lang_size_sections_1): Use TO_ADDR in overlay lma calculation.
352         (lang_size_sections): Use TO_ADDR in relro end calculation.
353
354 2016-03-30  Andrew Burgess  <andrew.burgess@embecosm.com>
355
356         * testsuite/lib/ld-lib.exp (run_dump_test): Fix check of return
357         value from regexp_diff.
358         * testsuite/ld-elf/orphan-5.l: Fix expected output.
359         * testsuite/ld-elf/orphan-6.l: Likewise.
360
361 2016-03-30  Alan Modra  <amodra@gmail.com>
362
363         PR 18452
364         * ldlang.c (maybe_overlays): New static var.
365         (lang_size_sections_1): Set it here.
366         (struct check_sec): New.
367         (sort_sections_by_lma): Adjust for array of structs.
368         (sort_sections_by_vma): New function.
369         (lang_check_section_addresses): Check both LMA and VMA for overlap.
370         * testsuite/ld-scripts/rgn-over7.d: Adjust.
371
372 2016-03-30  Alan Modra  <amodra@gmail.com>
373
374         * ldlang.c (lang_size_sections_1): Correct code detecting a
375         backward non-overlapping move.
376
377 2016-03-30  Alan Modra  <amodra@gmail.com>
378
379         * ldlang.c (IS_TBSS): New macro, extracted from..
380         (IGNORE_SECTION): ..here.
381         (lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION.
382         (lang_size_sections, lang_do_assignments_1): Use IS_TBSS.
383
384 2016-03-22  Nick Clifton  <nickc@redhat.com>
385
386         PR ld/19803
387         * ldlang.c (lang_add_gc_name): New function.  Adds the provided
388         symbol name to the list of gc symbols.
389         (lang_process): Call lang_add_gc_name with entry_symbol_default if
390         entry_symbol.name is NULL.  Use lang_add_gc_name to add the init
391         and fini function names.
392         * pe-dll.c (process_def_file_and_drectve): Add exported names to
393         the gc symbol list.
394         * testsuite/ld-pe/pr19803.s: Do not export _testval symbol.
395         * testsuite/ld-pe/pr19803.d: Tweak expected output.
396
397 2016-03-22  Nick Clifton  <nickc@redhat.com>
398
399         * configure: Regenerate.
400
401 2016-03-21  Nick Clifton  <nickc@redhat.com>
402
403         * emultempl/msp430.em: Replace use of alloca with call to xmalloc.
404         * plugin.c: Likewise.
405         * pe-dll.c: Likewise.
406
407 2016-03-18  Awson  <kyrab@mail.ru>
408
409         PR 19531
410         * scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP
411         this section.
412         * scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise.
413
414 2016-03-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
415
416         * ld-avr/gc-section-debugline.d: Relax regex check for CU.
417
418 2016-03-15  H.J. Lu  <hongjiu.lu@intel.com>
419
420         PR ld/19827
421         * testsuite/ld-i386/i386.exp: Run PR ld/19827 tests.
422         * testsuite/ld-x86-64/x86-64.exp: Likewise.
423         * testsuite/ld-i386/pr19827.rd: New file.
424         * testsuite/ld-i386/pr19827a.S: Likewise.
425         * testsuite/ld-i386/pr19827b.S: Likewise.
426         * testsuite/ld-x86-64/pr19827.rd: Likewise.
427         * testsuite/ld-x86-64/pr19827a.S: Likewise.
428         * testsuite/ld-x86-64/pr19827b.S: Likewise.
429
430 2016-03-15  H.J. Lu  <hongjiu.lu@intel.com>
431
432         PR ld/19807
433         * Makefile.am (ELF_X86_DEPS): Add
434         $(srcdir)/emulparams/reloc_overflow.sh.
435         * Makefile.in: Regenerated.
436         * NEWS: Mention -z noreloc-overflow.
437         * ld.texinfo: Document -z noreloc-overflow.
438         * emulparams/elf32_x86_64.sh: Source
439         ${srcdir}/emulparams/reloc_overflow.sh.
440         * emulparams/elf_x86_64.sh: Likewise.
441         * emulparams/reloc_overflow.sh: New file.
442         * testsuite/ld-x86-64/pr19807-1.s: New file.
443         * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
444         * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
445         * testsuite/ld-x86-64/pr19807-2.s: Likewise.
446         * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
447         * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
448         * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
449         * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
450         * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
451         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/19807 tests.
452
453 2016-03-13  H.J. Lu  <hongjiu.lu@intel.com>
454
455         PR ld/19539
456         * testsuite/ld-i386/i386.exp: Run pr19539.
457         * testsuite/ld-i386/pr19539.d: New file.
458         * testsuite/ld-i386/pr19539.s: Likewise.
459         * testsuite/ld-i386/pr19539.t: Likewise.
460         * testsuite/ld-x86-64/pr19539.s: Likewise.
461         * testsuite/ld-x86-64/pr19539.t: Likewise.
462         * testsuite/ld-x86-64/pr19539a.d: Likewise.
463         * testsuite/ld-x86-64/pr19539b.d: Likewise.
464         * testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.
465
466 2016-03-10  Mickael Guene  <mickael.guene@st.com>
467
468         PR gas/19744
469         * testsuite/ld-arm/arm-elf.exp: New tests.
470         * testsuite/ld-arm/thumb1-adds-armv7-m.s: New.
471         * testsuite/ld-arm/thumb1-movs-armv7-m.s: New.
472
473 2016-03-10  Nick Clifton  <nickc@redhat.com>
474
475         * scripttempl/elf32msp430.sc (.rodata): Remove spurious LONG(0).
476
477 2016-03-09  Pedro Alves  <palves@redhat.com>
478
479         * scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH.
480         * scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH.
481
482 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
483
484         PR ld/19789
485         * testsuite/ld-elf/pr19789.d: New file.
486         * testsuite/ld-elf/pr19789.s: Likewise.
487
488 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
489
490         PR ld/19784
491         * testsuite/ld-i386/i386.exp: Remove pr19636-2e-nacl test.
492         * testsuite/ld-i386/pr19636-2e-nacl.d: Moved to ...
493         * testsuite/ld-i386/pr19636-2e.d: Here.  Remove notarget.
494         * testsuite/ld-ifunc/ifunc.exp: Run PR ld/19784 tests.
495         * testsuite/ld-ifunc/pass.out: New file.
496         * testsuite/ld-ifunc/pr19784a.c: Likewise.
497         * testsuite/ld-ifunc/pr19784b.c: Likewise.
498         * testsuite/ld-ifunc/pr19784c.c: Likewise.
499
500 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
501
502         PR ld/19774
503         * testsuite/ld-ifunc/ifunc.exp: Link tmpdir/pr18808a.o before
504         tmpdir/libpr18808.so.  Link tmpdir/pr18841a.o before
505         tmpdir/libpr18841b.so and tmpdir/libpr18841c.so.  Test
506         --as-needed for pr18841c.
507
508 2016-03-07  H.J. Lu  <hongjiu.lu@intel.com>
509
510         PR ld/19774
511         * testsuite/ld-i386/i386.exp: Link tmpdir/pr18900.o before
512         tmpdir/pr18900.so and test --as-needed.  Link tmpdir/gotpc1.o
513         before tmpdir/got1d.so and test --as-needed.
514         * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr18900.o before
515         tmpdir/pr18900.so and test --as-needed.
516
517 2016-03-07  Jiong Wang  <jiong.wang@arm.com>
518
519         * testsuite/ld-aarch64/implicit_got_section_1.s: New test source file.
520         * testsuite/ld-aarch64/implicit_got_section_1.d: New test expected
521         result.
522         * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
523
524 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
525
526         * testsuite/ld-i386/i386.exp: Link tmpdir/copyreloc-main.o
527         before tmpdir/copyreloc-lib.so and test --as-needed.
528         * testsuite/ld-x86-64/x86-64.exp: Likewise.
529
530 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
531
532         PR ld/19579
533         * testsuite/ld-elf/pr19579a.c: New file.
534         * testsuite/ld-elf/pr19579b.c: Likewise.
535         * testsuite/ld-elf/shared.exp: Run PR ld/19579 test.
536
537 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
538
539         * testsuite/ld-elf/pr19162.d: Skip hppa-*-*.
540
541 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
542
543         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
544         Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".
545
546 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
547
548         PR ld/19739
549         * emultempl/mmo.em (mmo_place_orphan): Don't merge flags of other
550         input sections for relocatable link.
551         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
552         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
553
554 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
555
556         PR ld/19739
557         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
558         merge flags of other input sections for relocatable link.
559
560 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
561
562         * testsuite/ld-plugin/lto.exp: Update PR ld/12365 test for GCC 6.
563
564 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
565
566         * testsuite/ld-elf/pr19162.d: Skip arc target.
567
568 2016-02-29  H.J. Lu  <hongjiu.lu@intel.com>
569
570         PR ld/19162
571         * testsuite/ld-elf/pr19162.d: New file.
572         * testsuite/ld-elf/pr19162a.s: Likwise.
573         * testsuite/ld-elf/pr19162b.s: Likwise.
574
575 2016-02-29 Cupertino Miranda  <cmiranda@synopsys.com>
576
577         * testsuite/ld-elf/merge.d: Removed xfail for ARC.
578         * testsuite/ld-elf/merge2.d: Likewise.
579         * testsuite/ld-elf/merge3.d: Likewise.
580
581 2016-02-29  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
582
583         * scripttempl/arclinux.sc: Force .tdata and .tbss to always be
584         generated.
585
586 2016-02-26  Renlin Li  <renlin.li@arm.com>
587
588         * testsuite/ld-aarch64/aarch64-elf.exp: Run new testcases.
589         * testsuite/ld-aarch64/emit-relocs-270.d: Update to use new boundary.
590         * testsuite/ld-aarch64/emit-relocs-271.d: Likewise.
591         * testsuite/ld-aarch64/emit-relocs-272.d: Likewise.
592         * testsuite/ld-aarch64/emit-relocs-270-overflow.d: New.
593         * testsuite/ld-aarch64/emit-relocs-270-overflow.s: New.
594         * testsuite/ld-aarch64/emit-relocs-271-overflow.d: New.
595         * testsuite/ld-aarch64/emit-relocs-271-overflow.s: New.
596         * testsuite/ld-aarch64/emit-relocs-272-overflow.d: New.
597         * testsuite/ld-aarch64/emit-relocs-272-overflow.s: New.
598
599 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
600
601         PR ld/19609
602         * testsuite/ld-i386/got1.dd: Updated.
603         * testsuite/ld-i386/lea1c.d: Likewise.
604         * testsuite/ld-i386/load1-nacl.d: Likewise.
605         * testsuite/ld-i386/load1.d: Likewise.
606         * testsuite/ld-i386/load4b.d: Likewise.
607         * testsuite/ld-i386/load5b.d: Likewise.
608         * testsuite/ld-i386/mov1b.d: Likewise.
609         * testsuite/ld-x86-64/mov1b.d: Likewise.
610         * testsuite/ld-x86-64/mov1d.d: Likewise.
611         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
612         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
613         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
614         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
615         * testsuite/ld-x86-64/gotpcrel1.dd: Likewise.
616         * testsuite/ld-x86-64/lea1a.d: Likewise.
617         * testsuite/ld-x86-64/lea1b.d: Likewise.
618         * testsuite/ld-x86-64/lea1c.d: Likewise.
619         * testsuite/ld-x86-64/lea1d.d: Likewise.
620         * testsuite/ld-x86-64/lea1e.d: Likewise.
621         * testsuite/ld-x86-64/lea1f.d: Likewise.
622         * testsuite/ld-x86-64/mov1b.d: Likewise.
623         * testsuite/ld-x86-64/mov1d.d: Likewise.
624         * testsuite/ld-x86-64/pr13082-3b.d: Likewise.
625         * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
626         * testsuite/ld-x86-64/lea1.s: Add tests for 32-bit registers.
627         * testsuite/ld-i386/pr19609-1.s: New file.
628         * testsuite/ld-i386/pr19609-1a.d: Likewise.
629         * testsuite/ld-i386/pr19609-1b.d: Likewise.
630         * testsuite/ld-i386/pr19609-1c.d: Likewise.
631         * testsuite/ld-i386/pr19609-1d.d: Likewise.
632         * testsuite/ld-i386/pr19609-1e.d: Likewise.
633         * testsuite/ld-i386/pr19609-1f.d: Likewise.
634         * testsuite/ld-i386/pr19609-1g.d: Likewise.
635         * testsuite/ld-i386/pr19609-1h.d: Likewise.
636         * testsuite/ld-i386/pr19609-1i.d: Likewise.
637         * testsuite/ld-i386/pr19609-2.s: Likewise.
638         * testsuite/ld-i386/pr19609-2a.d: Likewise.
639         * testsuite/ld-i386/pr19609-2b.d: Likewise.
640         * testsuite/ld-i386/pr19609-2c.d: Likewise.
641         * testsuite/ld-i386/undefweak.s: Likewise.
642         * testsuite/ld-i386/undefweaka.d: Likewise.
643         * testsuite/ld-i386/undefweakb.d: Likewise.
644         * testsuite/ld-x86-64/pr13082-3c.d: Likewise.
645         * testsuite/ld-x86-64/pr13082-3d.d: Likewise.
646         * testsuite/ld-x86-64/pr19609-1.s: Likewise.
647         * testsuite/ld-x86-64/pr19609-1a.d: Likewise.
648         * testsuite/ld-x86-64/pr19609-1b.d: Likewise.
649         * testsuite/ld-x86-64/pr19609-1c.d: Likewise.
650         * testsuite/ld-x86-64/pr19609-1d.d: Likewise.
651         * testsuite/ld-x86-64/pr19609-1e.d: Likewise.
652         * testsuite/ld-x86-64/pr19609-1f.d: Likewise.
653         * testsuite/ld-x86-64/pr19609-1g.d: Likewise.
654         * testsuite/ld-x86-64/pr19609-1h.d: Likewise.
655         * testsuite/ld-x86-64/pr19609-1i.d: Likewise.
656         * testsuite/ld-x86-64/pr19609-1j.d: Likewise.
657         * testsuite/ld-x86-64/pr19609-1k.d: Likewise.
658         * testsuite/ld-x86-64/pr19609-1l.d: Likewise.
659         * testsuite/ld-x86-64/pr19609-1m.d: Likewise.
660         * testsuite/ld-x86-64/pr19609-2.s: Likewise.
661         * testsuite/ld-x86-64/pr19609-2a.d: Likewise.
662         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
663         * testsuite/ld-x86-64/pr19609-2c.d: Likewise.
664         * testsuite/ld-x86-64/pr19609-2d.d: Likewise.
665         * testsuite/ld-x86-64/pr19609-3.s: Likewise.
666         * testsuite/ld-x86-64/pr19609-3a.d: Likewise.
667         * testsuite/ld-x86-64/pr19609-3b.d: Likewise.
668         * testsuite/ld-x86-64/pr19609-4.s: Likewise.
669         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
670         * testsuite/ld-x86-64/pr19609-4b.d: Likewise.
671         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
672         * testsuite/ld-x86-64/pr19609-4d.d: Likewise.
673         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
674         * testsuite/ld-x86-64/pr19609-5.s: Likewise.
675         * testsuite/ld-x86-64/pr19609-5a.d: Likewise.
676         * testsuite/ld-x86-64/pr19609-5b.d: Likewise.
677         * testsuite/ld-x86-64/pr19609-5c.d: Likewise.
678         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
679         * testsuite/ld-x86-64/pr19609-5e.d: Likewise.
680         * testsuite/ld-x86-64/pr19609-6.s: Likewise.
681         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
682         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
683         * testsuite/ld-x86-64/pr19609-6c.d: Likewise.
684         * testsuite/ld-x86-64/pr19609-6d.d: Likewise.
685         * testsuite/ld-x86-64/pr19609-7.s: Likewise.
686         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
687         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
688         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
689         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
690         * testsuite/ld-i386/i386.exp: Run undefweak tests and tests for
691         PR ld/19609.
692         * testsuite/ld-x86-64/x86-64.exp: Run pr13082-3c, pr13082-3d
693         and tests for PR ld/19609.
694
695 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
696
697         PR ld/19645
698         * NEWS: Mention -z common/-z nocommon for ELF targets.
699         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
700         -z common and -z nocommon.
701         * ld.texinfo: Document -z common/-z nocommon.
702         * lexsup.c (elf_shlib_list_options): Add -z common/-z nocommon.
703         * testsuite/ld-elf/tls_common.exp: Test --elf-stt-common=no and
704         --elf-stt-common=yes with assembler.
705         * testsuite/ld-elfcomm/common-1.s: New file.
706         * testsuite/ld-elfcomm/common-1a.d: Likewise.
707         * testsuite/ld-elfcomm/common-1b.d: Likewise.
708         * testsuite/ld-elfcomm/common-1c.d: Likewise.
709         * testsuite/ld-elfcomm/common-1d.d: Likewise.
710         * testsuite/ld-elfcomm/common-1e.d: Likewise.
711         * testsuite/ld-elfcomm/common-1f.d: Likewise.
712         * testsuite/ld-elfcomm/common-2.s: Likewise.
713         * testsuite/ld-elfcomm/common-2a.d: Likewise.
714         * testsuite/ld-elfcomm/common-2b.d: Likewise.
715         * testsuite/ld-elfcomm/common-2c.d: Likewise.
716         * testsuite/ld-elfcomm/common-2d.d: Likewise.
717         * testsuite/ld-elfcomm/common-2e.d: Likewise.
718         * testsuite/ld-elfcomm/common-2f.d: Likewise.
719         * testsuite/ld-elfcomm/common-3a.rd: Likewise.
720         * testsuite/ld-elfcomm/common-3b.rd: Likewise.
721         * testsuite/ld-i386/pr19645.d: Likewise.
722         * testsuite/ld-i386/pr19645.s: Likewise.
723         * testsuite/ld-x86-64/largecomm-1.s: Likewise.
724         * testsuite/ld-x86-64/largecomm-1a.d: Likewise.
725         * testsuite/ld-x86-64/largecomm-1b.d: Likewise.
726         * testsuite/ld-x86-64/largecomm-1c.d: Likewise.
727         * testsuite/ld-x86-64/largecomm-1d.d: Likewise.
728         * testsuite/ld-x86-64/largecomm-1e.d: Likewise.
729         * testsuite/ld-x86-64/largecomm-1f.d: Likewise.
730         * testsuite/ld-x86-64/pr19645.d: Likewise.
731         * testsuite/ld-x86-64/pr19645.s: Likewise.
732         * testsuite/ld-elfcomm/elfcomm.exp: Test --elf-stt-common=yes
733         with assembler.
734         (assembler_generates_commons): Removed.
735         Run -z common/-z nocommon tests.  Run *.d tests.
736         * testsuite/ld-i386/i386.exp: Run pr19645.
737         * testsuite/ld-x86-64/x86-64.exp: Likewise.
738         * testsuite/ld-x86-64/dwarfreloc.exp: Test --elf-stt-common with
739         assembler.  Test STT_COMMON with readelf.
740
741 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
742
743         PR ld/19636
744         PR ld/19704
745         PR ld/19719
746         * Makefile.am (ELF_X86_DEPS): Add dynamic_undefined_weak.sh.
747         * Makefile.in: Regenerated.
748         * NEWS: Mention -z nodynamic-undefined-weak.
749         * ld.texinfo: Document -z nodynamic-undefined-weak.
750         * ldmain.c (main): Initialize dynamic_undefined_weak to -1.
751         * emulparams/dynamic_undefined_weak.sh: New file.
752         * emulparams/elf32_x86_64.sh: Source dynamic_undefined_weak.sh.
753         * emulparams/elf_i386.sh: Likewise.
754         * emulparams/elf_i386_be.sh: Likewise.
755         * emulparams/elf_i386_chaos.sh: Likewise.
756         * emulparams/elf_i386_ldso.sh: Likewise.
757         * emulparams/elf_i386_vxworks.sh: Likewise.
758         * emulparams/elf_iamcu.sh: Likewise.
759         * emulparams/elf_k1om.sh: Likewise.
760         * emulparams/elf_l1om.sh: Likewise.
761         * emulparams/elf_x86_64.sh: Likewise.
762         * emulparams/extern_protected_data.sh (PARSE_AND_LIST_OPTIONS):
763         Append.
764         (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
765         * testsuite/ld-elf/pr19719a.c: New file.
766         * testsuite/ld-elf/pr19719b.c: Likewise.
767         * testsuite/ld-elf/pr19719c.c: Likewise.
768         * testsuite/ld-elf/pr19719d.c: Likewise.
769         * testsuite/ld-i386/pr19636-1.s: Likewise.
770         * testsuite/ld-i386/pr19636-1a.d: Likewise.
771         * testsuite/ld-i386/pr19636-1b.d: Likewise.
772         * testsuite/ld-i386/pr19636-1c.d: Likewise.
773         * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
774         * testsuite/ld-i386/pr19636-1d.d: Likewise.
775         * testsuite/ld-i386/pr19636-1e.d: Likewise.
776         * testsuite/ld-i386/pr19636-1f.d: Likewise.
777         * testsuite/ld-i386/pr19636-1g.d: Likewise.
778         * testsuite/ld-i386/pr19636-1h.d: Likewise.
779         * testsuite/ld-i386/pr19636-1i.d: Likewise.
780         * testsuite/ld-i386/pr19636-2.s: Likewise.
781         * testsuite/ld-i386/pr19636-2a.d: Likewise.
782         * testsuite/ld-i386/pr19636-2b.d: Likewise.
783         * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
784         * testsuite/ld-i386/pr19636-2c.d: Likewise.
785         * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
786         * testsuite/ld-i386/pr19636-2d.d: Likewise.
787         * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
788         * testsuite/ld-i386/pr19636-2e.d: Likewise.
789         * testsuite/ld-i386/pr19636-3.s: Likewise.
790         * testsuite/ld-i386/pr19636-3a.d: Likewise.
791         * testsuite/ld-i386/pr19636-3b.d: Likewise.
792         * testsuite/ld-i386/pr19636-3c.d: Likewise.
793         * testsuite/ld-i386/pr19636-3d.d: Likewise.
794         * testsuite/ld-i386/pr19636-3e.d: Likewise.
795         * testsuite/ld-i386/pr19636-3f.d: Likewise.
796         * testsuite/ld-i386/pr19636-3g.d: Likewise.
797         * testsuite/ld-i386/pr19636-4.s: Likewise.
798         * testsuite/ld-i386/pr19636-4a.d: Likewise.
799         * testsuite/ld-i386/pr19636-4b.d: Likewise.
800         * testsuite/ld-i386/pr19636-4c.d: Likewise.
801         * testsuite/ld-i386/pr19636-4d.d: Likewise.
802         * testsuite/ld-i386/pr19704.out: Likewise.
803         * testsuite/ld-i386/pr19704a.c: Likewise.
804         * testsuite/ld-i386/pr19704b.c: Likewise.
805         * testsuite/ld-x86-64/pr19636-1.s: Likewise.
806         * testsuite/ld-x86-64/pr19636-1a.d: Likewise.
807         * testsuite/ld-x86-64/pr19636-1b.d: Likewise.
808         * testsuite/ld-x86-64/pr19636-1c.d: Likewise.
809         * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
810         * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
811         * testsuite/ld-x86-64/pr19636-1f.d: Likewise.
812         * testsuite/ld-x86-64/pr19636-1g.d: Likewise.
813         * testsuite/ld-x86-64/pr19636-2.s: Likewise.
814         * testsuite/ld-x86-64/pr19636-2a.d: Likewise.
815         * testsuite/ld-x86-64/pr19636-2b.d: Likewise.
816         * testsuite/ld-x86-64/pr19636-2c.d: Likewise.
817         * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
818         * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
819         * testsuite/ld-x86-64/pr19636-2e.d: Likewise.
820         * testsuite/ld-x86-64/pr19636-2f.d: Likewise.
821         * testsuite/ld-x86-64/pr19636-2g.d: Likewise.
822         * testsuite/ld-x86-64/pr19636-2h.d: Likewise.
823         * testsuite/ld-x86-64/pr19636-2i.d: Likewise.
824         * testsuite/ld-x86-64/pr19636-3.s: Likewise.
825         * testsuite/ld-x86-64/pr19636-3a.d: Likewise.
826         * testsuite/ld-x86-64/pr19636-3b.d: Likewise.
827         * testsuite/ld-x86-64/pr19636-3c.d: Likewise.
828         * testsuite/ld-x86-64/pr19636-3d.d: Likewise.
829         * testsuite/ld-x86-64/pr19704.out: Likewise.
830         * testsuite/ld-x86-64/pr19704a.c: Likewise.
831         * testsuite/ld-x86-64/pr19704b.c: Likewise.
832         * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): New.
833         Run mix_pic_and_non_pic.
834         * testsuite/ld-i386/i386.exp (undefined_weak): New.
835         Run undefined_weak and PR ld/19636 tests.
836         * testsuite/ld-x86-64/x86-64.exp: Likewise.
837         * testsuite/ld-x86-64/pr13082-3b.d: Updated.
838         * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
839
840 2016-02-25  Nick Clifton  <nickc@redhat.com>
841
842         * ld.h (struct ld_config_type): Remove specified_data_size field.
843
844 2016-02-24  H.J. Lu  <hongjiu.lu@intel.com>
845
846         PR ld/19698
847         * testsuite/ld-elf/pr19698.d: New file.
848         * testsuite/ld-elf/pr19698.s: Likewise.
849         * testsuite/ld-elf/pr19698.t: Likewise.
850
851 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
852
853         * Makefile.am (ELF_X86_DEPS): New.
854         (eelf_i386.c): Replace $(ELF_DEPS) with $(ELF_X86_DEPS).
855         (eelf_i386_chaos.c): Likewise.
856         (eelf_i386_fbsd.c): Likewise.
857         (eelf_i386_ldso.c): Likewise.
858         (eelf_i386_nacl.c): Likewise.
859         (eelf_i386_sol2.c): Likewise.
860         (eelf_iamcu.c): Likewise.
861         (eelf32_x86_64.c): Likewise.
862         (eelf32_x86_64_nacl.c): Likewise.
863         (eelf_l1om.c): Likewise.
864         (eelf_l1om_fbsd.c): Likewise.
865         (eelf_k1om.c): Likewise.
866         (eelf_k1om_fbsd.c): Likewise.
867         (eelf_x86_64.c): Likewise.
868         (eelf_x86_64_cloudabi.c): Likewise.
869         (eelf_x86_64_fbsd.c): Likewise.
870         (eelf_x86_64_sol2.c): Likewise.
871         * Makefile.in: Regenerated.
872
873 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
874
875         * testsuite/ld-frv/fdpic-pie-6.d: Updated.
876         * testsuite/ld-mips-elf/pie-n32.d: Likewise.
877         * testsuite/ld-mips-elf/pie-n64.d: Likewise.
878         * testsuite/ld-mips-elf/pie-o32.d: Likewise.
879
880 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
881
882         * testsuite/ld-elf/pr19539.d: Skip cris*-*-* targets.
883
884 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
885
886         * testsuite/ld-elf/pr19617a.d: Enable only for *-*-linux*,
887         *-*-gnu* and *-*-solaris*.
888         * testsuite/ld-elf/pr19617b.d: Likewise.
889         * testsuite/ld-elf/pr19617c.d: Likewise.
890
891 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
892
893         PR ld/19617
894         * testsuite/ld-elf/pr19617.s: New file.
895         * testsuite/ld-elf/pr19617a.d: Likewise.
896         * testsuite/ld-elf/pr19617b.d: Likewise.
897         * testsuite/ld-elf/pr19617c.d: Likewise.
898
899 2016-02-18  Nick Clifton  <nickc@redhat.com>
900
901         * Makefile.am (CXX_FOR_TARGET): Check for the presence of an
902         in-tree xg++ executable after checking for the presence of an
903         in-tree g++ executable.
904         * Makefile.in: Regenerate.
905
906 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
907
908         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
909         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
910         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
911
912 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
913
914         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
915         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
916         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
917         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
918         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
919         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
920         * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
921         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
922         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
923         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
924         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
925         * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
926         * testsuite/ld-x86-64/load1c.d: Likewise.
927         * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
928         * testsuite/ld-x86-64/load1d.d: Likewise.
929         * testsuite/ld-x86-64/pr14207.d: Likewise.
930         * testsuite/ld-x86-64/pr19162.d: Likewise.
931         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
932         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
933         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
934         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
935         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
936         * testsuite/ld-x86-64/tlspic.rd: Likewise.
937
938 2016-02-17  Nick Clifton  <nickc@redhat.com>
939
940         * testsuite/ld-elf/eh-frame-hdr.d: Skip for ARC ELF targets.
941
942 2016-02-15  Nick Clifton  <nickc@redhat.com>
943
944         * testsuite/ld-i386/pr12718.d: Remove dependency upon the
945         description of the flags produced by readelf.
946         * testsuite/ld-i386/pr12921.d: Likewise.
947         * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
948         * testsuite/ld-i386/tlsbin.rd: Likewise.
949         * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
950         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
951         * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
952         * testsuite/ld-i386/tlsdesc.rd: Likewise.
953         * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
954         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
955         * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
956         * testsuite/ld-i386/tlsnopic.rd: Likewise.
957         * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
958         * testsuite/ld-i386/tlspic.rd: Likewise.
959         * testsuite/ld-s390/tlsbin.rd: Likewise.
960         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
961         * testsuite/ld-s390/tlspic.rd: Likewise.
962         * testsuite/ld-s390/tlspic_64.rd: Likewise.
963         * testsuite/ld-sh/tlsbin-2.d: Likewise.
964         * testsuite/ld-sh/tlspic-2.d: Likewise.
965         * testsuite/ld-tic6x/common.d: Likewise.
966         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
967         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
968         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
969         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
970         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
971         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
972         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
973         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
974         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
975         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
976         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
977         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
978         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
979         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
980         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
981         * testsuite/ld-x86-64/pr12718.d: Likewise.
982         * testsuite/ld-x86-64/pr12921.d: Likewise.
983         * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
984         * testsuite/ld-x86-64/split-by-file.rd: Likewise.
985         * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
986         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
987         * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
988         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
989         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
990         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
991         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
992         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
993         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
994         * testsuite/ld-x86-64/tlspic.rd: Likewise.
995         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
996         * testsuite/ld-xtensa/tlspic.rd: Likewise.
997
998 2016-02-11  H.J. Lu  <hongjiu.lu@intel.com>
999
1000         PR ld/19615
1001         * ld.texinfo: Document -Bsymbolic and -Bsymbolic-functions for
1002         PIE.
1003         * lexsup.c (parse_args): Enable -Bsymbolic and
1004         -Bsymbolic-functions for PIE.
1005         * testsuite/ld-i386/i386.exp: Run pr19615.
1006         * testsuite/ld-i386/pr19615.d: New file.
1007         * testsuite/ld-i386/pr19615.s: Likewise.
1008         * testsuite/ld-x86-64/pr19615.d: Likewise.
1009         * testsuite/ld-x86-64/pr19615.s: Likewise.
1010
1011 2016-02-09  Nick Clifton  <nickc@redhat.com>
1012
1013         * testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
1014         * testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
1015         * testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
1016         * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
1017
1018 2016-02-04  Nick Clifton  <nickc@redhat.com>
1019
1020         * testsuite/ld-arm/arm-elf.exp: Remove ARM NOREAD section tests.
1021         * testsuite/ld-arm/thumb1-input-section-flag-match.d: Delete.
1022         * testsuite/ld-arm/thumb1-input-section-flag-match.s: Delete.
1023         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.d: Delete.
1024         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s: Delete.
1025         * testsuite/ld-arm/thumb1-noread-present-one-section.d: Delete.
1026         * testsuite/ld-arm/thumb1-noread-present-one-section.s: Delete.
1027         * testsuite/ld-arm/thumb1-noread-present-two-section.d: Delete.
1028         * testsuite/ld-arm/thumb1-noread-present-two-section.s: Delete.
1029
1030 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1031
1032         PR gas/19520
1033         * testsuite/ld-i386/branch1.d: Pass -mrelax-relocations=yes to as.
1034         * testsuite/ld-i386/call1.d: Likewise.
1035         * testsuite/ld-i386/call2.d: Likewise.
1036         * testsuite/ld-i386/call3a.d: Likewise.
1037         * testsuite/ld-i386/call3b.d: Likewise.
1038         * testsuite/ld-i386/call3c.d: Likewise.
1039         * testsuite/ld-i386/call3d.d: Likewise.
1040         * testsuite/ld-i386/call3e.d: Likewise.
1041         * testsuite/ld-i386/call3f.d: Likewise.
1042         * testsuite/ld-i386/call3g.d: Likewise.
1043         * testsuite/ld-i386/call3h.d: Likewise.
1044         * testsuite/ld-i386/jmp1.d: Likewise.
1045         * testsuite/ld-i386/jmp2.d: Likewise.
1046         * testsuite/ld-i386/lea1c.d: Likewise.
1047         * testsuite/ld-i386/load1.d: Likewise.
1048         * testsuite/ld-i386/load2.d: Likewise.
1049         * testsuite/ld-i386/load3.d: Likewise.
1050         * testsuite/ld-i386/load4a.d: Likewise.
1051         * testsuite/ld-i386/load5a.d: Likewise.
1052         * testsuite/ld-i386/mov2b.d: Likewise.
1053         * testsuite/ld-i386/mov3.d: Likewise.
1054         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1055         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1056         * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
1057         * testsuite/ld-x86-64/call1a.d: Likewise.
1058         * testsuite/ld-x86-64/call1b.d: Likewise.
1059         * testsuite/ld-x86-64/call1c.d: Likewise.
1060         * testsuite/ld-x86-64/call1d.d: Likewise.
1061         * testsuite/ld-x86-64/call1e.d: Likewise.
1062         * testsuite/ld-x86-64/call1f.d: Likewise.
1063         * testsuite/ld-x86-64/call1h.d: Likewise.
1064         * testsuite/ld-x86-64/call1i.d: Likewise.
1065         * testsuite/ld-x86-64/load1a.d: Likewise.
1066         * testsuite/ld-x86-64/load1b.d: Likewise.
1067         * testsuite/ld-i386/got1a.S: Load GOT into %ecx and use it.
1068         * testsuite/ld-i386/got1.dd: Updated.
1069         * testsuite/ld-i386/got1d.S (1): Removed.
1070         * testsuite/ld-i386/i386.exp: Add -Wa,-mrelax-relocations=yes.
1071         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1072
1073 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
1074
1075         PR ld/18591
1076         * testsuite/ld-x86-64/pr18591.d: New file.
1077         * testsuite/ld-x86-64/pr18591.s: Likewise.
1078         * testsuite/ld-x86-64/x86-64.exp: Run pr18591.
1079
1080 2016-02-01  H.J. Lu  <hongjiu.lu@intel.com>
1081
1082         PR ld/19553
1083         * testsuite/ld-elf/indirect.exp: Run tests for PR ld/19553.
1084         * testsuite/ld-elf/pr19553.map: New file.
1085         * testsuite/ld-elf/pr19553.map: Likewise.
1086         * testsuite/ld-elf/pr19553a.c: Likewise.
1087         * testsuite/ld-elf/pr19553b.c: Likewise.
1088         * testsuite/ld-elf/pr19553b.out: Likewise.
1089         * testsuite/ld-elf/pr19553c.c: Likewise.
1090         * testsuite/ld-elf/pr19553c.out: Likewise.
1091         * testsuite/ld-elf/pr19553d.c: Likewise.
1092         * testsuite/ld-elf/pr19553d.out: Likewise.
1093
1094 2016-01-30  H.J. Lu  <hongjiu.lu@intel.com>
1095
1096         PR ld/19539
1097         * testsuite/ld-elf/pr19539.d: New file.
1098         * testsuite/ld-elf/pr19539.s: Likewise.
1099         * testsuite/ld-elf/pr19539.t: Likewise.
1100
1101 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
1102
1103         PR ld/19533
1104         * configure.ac (compressed_debug_sections): Replace == with =.
1105         * configure: Regenerated.
1106
1107 2016-01-22  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1108
1109         * scripttempl/avr.sc (.noinit): Force .noinit VMA to end of .bss VMA.
1110         * scripttempl/avrtiny.sc (.noinit): Likewise.
1111
1112 2016-01-21  Nick Clifton  <nickc@redhat.com>
1113
1114         PR ld/19453
1115         * testsuite/ld-arm/arm-elf.exp: Skip tests that do not work for
1116         the arm-netbsdelf target.
1117
1118         PR ld/19455
1119         * testsuite/ld-arm/vxworks1-lib.dd: Update for current
1120         disassmebler output.
1121         * testsuite/ld-arm/vxworks1-lib.rd: Likewise.
1122         * testsuite/ld-arm/vxworks1.dd: Likewise.
1123         * testsuite/ld-arm/vxworks1.rd: Likewise.
1124         * testsuite/ld-arm/vxworks1.ld: Set the output format.
1125
1126 2016-01-20  Jiong Wang  <jiong.wang@arm.com>
1127
1128         * testsuite/ld-aarch64/farcall-section.d: Delete.
1129         * testsuite/ld-aarch64/farcall-section.s: Delete.
1130         * testsuite/ld-aarch64/farcall-b-section.d: New expectation file.
1131         * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
1132         * testsuite/ld-aarch64/farcall-b-section.s: New testcase.
1133         * testsuite/ld-aarch64/farcall-bl-section.s: Likewise.
1134         * testsuite/ld-aarch64/aarch64-elf.exp: Likewise.
1135
1136 2016-01-20  Nick Clifton  <nickc@redhat.com>
1137
1138         PR 19457
1139         * testsuite/ld-scripts/script.exp (extract_symbol_test): Stop test
1140         early for PE based targets.
1141         * testsuite/ld-scripts/align.t: Use 0x1000 as VMA alignment.
1142         * testsuite/ld-pe/tlssec32.d: Allow for relocatable output.
1143
1144 2016-01-20  Mickael Guene  <mickael.guene@st.com>
1145
1146         * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s:
1147         Add 'y' attribute usage.
1148         * testsuite/ld-arm/thumb1-noread-present-one-section.s: Likewise.
1149         * testsuite/ld-arm/thumb1-noread-present-two-section.s: Likewise.
1150         * testsuite/ld-arm/thumb1-input-section-flag-match.s: Likewise.
1151
1152 2016-01-19  Nick Clifton  <nickc@redhat.com>
1153
1154         * testsuite/ld-elf/pr18735.d: Allow for extra symbols between
1155         foo@FOO and bar@@FOO.
1156
1157 2016-01-18  Alan Modra  <amodra@gmail.com>
1158
1159         * configure: Regenerate.
1160
1161 2016-01-18  Nick Clifton  <nickc@redhat.com>
1162
1163         * testsuite/ld-plugin/plugin.exp: Skip plugin tests if the linker
1164         is not configured to support plugins.
1165
1166         * testsuite/ld-scripts/rgn-at11.s: New file - based on rgn-at10.s
1167         but with 16 byte section alignment.
1168         * testsuite/ld-scripts/rgn-at11.d: Use new source file.  Reenable
1169         test for MIPS targets.
1170
1171 2016-01-17  Alan Modra  <amodra@gmail.com>
1172
1173         * configure: Regenerate.
1174
1175 2016-01-17  Alan Modra  <amodra@gmail.com>
1176
1177         * testsuite/lib/ld-lib.exp (check_shared_lib_support): Exclude xgate.
1178         * testsuite/ld-elf/endsym.d: xfail m68hc11/12 and xgate.
1179         * testsuite/ld-elf/pr14156a.d: Likewise.
1180         * testsuite/ld-elf/pr14926.d: Don't run for m68hc11/12 and xgate.
1181         * testsuite/ld-elf/sec64k.exp: Likewise.
1182
1183 2016-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1184
1185         * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
1186         Set address of .foo section when linking.
1187         * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s: Place myfunc
1188         in .foo section.
1189         * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d: Adapt expected
1190         output to the above changes.
1191
1192 2016-01-13  Nick Clifton  <nickc@redhat.com>
1193
1194         * testsuite/ld-elf/elf.exp (-Bymsolic-functions): Expect to fail
1195         for MIPS targets.
1196
1197         * testsuite/ld-scripts/script.exp (extract_symbol_test): Expect to
1198         fail for MIPS targets.
1199
1200         * testsuite/ld-scripts/rgn-at11.d: Expect this test to fail for
1201         MIPS targets.
1202
1203 2016-01-12  Yury Usishchev  <y.usishchev@samsung.com>
1204
1205         * testsuite/ld-arm/arm-elf.exp: New test.
1206         * testsuite/ld-arm/unwind-mix.d: New file.
1207         * testsuite/ld-arm/unwind-mix1.s: New file.
1208         * testsuite/ld-arm/unwind-mix2.s: New file.
1209
1210 2016-01-08  Jiong Wang  <jiong.wang@arm.com>
1211
1212         PR ld/19368
1213         * testsuite/ld-arm/ifunc-3.rd: Update expected result.
1214         * testsuite/ld-arm/ifunc-4.rd: Likewise.
1215         * testsuite/ld-arm/ifunc-9.rd: Likewise.
1216         * testsuite/ld-arm/ifunc-10.rd: Likewise.
1217         * testsuite/ld-arm/ifunc-12.rd: Likewise.
1218         * testsuite/ld-arm/ifunc-13.rd: Likewise.
1219
1220 2016-01-05  Nick Clifton  <nickc@redhat.com>
1221
1222         * emulparams/msp430elf.sh (RAM_START): Move to 0x500 - above the
1223         MSP430 hardware multiply address range.
1224         * scripttempl/elf32msp430.sc (__romdatastart): Define.
1225         (__romdatacopysize): Define.
1226         * scripttempl/elf32msp430_3.sc: Likewise.
1227
1228 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
1229
1230         * emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
1231         OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
1232
1233 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
1234
1235         * testsuite/ld-mips-elf/attr-gnu-4-14.d: Update the order of
1236         messages expected according to MIPS BFD private data merge
1237         changes.
1238         * testsuite/ld-mips-elf/attr-gnu-4-24.d: Likewise.
1239         * testsuite/ld-mips-elf/attr-gnu-4-34.d: Likewise.
1240         * testsuite/ld-mips-elf/attr-gnu-4-41.d: Likewise.
1241         * testsuite/ld-mips-elf/attr-gnu-4-42.d: Likewise.
1242         * testsuite/ld-mips-elf/attr-gnu-4-43.d: Likewise.
1243         * testsuite/ld-mips-elf/attr-gnu-4-45.d: Likewise.
1244         * testsuite/ld-mips-elf/attr-gnu-4-46.d: Likewise.
1245         * testsuite/ld-mips-elf/attr-gnu-4-47.d: Likewise.
1246         * testsuite/ld-mips-elf/attr-gnu-4-48.d: Likewise.
1247         * testsuite/ld-mips-elf/attr-gnu-4-49.d: Likewise.
1248         * testsuite/ld-mips-elf/attr-gnu-4-54.d: Likewise.
1249         * testsuite/ld-mips-elf/attr-gnu-4-64.d: Likewise.
1250         * testsuite/ld-mips-elf/attr-gnu-4-74.d: Likewise.
1251
1252 2016-01-01  Alan Modra  <amodra@gmail.com>
1253
1254         Update year range in copyright notice of all files.
1255
1256 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
1257 \f
1258 Copyright (C) 2016 Free Software Foundation, Inc.
1259
1260 Copying and distribution of this file, with or without modification,
1261 are permitted in any medium without royalty provided the copyright
1262 notice and this notice are preserved.
1263
1264 Local Variables:
1265 mode: change-log
1266 left-margin: 8
1267 fill-column: 74
1268 version-control: never
1269 End: