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