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