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