RISC-V: Allow pcrel_lo addends, error on addend overflow.
[external/binutils.git] / ld / ChangeLog
1 2018-09-24  Jim Wilson  <jimw@sifive.com>
2
3         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run pcrel-lo-addend-2.
4         * testsuite/ld-riscv/elf/ld-riscv-elf/pcrel-lo-addend-2.d: New.
5         * testsuite/ld-riscv/elf/ld-riscv-elf/pcrel-lo-addend-2.s: New.
6         * testsuite/ld-riscv/elf/ld-riscv-elf/pcrel-lo-addend.d: Update name
7         and error string.
8
9 2018-09-21  Alan Modra  <amodra@gmail.com>
10
11         * testsuite/ld-avr/gc-section-debugline.d: Update.
12
13 2018-09-20  H.J. Lu  <hongjiu.lu@intel.com>
14
15         * testsuite/ld-checks/over2.s: Add "_main" for LynxOS targets.
16         * testsuite/ld-elf/comm-data4.s: Likewise.
17         * testsuite/ld-elf/comm-data5.s: Likewise.
18         * testsuite/ld-elf/eh5b.s: Likewise.
19         * testsuite/ld-elf/empty.s: Likewise.
20         * testsuite/ld-elf/empty2.s: Likewise.
21         * testsuite/ld-elf/exclude3.s: Likewise.
22         * testsuite/ld-elf/fini0.s: Likewise.
23         * testsuite/ld-elf/init0.s: Likewise.
24         * testsuite/ld-elf/linkonce1b.s: Likewise.
25         * testsuite/ld-elf/orphan3a.s: Likewise.
26         * testsuite/ld-elf/pr14926.s: Likewise.
27         * testsuite/ld-elf/pr20513a.s: Likewise.
28         * testsuite/ld-elf/sec64k.exp: Likewise.
29         * testsuite/ld-elf/start.s: Likewise.
30         * testsuite/ld-elf/var1.s: Likewise.
31
32 2018-09-20  Kito Cheng  <kito@andestech.com>
33
34         * emulparams/elf32lriscv.sh: Correct the library search path.
35         * emulparams/elf32lriscv_ilp32.sh: Likewise.
36         * emulparams/elf32lriscv_ilp32f.sh: Likewise.
37
38 2018-09-20  Nelson Chu <nelson.chu1990@gmail.com>
39
40         * emultempl/nds32elf.em (hyper_relax): New variable.
41         (nds32_elf_create_output_section_statements):
42         the parameters of bfd_elf32_nds32_set_target_option
43         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_OPTIONS,
44         PARSE_AND_LIST_ARGS_CASES): Add new option --mhyper-relax.
45         * emultempl/nds32elf.em (nds32_elf_after_open): Updated.
46         * emultempl/nds32elf.em (tls_desc_trampoline): New variable.
47         * (nds32_elf_create_output_section_statements): Updated.
48         * (nds32_elf_after_parse): Disable relaxations when PIC is enable.
49         * (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_OPTIONS,
50         PARSE_AND_LIST_ARGS_CASES): Add new option --m[no-]tlsdesc-trampoline.
51
52 2018-09-19  Alan Modra  <amodra@gmail.com>
53
54         PR ld/23648
55         * ldlang.c (lang_process): Move lang_do_memory_regions earlier.
56         Comment on lang_do_assignments call.
57         * ldgram.y (origin_exp): Don't assign region->current.
58         * testsuite/ld-elf/pr23648.d,
59         * testsuite/ld-elf/pr23648.s,
60         * testsuite/ld-elf/pr23648.t: New test.
61
62 2018-09-19  Alan Modra  <amodra@gmail.com>
63
64         * ldmain.c (add_archive_element): Handle auto-inport symbols
65         when printing map.
66
67 2018-09-17  Alan Modra  <amodra@gmail.com>
68
69         * testsuite/ld-elf/comm-data5.d: Remove notarget for hppa.
70         * testsuite/ld-scripts/defined6.d: Likewise.
71
72 2018-09-17  Nick Clifton  <nickc@redhat.com>
73
74         * testuite/ld/ld-elf/audit.exp: Differentiate the names of the
75         two "Run with shared with --audit" tests.
76         * testuite/ld/ld-elf/compress.exp: Differentiate the zlib
77         compressed debug output test names.
78         * testuite/ld/ld-i386/tlspie1.d: Add extra details to the test
79         name.
80         * testuite/ld/ld-i386/tlspie2.d: Likewise.
81         * testuite/ld/ld-size/size.exp: Add missing escapes to the end
82         of lines in the size-3e test.
83         * testuite/ld/ld-unique/unique.exp: Differentiate the names of
84         the two "Checking unique PIC object" tests.
85         * testuite/ld/ld-x86-64/tlspie1.d: Add extra details to the test
86         name.
87
88 2018-09-15  Alan Modra  <amodra@gmail.com>
89
90         * testsuite/ld-d10v/reloc-007.d,
91         * testsuite/ld-d10v/reloc-008.d,
92         * testsuite/ld-d10v/reloc-015.d,
93         * testsuite/ld-d10v/reloc-016.d: Remove "error:".
94         * testsuite/ld-elf/eh-frame-hdr.d,
95         * testsuite/ld-elf/eh5.d,
96         * testsuite/ld-gc/personality.d: Replace "cfi" and "shared" in
97         target list with appropriate proc.
98         * testsuite/ld-elf/frame.exp: Use check_shared_lib_support rather
99         than "istarget shared".
100         * testsuite/lib/ld-lib.exp (proc big_or_little_endian): Delete.
101         (run_dump_test, slurp_options, file_contents): Delete.
102         (set_file_contents, istarget): Delete.
103
104 2018-09-15  Alan Modra  <amodra@gmail.com>
105
106         * testsuite/lib/ld-lib.exp (run_dump_test): Replace PROG
107         with DUMPPROG.
108
109 2018-09-15  Alan Modra  <amodra@gmail.com>
110
111         * testsuite/ld-elf/interleave-0.d,
112         * testsuite/ld-elf/interleave-4.d: Don't objcopy to srec,
113         objdump instead.
114         * testsuite/ld-gc/all-debug-sections.d,
115         * testsuite/ld-scripts/provide-4.d,
116         * testsuite/ld-scripts/provide-5.d,
117         * testsuite/ld-scripts/provide-6.d,
118         * testsuite/ld-scripts/provide-7.d,
119         * testsuite/ld-scripts/provide-8.d,
120         * testsuite/ld-scripts/segment-start.d: Remove PROG, specify
121         nm instead.
122         * testsuite/lib/ld-lib.exp (run_dump_test): Remove support
123         for objcopy as a dump tool.
124
125 2018-09-14  Maciej W. Rozycki  <macro@mips.com>
126
127         PR ld/21375
128         * testsuite/ld-mips-elf/pr21375-abi.hd: New test.
129         * testsuite/ld-mips-elf/pr21375-noabi.hd: New test.
130         * testsuite/ld-mips-elf/pr21375.dd: New test.
131         * testsuite/ld-mips-elf/pr21375h.dd: New test.
132         * testsuite/ld-mips-elf/pr21375p.dd: New test.
133         * testsuite/ld-mips-elf/pr21375ph.dd: New test.
134         * testsuite/ld-mips-elf/pr21375s.dd: New test.
135         * testsuite/ld-mips-elf/pr21375s-n32.dd: New test.
136         * testsuite/ld-mips-elf/pr21375s-n64.dd: New test.
137         * testsuite/ld-mips-elf/pr21375sh.dd: New test.
138         * testsuite/ld-mips-elf/pr21375sh-n32.dd: New test.
139         * testsuite/ld-mips-elf/pr21375sh-n64.dd: New test.
140         * testsuite/ld-mips-elf/pr21375shg.dd: New test.
141         * testsuite/ld-mips-elf/pr21375sx.dd: New test.
142         * testsuite/ld-mips-elf/pr21375sxh.dd: New test.
143         * testsuite/ld-mips-elf/pr21375sm16.dd: New test.
144         * testsuite/ld-mips-elf/pr21375sm16h.dd: New test.
145         * testsuite/ld-mips-elf/pr21375su.dd: New test.
146         * testsuite/ld-mips-elf/pr21375su-n32.dd: New test.
147         * testsuite/ld-mips-elf/pr21375su-n64.dd: New test.
148         * testsuite/ld-mips-elf/pr21375suh.dd: New test.
149         * testsuite/ld-mips-elf/pr21375suh-n32.dd: New test.
150         * testsuite/ld-mips-elf/pr21375suh-n64.dd: New test.
151         * testsuite/ld-mips-elf/pr21375sux.dd: New test.
152         * testsuite/ld-mips-elf/pr21375suxh.dd: New test.
153         * testsuite/ld-mips-elf/pr21375.gd: New test.
154         * testsuite/ld-mips-elf/pr21375h.gd: New test.
155         * testsuite/ld-mips-elf/pr21375p.gd: New test.
156         * testsuite/ld-mips-elf/pr21375ph.gd: New test.
157         * testsuite/ld-mips-elf/pr21375s.gd: New test.
158         * testsuite/ld-mips-elf/pr21375s-n32.gd: New test.
159         * testsuite/ld-mips-elf/pr21375s-n64.gd: New test.
160         * testsuite/ld-mips-elf/pr21375sh.gd: New test.
161         * testsuite/ld-mips-elf/pr21375sh-n32.gd: New test.
162         * testsuite/ld-mips-elf/pr21375sh-n64.gd: New test.
163         * testsuite/ld-mips-elf/pr21375shg.gd: New test.
164         * testsuite/ld-mips-elf/pr21375shl.gd: New test.
165         * testsuite/ld-mips-elf/pr21375shv.gd: New test.
166         * testsuite/ld-mips-elf/pr21375sx.gd: New test.
167         * testsuite/ld-mips-elf/pr21375sxh.gd: New test.
168         * testsuite/ld-mips-elf/pr21375.sd: New test.
169         * testsuite/ld-mips-elf/pr21375-irix.sd: New test.
170         * testsuite/ld-mips-elf/pr21375h.sd: New test.
171         * testsuite/ld-mips-elf/pr21375h-irix.sd: New test.
172         * testsuite/ld-mips-elf/pr21375p.sd: New test.
173         * testsuite/ld-mips-elf/pr21375p-irix.sd: New test.
174         * testsuite/ld-mips-elf/pr21375ph.sd: New test.
175         * testsuite/ld-mips-elf/pr21375ph-irix.sd: New test.
176         * testsuite/ld-mips-elf/pr21375s.sd: New test.
177         * testsuite/ld-mips-elf/pr21375s-irix.sd: New test.
178         * testsuite/ld-mips-elf/pr21375s-n32.sd: New test.
179         * testsuite/ld-mips-elf/pr21375s-n32-irix.sd: New test.
180         * testsuite/ld-mips-elf/pr21375s-n64.sd: New test.
181         * testsuite/ld-mips-elf/pr21375s-n64-irix.sd: New test.
182         * testsuite/ld-mips-elf/pr21375sh.sd: New test.
183         * testsuite/ld-mips-elf/pr21375sh-irix.sd: New test.
184         * testsuite/ld-mips-elf/pr21375sh-n32.sd: New test.
185         * testsuite/ld-mips-elf/pr21375sh-n32-irix.sd: New test.
186         * testsuite/ld-mips-elf/pr21375sh-n64.sd: New test.
187         * testsuite/ld-mips-elf/pr21375sh-n64-irix.sd: New test.
188         * testsuite/ld-mips-elf/pr21375shg.sd: New test.
189         * testsuite/ld-mips-elf/pr21375shg-irix.sd: New test.
190         * testsuite/ld-mips-elf/pr21375shl.sd: New test.
191         * testsuite/ld-mips-elf/pr21375shl-irix.sd: New test.
192         * testsuite/ld-mips-elf/pr21375shv.sd: New test.
193         * testsuite/ld-mips-elf/pr21375shv-irix.sd: New test.
194         * testsuite/ld-mips-elf/pr21375sx.sd: New test.
195         * testsuite/ld-mips-elf/pr21375sx-irix.sd: New test.
196         * testsuite/ld-mips-elf/pr21375sxh.sd: New test.
197         * testsuite/ld-mips-elf/pr21375sxh-irix.sd: New test.
198         * testsuite/ld-mips-elf/pr21375.ld: New test linker script.
199         * testsuite/ld-mips-elf/pr21375-xgot.ld: New test linker script.
200         * testsuite/ld-mips-elf/pr21375.ver: New test version script.
201         * testsuite/ld-mips-elf/pr21375v.ver: New test version script.
202         * testsuite/ld-mips-elf/pr21375.s: New test source.
203         * testsuite/ld-mips-elf/pr21375-mips16.s: New test source.
204         * testsuite/ld-mips-elf/pr21375-n32.s: New test source.
205         * testsuite/ld-mips-elf/pr21375-n64.s: New test source.
206         * testsuite/ld-mips-elf/pr21375-xgot.s: New test source.
207         * testsuite/ld-mips-elf/mips-elf.exp (run_mips_undefweak_test):
208         New procedure; run the new tests.
209
210 2018-09-14  Maciej W. Rozycki  <macro@mips.com>
211
212         PR ld/21375
213         * emultempl/mipself.em: Set `gnu_target' according to ${target}.
214         (mips_create_output_section_statements): Update call to
215         `_bfd_mips_elf_linker_flags'.
216         * testsuite/ld-mips-elf/pr21334.s: Use LWL rather than LW.
217         * testsuite/ld-mips-elf/pr21334.dd: Update accordingly.
218
219 2018-09-14  Maciej W. Rozycki  <macro@mips.com>
220             Maciej W. Rozycki  <macro@linux-mips.org>
221
222         * ldexp.c (fold_binary): Always make the result of SEGMENT_START
223         section-relative.
224         * testsuite/ld-scripts/segment-start.d: New test.
225         * testsuite/ld-scripts/segment-start.ld: New test linker script.
226         * testsuite/ld-scripts/segment-start.s: New test source.
227         * testsuite/ld-scripts/script.exp: Run the new test.
228
229 2018-09-14  Maciej W. Rozycki  <macro@linux-mips.org>
230
231         * ldexp.c (fold_binary): Check that `config.maxpagesize' is
232         non-zero before using it as a divisor.
233
234 2018-09-03  Nick Clifton  <nickc@redhat.com>
235
236         * po/fi.po: Updated Finnish translation.
237
238 2018-09-03  Alan Modra  <amodra@gmail.com>
239
240         PR ld/23591
241         * testsuite/ld-elf/pr23591a.s,
242         * testsuite/ld-elf/pr23591b.s,
243         * testsuite/ld-elf/pr23591c.s: Don't start directives in first column.
244         * testsuite/ld-elf/pr23591.d: xfail frv-linux and lm32-linux.
245         Allow __start___sancov_cntrs as a local symbol.
246
247 018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
248
249         PR ld/23591
250         * ldlang.c (undef_start_stop): Lookup section in output with
251         the same name.
252         * testsuite/ld-elf/pr23591.d: New file.
253         * testsuite/ld-elf/pr23591a.s: Likewise.
254         * testsuite/ld-elf/pr23591b.s: Likewise.
255         * testsuite/ld-elf/pr23591c.s: Likewise.
256
257 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
258
259         * testsuite/ld-i386/i386.exp: Also run for x86_64-*-elf* targets.
260         * testsuite/ld-i386/property-x86-4a.d: Pass -z separate-code to
261         ld.
262         * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
263         * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
264
265 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
266
267         * testsuite/ld-elf/elf.exp (ASFLAGS): Save, append
268         -mx86-used-note=no and restore.
269         * testsuite/ld-ifunc/ifunc.exp (ASFLAGS): Likewise.
270         * testsuite/ld-scripts/defined.exp (ASFLAGS): Likewise.
271         * testsuite/ld-scripts/overlay-size.exp (ASFLAGS): Likewise.
272
273 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
274
275         * testsuite/ld-srec/srec.exp: Append -Wa,-mx86-used-note=no to
276         CC and CXX on ELF/x86 targets.
277
278 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
279
280         * testsuite/ld-i386/i386.exp: (ASFLAGS): Save, append
281         -mx86-used-note=no and restore.  Pass -mx86-used-note=yes and
282         -mx86-used-note=no to assembler.
283         * testsuite/ld-x86-64/x86-64.exp: Likewise.
284         * testsuite/ld-i386/no-plt.exp: Pass -mx86-used-note=yes to
285         assembler.
286         * testsuite/ld-i386/tls.exp: Likewise.
287         * testsuite/ld-x86-64/no-plt.exp: Likewise.
288         * testsuite/ld-x86-64/tls.exp: Likewise.
289         * testsuite/ld-i386/pr23486a.d: Pass -mx86-used-note=no to
290         assembler.
291         * testsuite/ld-i386/pr23486b.d: Likewise.
292         * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
293         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
294         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
295         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
296         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
297         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
298         * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
299         * testsuite/ld-x86-64/pr23486a.d: Likewise.
300         * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
301         * testsuite/ld-x86-64/pr23486b.d: Likewise.
302         * testsuite/ld-i386/property-x86-3.d: Pass -mx86-used-note=yes
303         to assembler and update expected output from "readelf -n".
304         * testsuite/ld-i386/property-x86-4a.d: Likewise.
305         * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
306         * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
307         * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
308         * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
309         * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
310         * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
311         * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
312         * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
313         * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
314         * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
315         * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
316         * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
317         * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
318         * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
319         * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
320         * testsuite/ld-x86-64/property-x86-3.d: Likewise.
321         * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
322         * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
323         * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
324         * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
325         * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
326         * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
327         * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
328         * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
329         * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
330         * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
331         * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
332         * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
333         * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
334         * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
335         * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
336         * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
337         * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
338         * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
339         * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
340         * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
341         * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
342         * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
343         * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
344         * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
345         * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
346         * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
347         * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
348         * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
349         * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
350         * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
351         * testsuite/ld-i386/property-1a.r: New file.
352         * testsuite/ld-i386/property-2a.r: Likewise.
353         * testsuite/ld-i386/property-3a.r: Likewise.
354         * testsuite/ld-i386/property-4a.r: Likewise.
355         * testsuite/ld-i386/property-5a.r: Likewise.
356         * testsuite/ld-i386/property-7a.r: Likewise.
357         * testsuite/ld-x86-64/property-1a.r: Likewise.
358         * testsuite/ld-x86-64/property-2a.r: Likewise.
359         * testsuite/ld-x86-64/property-3a.r: Likewise.
360         * testsuite/ld-x86-64/property-4a.r: Likewise.
361         * testsuite/ld-x86-64/property-5a.r: Likewise.
362         * testsuite/ld-x86-64/property-7a.r: Likewise.
363         * testsuite/ld-x86-64/mpx.exp: Pass -mx86-used-note=no to
364         assembler.
365
366 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
367
368         * testsuite/ld-mips-elf/mips-elf-flags.exp: Run good_combination
369         gs264e and gs464e.
370
371 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
372
373         * testsuite/ld-mips-elf/mips-elf-flags.exp: Run good_combination
374         gs464e and gs464.
375
376 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
377
378         * testsuite/ld-mips-elf/mips-elf-flags.exp: Rename loongson3a
379         to gs464.
380
381 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
382
383         * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
384         Skip o32 flags checking if target is mips*-*-irix*.
385
386 2018-08-27  H.J. Lu  <hongjiu.lu@intel.com>
387
388         * testsuite/ld-i386/i386.exp: Run property-x86-5.
389         * testsuite/ld-i386/property-x86-5.d: New file.
390         * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
391         * testsuite/ld-x86-64/property-x86-5.d: Likewise.
392         * testsuite/ld-x86-64/property-x86-5a.s: Likewise.
393         * testsuite/ld-x86-64/property-x86-5b.s: Likewise.
394         * testsuite/ld-x86-64/x86-64.exp: Run property-x86-5 and
395         property-x86-5-x32.
396
397 2018-08-26  Alan Modra  <amodra@gmail.com>
398
399         PR 23571
400         * ldlang.h (section_alignment): Make it an expression tree.
401         (subsection_alignment): Likewise.
402         * ldlang.c (topower): Delete.
403         (output_section_statement_newfunc): Adjust initialization.
404         (init_os): Evaluate section_alignment.
405         (lang_size_sections_1): Likewise.
406         (size_input_section): Evaluate subsection_alignment.
407         (lang_enter_output_section_statement): Don't evaluate here.
408         (lang_new_phdr): Use exp_get_vma rather than exp_get_value_int.
409         * ldexp.h (exp_get_value_int): Delete.
410         (exp_get_power): Declare.
411         * ldexp.c (exp_get_value_int): Delete.
412         (exp_get_power): New function.
413         * emultempl/pe.em (place_orphan): Build expression for section
414         alignment.
415         * emultempl/pep.em (place_orphan): Likewise.
416         * testsuite/ld-scripts/pr23571.d,
417         * testsuite/ld-scripts/pr23571.t: New test.
418         * testsuite/ld-scripts/align.exp: Run it.
419
420 2018-08-24  Chenghua Xu  <paul.hua.gm@gmail.com>
421
422         * testsuite/ld-mips-elf/mips-elf-flags.exp
423         (check_ld_support_32bit, check_is_32bit_args): New procedures.
424         (good_combination, bad_combination): Skip 32bit test if ld
425         not support 32bit emulations.
426
427 2018-08-24  H.J. Lu  <hongjiu.lu@intel.com>
428
429         * testsuite/ld-i386/i386.exp: Run pr23372c, pr23372d, pr23486c
430         and pr23486d.
431         * testsuite/ld-i386/pr23372a.s: Update comments.
432         * testsuite/ld-i386/pr23372b.s: Likewise.
433         * testsuite/ld-i386/pr23372c.s: Likewise.
434         * testsuite/ld-x86-64/pr23372a.s: Likewise.
435         * testsuite/ld-x86-64/pr23372b.s: Likewise.
436         * testsuite/ld-x86-64/pr23372c.s: Likewise.
437         * testsuite/ld-x86-64/pr23486a.s: Likewise.
438         * testsuite/ld-x86-64/pr23486b.s: Likewise.
439         * testsuite/ld-i386/pr23372c.d: New file.
440         * testsuite/ld-i386/pr23372d.d: Likewise.
441         * testsuite/ld-i386/pr23486c.d: Likewise.
442         * testsuite/ld-i386/pr23486d.d: Likewise.
443         * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
444         * testsuite/ld-x86-64/pr23372c.d: Likewise.
445         * testsuite/ld-x86-64/pr23372d-x32.d: Likewise.
446         * testsuite/ld-x86-64/pr23372d.d: Likewise.
447         * testsuite/ld-x86-64/pr23372d.s: Likewise.
448         * testsuite/ld-x86-64/pr23372e.s: Likewise.
449         * testsuite/ld-x86-64/pr23372f.s: Likewise.
450         * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
451         * testsuite/ld-x86-64/pr23486c.d: Likewise.
452         * testsuite/ld-x86-64/pr23486c.s: Likewise.
453         * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
454         * testsuite/ld-x86-64/pr23486d.d: Likewise.
455         * testsuite/ld-x86-64/pr23486d.s: Likewise.
456         * testsuite/ld-i386/property-3.r: Updated.
457         * testsuite/ld-i386/property-4.r: Likewise.
458         * testsuite/ld-i386/property-5.r: Likewise.
459         * testsuite/ld-i386/property-x86-3.d: Likewise.
460         * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
461         * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
462         * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
463         * testsuite/ld-x86-64/property-3.r: Likewise.
464         * testsuite/ld-x86-64/property-4.r: Likewise.
465         * testsuite/ld-x86-64/property-5.r: Likewise.
466         * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
467         * testsuite/ld-x86-64/property-x86-3.d: Likewise.
468         * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
469         * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
470         * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
471         * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
472         * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
473         * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
474         * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
475         * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
476         * testsuite/ld-i386/property-x86-1.S: Updated to the current
477         GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
478         values.
479         * testsuite/ld-i386/property-x86-2.S: Likewise.
480         * testsuite/ld-i386/property-x86-3.s: Likewise.
481         * testsuite/ld-x86-64/property-x86-1.S: Likewise.
482         * testsuite/ld-x86-64/property-x86-2.S: Likewise.
483         * testsuite/ld-x86-64/property-x86-3.s: Likewise.
484         * ld/testsuite/ld-x86-64/x86-64.exp: Run pr23372c, pr23372c-x32,
485         pr23372d, pr23372d-x32, pr23486c, pr23486c-x32, pr23486d and
486         pr23486d-x32.
487
488 2018-08-24  Alan Modra  <amodra@gmail.com>
489
490         * emultempl/elf32.em (before_allocation): Don't restore
491         __ehdr_start u.*.next pointer.
492
493 2018-08-23  Alan Modra  <amodra@gmail.com>
494
495         PR 23566
496         * emultempl/elf32.em (before_allocation): Warning fix.
497
498 2018-08-23  H.J. Lu  <hongjiu.lu@intel.com>
499
500         PR ld/23536
501         * Makefile.am (development.exp): New target.
502         (EXTRA_DEJAGNU_SITE_CONFIG): New.
503         (DISTCLEANFILES): Add development.exp.
504         * Makefile.in: Regenerated.
505         * testsuite/ld-bootstrap/bootstrap.exp: Call prune_warnings to
506         prune BFD output.
507         * testsuite/ld-plugin/lto.exp: Likewise.
508         * testsuite/lib/ld-lib.exp (prune_warnings): Removed.
509         * testsuite/ld-elf/shared.exp: Allow "\n" in linker warnings.
510
511 2018-08-21  Nick Clifton  <nickc@redhat.com>
512
513         PR 23426
514         * ld.texi (--hash-style): Note that the default is configurable
515         and that for most Linux based systems it will be "both".
516
517 2018-08-18  Alan Modra  <amodra@gmail.com>
518
519         * testsuite/ld-elf/elf.exp (is_elf64): Delete.
520
521 2018-08-17  H.J. Lu  <hongjiu.lu@intel.com>
522
523         PR ld/23515
524         * testsuite/ld-i386/ibt-plt-2a.d: Updated.
525         * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
526         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
527         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
528         * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
529         * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
530
531 2018-08-12  H.J. Lu  <hongjiu.lu@intel.com>
532
533         * testsuite/ld-x86-64/pr23486b.d: Swap pr23486a.s and pr23486a.s.
534
535 2018-08-11  H.J. Lu  <hongjiu.lu@intel.com>
536
537         PR ld/23428
538         * testsuite/ld-elf/dummy.s: New file.
539         * testsuite/ld-elf/linux-x86.S: Add X86_FEATURE_1_AND property.
540         * testsuite/ld-elf/linux-x86.exp: Add dummy.s to pr23428.
541
542 2018-08-08  H.J. Lu  <hongjiu.lu@intel.com>
543
544         PR ld/23486
545         * testsuite/ld-i386/i386.exp: Run PR ld/23486 tests.
546         * testsuite/ld-x86-64/x86-64.exp: Likewise.
547         * testsuite/ld-i386/pr23486a.d: New file.
548         * testsuite/ld-i386/pr23486b.d: Likewise.
549         * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
550         * testsuite/ld-x86-64/pr23486a.d: Likewise.
551         * testsuite/ld-x86-64/pr23486a.s: Likewise.
552         * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
553         * testsuite/ld-x86-64/pr23486b.d: Likewise.
554         * testsuite/ld-x86-64/pr23486b.s: Likewise.
555         * testsuite/ld-i386/property-3.r: Remove "x86 ISA used".
556         * testsuite/ld-i386/property-4.r: Likewise.
557         * testsuite/ld-i386/property-5.r: Likewise.
558         * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
559         * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
560         * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
561         * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
562         * testsuite/ld-x86-64/property-3.r: Likewise.
563         * testsuite/ld-x86-64/property-4.r: Likewise.
564         * testsuite/ld-x86-64/property-5.r: Likewise.
565         * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
566         * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
567         * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
568         * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
569         * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
570         * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
571         * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
572         * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
573
574 2018-08-07  Alan Modra  <amodra@gmail.com>
575
576         * testsuite/ld-powerpc/notoc.s: Generate some cfi.
577         * testsuite/ld-powerpc/notoc.d: Adjust.
578         * testsuite/ld-powerpc/notoc.wf: New file.
579         * testsuite/ld-powerpc/powerpc.exp: Run "ext" and "notoc" tests
580         as run_ld_link_tests rather than run_dump_test.
581
582 2018-08-07  Martin Storsjo  <martin@martin.st>
583
584         * scripttempl/pe.sc: Improve the comment about overriding
585         __CTOR_LIST__ and __DTOR_LIST__ symbols.
586         * scripttemp/pep.sc: Likewise.
587
588 2018-08-07  Nick Clifton  <nickc@redhat.com>
589
590         * po/bg.po: Updated Bulgarian translation.
591
592 2018-08-06  Claudiu Zissulescu  <claziss@synopsys.com>
593
594         * testsuite/ld-arc/attr-merge-6.d: New file.
595         * testsuite/ld-arc/attr-merge-6a.s: Likewise.
596         * testsuite/ld-arc/attr-merge-6b.s: Likewise.
597         * testsuite/ld-arc/attr-merge-6bis.d: Likewise.
598
599 2018-08-06  Claudiu Zissulescu  <claziss@synopsys.com>
600
601         * testsuite/ld-arc/attr-merge-0.d: Update test.
602         * testsuite/ld-arc/attr-merge-1.d: Likewise.
603         * testsuite/ld-arc/attr-merge-2.d: Likewise.
604         * testsuite/ld-arc/attr-merge-3.d: Likewise.
605         * testsuite/ld-arc/attr-merge-5.d: Likewise.
606
607 2018-08-05  Alan Modra  <amodra@gmail.com>
608
609         * testsuite/ld-powerpc/ext.d,
610         * testsuite/ld-powerpc/ext.s,
611         * testsuite/ld-powerpc/ext.lnk,
612         * testsuite/ld-powerpc/notoc.d,
613         * testsuite/ld-powerpc/notoc.s: New tests.
614         * testsuite/ld-powerpc/powerpc.exp: Run them.
615
616 2018-08-05  Alan Modra  <amodra@gmail.com>
617
618         * testsuite/ld-powerpc/elfv2exe.d: Adjust for stub symbol change.
619         * testsuite/ld-powerpc/tocopt6.d: Likewise.
620
621 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
622
623         * testsuite/ld-x86-64/property-x86-3.s: Use ".p2align 2" to
624         align .note.gnu.property section if __64_bit__ is undefined.
625
626 2018-08-02  Nick Clifton  <nickc@redhat.com>
627
628         PR 23463
629         * testsuite/ld-plugin/pr12982.d: Revert previous delta.
630         * testsuite/ld-plugin/lto.exp: Skip the pr12982 test for HPPA
631         targets.
632
633 2018-08-02  H.J. Lu  <hongjiu.lu@intel.com>
634
635         * testsuite/ld-ifunc/ifunc.exp: Always build static_nonifunc_prog.
636
637 2018-08-02  H.J. Lu  <hongjiu.lu@intel.com>
638
639         PR binutils/23460
640         * testsuite/ld-plugin/lto.exp: Run the PR binutils/23460 test.
641         * testsuite/ld-plugin/pr23460a.c: New file.
642         * testsuite/ld-plugin/pr23460b.c: Likewise.
643         * testsuite/ld-plugin/pr23460c.c: Likewise.
644         * testsuite/ld-plugin/pr23460d.c: Likewise.
645         * testsuite/ld-plugin/pr23460e.c: Likewise.
646         * testsuite/ld-plugin/pr23460f.c: Likewise.
647
648 2018-08-01  Roland McGrath  <mcgrathr@google.com>
649
650         * testsuite/ld-aarch64/ifunc-1-local.d: Adjust regexps to match
651         the offsets emitted by aarch64-elf configurations.
652         * testsuite/ld-aarch64/ifunc-1.d: Likewise.
653         * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
654         * testsuite/ld-aarch64/ifunc-2.d: Likewise.
655         * testsuite/ld-aarch64/ifunc-21.d: Likewise.
656         * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
657
658 2018-08-01  Nick Clifton  <nickc@redhat.com>
659
660         PR 23463
661         * testsuite/ld-plugin/pr12982.d: Skip this test for the HPPA
662         target.
663
664 2018-08-01  Alan Modra  <amodra@gmail.com>
665
666         * testsuite/ld-powerpc/powerpc.exp: Run tlsopt5 with hash-style
667         specified.
668
669 2018-08-01  Alan Modra  <amodra@gmail.com>
670
671         * testsuite/ld-powerpc/powerpc.exp: Run tlsopt5 with plt alignment.
672         * testsuite/ld-powerpc/tlsopt5.s: Add extra call.
673         * testsuite/ld-powerpc/tlsopt5.wf: Adjust expected output.
674         * testsuite/ld-powerpc/tlsopt5.d: Likewise.
675
676 2018-08-01  Alan Modra  <amodra@gmail.com>
677
678         * po/BLD-POTFILES.in: Regenerate.
679
680 2018-07-30  Nick Clifton  <nickc@redhat.com>
681
682         * scripttempl/elf.sc: Move the .gnu.build.attributes section to
683         after the .comment section.
684
685 2018-07-30  Andrew Jenner  <andrew@codesourcery.com>
686
687         * Makefile.am (ALL_EMULATION_SOURCES): Add C-SKY emulations.
688         (ecskyelf.c, ecskyelf_linux.c): New rules.
689         * Makefile.in: Regenerated.
690         * configure.tgt: Add C-SKY.
691         * emulparams/cskyelf.sh: New file.
692         * emulparams/cskyelf_linux.sh: New file.
693         * emultempl/cskyelf.em: New file.
694         * gen-doc.texi: Add C-SKY.
695         * ld.texi: Likewise.
696         (Options specific to C-SKY targets): New section.
697         * testsuite/ld-csky/*: New tests.
698         * NEWS: Mention the support.
699
700 2018-07-30  Nick Clifton  <nickc@redhat.com>
701
702         * scripttempl/elf.sc: Place .gnu.build.attributes sections with
703         other read-only sections.
704
705 2018-07-27  John Darrington  <john@darrington.wattle.id.au>
706
707         * scripttempl/elfm9s12z.sc: Put input sections called .common
708         into the .bss segment.
709
710 2018-07-27  John Darrington  <john@darrington.wattle.id.au>
711
712         * scripttempl/elfm9s12z.sc: Emit the data_section at the end of text.
713
714 2018-07-26  Alan Modra  <amodra@gmail.com>
715
716         * testsuite/ld-powerpc/vxworks-relax-2.rd: Update for 2018-07-25
717         ppc_elf_relax_section changes.
718
719 2018-07-26  Alan Modra  <amodra@gmail.com>
720
721         * ld-powerpc/elfv2.s: Add .localentry f5,1 testcase.
722         * ld-powerpc/elfv2exe.d: Update.
723         * ld-powerpc/elfv2so.d: Update.
724
725 2018-07-25  Alan Modra  <amodra@gmail.com>
726
727         * testsuite/ld-powerpc/big.s: New file.
728         * testsuite/ld-powerpc/relaxrl.d: New test.
729         * testsuite/ld-powerpc/powerpc.exp: Run new test.
730         * testsuite/ld-powerpc/relaxr.d: Adjust.
731
732 2018-07-24  Nick Clifton  <nickc@redhat.com>
733
734         * po/fr.po: Updated French translation.
735
736 2018-07-23  Max Filippov  <jcmvbkbc@gmail.com>
737
738         * testsuite/ld-xtensa/coalesce.d: New file.
739         * testsuite/ld-xtensa/coalesce.exp: Remove file.
740         * testsuite/ld-xtensa/diff_overflow.d: New file.
741         * testsuite/ld-xtensa/diff_overflow.exp: Remove file.
742         * testsuite/ld-xtensa/lcall.d: New file.
743         * testsuite/ld-xtensa/lcall.exp: Remove file.
744         * testsuite/ld-xtensa/xtensa.exp (coalesce, diff_overflow)
745         (lcall): New tests.
746
747 2018-07-23  Max Filippov  <jcmvbkbc@gmail.com>
748
749         * testsuite/ld-xtensa/relax-static-defs.s: New file.
750         * testsuite/ld-xtensa/relax-static-local-pie.d: New file.
751         * testsuite/ld-xtensa/relax-static-local-shared.d: New file.
752         * testsuite/ld-xtensa/relax-static-local.s: New file.
753         * testsuite/ld-xtensa/relax-static-pie.d: New file.
754         * testsuite/ld-xtensa/relax-static-shared.d: New file.
755         * testsuite/ld-xtensa/relax-static.s: New file.
756         * testsuite/ld-xtensa/relax-undef-weak-local-pie.d: New file.
757         * testsuite/ld-xtensa/relax-undef-weak-local-shared.d: New file.
758         * testsuite/ld-xtensa/relax-undef-weak-local.s: New file.
759         * testsuite/ld-xtensa/relax-undef-weak-pie.d: New file.
760         * testsuite/ld-xtensa/relax-undef-weak-shared.d: New file.
761         * testsuite/ld-xtensa/relax-undef-weak.s: New file.
762         * testsuite/ld-xtensa/xtensa.exp: New file.
763
764 2018-07-23  Max Filippov  <jcmvbkbc@gmail.com>
765
766         * testsuite/ld-xtensa/xtensa.exp: Rename to xtensa-linux.exp.
767
768 2018-07-23  Alan Modra  <amodra@gmail.com>
769
770         * testsuite/ld-elf/reloc-discard-warn.d: New.
771         * testsuite/ld-elf/reloc-discard.d: Skip test on PowerPC64.
772
773 2018-07-20  H.J. Lu  <hongjiu.lu@intel.com>
774
775         * testsuite/ld-elf/reloc-discard.ld: Discard .rel.* and .rela.*
776         sections instead of .rel.dyn and .rela.dyn sections.
777
778 2018-07-20  H.J. Lu  <hongjiu.lu@intel.com>
779
780         PR ld/23428
781         * testsuite/ld-elf/linux-x86.S: New file.
782         * testsuite/ld-elf/linux-x86.exp: Likewise.
783         * testsuite/ld-elf/pr23428.c: Likewise.
784         * testsuite/ld-elf/sec64k.exp: Pass "-z noseparate-code" to ld
785         for Linux/x86 targets.
786         * testsuite/ld-i386/abs-iamcu.d: Likewise.
787         * testsuite/ld-i386/abs.d: Likewise.
788         * testsuite/ld-i386/pr12718.d: Likewise.
789         * testsuite/ld-i386/pr12921.d: Likewise.
790         * testsuite/ld-x86-64/abs-k1om.d: Likewise.
791         * testsuite/ld-x86-64/abs-l1om.d: Likewise.
792         * testsuite/ld-x86-64/abs.d: Likewise.
793         * testsuite/ld-x86-64/pr12718.d: Likewise.
794         * testsuite/ld-x86-64/pr12921.d: Likewise.
795         * testsuite/ld-linkonce/zeroeh.ld: Discard .note.gnu.property
796         section.
797         * testsuite/ld-scripts/print-memory-usage.t: Likewise.
798         * testsuite/ld-scripts/size-2.t: Likewise.
799         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use ld to
800         create executable if language is "asm".
801
802 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
803
804         * testsuite/ld-elf/reloc-discard.d: New test.
805         * testsuite/ld-elf/reloc-discard.ld: New test linker script.
806         * testsuite/ld-elf/reloc-discard.s: New test source.
807
808 2018-07-18  Nick Clifton  <nickc@redhat.com>
809
810         * po/fr.po: Updated French translation.
811
812 2018-07-17  Maciej W. Rozycki  <macro@mips.com>
813
814         * ldexp.c (exp_fold_tree_1) <etree_assign, etree_provide>
815         <etree_provided>: Copy expression's `rel_from_abs' flag to the
816         link hash.
817
818 2018-07-12  Maciej W. Rozycki  <macro@mips.com>
819
820         * testsuite/ld-mips-elf/mips-elf.exp (run_dump_test_abi)
821         (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64)
822         (run_dump_test_eabi): New procedures.
823         (has_newabi, has_elf32): Remove variables.
824         (has_abi): New associative array variable.
825         (abi_asflags, abi_ldflags): Update settings across targets.
826         (irixemul): New variable.
827         Replace `run_dump_test' calls where applicable throughout with
828         `run_dump_test_o32', `run_dump_test_n32', `run_dump_test_n64'
829         and `run_dump_test_eabi' as appropriate.  Remove explicit
830         passing of `abi_asflags' and `abi_ldflags'.  Use `noarch' for
831         tests that require their own architecture setting.  Force the
832         big endianness for tests that require it.  Select the endianness
833         required for `objdump invocation with the `reloc-2' test.
834         Conditionalize tests run via `run_ld_link_tests' on the ABI
835         required and use the ABI list from the `has_abi' array where
836         appropriate.
837         * testsuite/ld-mips-elf/attr-gnu-4-0-n32-ph.d: Remove ABI and
838         endianness selection options from `ld' and `source' tags.  Relax
839         output format matching.
840         * testsuite/ld-mips-elf/attr-gnu-4-0-n64-ph.d: Likewise.
841         * testsuite/ld-mips-elf/attr-gnu-4-1-n32-ph.d: Likewise.
842         * testsuite/ld-mips-elf/attr-gnu-4-1-n64-ph.d: Likewise.
843         * testsuite/ld-mips-elf/attr-gnu-4-2-n32-ph.d: Likewise.
844         * testsuite/ld-mips-elf/attr-gnu-4-2-n64-ph.d: Likewise.
845         * testsuite/ld-mips-elf/attr-gnu-4-3-n32-ph.d: Likewise.
846         * testsuite/ld-mips-elf/attr-gnu-4-3-n64-ph.d: Likewise.
847         * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: Remove
848         ABI and endianness selection options from `as', `ld', `source'
849         tags, and also the `-march=from-abi' option.  Remove the `as'
850         tag where it would become empty.
851         * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d:
852         Likewise.
853         * testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: Likewise.
854         * testsuite/ld-mips-elf/bal-jalx-addend-n32.d: Likewise.
855         * testsuite/ld-mips-elf/bal-jalx-addend-n64.d: Likewise.
856         * testsuite/ld-mips-elf/bal-jalx-addend.d: Likewise.
857         * testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d:
858         Likewise.
859         * testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d:
860         Likewise.
861         * testsuite/ld-mips-elf/bal-jalx-local-micromips.d: Likewise.
862         * testsuite/ld-mips-elf/bal-jalx-local-n32.d: Likewise.
863         * testsuite/ld-mips-elf/bal-jalx-local-n64.d: Likewise.
864         * testsuite/ld-mips-elf/bal-jalx-local.d: Likewise.
865         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d:
866         Likewise.
867         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d:
868         Likewise.
869         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d:
870         Likewise.
871         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: Likewise.
872         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: Likewise.
873         * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: Likewise.
874         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: Likewise.
875         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: Likewise.
876         * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: Likewise.
877         * testsuite/ld-mips-elf/bal-jalx-pic-n32.d: Likewise.
878         * testsuite/ld-mips-elf/bal-jalx-pic-n64.d: Likewise.
879         * testsuite/ld-mips-elf/bal-jalx-pic.d: Likewise.
880         * testsuite/ld-mips-elf/branch-absolute-addend-n32.d: Likewise.
881         * testsuite/ld-mips-elf/branch-absolute-addend-n64.d: Likewise.
882         * testsuite/ld-mips-elf/branch-absolute-addend.d: Likewise.
883         * testsuite/ld-mips-elf/branch-absolute-n32.d: Likewise.
884         * testsuite/ld-mips-elf/branch-absolute-n64.d: Likewise.
885         * testsuite/ld-mips-elf/branch-absolute.d: Likewise.
886         * testsuite/ld-mips-elf/dyn-sec64.d: Likewise.
887         * testsuite/ld-mips-elf/eh-frame1-n32.d: Likewise.
888         * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
889         * testsuite/ld-mips-elf/eh-frame2-n32.d: Likewise.
890         * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
891         * testsuite/ld-mips-elf/elf-rel-got-n32-embed.d: Likewise.
892         * testsuite/ld-mips-elf/elf-rel-got-n32.d: Likewise.
893         * testsuite/ld-mips-elf/elf-rel-got-n64-embed.d: Likewise.
894         * testsuite/ld-mips-elf/elf-rel-got-n64-irix.d: Likewise.
895         * testsuite/ld-mips-elf/elf-rel-got-n64.d: Likewise.
896         * testsuite/ld-mips-elf/elf-rel-xgot-n32-embed.d: Likewise.
897         * testsuite/ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
898         * testsuite/ld-mips-elf/elf-rel-xgot-n64-embed.d: Likewise.
899         * testsuite/ld-mips-elf/elf-rel-xgot-n64-irix.d: Likewise.
900         * testsuite/ld-mips-elf/elf-rel-xgot-n64.d: Likewise.
901         * testsuite/ld-mips-elf/emit-relocs-1.d: Likewise.
902         * testsuite/ld-mips-elf/got-dump-2.d: Likewise.
903         * testsuite/ld-mips-elf/got-page-2.d: Likewise.
904         * testsuite/ld-mips-elf/jal-global-overflow-0.d: Likewise.
905         * testsuite/ld-mips-elf/jal-global-overflow-1.d: Likewise.
906         * testsuite/ld-mips-elf/jal-local-overflow-0.d: Likewise.
907         * testsuite/ld-mips-elf/jal-local-overflow-1.d: Likewise.
908         * testsuite/ld-mips-elf/jalbal.d: Likewise.
909         * testsuite/ld-mips-elf/jalx-addend-n32.d: Likewise.
910         * testsuite/ld-mips-elf/jalx-addend-n64.d: Likewise.
911         * testsuite/ld-mips-elf/jalx-addend.d: Likewise.
912         * testsuite/ld-mips-elf/jalx-local-n32.d: Likewise.
913         * testsuite/ld-mips-elf/jalx-local-n64.d: Likewise.
914         * testsuite/ld-mips-elf/jalx-local.d: Likewise.
915         * testsuite/ld-mips-elf/jr-to-b-1.d: Likewise.
916         * testsuite/ld-mips-elf/jr-to-b-2.d: Likewise.
917         * testsuite/ld-mips-elf/lsi-4010-isa.d: Likewise.
918         * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d:
919         Likewise.
920         * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d:
921         Likewise.
922         * testsuite/ld-mips-elf/micromips-branch-absolute-addend.d:
923         Likewise.
924         * testsuite/ld-mips-elf/micromips-branch-absolute-n32.d:
925         Likewise.
926         * testsuite/ld-mips-elf/micromips-branch-absolute-n64.d:
927         Likewise.
928         * testsuite/ld-mips-elf/micromips-branch-absolute.d: Likewise.
929         * testsuite/ld-mips-elf/mips16-branch-2.d: Likewise.
930         * testsuite/ld-mips-elf/mips16-branch-3.d: Likewise.
931         * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: Likewise.
932         * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: Likewise.
933         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d:
934         Likewise.
935         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
936         Likewise.
937         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d:
938         Likewise.
939         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
940         Likewise.
941         * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d:
942         Likewise.
943         * testsuite/ld-mips-elf/mips16-branch-absolute-addend.d:
944         Likewise.
945         * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d:
946         Likewise.
947         * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d:
948         Likewise.
949         * testsuite/ld-mips-elf/mips16-branch-absolute-n32.d: Likewise.
950         * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d:
951         Likewise.
952         * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d:
953         Likewise.
954         * testsuite/ld-mips-elf/mips16-branch-absolute-n64.d: Likewise.
955         * testsuite/ld-mips-elf/mips16-branch-absolute.d: Likewise.
956         * testsuite/ld-mips-elf/mips16-branch-addend-2.d: Likewise.
957         * testsuite/ld-mips-elf/mips16-branch-addend-3.d: Likewise.
958         * testsuite/ld-mips-elf/mips16-hilo-n32.d: Likewise.
959         * testsuite/ld-mips-elf/mips16-pcrel-0.d: Likewise.
960         * testsuite/ld-mips-elf/mips16-pcrel-1.d: Likewise.
961         * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: Likewise.
962         * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: Likewise.
963         * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: Likewise.
964         * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: Likewise.
965         * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: Likewise.
966         * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: Likewise.
967         * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: Likewise.
968         * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: Likewise.
969         * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: Likewise.
970         * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: Likewise.
971         * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: Likewise.
972         * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: Likewise.
973         * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: Likewise.
974         * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: Likewise.
975         * testsuite/ld-mips-elf/multi-got-1.d: Likewise.
976         * testsuite/ld-mips-elf/multi-got-hidden-1.d: Likewise.
977         * testsuite/ld-mips-elf/multi-got-hidden-2.d: Likewise.
978         * testsuite/ld-mips-elf/multi-got-no-shared.d: Likewise.
979         * testsuite/ld-mips-elf/no-shared-1-n32.d: Likewise.
980         * testsuite/ld-mips-elf/no-shared-1-n64.d: Likewise.
981         * testsuite/ld-mips-elf/no-shared-1-o32.d: Likewise.
982         * testsuite/ld-mips-elf/pic-and-nonpic-2.d: Likewise.
983         * testsuite/ld-mips-elf/pic-and-nonpic-3-error.d: Likewise.
984         * testsuite/ld-mips-elf/pic-and-nonpic-4-error.d: Likewise.
985         * testsuite/ld-mips-elf/pie-n32.d: Likewise.
986         * testsuite/ld-mips-elf/pie-n64.d: Likewise.
987         * testsuite/ld-mips-elf/pie-o32.d: Likewise.
988         * testsuite/ld-mips-elf/rel32-n32.d: Likewise.
989         * testsuite/ld-mips-elf/rel32-o32.d: Likewise.
990         * testsuite/ld-mips-elf/rel64.d: Likewise.
991         * testsuite/ld-mips-elf/relax-jalr-n32.d: Likewise.
992         * testsuite/ld-mips-elf/reloc-1-n32.d: Likewise.
993         * testsuite/ld-mips-elf/reloc-1-n64.d: Likewise.
994         * testsuite/ld-mips-elf/reloc-2.d: Likewise.
995         * testsuite/ld-mips-elf/reloc-3-n32.d: Likewise.
996         * testsuite/ld-mips-elf/reloc-local-overflow.d: Likewise.
997         * testsuite/ld-mips-elf/textrel-1.d: Likewise.
998         * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
999         * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
1000         * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
1001         Likewise.
1002         * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
1003         Likewise.
1004         * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
1005         Likewise.
1006         * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
1007         * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
1008         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
1009         * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
1010         * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
1011         * testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: Likewise.
1012         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
1013         * testsuite/ld-mips-elf/unaligned-jalx-addend-2.d: Likewise.
1014         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
1015         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d:
1016         Likewise.
1017         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
1018         Likewise.
1019         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d:
1020         Likewise.
1021         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
1022         Likewise.
1023         * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
1024         * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
1025         * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
1026         * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Likewise.
1027         * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
1028         * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Likewise.
1029         * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
1030
1031 2018-07-12  Maciej W. Rozycki  <macro@mips.com>
1032
1033         * testsuite/ld-mips-elf/mips-elf.exp: Limit reloc 6 tests to
1034         shared library targets.
1035
1036 2018-07-11  Maciej W. Rozycki  <macro@mips.com>
1037
1038         * testsuite/ld-mips-elf/tlsdyn-o32.d: Update test for dynamic
1039         relocation removal.
1040         * testsuite/ld-mips-elf/tlsdyn-o32.got: Likewise.
1041         * testsuite/ld-mips-elf/tlsdyn-o32-1.d: Likewise.
1042         * testsuite/ld-mips-elf/tlsdyn-o32-1.got: Likewise.
1043         * testsuite/ld-mips-elf/tlsdyn-o32-2.d: Likewise.
1044         * testsuite/ld-mips-elf/tlsdyn-o32-2.got: Likewise.
1045         * testsuite/ld-mips-elf/tlsdyn-o32-3.d: Likewise.
1046         * testsuite/ld-mips-elf/tlsdyn-o32-3.got: Likewise.
1047
1048 2018-07-11  Maciej W. Rozycki  <macro@mips.com>
1049
1050         PR ld/22570
1051         * testsuite/ld-mips-elf/tlsbin-pie-o32.d: New test.
1052         * testsuite/ld-mips-elf/tlsbin-pie-o32.got: New test.
1053         * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: New test.
1054         * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: New test.
1055         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1056
1057 2018-07-11  Alan Modra  <amodra@gmail.com>
1058
1059         * testsuite/ld-elf/hash.d: Comment on mips xfail.
1060         * testsuite/ld-gc/pr20022b.s: Use .data not .text.
1061         * testsuite/ld-gc/pr20022.d: Remove xfails.
1062         * testsuite/ld-scripts/fill.d: Revert most of last patch, but use
1063         skip rather than notarget.
1064         * testsuite/ld-scripts/fill16.d: Likewise.
1065
1066 2018-07-10  Maciej W. Rozycki  <macro@mips.com>
1067
1068         * testsuite/ld-mips-elf/mips-elf.exp: Limit export class call
1069         relocation tests to shared library targets.
1070
1071 2018-07-10  Alan Modra  <amodra@gmail.com>
1072
1073         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Return 0
1074         for xgate.
1075         * testsuite/ld-elf/elf.exp: Add xgate to pr21703 xfails.
1076         * testsuite/ld-elf/shared.exp: Add xgate to pr21703 xfails.
1077         * testsuite/ld-discard/extern.d: xfail xgate.
1078         * testsuite/ld-discard/start.d: Likewise.
1079         * testsuite/ld-discard/static.d: Likewise.
1080         * testsuite/ld-elf/attributes.d: Likewise.
1081         * testsuite/ld-elf/compressed1d.d: Likewise.
1082         * testsuite/ld-elf/group1.d: Likewise.
1083         * testsuite/ld-elf/group3b.d: Likewise.
1084         * testsuite/ld-elf/group8a.d: Likewise.
1085         * testsuite/ld-elf/group8b.d: Likewise.
1086         * testsuite/ld-elf/group9a.d: Likewise.
1087         * testsuite/ld-elf/group9b.d: Likewise.
1088         * testsuite/ld-elf/linkonce2.d: Likewise.
1089         * testsuite/ld-elf/merge.d: Likewise.
1090         * testsuite/ld-elf/merge2.d: Likewise.
1091         * testsuite/ld-elf/merge3.d: Likewise.
1092         * testsuite/ld-elf/orphan-10.d: Likewise.
1093         * testsuite/ld-elf/orphan-9.d: Likewise.
1094         * testsuite/ld-elf/orphan-region.d: Likewise.
1095         * testsuite/ld-elf/orphan.d: Likewise.
1096         * testsuite/ld-elf/orphan3.d: Likewise.
1097         * testsuite/ld-elf/pr12851.d: Likewise.
1098         * testsuite/ld-elf/pr12975.d: Likewise.
1099         * testsuite/ld-elf/pr13177.d: Likewise.
1100         * testsuite/ld-elf/pr13195.d: Likewise.
1101         * testsuite/ld-elf/pr14156b.d: Likewise.
1102         * testsuite/ld-elf/pr17550c.d: Likewise.
1103         * testsuite/ld-elf/pr17550d.d: Likewise.
1104         * testsuite/ld-elf/pr17615.d: Likewise.
1105         * testsuite/ld-elf/pr20528a.d: Likewise.
1106         * testsuite/ld-elf/pr20528b.d: Likewise.
1107         * testsuite/ld-elf/pr21562a.d: Likewise.
1108         * testsuite/ld-elf/pr21562b.d: Likewise.
1109         * testsuite/ld-elf/pr21562c.d: Likewise.
1110         * testsuite/ld-elf/pr21562d.d: Likewise.
1111         * testsuite/ld-elf/pr21562i.d: Likewise.
1112         * testsuite/ld-elf/pr21562j.d: Likewise.
1113         * testsuite/ld-elf/pr21562k.d: Likewise.
1114         * testsuite/ld-elf/pr21562l.d: Likewise.
1115         * testsuite/ld-elf/pr21562m.d: Likewise.
1116         * testsuite/ld-elf/pr21562n.d: Likewise.
1117         * testsuite/ld-elf/pr22677.d: Likewise.
1118         * testsuite/ld-elf/pr22836-1a.d: Likewise.
1119         * testsuite/ld-elf/pr22836-1b.d: Likewise.
1120         * testsuite/ld-elf/pr349.d: Likewise.
1121         * testsuite/ld-elf/warn1.d: Likewise.
1122         * testsuite/ld-elf/warn2.d: Likewise.
1123         * testsuite/ld-elf/warn3.d: Likewise.
1124
1125 2018-07-10  Alan Modra  <amodra@gmail.com>
1126
1127         * emulparams/xgateelf.sh (TEMPLATE_NAME) Set to generic.
1128         (EXTRA_EM_FILE): Set to genelf.
1129
1130 2018-07-10  Alan Modra  <amodra@gmail.com>
1131
1132         * testsuite/ld-elf/attributes.d: Use xfail rather than notarget.
1133         * testsuite/ld-elf/hash.d: Likewise.
1134         * testsuite/ld-elf/orphan-10.d: Likewise.
1135         * testsuite/ld-elf/overlay.d: Likewise.
1136         * testsuite/ld-elf/pr14926.d: Likewise.
1137         * testsuite/ld-elf/pr17550d.d: Likewise.
1138         * testsuite/ld-elf/pr19539.d: Likewise.
1139         * testsuite/ld-elf/pr22319.d: Likewise.
1140         * testsuite/ld-misc/defsym1.d: Likewise.
1141         * testsuite/ld-pe/pr19803.d: Likewise.
1142         * testsuite/ld-scripts/assign-loc.d: Likewise.
1143         * testsuite/ld-scripts/defined4.d: Likewise.
1144         * testsuite/ld-scripts/empty-address-1.d: Likewise.
1145         * testsuite/ld-scripts/empty-address-2a.d: Likewise.
1146         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1147         * testsuite/ld-scripts/fill.d: Likewise.
1148         * testsuite/ld-scripts/fill16.d: Likewise.
1149         * testsuite/ld-scripts/pr14962.d: Likewise.
1150         * testsuite/ld-scripts/pr14962-2.d: Likewise.
1151         * testsuite/ld-unique/pr21529.d: Likewise.
1152         * testsuite/ld-elf/compress1a.d: Likewise, and adjust targets.
1153         * testsuite/ld-elf/compressed1a.d: Likewise.
1154         * testsuite/ld-elf/compressed1d.d: Likewise.
1155         * testsuite/ld-elf/compressed1e.d: Likewise.
1156         * testsuite/ld-elf/eh5.d: Likewise.
1157         * testsuite/ld-elf/group8a.d: Likewise.
1158         * testsuite/ld-elf/linkonce2.d: Likewise.
1159         * testsuite/ld-elf/orphan-9.d: Likewise.
1160         * testsuite/ld-elf/pr17550a.d: Likewise.
1161         * testsuite/ld-elf/pr17550b.d: Likewise.
1162         * testsuite/ld-elf/pr17550c.d: Likewise.
1163         * testsuite/ld-elf/pr19162.d: Likewise.
1164         * testsuite/ld-elf/pr21884.d: Likewise.
1165         * testsuite/ld-gc/pr19167.d: Likewise.
1166         * testsuite/ld-gc/pr20022.d: Likewise.
1167         * testsuite/ld-gc/start.d: Likewise.
1168         * testsuite/ld-elf/orphan-11.d: Delete notarget.
1169         * testsuite/ld-elf/orphan-12.d: Likewise.
1170         * testsuite/ld-gc/stop.d: Likewise.
1171         * testsuite/ld-scripts/empty-address-3a.d: Likewise.
1172         * testsuite/ld-scripts/empty-address-3b.d: Likewise.
1173         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Delete duplicate notarget.
1174         * testsuite/ld-scripts/section-match-1.d: Comment fix.
1175
1176 2018-07-10  Maciej W. Rozycki  <macro@mips.com>
1177
1178         * testsuite/ld-mips-elf/elf-rel-got-n64.d: Rename to...
1179         * testsuite/ld-mips-elf/elf-rel-got-n64-irix.d: ... this.
1180         * testsuite/ld-mips-elf/elf-rel-got-n64-linux.d: Rename to...
1181         * testsuite/ld-mips-elf/elf-rel-got-n64.d: ... this.
1182         * testsuite/ld-mips-elf/elf-rel-xgot-n64.d: Rename to...
1183         * testsuite/ld-mips-elf/elf-rel-xgot-n64-irix.d: ... this.
1184         * testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.dd: Rename to...
1185         * testsuite/ld-mips-elf/elf-rel-xgot-n64.d: ... this.
1186         * testsuite/ld-mips-elf/mips-elf.exp: Update accordingly.
1187         Define `irix' as a shorthand for `[istarget *-*-irix*]' and use
1188         it throughout.
1189
1190 2018-07-09  Maciej W. Rozycki  <macro@mips.com>
1191
1192         * testsuite/ld-mips-elf/elf-rel-got-n64.d: Add `#pass' at the
1193         end.
1194         * testsuite/ld-mips-elf/elf-rel-xgot-n64.d: Likewise.
1195
1196 2018-07-09  Maciej W. Rozycki  <macro@mips.com>
1197
1198         * testsuite/ld-mips-elf/stub-dynsym-2.dd: New test.
1199         * testsuite/ld-mips-elf/stub-dynsym-2.gd: New test.
1200         * testsuite/ld-mips-elf/stub-dynsym-2.sd: New test.
1201         * testsuite/ld-mips-elf/stub-dynsym-discard-2.gd: New test.
1202         * testsuite/ld-mips-elf/stub-dynsym-discard-2.sd: New test.
1203         * testsuite/ld-mips-elf/stub-dynsym-micromips-2.dd: New test.
1204         * testsuite/ld-mips-elf/stub-dynsym-micromips-2.gd: New test.
1205         * testsuite/ld-mips-elf/stub-dynsym-micromips-2.sd: New test.
1206         * testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-2.dd: New
1207         test.
1208         * testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-2.gd: New
1209         test.
1210         * testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-2.sd: New
1211         test.
1212         * testsuite/ld-mips-elf/stub-dynsym-2.ld: New test linker
1213         script.
1214         * testsuite/ld-mips-elf/stub-dynsym-discard-2.ld: New test
1215         linker script.
1216         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1217
1218 2018-07-09  Maciej W. Rozycki  <macro@mips.com>
1219
1220         * testsuite/lib/ld-lib.exp (run_dump_test): Call `unsupported'
1221         if the target being tested has been excluded by means of one or
1222         more of `target', `alltargets' and `notarget' tags.  Add support
1223         for `skip', `anyskip' and `noskip' tags.
1224
1225 2018-07-09  Maciej W. Rozycki  <macro@mips.com>
1226
1227         * testsuite/lib/ld-lib.exp (run_dump_test): Move the setting of
1228         `testname' earlier on and use it for test status reporting.
1229
1230 2018-07-09  Alan Modra  <amodra@gmail.com>
1231
1232         * testsuite/ld-discard/extern.d: Remove m68hc12 xfail.
1233         * testsuite/ld-discard/start.d: Likewise.
1234         * testsuite/ld-discard/static.d: Likewise.
1235
1236 2018-07-09  Christophe Lyon  <christophe.lyon@linaro.org>
1237
1238         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use the right
1239         symbol name in case of warning.
1240
1241 2018-07-05  Jim Wilson  <jimw@sifive.com>
1242
1243         * configure.tgt (riscv-*-*): Add as an alias for riscv32*-*-*.
1244
1245 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
1246
1247         * testsuite/ld-mips-elf/mips-elf.exp: Replace remaining calls to
1248         `[istarget mips*-*-linux*]' with $linux_gnu.
1249
1250 2018-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1251
1252         PR ld/23372
1253         * testsuite/ld-i386/i386.exp: Run pr23372a and pr23372b.
1254         * testsuite/ld-i386/pr23372a.d: New file.
1255         * testsuite/ld-i386/pr23372a.s: Likewise.
1256         * testsuite/ld-i386/pr23372b.d: Likewise.
1257         * testsuite/ld-i386/pr23372b.s: Likewise.
1258         * testsuite/ld-i386/pr23372c.s: Likewise.
1259         * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
1260         * testsuite/ld-x86-64/pr23372a.d: Likewise.
1261         * testsuite/ld-x86-64/pr23372a.s: Likewise.
1262         * testsuite/ld-x86-64/pr23372b-x32.d: Likewise.
1263         * testsuite/ld-x86-64/pr23372b.d: Likewise.
1264         * testsuite/ld-x86-64/pr23372b.s: Likewise.
1265         * testsuite/ld-x86-64/pr23372c.s: Likewise.
1266         * testsuite/ld-x86-64/x86-64.exp: Run pr23372a, pr23372a-x32,
1267         pr23372b and pr23372b-x32.
1268
1269 2018-07-05  Nick Clifton  <nickc@redhat.com>
1270
1271         * po/bg.po: Updated Bulgarian translation.
1272         * po/pt_BR.po: Updated Brazilian Portuguese translation.
1273
1274 2018-07-05  Alan Modra  <amodra@gmail.com>
1275
1276         * testsuite/ld-powerpc/attr-gnu-4-12.d: Update expected output.
1277         * testsuite/ld-powerpc/attr-gnu-4-13.d: Likewise.
1278         * testsuite/ld-powerpc/attr-gnu-4-21.d: Likewise.
1279         * testsuite/ld-powerpc/attr-gnu-4-23.d: Likewise.
1280         * testsuite/ld-powerpc/attr-gnu-4-31.d: Likewise.
1281         * testsuite/ld-powerpc/attr-gnu-4-32.d: Likewise.
1282         * testsuite/ld-powerpc/attr-gnu-8-23.d: Likewise.
1283         * testsuite/ld-powerpc/attr-gnu-12-21.d: Likewise.
1284
1285 2018-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1286
1287         PR ld/23309
1288         * ldlang.c (insert_undefined): Set non_ir_ref_regular to TRUE.
1289         * plugin.c (is_visible_from_outside): Don't scan entry_symbol.
1290         * testsuite/ld-plugin/pr23309.c: New file.
1291         * testsuite/ld-plugin/pr23309.d: Likewise.
1292
1293 2018-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1294
1295         PR ld/23358
1296         * lexsup.c (elf_shlib_list_options): Properly display default
1297         for -z separate-code.
1298
1299 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
1300
1301         * testsuite/ld-mips-elf/mips-elf.exp: Fix a typo in PR ld/21334
1302         test name.
1303
1304 2018-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1305
1306         PR ld/23324
1307         * testsuite/ld-x86-64/pr23324.s: New file.
1308         * testsuite/ld-x86-64/pr23324a.d: Likewise.
1309         * testsuite/ld-x86-64/pr23324b.d: Likewise.
1310
1311 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1312
1313         * arm-dis.c (select_arm_features): Fix typo in heading comment.  Allow
1314         all FPU features and add mapping from new bfd_mach_arm values to
1315         allowed CPU feature bits.
1316
1317 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1318
1319         * NEWS: Use command-line consistently when used in a compount word.
1320         * ld.texinfo: Likewise.
1321         * ldint.texinfo: Likewise.
1322
1323 2018-06-26  Nick Clifton  <nickc@redhat.com>
1324
1325         * po/uk.po: Updated Ukranian translation.
1326
1327 2018-06-26  Alan Modra  <amodra@gmail.com>
1328
1329         PR 23169
1330         * testsuite/ld-ifunc/ifunc.exp: Don't run pr23169 tests on
1331         powerpc.  Comment.
1332
1333 2018-06-26  Alan Modra  <amodra@gmail.com>
1334
1335         * testsuite/ld-bootstrap/bootstrap.exp: Use parentheses rather
1336         than curly braces in logical expression.
1337
1338 2018-06-26  Nick Clifton  <nickc@redhat.com>
1339
1340         * emultempl/aarch64elf.em: Fix spelling mistake.
1341         * emultempl/avrelf.em: Likewise.
1342         * emultempl/elf32.em: Likewise.
1343
1344 2018-06-24  Nick Clifton  <nickc@redhat.com>
1345
1346         * configure: Regenerate.
1347         * po/ld.pot: Regenerate.
1348
1349 2018-06-24  Nick Clifton  <nickc@redhat.com>
1350
1351         2.31 branch created.
1352         * NEWS: Add marker for 2.31.
1353
1354 2018-06-20 Renlin Li  <renlin.li@arm.com>
1355
1356         * testsuite/ld-aarch64/emit-relocs-115.d: Update test with new value.
1357         * testsuite/ld-aarch64/emit-relocs-534.d: Likewise.
1358         * testsuite/ld-aarch64/emit-relocs-555.d: Likewise.
1359
1360 2018-06-19  Maciej W. Rozycki  <macro@mips.com>
1361
1362         PR ld/22966
1363         * testsuite/ld-mips-elf/n64-plt-1.dd: New test.
1364         * testsuite/ld-mips-elf/n64-plt-1.gd: New test.
1365         * testsuite/ld-mips-elf/n64-plt-2.ed: New test.
1366         * testsuite/ld-mips-elf/n64-plt-3.ed: New test.
1367         * testsuite/ld-mips-elf/n64-plt-4.dd: New test.
1368         * testsuite/ld-mips-elf/n64-plt-4.gd: New test.
1369         * testsuite/ld-mips-elf/n64-plt-1.ld: New test linker script.
1370         * testsuite/ld-mips-elf/n64-plt-2.ld: New test linker script.
1371         * testsuite/ld-mips-elf/n64-plt-3.ld: New test linker script.
1372         * testsuite/ld-mips-elf/n64-plt-4.ld: New test linker script.
1373         * testsuite/ld-mips-elf/n64-plt.s: New test source.
1374         * testsuite/ld-mips-elf/n64-plt-lib.s: New test source.
1375         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1376
1377 2018-06-19  Maciej W. Rozycki  <macro@mips.com>
1378
1379         * testsuite/ld-elf/shared.exp: XFAIL DT_TEXTREL map file warning
1380         test for `mips*-*-*'.
1381
1382 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
1383
1384         * configure.ac: Remove AC_PREREQ.
1385         * Makefile.am: Remove DISTCLEANFILES hack, rename ld.texinfo to
1386         ld.texi, ldint.texinfo to ldint.texi throughout.
1387         (AUTOMAKE_OPTIONS): Add info-in-builddir.
1388         * README: Rename ld.texinfo to ld.texi, ldint.texinfo to
1389         ldint.texi throughout.
1390         * gen-doc.texi: Likewise.
1391         * h8-doc.texi: Likewise.
1392         * ld.texinfo: Rename to ...
1393         * ld.texi: ... this.
1394         * ldint.texinfo: Rename to ...
1395         * ldint.texi: ... this.
1396         * Makefile.in: Re-generate.
1397         * aclocal.m4: Re-generate.
1398         * config.in: Re-generate.
1399         * configure: Re-generate.
1400
1401 2018-06-18  Alan Modra  <amodra@gmail.com>
1402
1403         * testsuite/lib/ld-lib.exp (check_ifunc_available): Pass without
1404         running executable when non-native.
1405         (check_ifunc_attribute_available): Likewise.
1406         * testsuite/ld-ifunc/pr23169a.rd: Remove extraneous lines.  Match
1407         st_other strings.  Pass when func is an ifunc.
1408         * testsuite/ld-ifunc/pr23169b.rd: Remove extraneous lines.  Correct
1409         reloc regexp.  Correct match-anything line.
1410         * testsuite/ld-ifunc/pr23169c.rd: Remove extraneous lines.  Match
1411         st_other strings.
1412
1413 2018-06-14  Alan Modra  <amodra@gmail.com>
1414
1415         * testsuite/ld-elf/readelf.exp: Delete DUMP and selection of
1416         variant ver_def.vd.
1417         * testsuite/ld-elf/ver_def-tic6x.vd: Delete.
1418         * testsuite/ld-elf/shared.exp: Run most pr23161 and pr23162 tests for
1419         linux, nacl and gnu targets.
1420         * testsuite/ld-mips-elf/mips-elf.exp: Set base_syms to 1.
1421         * testsuite/ld-elf/pr23161a.rd: Don't check reloc type.  Allow any
1422         order of __bss_start, _edata and _end.
1423         * testsuite/ld-elf/pr23161b.rd: Don't check plt and dyn relocs.
1424         Allow and order of __bss_start, _edata and _end.
1425         * testsuite/ld-elf/pr23162.rd: Fail if __bss_start, _edata or _end
1426         relocs are present rather than testing for no relocations.
1427         * testsuite/ld-aarch64/gc-plt-relocs.d,
1428         * testsuite/ld-aarch64/ifunc-1-local.d,
1429         * testsuite/ld-aarch64/ifunc-1.d,
1430         * testsuite/ld-aarch64/ifunc-2-local.d,
1431         * testsuite/ld-aarch64/ifunc-2.d,
1432         * testsuite/ld-aarch64/ifunc-21.d,
1433         * testsuite/ld-aarch64/ifunc-3a.d,
1434         * testsuite/ld-arm/farcall-mixed-lib-v4t.d,
1435         * testsuite/ld-arm/farcall-mixed-lib.d,
1436         * testsuite/ld-arm/gc-hidden-1.d,
1437         * testsuite/ld-arm/tls-gdesc-got.d,
1438         * testsuite/ld-arm/tls-lib-loc.d,
1439         * testsuite/ld-arm/tls-longplt-lib.d,
1440         * testsuite/ld-arm/tls-thumb1.d,
1441         * testsuite/ld-cris/libdso-10.d,
1442         * testsuite/ld-cris/libdso-11.d,
1443         * testsuite/ld-cris/libdso-13b.d,
1444         * testsuite/ld-cris/libdso-14.d,
1445         * testsuite/ld-cris/libdso-15.d,
1446         * testsuite/ld-cris/pic-gc-72.d,
1447         * testsuite/ld-cris/pic-gc-73.d,
1448         * testsuite/ld-cris/tls-gc-71.d,
1449         * testsuite/ld-mips-elf/mips16-pic-4a.nd,
1450         * testsuite/ld-mips-elf/pic-and-nonpic-3a.dd,
1451         * testsuite/ld-mips-elf/pie-n32.d,
1452         * testsuite/ld-mips-elf/pie-n64.d,
1453         * testsuite/ld-mips-elf/pie-o32.d: Update for removed dynamic
1454         section symbols.
1455
1456 2018-06-12  Hans-Peter Nilsson  <hp@axis.com>
1457
1458         * testsuite/ld-cris/libdso-1.d: Correct recent address pattern update.
1459
1460 2018-06-12  Nick Clifton  <nickc@redhat.com>
1461
1462         PR 22983
1463         * testsuite/ld-plugin/lto.exp: Use individual tests to check for
1464         the presence of each expected symbol.
1465         * testsuite/ld-plugin/pr22983.1.d: New file.
1466         * testsuite/ld-plugin/pr22983.2.d: New file.
1467         * testsuite/ld-plugin/pr22983.3.d: New file.
1468         * testsuite/ld-plugin/pr22983.4.d: New file.
1469
1470         * emulparams/aarch64elf.sh (OTHER_BSS_END_SYMBOLS): Make the
1471         definition of the __bss_end__ symbol conditional upon CREATE_SHLIB.
1472
1473 2018-06-11  Nick Clifton  <nickc@redhat.com>
1474
1475         * po/es.po: Updated Spanish translation.
1476
1477 2018-06-09  Maciej W. Rozycki  <macro@mips.com>
1478
1479         * testsuite/ld-mips-elf/stub-dynsym-micromips-1-7fff.d: New
1480         test.
1481         * testsuite/ld-mips-elf/stub-dynsym-micromips-1-8000.d: New
1482         test.
1483         * testsuite/ld-mips-elf/stub-dynsym-micromips-1-fff0.d: New
1484         test.
1485         * testsuite/ld-mips-elf/stub-dynsym-micromips-1-10000.d: New
1486         test.
1487         * testsuite/ld-mips-elf/stub-dynsym-micromips-1-2fe80.d: New
1488         test.
1489         * testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-7fff.d:
1490         New test.
1491         * testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-8000.d:
1492         New test.
1493         * testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-fff0.d:
1494         New test.
1495         * testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-10000.d:
1496         New test.
1497         * testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-2fe80.d:
1498         New test.
1499         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.  Fix
1500         indentation.
1501
1502 2018-06-09  Maciej W. Rozycki  <macro@mips.com>
1503
1504         * testsuite/ld-mips-elf/mips-elf.exp: Update symbol count in the
1505         comment associated with lazy binding stub tests.
1506
1507 2018-06-09  Maciej W. Rozycki  <macro@mips.com>
1508
1509         * Makefile.am (eelf32mipswindiss.c): Add `mipself.em' dependency.
1510         * Makefile.in: Regenerate.
1511
1512 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1513
1514         PR ld/23161
1515         * testsuite/ld-elf/pr23161d.rd: Remove local _edata, __bss_start,
1516         and _end from dynamic symbol table.
1517
1518 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1519             Alan Modra  <amodra@gmail.com>
1520
1521         PR ld/23161
1522         * emulparams/aarch64cloudabi.sh: PROVIDE __bss_start__, _bss_end__,
1523         and __end__ in shared libraries.
1524         * emulparams/aarch64fbsd.sh: Likewise.
1525         * emulparams/aarch64linux.sh: Likewise.
1526         * emulparams/aarch64linux32.sh: Likewise.
1527         * emulparams/armelf_fuchsia.sh: Likewise.
1528         * emulparams/armelf_linux.sh: Likewise.
1529         * emulparams/armelf_phoenix.sh: Likewise.
1530         * emulparams/aarch64elf.sh: Likewise, and __data_start
1531         * emulparams/aarch64elf32.sh: Likewise.
1532         * emulparams/armelf.sh: Likewise.
1533         * emulparams/armnto.sh: Likewise.
1534         * emulparams/elf32bmip.sh: Remove duplicate ". = ." from
1535         OTHER_GOT_SYMBOLS.  PROVIDE _ftext, _fdata, and _fbss in shared libs.
1536         * emulparams/elf32bmipn32-defs.sh: Likewise.
1537         * emulparams/elf32frv.sh: PROVIDE __end and __data_start in shared libs.
1538         * emulparams/elf32lriscv-defs.sh: Tidy.
1539         * emulparams/elf32mcore.sh: PROVIDE __bss_start and _bss_end in
1540         shared libs
1541         * emulparams/elf32ppccommon.sh: PROVIDE __end in shared libs.
1542         * emulparams/elf32rl78.sh: Tidy.
1543         * emulparams/i386nto.sh: PROVIDE _btext in shared libs.
1544         * emulparams/shelf_nto.sh: Likewise.
1545         * emulparams/shlelf_nto.sh: Likewise.
1546         * emulparams/score3_elf.sh: PROVIDE _gp, _bss_start__, _bss_end__,
1547         __bss_end__, __end__, _fdata, _sdata_begin, and _bss_start in
1548         shared libs.
1549         * scripttempl/elf.sc: Don't use EXECUTABLE_SYMBOLS for shared
1550         libraries.  PROVIDE _edata, edata, __bss_start, and _end in shared
1551         libraries.
1552         * testsuite/ld-elf/pr23161.map,
1553         * testsuite/ld-elf/pr23161a.c,
1554         * testsuite/ld-elf/pr23161b.c,
1555         * testsuite/ld-elf/pr23161c.c,
1556         * testsuite/ld-elf/pr23161a.rd,
1557         * testsuite/ld-elf/pr23161b.rd,
1558         * testsuite/ld-elf/pr23161c.rd,
1559         * testsuite/ld-elf/pr23161d.rd: New tests.
1560         * testsuite/ld-elf/shared.exp: Run ld/23161 tests.
1561         * testsuite/ld-elf/pr23162.rd,
1562         * testsuite/ld-aarch64/ifunc-1-local.d,
1563         * testsuite/ld-aarch64/ifunc-1.d,
1564         * testsuite/ld-aarch64/ifunc-2-local.d,
1565         * testsuite/ld-aarch64/ifunc-2.d,
1566         * testsuite/ld-aarch64/ifunc-21.d,
1567         * testsuite/ld-aarch64/ifunc-3a.d,
1568         * testsuite/ld-alpha/tlsbin.rd,
1569         * testsuite/ld-alpha/tlsbin.sd,
1570         * testsuite/ld-alpha/tlsbinr.rd,
1571         * testsuite/ld-alpha/tlspic.rd,
1572         * testsuite/ld-alpha/tlspic.sd,
1573         * testsuite/ld-cris/dso-pltdis1.d,
1574         * testsuite/ld-cris/dso-pltdis2.d,
1575         * testsuite/ld-cris/dso12-pltdis.d,
1576         * testsuite/ld-cris/gotplt1.d,
1577         * testsuite/ld-cris/gotplt2.d,
1578         * testsuite/ld-cris/gotplt3.d,
1579         * testsuite/ld-cris/hiddef1.d,
1580         * testsuite/ld-cris/libdso-1.d,
1581         * testsuite/ld-cris/libdso-10.d,
1582         * testsuite/ld-cris/libdso-11.d,
1583         * testsuite/ld-cris/libdso-12.d,
1584         * testsuite/ld-cris/libdso-12b.d,
1585         * testsuite/ld-cris/libdso-12c.d,
1586         * testsuite/ld-cris/libdso-13.d,
1587         * testsuite/ld-cris/libdso-13b.d,
1588         * testsuite/ld-cris/libdso-14.d,
1589         * testsuite/ld-cris/libdso-15.d,
1590         * testsuite/ld-cris/libdso-15b.d,
1591         * testsuite/ld-cris/libdso-1c.d,
1592         * testsuite/ld-cris/libdso-1d.d,
1593         * testsuite/ld-cris/libdso-2.d,
1594         * testsuite/ld-cris/pic-gc-72.d,
1595         * testsuite/ld-cris/pic-gc-73.d,
1596         * testsuite/ld-cris/pr16044.d,
1597         * testsuite/ld-cris/pv32-1.d,
1598         * testsuite/ld-cris/tls-dso-dtpoffd2.d,
1599         * testsuite/ld-cris/tls-dso-dtpoffd4.d,
1600         * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d,
1601         * testsuite/ld-cris/tls-gc-71.d,
1602         * testsuite/ld-cris/tls-gd-1.d,
1603         * testsuite/ld-cris/tls-gd-1h.d,
1604         * testsuite/ld-cris/tls-gd-2.d,
1605         * testsuite/ld-cris/tls-gd-2h.d,
1606         * testsuite/ld-cris/tls-ie-10.d,
1607         * testsuite/ld-cris/tls-ie-11.d,
1608         * testsuite/ld-cris/tls-ie-78.d,
1609         * testsuite/ld-cris/tls-ie-8.d,
1610         * testsuite/ld-cris/tls-ie-9.d,
1611         * testsuite/ld-cris/tls-js1.d,
1612         * testsuite/ld-cris/tls-ld-4.d,
1613         * testsuite/ld-cris/tls-ld-5.d,
1614         * testsuite/ld-cris/tls-ld-6.d,
1615         * testsuite/ld-cris/tls-ld-7.d,
1616         * testsuite/ld-cris/tls-ldgd-14.d,
1617         * testsuite/ld-cris/tls-ldgd-15.d,
1618         * testsuite/ld-cris/tls-ldgdex-14.d,
1619         * testsuite/ld-cris/tls-ldgdex-15.d,
1620         * testsuite/ld-cris/tls-ldgdx-14.d,
1621         * testsuite/ld-cris/tls-ldgdx-15.d,
1622         * testsuite/ld-cris/tls-legdx-16.d,
1623         * testsuite/ld-cris/tls-legdx-17.d,
1624         * testsuite/ld-cris/tls-local-54.d,
1625         * testsuite/ld-cris/tls-local-60.d,
1626         * testsuite/ld-cris/tls-local-61.d,
1627         * testsuite/ld-cris/tls-local-63.d,
1628         * testsuite/ld-cris/tls-local-64.d,
1629         * testsuite/ld-cris/tls-ok-30.d,
1630         * testsuite/ld-cris/tls-ok-32.d,
1631         * testsuite/ld-cris/tls-ok-34.d,
1632         * testsuite/ld-cris/tls-und-38.d,
1633         * testsuite/ld-cris/tls-und-42.d,
1634         * testsuite/ld-cris/tls-und-46.d,
1635         * testsuite/ld-cris/tls-und-50.d,
1636         * testsuite/ld-cris/weakhiddso.d,
1637         * testsuite/ld-cris/weakref2.d,
1638         * testsuite/ld-frv/fdpic-shared-1.d,
1639         * testsuite/ld-frv/fdpic-shared-2.d,
1640         * testsuite/ld-frv/fdpic-shared-3.d,
1641         * testsuite/ld-frv/fdpic-shared-4.d,
1642         * testsuite/ld-frv/fdpic-shared-5.d,
1643         * testsuite/ld-frv/fdpic-shared-7.d,
1644         * testsuite/ld-frv/fdpic-shared-8.d,
1645         * testsuite/ld-frv/tls-dynamic-2.d,
1646         * testsuite/ld-i386/ibt-plt-1.d,
1647         * testsuite/ld-i386/ibt-plt-2a.d,
1648         * testsuite/ld-i386/ibt-plt-2b.d,
1649         * testsuite/ld-i386/ibt-plt-2c.d,
1650         * testsuite/ld-i386/ibt-plt-2d.d,
1651         * testsuite/ld-i386/ibt-plt-3a.d,
1652         * testsuite/ld-i386/ibt-plt-3b.d,
1653         * testsuite/ld-i386/ibt-plt-3c.d,
1654         * testsuite/ld-i386/ibt-plt-3d.d,
1655         * testsuite/ld-i386/plt2.dd,
1656         * testsuite/ld-i386/pr20830.d,
1657         * testsuite/ld-i386/tlsbin-nacl.rd,
1658         * testsuite/ld-i386/tlsbin.rd,
1659         * testsuite/ld-i386/tlsbin2-nacl.rd,
1660         * testsuite/ld-i386/tlsbin2.rd,
1661         * testsuite/ld-i386/tlsbindesc-nacl.rd,
1662         * testsuite/ld-i386/tlsbindesc.rd,
1663         * testsuite/ld-i386/tlsdesc-nacl.rd,
1664         * testsuite/ld-i386/tlsdesc.rd,
1665         * testsuite/ld-i386/tlsgdesc-nacl.rd,
1666         * testsuite/ld-i386/tlsgdesc.rd,
1667         * testsuite/ld-i386/tlsnopic-nacl.rd,
1668         * testsuite/ld-i386/tlsnopic.dd,
1669         * testsuite/ld-i386/tlsnopic.rd,
1670         * testsuite/ld-i386/tlsnopic.sd,
1671         * testsuite/ld-i386/tlspic-nacl.rd,
1672         * testsuite/ld-i386/tlspic.rd,
1673         * testsuite/ld-i386/tlspic2-nacl.rd,
1674         * testsuite/ld-i386/tlspic2.rd,
1675         * testsuite/ld-ia64/merge1.d,
1676         * testsuite/ld-ia64/merge2.d,
1677         * testsuite/ld-ia64/merge3.d,
1678         * testsuite/ld-ia64/merge4.d,
1679         * testsuite/ld-ia64/merge5.d,
1680         * testsuite/ld-ia64/tlsbin.rd,
1681         * testsuite/ld-ia64/tlspic.rd,
1682         * testsuite/ld-ifunc/ifunc-2-i386-now.d,
1683         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1684         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d,
1685         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d,
1686         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d,
1687         * testsuite/ld-ifunc/ifunc-2-x86-64.d,
1688         * testsuite/ld-ifunc/pr17154-i386-now.d,
1689         * testsuite/ld-ifunc/pr17154-i386.d,
1690         * testsuite/ld-ifunc/pr17154-x86-64-now.d,
1691         * testsuite/ld-ifunc/pr17154-x86-64.d,
1692         * testsuite/ld-m68k/tls-def-1.d,
1693         * testsuite/ld-m68k/tls-gd-1.d2,
1694         * testsuite/ld-metag/shared.d,
1695         * testsuite/ld-metag/stub_pic_app.d,
1696         * testsuite/ld-mips-elf/rel32-n32.d,
1697         * testsuite/ld-mips-elf/rel32-o32.d,
1698         * testsuite/ld-mips-elf/rel64.d,
1699         * testsuite/ld-powerpc/ambiguousv1.d,
1700         * testsuite/ld-powerpc/ambiguousv1b.d,
1701         * testsuite/ld-powerpc/ambiguousv2.d,
1702         * testsuite/ld-powerpc/ambiguousv2b.d,
1703         * testsuite/ld-powerpc/tlsexe.d,
1704         * testsuite/ld-powerpc/tlsexe.r,
1705         * testsuite/ld-powerpc/tlsexe32.d,
1706         * testsuite/ld-powerpc/tlsexe32.g,
1707         * testsuite/ld-powerpc/tlsexe32.r,
1708         * testsuite/ld-powerpc/tlsexetoc.d,
1709         * testsuite/ld-powerpc/tlsexetoc.r,
1710         * testsuite/ld-powerpc/tlsso.d,
1711         * testsuite/ld-powerpc/tlsso.r,
1712         * testsuite/ld-powerpc/tlsso32.g,
1713         * testsuite/ld-powerpc/tlsso32.r,
1714         * testsuite/ld-powerpc/tlstocso.d,
1715         * testsuite/ld-powerpc/tlstocso.g,
1716         * testsuite/ld-powerpc/tlstocso.r,
1717         * testsuite/ld-s390/gotreloc_31-1.dd,
1718         * testsuite/ld-s390/tlsbin.dd,
1719         * testsuite/ld-s390/tlsbin.rd,
1720         * testsuite/ld-s390/tlsbin_64.dd,
1721         * testsuite/ld-s390/tlsbin_64.rd,
1722         * testsuite/ld-s390/tlspic.rd,
1723         * testsuite/ld-s390/tlspic_64.rd,
1724         * testsuite/ld-sh/tlsbin-2.d,
1725         * testsuite/ld-sh/tlspic-2.d,
1726         * testsuite/ld-sparc/gotop32.rd,
1727         * testsuite/ld-sparc/gotop64.rd,
1728         * testsuite/ld-sparc/tlssunbin32.rd,
1729         * testsuite/ld-sparc/tlssunbin64.rd,
1730         * testsuite/ld-sparc/tlssunnopic32.rd,
1731         * testsuite/ld-sparc/tlssunnopic64.rd,
1732         * testsuite/ld-sparc/tlssunpic32.rd,
1733         * testsuite/ld-sparc/tlssunpic64.rd,
1734         * testsuite/ld-x86-64/bnd-branch-1-now.d,
1735         * testsuite/ld-x86-64/bnd-ifunc-1-now.d,
1736         * testsuite/ld-x86-64/bnd-ifunc-2-now.d,
1737         * testsuite/ld-x86-64/bnd-ifunc-2.d,
1738         * testsuite/ld-x86-64/bnd-plt-1-now.d,
1739         * testsuite/ld-x86-64/bnd-plt-1.d,
1740         * testsuite/ld-x86-64/ibt-plt-1-x32.d,
1741         * testsuite/ld-x86-64/ibt-plt-1.d,
1742         * testsuite/ld-x86-64/ibt-plt-2a-x32.d,
1743         * testsuite/ld-x86-64/ibt-plt-2a.d,
1744         * testsuite/ld-x86-64/ibt-plt-2b-x32.d,
1745         * testsuite/ld-x86-64/ibt-plt-2b.d,
1746         * testsuite/ld-x86-64/ibt-plt-2c-x32.d,
1747         * testsuite/ld-x86-64/ibt-plt-2c.d,
1748         * testsuite/ld-x86-64/ibt-plt-2d-x32.d,
1749         * testsuite/ld-x86-64/ibt-plt-2d.d,
1750         * testsuite/ld-x86-64/ibt-plt-3a-x32.d,
1751         * testsuite/ld-x86-64/ibt-plt-3a.d,
1752         * testsuite/ld-x86-64/ibt-plt-3b-x32.d,
1753         * testsuite/ld-x86-64/ibt-plt-3b.d,
1754         * testsuite/ld-x86-64/ibt-plt-3c-x32.d,
1755         * testsuite/ld-x86-64/ibt-plt-3c.d,
1756         * testsuite/ld-x86-64/ibt-plt-3d-x32.d,
1757         * testsuite/ld-x86-64/ibt-plt-3d.d,
1758         * testsuite/ld-x86-64/ilp32-4-nacl.d,
1759         * testsuite/ld-x86-64/ilp32-4.d,
1760         * testsuite/ld-x86-64/load1c-nacl.d,
1761         * testsuite/ld-x86-64/load1c.d,
1762         * testsuite/ld-x86-64/load1d-nacl.d,
1763         * testsuite/ld-x86-64/load1d.d,
1764         * testsuite/ld-x86-64/mpx3n.dd,
1765         * testsuite/ld-x86-64/mpx4.dd,
1766         * testsuite/ld-x86-64/mpx4n.dd,
1767         * testsuite/ld-x86-64/plt2.dd,
1768         * testsuite/ld-x86-64/pr14207.d,
1769         * testsuite/ld-x86-64/pr19162.d,
1770         * testsuite/ld-x86-64/pr20253-1f.d,
1771         * testsuite/ld-x86-64/pr20253-1l.d,
1772         * testsuite/ld-x86-64/pr20830a-now.d,
1773         * testsuite/ld-x86-64/pr20830a.d,
1774         * testsuite/ld-x86-64/pr20830b-now.d,
1775         * testsuite/ld-x86-64/pr20830b.d,
1776         * testsuite/ld-x86-64/pr21038a-now.d,
1777         * testsuite/ld-x86-64/pr21038a.d,
1778         * testsuite/ld-x86-64/pr21038b-now.d,
1779         * testsuite/ld-x86-64/pr21038b.d,
1780         * testsuite/ld-x86-64/pr21038c-now.d,
1781         * testsuite/ld-x86-64/pr21038c.d,
1782         * testsuite/ld-x86-64/tlsbin-nacl.rd,
1783         * testsuite/ld-x86-64/tlsbin.rd,
1784         * testsuite/ld-x86-64/tlsbin2-nacl.rd,
1785         * testsuite/ld-x86-64/tlsbin2.rd,
1786         * testsuite/ld-x86-64/tlsbindesc-nacl.rd,
1787         * testsuite/ld-x86-64/tlsbindesc.rd,
1788         * testsuite/ld-x86-64/tlsdesc-nacl.rd,
1789         * testsuite/ld-x86-64/tlsdesc.rd,
1790         * testsuite/ld-x86-64/tlsgdesc-nacl.rd,
1791         * testsuite/ld-x86-64/tlsgdesc.rd,
1792         * testsuite/ld-x86-64/tlspic-nacl.rd,
1793         * testsuite/ld-x86-64/tlspic.rd,
1794         * testsuite/ld-x86-64/tlspic2-nacl.rd,
1795         * testsuite/ld-x86-64/tlspic2.rd: Update.
1796
1797 2018-06-07  Alan Modra  <amodra@gmail.com>
1798
1799         * emulparams/elf64bmip.sh (EXECUTABLE_SYMBOLS): Don't define.
1800         (OTHER_SYMBOLS): Define this instead.
1801         * emulparams/elf32bmipn32.sh (EXECUTABLE_SYMBOLS): Don't define.
1802         (OTHER_SYMBOLS): Define similarly to elf64bmip.sh.
1803         * emulparams/elf64hppa.sh (EXECUTABLE_SYMBOLS): Don't define.
1804         (OTHER_SYMBOLS): Define instead.
1805
1806 2018-06-07  Alan Modra  <amodra@gmail.com>
1807
1808         * emulparams/elf32_tic6x_le.sh (EXECUTABLE_SYMBOLS): Don't define.
1809
1810 2018-06-06  Alan Modra  <amodra@gmail.com>
1811
1812         * Makefile.am (earmelf_fbsd.c): Correct dependencies.
1813         (earmelfb_fbsd.c, earmelfb_fuchsia.c): Likewise.
1814         * Makefile.in: Regenerate.
1815
1816 2018-06-05  Alan Modra  <amodra@gmail.com>
1817
1818         PR 23254
1819         * plugin.c (plugin_call_claim_file): Revert 2016-07-19 patch.
1820         (plugin_object_p): Don't dup file descriptor.
1821
1822 2018-06-05  Flavio Ceolin  <flavio.ceolin@intel.com>
1823
1824         * testsuite/ld-elf/elf.exp Run new test.
1825         * testsuite/ld-elf/stack-noexec.rd New file: Expected readelf output.
1826
1827 2018-06-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1828             Jim Wilson  <jimw@sifive.com>
1829
1830         PR ld/23244
1831         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new weak ref tests.
1832         * testsuite/ld-riscv-elf/weakref.ld: New.
1833         * testsuite/ld-riscv-elf/weakref32.d: New.
1834         * testsuite/ld-riscv-elf/weakref32.s: New.
1835         * testsuite/ld-riscv-elf/weakref64.d: New.
1836         * testsuite/ld-riscv-elf/weakref64.s: New.
1837
1838 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1839
1840         * configure: Regenerated.
1841
1842 2018-05-28  H.J. Lu  <hongjiu.lu@intel.com>
1843
1844         PR ld/23238
1845         * testsuite/ld-ifunc/ifunc-26.d: New file.
1846         * testsuite/ld-ifunc/ifunc-26.s: Likewise.
1847         * testsuite/ld-ifunc/ifunc.exp: Run *.d tests without a
1848         working compiler.
1849
1850 2018-05-28  H.J. Lu  <hongjiu.lu@intel.com>
1851
1852         * testsuite/ld-ifunc/ifunc-10-i386.d: Skip NaCl targets.
1853         * testsuite/ld-ifunc/ifunc-10-x86-64.d: Likewise.
1854         * testsuite/ld-ifunc/ifunc-11-i386.d: Likewise.
1855         * testsuite/ld-ifunc/ifunc-11-x86-64.d: Likewise.
1856         * testsuite/ld-ifunc/ifunc-12-i386.d: Likewise.
1857         * testsuite/ld-ifunc/ifunc-12-x86-64.d: Likewise.
1858         * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
1859         * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
1860         * testsuite/ld-ifunc/ifunc-14a-i386.d: Likewise.
1861         * testsuite/ld-ifunc/ifunc-14a-x86-64.d: Likewise.
1862         * testsuite/ld-ifunc/ifunc-14b-i386.d: Likewise.
1863         * testsuite/ld-ifunc/ifunc-14b-x86-64.d: Likewise.
1864         * testsuite/ld-ifunc/ifunc-14c-i386.d: Likewise.
1865         * testsuite/ld-ifunc/ifunc-14c-x86-64.d: Likewise.
1866         * testsuite/ld-ifunc/ifunc-14d-i386.d: Likewise.
1867         * testsuite/ld-ifunc/ifunc-14d-x86-64.d: Likewise.
1868         * testsuite/ld-ifunc/ifunc-14e-i386.d: Likewise.
1869         * testsuite/ld-ifunc/ifunc-14e-x86-64.d: Likewise.
1870         * testsuite/ld-ifunc/ifunc-14f-i386.d: Likewise.
1871         * testsuite/ld-ifunc/ifunc-14f-x86-64.d: Likewise.
1872         * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
1873         * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
1874         * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
1875         * testsuite/ld-ifunc/ifunc-16-i386.d: Likewise.
1876         * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
1877         * testsuite/ld-ifunc/ifunc-16-x86-64.d: Likewise.
1878         * testsuite/ld-ifunc/ifunc-17a-i386.d: Likewise.
1879         * testsuite/ld-ifunc/ifunc-17a-x86-64.d: Likewise.
1880         * testsuite/ld-ifunc/ifunc-17b-i386.d: Likewise.
1881         * testsuite/ld-ifunc/ifunc-17b-x86-64.d: Likewise.
1882         * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
1883         * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
1884         * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
1885         * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
1886         * testsuite/ld-ifunc/ifunc-19a-i386.d: Likewise.
1887         * testsuite/ld-ifunc/ifunc-19a-x86-64.d: Likewise.
1888         * testsuite/ld-ifunc/ifunc-19b-i386.d: Likewise.
1889         * testsuite/ld-ifunc/ifunc-19b-x86-64.d: Likewise.
1890         * testsuite/ld-ifunc/ifunc-2-i386.d: Likewise.
1891         * testsuite/ld-ifunc/ifunc-2-local-i386.d: Likewise.
1892         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
1893         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
1894         * testsuite/ld-ifunc/ifunc-20-i386.d: Likewise.
1895         * testsuite/ld-ifunc/ifunc-20-x86-64.d: Likewise.
1896         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
1897         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1898         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
1899         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1900         * testsuite/ld-ifunc/ifunc-5a-i386.d: Likewise.
1901         * testsuite/ld-ifunc/ifunc-5a-local-i386.d: Likewise.
1902         * testsuite/ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
1903         * testsuite/ld-ifunc/ifunc-5a-x86-64.d: Likewise.
1904         * testsuite/ld-ifunc/ifunc-5b-i386.d: Likewise.
1905         * testsuite/ld-ifunc/ifunc-5b-local-i386.d: Likewise.
1906         * testsuite/ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
1907         * testsuite/ld-ifunc/ifunc-5b-x86-64.d: Likewise.
1908         * testsuite/ld-ifunc/ifunc-5r-local-i386.d: Likewise.
1909         * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
1910         * testsuite/ld-ifunc/ifunc-6a-i386.d: Likewise.
1911         * testsuite/ld-ifunc/ifunc-6a-x86-64.d: Likewise.
1912         * testsuite/ld-ifunc/ifunc-6b-i386.d: Likewise.
1913         * testsuite/ld-ifunc/ifunc-6b-x86-64.d: Likewise.
1914         * testsuite/ld-ifunc/ifunc-7a-i386.d: Likewise.
1915         * testsuite/ld-ifunc/ifunc-7a-x86-64.d: Likewise.
1916         * testsuite/ld-ifunc/ifunc-7b-i386.d: Likewise.
1917         * testsuite/ld-ifunc/ifunc-7b-x86-64.d: Likewise.
1918         * testsuite/ld-ifunc/ifunc-8-i386.d: Likewise.
1919         * testsuite/ld-ifunc/ifunc-8-x86-64.d: Likewise.
1920         * testsuite/ld-ifunc/ifunc-9-i386.d: Likewise.
1921         * testsuite/ld-ifunc/ifunc-9-x86-64.d: Likewise.
1922         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1923         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1924         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1925
1926 2018-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1927
1928         PR ld/23194
1929         * testsuite/ld-i386/pr23194.d: Expect only R_386_GLOB_DAT
1930         against foobar.
1931         * testsuite/ld-i386/pr23194.map: Add foobar.
1932         * testsuite/ld-x86-64/pr23194.map: Likewise.
1933         * testsuite/ld-i386/pr23194.s: Add a common foobar symbol.
1934         * testsuite/ld-x86-64/pr23194.s: Likewise.
1935         * testsuite/ld-x86-64/pr23194.d: Expect only R_X86_64_GLOB_DAT
1936         against foobar.
1937
1938 2018-05-25  Alan Modra  <amodra@gmail.com>
1939
1940         * po/BLD-POTFILES.in: Regenerate.
1941
1942 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1943
1944         PR ld/23201
1945         * testsuite/ld-tic6x/shlib-1.rd: Adjusted.
1946         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1947         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1948         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1949         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1950         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1951         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1952         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1953         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1954         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1955         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1956         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1957         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1958
1959 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1960
1961         PR ld/23201
1962         * ldexp.c (exp_fold_tree_1): Call bfd_link_hide_symbol to hide
1963         a symbol.
1964         * testsuite/ld-elf/provide-hidden-dynabs.nd: Removed.
1965         * testsuite/ld-elf/provide-hidden-dynsec.nd: Likewise.
1966         * testsuite/ld-elf/provide-hidden.exp: Replace
1967         provide-hidden-dynsec.nd with provide-hidden-sec.nd and
1968         provide-hidden-dyn.nd.  Replace provide-hidden-dynabs.nd with
1969         provide-hidden-abs.nd and provide-hidden-dyn.nd.
1970         * testsuite/ld-i386/pr23189.d: Expect no dynamic relocation.
1971         * testsuite/ld-x86-64/pr23189.d: Likewise.
1972
1973 2018-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1974
1975         PR ld/23194
1976         * testsuite/ld-i386/i386.exp: Run pr23194.
1977         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1978         * testsuite/ld-i386/pr23194.d: New file.
1979         * testsuite/ld-i386/pr23194.map: Likewise.
1980         * testsuite/ld-i386/pr23194.s: Likewise.
1981         * testsuite/ld-x86-64/pr23194.d: Likewise.
1982         * testsuite/ld-x86-64/pr23194.map: Likewise.
1983         * testsuite/ld-x86-64/pr23194.s: Likewise.
1984
1985 2018-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1986
1987         * testsuite/ld-i386/i386.exp: Run pr23189 for all targets.
1988         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1989
1990 2018-05-18  John Darrington  <john@darrington.wattle.id.au>
1991
1992         * Makefile.am: Add support for s12z architecture.
1993         * configure.tgt: Likewise.
1994         * Makefile.in: Regenerate.
1995         * emulparams/m9s12zelf.sh: New file.
1996         * scripttempl/elfm9s12z.sc: New file.
1997         * testsuite/ld-discard/static.d: Expect to fail for the s12z
1998         target.
1999         * testsuite/ld-elf/endsym.d: Likewise.
2000         * testsuite/ld-elf/merge.d: Likewise.
2001         * testsuite/ld-elf/pr14926.d: Skip for the s12z target.
2002         * testsuite/ld-elf/sec64k.exp: Likewise.
2003         * testsuite/ld-s12z: New directory.
2004         * testsuite/ld-s12z/opr-linking.d: New file.
2005         * testsuite/ld-s12z/opr-linking.s: New file.
2006         * testsuite/ld-s12z/relative-linking.d: New file.
2007         * testsuite/ld-s12z/relative-linking.s: New file.
2008         * testsuite/ld-s12z/z12s.exp: New file.
2009
2010 2018-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2011
2012         PR ld/23189
2013         * testsuite/ld-i386/i386.exp: Run pr23189.
2014         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2015         * testsuite/ld-i386/pr23189.d: New file.
2016         * testsuite/ld-i386/pr23189.s: Likewise.
2017         * testsuite/ld-i386/pr23189.t: Likewise.
2018         * testsuite/ld-x86-64/pr23189.d: Likewise.
2019         * testsuite/ld-x86-64/pr23189.s: Likewise.
2020         * testsuite/ld-x86-64/pr23189.t: Likewise.
2021
2022 2018-05-15  Alan Modra  <amodra@gmail.com>
2023
2024         * testsuite/ld-elf/notes.exp: Restore LDFLAGS.
2025
2026 2018-05-14  Nick Clifton  <nickc@redhat.com>
2027
2028         * testsuite/ld-elf/notes.exp: New file: Run new test.
2029         * testsuite/ld-elf/note1_1.s: New file: Source file for test.
2030         * testsuite/ld-elf/note1_2.s: New file: Source file for test.
2031         * testsuite/ld-elf/note1.r: New file: Expected readelf output.
2032
2033 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2034
2035         PR ld/23169
2036         * testsuite/ld-ifunc/ifunc-9-i386.d: New file.
2037         * testsuite/ld-ifunc/ifunc-9-x86-64.d: Likewise.
2038         * testsuite/ld-ifunc/pr23169a.c: Likewise.
2039         * testsuite/ld-ifunc/pr23169a.rd: Likewise.
2040         * testsuite/ld-ifunc/pr23169b.c: Likewise.
2041         * testsuite/ld-ifunc/pr23169b.c: Likewise.
2042         * testsuite/ld-ifunc/pr23169c.rd: Likewise.
2043         * testsuite/ld-ifunc/pr23169c.rd: Likewise.
2044         * testsuite/ld-ifunc/ifunc-9-x86.d: Removed.
2045         * testsuite/ld-ifunc/ifunc.exp: Run PR ld/23169 tests.
2046
2047 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2048
2049         PR ld/23162
2050         * testsuite/ld-elf/pr23162.map: New file.
2051         * testsuite/ld-elf/pr23162.rd: Likewise.
2052         * testsuite/ld-elf/pr23162a.c: Likewise.
2053         * testsuite/ld-elf/pr23162b.c: Likewise.
2054         * testsuite/ld-elf/shared.exp: Run PR ld/23162 tests.
2055
2056 2018-05-12  Alan Modra  <amodra@gmail.com>
2057
2058         PR 20659
2059         * testsuite/ld-elf/changelma.d,
2060         * testsuite/ld-elf/changelma.lnk,
2061         * testsuite/ld-elf/changelma.s: New test.
2062
2063 2018-05-09  2018-05-02  Dimitar Dimitrov  <dimitar@dinux.eu>
2064
2065         * scripttempl/pru.sc: Add LD sections to allow linking TI
2066         toolchain object files.
2067         * scripttempl/pru.sc: Switch to init_array.
2068         * testsuite/ld-pru/ldi32.d: Update LDI32 test to conform to TI ABI.
2069         * testsuite/ld-pru/norelax_ldi32-data.d: Likewise.
2070         * testsuite/ld-pru/norelax_ldi32-dis.d: Likewise.
2071         * testsuite/ld-pru/relax_ldi32-data.d: Likewise.
2072         * testsuite/ld-pru/relax_ldi32-dis.d: Likewise.
2073
2074 2018-05-09  Alan Modra  <amodra@gmail.com>
2075
2076         * po/BLD-POTFILES.in: Regenerate.
2077
2078 2018-05-08  Jim Wilson  <jimw@sifive.com>
2079
2080         PR ld/22962
2081         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lriscv_ilp32f.c,
2082         eelf32lriscv_ilp32.c, eelf64lriscv_lp64f.c, eelf64lriscv_lp64.c.
2083         (eelf32lriscv_ilp32f.c, eelf32lriscv_ilp32.c): New build rules.
2084         (eelf64lriscv_lp64f.c, eelf64lriscv_lp64.c): New build rules.
2085         * Makefile.in: Regenerated.
2086         * configure.tgt (riscv32*-*-linux*, riscv64*-*-linux*): New.
2087         * ld/emulparams/elf32lriscv.sh: Set LIBPATH_SUFFIX.
2088         * ld/emulparams/elf32lriscv_ilp32.sh: New.
2089         * ld/emulparams/elf32lriscv_ilp32f.sh: New.
2090         * ld/emulparams/elf64lriscv-defs.sh: Don't set LIBPATH_SUFFIX here.
2091         * ld/emulparams/elf64lriscv.sh: Set LIBPATH_SUFFIX.
2092         * ld/emulparams/elf64lriscv_lp64.sh: New.
2093         * ld/emulparams/elf64lriscv_lp64f.sh: New.
2094         * ld/genscripts.sh (append_to_lib_path): Change LIBPATH_SUFFIX test to
2095         a for.  Inside loop, change LIBPATH_SUFFIX uses to libpath_suffix.
2096         (LIB_PATH): In LIB_PATH if, add loop for LIBPATH_SUFFIX, changes uses
2097         inside loop to libpath_suffix.
2098
2099 2018-05-03  Jim Wilson  <jimw@sifive.com>
2100
2101         * Makefile.am (earmelfb_linux_fdpiceabi.c): Fix typo in dependencies.
2102
2103 2018-05-03  Simon Atanasyan  <simon@atanasyan.com>
2104
2105         * testsuite/ld-mips-elf/gp-disp-sym.d: New test.
2106         * testsuite/ld-mips-elf/gp-disp-sym.s: New test source.
2107         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
2108         * testsuite/ld-mips-elf/mips16-pic-2.ad: Update for _gp_disp
2109         symbol removal.
2110         * testsuite/ld-mips-elf/mips16-pic-2.nd: Likewise.
2111         * testsuite/ld-mips-elf/pic-and-nonpic-3a.dd: Likewise.
2112         * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Likewise.
2113         * testsuite/ld-mips-elf/tlslib-o32-ver.got: Likewise.
2114         * testsuite/ld-mips-elf/tlslib-o32.got: Likewise.
2115
2116 2018-04-27  Maciej W. Rozycki  <macro@mips.com>
2117
2118         * testsuite/ld-mips-elf/bal-jalx-pic.d: Only run for
2119         `check_shared_lib_support' targets.
2120         * testsuite/ld-mips-elf/bal-jalx-pic-n32.d: Likewise.
2121         * testsuite/ld-mips-elf/bal-jalx-pic-n64.d: Likewise.
2122         * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: Likewise.
2123         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: Likewise.
2124         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: Likewise.
2125         * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: Likewise.
2126         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: Likewise.
2127         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: Likewise.
2128         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d:
2129         Likewise.
2130         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d:
2131         Likewise.
2132         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d:
2133         Likewise.
2134         * testsuite/ld-mips-elf/hash1a.d: Likewise.
2135         * testsuite/ld-mips-elf/hash1b.d: Likewise.
2136         * testsuite/ld-mips-elf/hash1c.d: Likewise.
2137         * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
2138         * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
2139
2140 2018-04-27  Maciej W. Rozycki  <macro@mips.com>
2141
2142         * testsuite/lib/ld-lib.exp (run_dump_test): Use `match_target'
2143         in place of `istarget' for matching with `target', `alltargets'
2144         and `notarget' options.
2145
2146 2018-04-27  Alan Modra  <amodra@gmail.com>
2147
2148         * po/BLD-POTFILES.in: Regenerate.
2149
2150 2018-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
2151
2152         * testsuite/ld-elf/pr2404b.c (main): Adjust printf to account for
2153         new variable name.
2154         * testsuite/ld-elf/pr2404.out: Adjust expected output accordingly.
2155
2156 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
2157
2158         * testsuite/ld-arm/export-class.exp: Accept arm*-*-uclinuxfdpiceabi.
2159         * testsuite/ld-discard/discard.exp: Likewise.
2160         * testsuite/ld-elf/binutils.exp: Likewise.
2161         * testsuite/ld-elf/commonpage1.d: Likewise.
2162         * testsuite/ld-elf/compress1c.d: Likewise.
2163         * testsuite/ld-elf/compressed1b.d: Likewise.
2164         * testsuite/ld-elf/compressed1c.d: Likewise.
2165         * testsuite/ld-elf/compressed1e.d: Likewise.
2166         * testsuite/ld-elf/dynamic1.d: Likewise.
2167         * testsuite/ld-elf/dynsym1.d: Likewise.
2168         * testsuite/ld-elf/ehdr_start-missing.d: Likewise.
2169         * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2170         * testsuite/ld-elf/ehdr_start-userdef.d: Likewise.
2171         * testsuite/ld-elf/ehdr_start-weak.d: Likewise.
2172         * testsuite/ld-elf/ehdr_start.d: Likewise.
2173         * testsuite/ld-elf/exclude3b.d: Likewise.
2174         * testsuite/ld-elf/export-class.exp: Likewise.
2175         * testsuite/ld-elf/global1.d: Likewise.
2176         * testsuite/ld-elf/hash.d: Likewise.
2177         * testsuite/ld-elf/header.d: Likewise.
2178         * testsuite/ld-elf/loadaddr1.d: Likewise.
2179         * testsuite/ld-elf/loadaddr2.d: Likewise.
2180         * testsuite/ld-elf/loadaddr3a.d: Likewise.
2181         * testsuite/ld-elf/loadaddr3b.d: Likewise.
2182         * testsuite/ld-elf/local1.d: Likewise.
2183         * testsuite/ld-elf/maxpage1.d: Likewise.
2184         * testsuite/ld-elf/maxpage2.d: Likewise.
2185         * testsuite/ld-elf/maxpage3a.d: Likewise.
2186         * testsuite/ld-elf/mbind1a.d: Likewise.
2187         * testsuite/ld-elf/mbind1b.d: Likewise.
2188         * testsuite/ld-elf/mbind1c.d: Likewise.
2189         * testsuite/ld-elf/multibss1.d: Likewise.
2190         * testsuite/ld-elf/noload-2.d: Likewise.
2191         * testsuite/ld-elf/now-1.d: Likewise.
2192         * testsuite/ld-elf/now-2.d: Likewise.
2193         * testsuite/ld-elf/now-3.d: Likewise.
2194         * testsuite/ld-elf/now-4.d: Likewise.
2195         * testsuite/ld-elf/pie.d: Likewise.
2196         * testsuite/ld-elf/pr12975.d: Likewise.
2197         * testsuite/ld-elf/pr13177.d: Likewise.
2198         * testsuite/ld-elf/pr13195.d: Likewise.
2199         * testsuite/ld-elf/pr16322.d: Likewise.
2200         * testsuite/ld-elf/pr16498a.d: Likewise.
2201         * testsuite/ld-elf/pr16498b.d: Likewise.
2202         * testsuite/ld-elf/pr17615.d: Likewise.
2203         * testsuite/ld-elf/pr19162.d: Likewise.
2204         * testsuite/ld-elf/pr19539.d: Likewise.
2205         * testsuite/ld-elf/pr19617a.d: Likewise.
2206         * testsuite/ld-elf/pr19617b.d: Likewise.
2207         * testsuite/ld-elf/pr19617c.d: Likewise.
2208         * testsuite/ld-elf/pr19698.d: Likewise.
2209         * testsuite/ld-elf/pr19789.d: Likewise.
2210         * testsuite/ld-elf/pr20513c.d: Likewise.
2211         * testsuite/ld-elf/pr20513d.d: Likewise.
2212         * testsuite/ld-elf/pr21384.d: Likewise.
2213         * testsuite/ld-elf/pr21389a.d: Likewise.
2214         * testsuite/ld-elf/pr21389b.d: Likewise.
2215         * testsuite/ld-elf/pr21389c.d: Likewise.
2216         * testsuite/ld-elf/pr21562a.d: Likewise.
2217         * testsuite/ld-elf/pr21562b.d: Likewise.
2218         * testsuite/ld-elf/pr21562c.d: Likewise.
2219         * testsuite/ld-elf/pr21562d.d: Likewise.
2220         * testsuite/ld-elf/pr21562e.d: Likewise.
2221         * testsuite/ld-elf/pr21562f.d: Likewise.
2222         * testsuite/ld-elf/pr21562g.d: Likewise.
2223         * testsuite/ld-elf/pr21562h.d: Likewise.
2224         * testsuite/ld-elf/pr21562i.d: Likewise.
2225         * testsuite/ld-elf/pr21562j.d: Likewise.
2226         * testsuite/ld-elf/pr21562k.d: Likewise.
2227         * testsuite/ld-elf/pr21562l.d: Likewise.
2228         * testsuite/ld-elf/pr21562m.d: Likewise.
2229         * testsuite/ld-elf/pr21562n.d: Likewise.
2230         * testsuite/ld-elf/pr21903a.d: Likewise.
2231         * testsuite/ld-elf/pr21903b.d: Likewise.
2232         * testsuite/ld-elf/pr21903d.d: Likewise.
2233         * testsuite/ld-elf/pr22269a.d: Likewise.
2234         * testsuite/ld-elf/pr22269b.d: Likewise.
2235         * testsuite/ld-elf/pr22393-1a.d: Likewise.
2236         * testsuite/ld-elf/pr22393-1b.d: Likewise.
2237         * testsuite/ld-elf/pr22393-1c.d: Likewise.
2238         * testsuite/ld-elf/pr22393-1d.d: Likewise.
2239         * testsuite/ld-elf/pr22393-1e.d: Likewise.
2240         * testsuite/ld-elf/pr22393-1f.d: Likewise.
2241         * testsuite/ld-elf/pr22423.d: Likewise.
2242         * testsuite/ld-elf/rpath-1.d: Likewise.
2243         * testsuite/ld-elf/rpath-2.d: Likewise.
2244         * testsuite/ld-elf/runpath-1.d: Likewise.
2245         * testsuite/ld-elf/runpath-2.d: Likewise.
2246         * testsuite/ld-elf/seg.d: Likewise.
2247         * testsuite/ld-elf/sizeofb.d: Likewise.
2248         * testsuite/ld-elf/startofb.d: Likewise.
2249         * testsuite/ld-elf/strtab.d: Likewise.
2250         * testsuite/ld-elf/textaddr1.d: Likewise.
2251         * testsuite/ld-elf/textaddr2.d: Likewise.
2252         * testsuite/ld-elf/textaddr3.d: Likewise.
2253         * testsuite/ld-elf/textaddr4.d: Likewise.
2254         * testsuite/ld-elf/textaddr5.d: Likewise.
2255         * testsuite/ld-elf/textaddr6.d: Likewise.
2256         * testsuite/ld-elf/textaddr7.d: Likewise.
2257         * testsuite/ld-elf/tls.exp: Likewise.
2258         * testsuite/ld-elf/tls_common.exp: Likewise.
2259         * testsuite/ld-elf/unknown2.d: Likewise.
2260         * testsuite/ld-gc/abi-note.d: Likewise.
2261         * testsuite/ld-gc/pr11218.d: Likewise.
2262         * testsuite/ld-gc/pr19167.d: Likewise.
2263         * testsuite/ld-gc/pr20022.d: Likewise.
2264         * testsuite/ld-gc/start.d: Likewise.
2265         * testsuite/ld-gc/stop.d: Likewise.
2266         * testsuite/ld-scripts/phdrs2.exp: Likewise.
2267         * testsuite/ld-scripts/rgn-at5.d: Likewise.
2268         * testsuite/ld-undefined/entry-3.d: Likewise.
2269         * testsuite/ld-undefined/entry-4.d: Likewise.
2270
2271 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
2272         Mickaël Guêné  <mickael.guene@st.com>
2273
2274         * testsuite/ld-arm/arm-elf.exp: Execute the new FDPIC Thumb-only tests.
2275         * testsuite/ld-arm/fdpic-main-m.d: New test.
2276         * testsuite/ld-arm/fdpic-main-m.s: New.
2277         * testsuite/ld-arm/fdpic-main-m.sym: New.
2278         * testsuite/ld-arm/fdpic-shared-m.d: New test.
2279         * testsuite/ld-arm/fdpic-shared-m.s: New.
2280         * testsuite/ld-arm/fdpic-shared-m.sym: New.
2281
2282 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
2283         Mickaël Guêné  <mickael.guene@st.com>
2284
2285         * testsuite/ld-arm/arm-elf.exp: Execute the new FDPIC tests.
2286         * testsuite/ld-arm/fdpic-main.d: New test.
2287         * testsuite/ld-arm/fdpic-main.ld: New.
2288         * testsuite/ld-arm/fdpic-main.r: New.
2289         * testsuite/ld-arm/fdpic-main.s: New.
2290         * testsuite/ld-arm/fdpic-main.sym: New.
2291         * testsuite/ld-arm/fdpic-shared.d: New test.
2292         * testsuite/ld-arm/fdpic-shared.ld: New.
2293         * testsuite/ld-arm/fdpic-shared.r: New.
2294         * testsuite/ld-arm/fdpic-shared.s: New.
2295         * testsuite/ld-arm/fdpic-shared.sym: New.
2296
2297 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
2298         Mickaël Guêné  <mickael.guene@st.com>
2299
2300         * testsuite/ld-elf/pr2404b.c (main): Rename time variable into
2301         time1.
2302
2303 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
2304         Mickaël Guêné  <mickael.guene@st.com>
2305
2306         * scripttempl/elf.sc: Define __tdata_start for .tdata section.
2307
2308 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
2309         Mickaël Guêné  <mickael.guene@st.com>
2310
2311         * emulparams/armelf_linux_fdpiceabi.sh: Add .rofixup section.
2312
2313 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
2314         Mickaël Guêné  <mickael.guene@st.com>
2315
2316         * Makefile.am (ALL_EMULATION_SOURCES): Add
2317         earmelf_linux_fdpiceabi.c and earmelfb_linux_fdpiceabi.c.
2318         (earmelf_linux_fdpiceabi.c, earmelfb_linux_fdpiceabi.c): New rules.
2319         * Makefile.in: Regenerate.
2320         * configure.tgt (arm*-*-uclinuxfdpiceabi): Handle new target.
2321         * emulparams/armelf_linux_fdpiceabi.sh: New.
2322         * emulparams/armelfb_linux_fdpiceabi.sh: New.
2323
2324 2018-04-25  Alan Modra  <amodra@gmail.com>
2325
2326         * Makefile.am: Remove arm-aout and arm-coff support.
2327         * configure.tgt: Likewise.
2328         * testsuite/ld-arm/attr-merge-div-00.d: Likewise.
2329         * testsuite/ld-arm/attr-merge-div-01-m3.d: Likewise.
2330         * testsuite/ld-arm/attr-merge-div-01.d: Likewise.
2331         * testsuite/ld-arm/attr-merge-div-02.d: Likewise.
2332         * testsuite/ld-arm/attr-merge-div-10-m3.d: Likewise.
2333         * testsuite/ld-arm/attr-merge-div-10.d: Likewise.
2334         * testsuite/ld-arm/attr-merge-div-11.d: Likewise.
2335         * testsuite/ld-arm/attr-merge-div-12.d: Likewise.
2336         * testsuite/ld-arm/attr-merge-div-120.d: Likewise.
2337         * testsuite/ld-arm/attr-merge-div-20.d: Likewise.
2338         * testsuite/ld-arm/attr-merge-div-21.d: Likewise.
2339         * testsuite/ld-arm/attr-merge-div-22.d: Likewise.
2340         * testsuite/ld-arm/attr-merge-hardfp-use-1.d: Likewise.
2341         * testsuite/ld-arm/attr-merge-hardfp-use-2.d: Likewise.
2342         * testsuite/ld-arm/attr-merge-nosection-1.d: Likewise.
2343         * testsuite/ld-arm/attr-merge-unknown-2.d: Likewise.
2344         * testsuite/ld-arm/attr-merge-unknown-2r.d: Likewise.
2345         * testsuite/ld-arm/attr-merge-unknown-3.d: Likewise.
2346         * testsuite/ld-arm/attr-merge-vfp-1.d: Likewise.
2347         * testsuite/ld-arm/attr-merge-vfp-10.d: Likewise.
2348         * testsuite/ld-arm/attr-merge-vfp-10r.d: Likewise.
2349         * testsuite/ld-arm/attr-merge-vfp-11.d: Likewise.
2350         * testsuite/ld-arm/attr-merge-vfp-11r.d: Likewise.
2351         * testsuite/ld-arm/attr-merge-vfp-12.d: Likewise.
2352         * testsuite/ld-arm/attr-merge-vfp-12r.d: Likewise.
2353         * testsuite/ld-arm/attr-merge-vfp-13.d: Likewise.
2354         * testsuite/ld-arm/attr-merge-vfp-13r.d: Likewise.
2355         * testsuite/ld-arm/attr-merge-vfp-14.d: Likewise.
2356         * testsuite/ld-arm/attr-merge-vfp-14r.d: Likewise.
2357         * testsuite/ld-arm/attr-merge-vfp-1r.d: Likewise.
2358         * testsuite/ld-arm/attr-merge-vfp-2.d: Likewise.
2359         * testsuite/ld-arm/attr-merge-vfp-2r.d: Likewise.
2360         * testsuite/ld-arm/attr-merge-vfp-3.d: Likewise.
2361         * testsuite/ld-arm/attr-merge-vfp-3r.d: Likewise.
2362         * testsuite/ld-arm/attr-merge-vfp-4.d: Likewise.
2363         * testsuite/ld-arm/attr-merge-vfp-4r.d: Likewise.
2364         * testsuite/ld-arm/attr-merge-vfp-5.d: Likewise.
2365         * testsuite/ld-arm/attr-merge-vfp-5r.d: Likewise.
2366         * testsuite/ld-arm/attr-merge-vfp-6.d: Likewise.
2367         * testsuite/ld-arm/attr-merge-vfp-6r.d: Likewise.
2368         * testsuite/ld-arm/attr-merge-vfp-7.d: Likewise.
2369         * testsuite/ld-arm/attr-merge-vfp-7r.d: Likewise.
2370         * testsuite/ld-arm/attr-merge-vfp-8.d: Likewise.
2371         * testsuite/ld-arm/attr-merge-vfp-8r.d: Likewise.
2372         * testsuite/ld-arm/attr-merge-vfp-9.d: Likewise.
2373         * testsuite/ld-arm/attr-merge-vfp-9r.d: Likewise.
2374         * testsuite/ld-arm/attr-merge-wchar-00-nowarn.d: Likewise.
2375         * testsuite/ld-arm/attr-merge-wchar-00.d: Likewise.
2376         * testsuite/ld-arm/attr-merge-wchar-02-nowarn.d: Likewise.
2377         * testsuite/ld-arm/attr-merge-wchar-02.d: Likewise.
2378         * testsuite/ld-arm/attr-merge-wchar-04-nowarn.d: Likewise.
2379         * testsuite/ld-arm/attr-merge-wchar-04.d: Likewise.
2380         * testsuite/ld-arm/attr-merge-wchar-20-nowarn.d: Likewise.
2381         * testsuite/ld-arm/attr-merge-wchar-20.d: Likewise.
2382         * testsuite/ld-arm/attr-merge-wchar-22-nowarn.d: Likewise.
2383         * testsuite/ld-arm/attr-merge-wchar-22.d: Likewise.
2384         * testsuite/ld-arm/attr-merge-wchar-24-nowarn.d: Likewise.
2385         * testsuite/ld-arm/attr-merge-wchar-40-nowarn.d: Likewise.
2386         * testsuite/ld-arm/attr-merge-wchar-40.d: Likewise.
2387         * testsuite/ld-arm/attr-merge-wchar-42-nowarn.d: Likewise.
2388         * testsuite/ld-arm/attr-merge-wchar-44-nowarn.d: Likewise.
2389         * testsuite/ld-arm/attr-merge-wchar-44.d: Likewise.
2390         * testsuite/ld-arm/eabi-hard-float.d: Likewise.
2391         * testsuite/ld-arm/eabi-soft-float-ABI4.d: Likewise.
2392         * testsuite/ld-arm/eabi-soft-float-r.d: Likewise.
2393         * testsuite/ld-arm/eabi-soft-float.d: Likewise.
2394         * testsuite/ld-arm/gc-hidden-1.d: Likewise.
2395         * emulparams/armaoutb.sh: Delete.
2396         * emulparams/armaoutl.sh: Delete.
2397         * emulparams/armcoff.sh: Delete.
2398         * emulparams/armnbsd.sh: Delete.
2399         * emulparams/riscix.sh: Delete.
2400         * scripttempl/armaout.sc: Delete.
2401         * scripttempl/armcoff.sc: Delete.
2402         * scripttempl/riscix.sc: Delete.
2403         * Makefile.in: Regenerate.
2404         * po/BLD-POTFILES.in: Regenerate.
2405
2406 2018-04-21  Alan Modra  <amodra@gmail.com>
2407
2408         * testsuite/lib/ld-lib.exp (run_host_cmd): Check that gcc -B
2409         works.
2410
2411 2018-04-18  Alan Modra  <amodra@gmail.com>
2412
2413         * Makefile.am: Remove support for assorted i386 aout and coff targets.
2414         * configure.tgt: Likewise.
2415         * testsuite/ld-discard/discard.exp: Likewise.
2416         * testsuite/ld-elf/binutils.exp: Likewise.
2417         * testsuite/ld-elf/tls.exp: Likewise.
2418         * testsuite/ld-elf/tls_common.exp: Likewise.
2419         * testsuite/ld-elfvers/vers.exp: Likewise.
2420         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
2421         * testsuite/ld-elfweak/elfweak.exp: Likewise.
2422         * testsuite/ld-gc/abi-note.d: Likewise.
2423         * testsuite/ld-gc/pr19167.d: Likewise.
2424         * testsuite/ld-gc/pr20022.d: Likewise.
2425         * testsuite/ld-gc/start.d: Likewise.
2426         * testsuite/ld-gc/stop.d: Likewise.
2427         * testsuite/ld-i386/i386.exp: Likewise.
2428         * testsuite/ld-ifunc/binutils.exp: Likewise.
2429         * testsuite/ld-ifunc/ifunc.exp: Likewise.
2430         * testsuite/ld-linkonce/linkonce.exp: Likewise.
2431         * testsuite/ld-plugin/lto.exp: Likewise.
2432         * testsuite/ld-scripts/empty-address-2a.d: Likewise.
2433         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
2434         * testsuite/ld-scripts/phdrs2.exp: Likewise.
2435         * testsuite/ld-scripts/section-match-1.d: Likewise.
2436         * testsuite/ld-shared/shared.exp: Likewise.
2437         * testsuite/ld-size/size.exp: Likewise.
2438         * testsuite/ld-sparc/sparc.exp: Likewise.
2439         * emulparams/i386coff.sh: Delete.
2440         * emulparams/i386linux.sh: Delete.
2441         * emulparams/i386mach.sh: Delete.
2442         * emulparams/i386nbsd.sh: Delete.
2443         * emulparams/vsta.sh: Delete.
2444         * scripttempl/i386coff.sc: Delete.
2445         * Makefile.in: Regenerate.
2446         * po/BLD-POTFILES.in: Regenerate.
2447
2448 2018-04-17 Andrew Sadek  <andrew.sadek.se@gmail.com>
2449
2450         Microblaze Target: PIC data text relative
2451
2452         * ld/lexsup.c (Add 2 ld options):
2453         (ld_options): add disable-multiple-abs-defs @ 'ld_options' array
2454         (parse_args): parse new option and pass flag to 'link_info' struct.
2455         * ld/ldlex.h (Add enum): add new enum @ 'option_values' enum.
2456         * ld/ld.texinfo (Add new option): Add description for
2457         'disable-multiple-abs-defs'
2458         * ld/main.c: Initialize flags with false @ 'main'. Handle
2459         disable-multiple-abs-defs @ 'mutiple_definition'.
2460
2461 2018-04-16  Alan Modra  <amodra@gmail.com>
2462
2463         * emultempl/sunos.em: Delete.
2464
2465 2018-04-16  Alan Modra  <amodra@gmail.com>
2466
2467         * Makefile.am: Remove arm-epoc-pe support.
2468         * configure.tgt: Likewise.
2469         * emultempl/pe.em: Likewise.
2470         * pe-dll.c: Likewise.
2471         * testsuite/ld-scripts/fill.d: Likewise.
2472         * testsuite/ld-scripts/fill16.d: Likewise.
2473         * emulparams/arm_epoc_pe.sh: Delete.
2474         * scripttempl/epocpe.sc: Delete.
2475         * Makefile.in: Regenerate.
2476         * po/BLD-POTFILES.in: Regenerate.
2477
2478 2018-04-16  Alan Modra  <amodra@gmail.com>
2479
2480         * Makefile.am: Remove sparc-aout and sparc-coff support.
2481         * configure.tgt: Likewise.
2482         * testsuite/ld-elfvers/vers.exp: Likewise.
2483         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
2484         * testsuite/ld-elfweak/elfweak.exp: Likewise.
2485         * testsuite/ld-shared/shared.exp: Likewise.
2486         * emulparams/coff_sparc.sh: Delete.
2487         * emulparams/sparcaout.sh: Delete.
2488         * emulparams/sparclinux.sh: Delete.
2489         * emulparams/sparcnbsd.sh: Delete.
2490         * emulparams/sun4.sh: Delete.
2491         * scripttempl/sparccoff.sc: Delete.
2492         * Makefile.in: Regenerate.
2493         * po/BLD-POTFILES.in: Regenerate.
2494
2495 2018-04-16  Alan Modra  <amodra@gmail.com>
2496
2497         * Makefile.am: Remove m68k-aout and m68k-coff support.
2498         * configure.tgt: Likewise.
2499         * emultempl/m68kelf.em: Likewise.
2500         * ld.texinfo: Likewise.
2501         * mri.c: Likewise.
2502         * emulparams/delta68.sh: Delete.
2503         * emulparams/hp300bsd.sh: Delete.
2504         * emulparams/hp3hpux.sh: Delete.
2505         * emulparams/m68k4knbsd.sh: Delete.
2506         * emulparams/m68kaout.sh: Delete.
2507         * emulparams/m68kaux.sh: Delete.
2508         * emulparams/m68kcoff.sh: Delete.
2509         * emulparams/m68klinux.sh: Delete.
2510         * emulparams/m68knbsd.sh: Delete.
2511         * emulparams/m68kpsos.sh: Delete.
2512         * emulparams/sun3.sh: Delete.
2513         * emultempl/m68kcoff.em: Delete.
2514         * scripttempl/delta68.sc: Delete.
2515         * scripttempl/m68kaux.sc: Delete.
2516         * scripttempl/m68kcoff.sc: Delete.
2517         * scripttempl/psos.sc: Delete.
2518         * testsuite/ld-versados/t1-1.ro: Delete.
2519         * testsuite/ld-versados/t1-2.ro: Delete.
2520         * testsuite/ld-versados/t1.ld: Delete.
2521         * testsuite/ld-versados/t1.ook: Delete.
2522         * testsuite/ld-versados/t2-1.ro: Delete.
2523         * testsuite/ld-versados/t2-2.ro: Delete.
2524         * testsuite/ld-versados/t2-3.ro: Delete.
2525         * testsuite/ld-versados/t2.ld: Delete.
2526         * testsuite/ld-versados/t2.ook: Delete.
2527         * testsuite/ld-versados/versados.exp: Delete.
2528         * Makefile.in: Regenerate.
2529         * po/BLD-POTFILES.in: Regenerate.
2530
2531 2018-04-16  Alan Modra  <amodra@gmail.com>
2532
2533         * Makefile.am: Remove sh5 and sh64 support.
2534         * configure.tgt: Likewise.
2535         * ldlang.c: Likewise.
2536         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
2537         * testsuite/ld-gc/gc.exp: Likewise.
2538         * testsuite/ld-gc/pr13683.d: Likewise.
2539         * testsuite/ld-scripts/crossref.exp: Likewise.
2540         * testsuite/ld-selective/selective.exp: Likewise.
2541         * testsuite/ld-sh/ld-r-1.d: Likewise.
2542         * testsuite/ld-sh/rd-sh.exp: Likewise.
2543         * testsuite/ld-sh/sh.exp: Likewise.
2544         * testsuite/ld-srec/srec.exp: Likewise.
2545         * testsuite/ld-undefined/undefined.exp: Likewise.
2546         * emulparams/shelf32.sh: Delete.
2547         * emulparams/shelf32_linux.sh: Delete.
2548         * emulparams/shelf32_nbsd.sh: Delete.
2549         * emulparams/shelf64.sh: Delete.
2550         * emulparams/shelf64_nbsd.sh: Delete.
2551         * emulparams/shlelf32.sh: Delete.
2552         * emulparams/shlelf32_linux.sh: Delete.
2553         * emulparams/shlelf32_nbsd.sh: Delete.
2554         * emulparams/shlelf64.sh: Delete.
2555         * emulparams/shlelf64_nbsd.sh: Delete.
2556         * emultempl/sh64elf.em: Delete.
2557         * testsuite/ld-sh/sh64/abi32.sd: Delete.
2558         * testsuite/ld-sh/sh64/abi32.xd: Delete.
2559         * testsuite/ld-sh/sh64/abi64.sd: Delete.
2560         * testsuite/ld-sh/sh64/abi64.xd: Delete.
2561         * testsuite/ld-sh/sh64/abixx-noexp.sd: Delete.
2562         * testsuite/ld-sh/sh64/cmpct1.sd: Delete.
2563         * testsuite/ld-sh/sh64/cmpct1.xd: Delete.
2564         * testsuite/ld-sh/sh64/crange-1.s: Delete.
2565         * testsuite/ld-sh/sh64/crange-2a.s: Delete.
2566         * testsuite/ld-sh/sh64/crange-2b.s: Delete.
2567         * testsuite/ld-sh/sh64/crange-2c.s: Delete.
2568         * testsuite/ld-sh/sh64/crange-2d.s: Delete.
2569         * testsuite/ld-sh/sh64/crange-2e.s: Delete.
2570         * testsuite/ld-sh/sh64/crange-2f.s: Delete.
2571         * testsuite/ld-sh/sh64/crange-2g.s: Delete.
2572         * testsuite/ld-sh/sh64/crange-2h.s: Delete.
2573         * testsuite/ld-sh/sh64/crange-2i.s: Delete.
2574         * testsuite/ld-sh/sh64/crange1.rd: Delete.
2575         * testsuite/ld-sh/sh64/crange2.rd: Delete.
2576         * testsuite/ld-sh/sh64/crange3-cmpct.rd: Delete.
2577         * testsuite/ld-sh/sh64/crange3-media.rd: Delete.
2578         * testsuite/ld-sh/sh64/crange3.dd: Delete.
2579         * testsuite/ld-sh/sh64/crange3.rd: Delete.
2580         * testsuite/ld-sh/sh64/crangerel1.rd: Delete.
2581         * testsuite/ld-sh/sh64/crangerel2.rd: Delete.
2582         * testsuite/ld-sh/sh64/dlsection-1.s: Delete.
2583         * testsuite/ld-sh/sh64/dlsection.sd: Delete.
2584         * testsuite/ld-sh/sh64/endian.dbd: Delete.
2585         * testsuite/ld-sh/sh64/endian.dld: Delete.
2586         * testsuite/ld-sh/sh64/endian.ld: Delete.
2587         * testsuite/ld-sh/sh64/endian.s: Delete.
2588         * testsuite/ld-sh/sh64/endian.sbd: Delete.
2589         * testsuite/ld-sh/sh64/endian.sld: Delete.
2590         * testsuite/ld-sh/sh64/gotplt.d: Delete.
2591         * testsuite/ld-sh/sh64/gotplt.map: Delete.
2592         * testsuite/ld-sh/sh64/gotplt.s: Delete.
2593         * testsuite/ld-sh/sh64/init-cmpct.d: Delete.
2594         * testsuite/ld-sh/sh64/init-media.d: Delete.
2595         * testsuite/ld-sh/sh64/init.s: Delete.
2596         * testsuite/ld-sh/sh64/init64.d: Delete.
2597         * testsuite/ld-sh/sh64/mix1-noexp.sd: Delete.
2598         * testsuite/ld-sh/sh64/mix1.sd: Delete.
2599         * testsuite/ld-sh/sh64/mix1.xd: Delete.
2600         * testsuite/ld-sh/sh64/mix2-noexp.sd: Delete.
2601         * testsuite/ld-sh/sh64/mix2.sd: Delete.
2602         * testsuite/ld-sh/sh64/mix2.xd: Delete.
2603         * testsuite/ld-sh/sh64/rd-sh64.exp: Delete.
2604         * testsuite/ld-sh/sh64/rel-1.s: Delete.
2605         * testsuite/ld-sh/sh64/rel-2.s: Delete.
2606         * testsuite/ld-sh/sh64/rel32.xd: Delete.
2607         * testsuite/ld-sh/sh64/rel64.xd: Delete.
2608         * testsuite/ld-sh/sh64/relax.exp: Delete.
2609         * testsuite/ld-sh/sh64/relax1.s: Delete.
2610         * testsuite/ld-sh/sh64/relax2.s: Delete.
2611         * testsuite/ld-sh/sh64/relax3.s: Delete.
2612         * testsuite/ld-sh/sh64/relax4.s: Delete.
2613         * testsuite/ld-sh/sh64/reldl-1.s: Delete.
2614         * testsuite/ld-sh/sh64/reldl-2.s: Delete.
2615         * testsuite/ld-sh/sh64/reldl32.rd: Delete.
2616         * testsuite/ld-sh/sh64/reldl64.rd: Delete.
2617         * testsuite/ld-sh/sh64/relfail.exp: Delete.
2618         * testsuite/ld-sh/sh64/relfail.s: Delete.
2619         * testsuite/ld-sh/sh64/sh64-1.s: Delete.
2620         * testsuite/ld-sh/sh64/sh64-2.s: Delete.
2621         * testsuite/ld-sh/sh64/sh64.exp: Delete.
2622         * testsuite/ld-sh/sh64/shcmp-1.s: Delete.
2623         * testsuite/ld-sh/sh64/shdl-1.s: Delete.
2624         * testsuite/ld-sh/sh64/shdl-2.s: Delete.
2625         * testsuite/ld-sh/sh64/shdl32.xd: Delete.
2626         * testsuite/ld-sh/sh64/shdl64.sd: Delete.
2627         * testsuite/ld-sh/sh64/shdl64.xd: Delete.
2628         * testsuite/ld-sh/sh64/shmix-1.s: Delete.
2629         * testsuite/ld-sh/sh64/shmix-2.s: Delete.
2630         * testsuite/ld-sh/sh64/shmix-3.s: Delete.
2631         * testsuite/ld-sh/sh64/stobin-0-dso.d: Delete.
2632         * testsuite/ld-sh/sh64/stobin-1.d: Delete.
2633         * testsuite/ld-sh/sh64/stobin.s: Delete.
2634         * testsuite/ld-sh/sh64/stolib.s: Delete.
2635         * Makefile.in: Regenerate.
2636         * po/BLD-POTFILES.in: Regenerate.
2637
2638 2018-04-16  Alan Modra  <amodra@gmail.com>
2639
2640         * Makefile.am: Remove sh-symbianelf support.
2641         * configure.tgt: Likewise.
2642         * emulparams/shlsymbian.sh: Delete.
2643         * scripttempl/elf32sh-symbian.sc: Delete.
2644         * Makefile.in: Regenerate.
2645         * po/BLD-POTFILES.in: Regenerate.
2646
2647 2018-04-16  Alan Modra  <amodra@gmail.com>
2648
2649         * Makefile.am: Remove vax-bsd and vax-ultrix support.
2650         * configure.tgt: Likewise.
2651         * emulparams/vax.sh: Delete.
2652         * Makefile.in: Regenerate.
2653         * po/BLD-POTFILES.in: Regenerate.
2654
2655 2018-04-16  Alan Modra  <amodra@gmail.com>
2656
2657         * Makefile.am: Remove w65 support.
2658         * configure.tgt: Likewise.
2659         * emulparams/w65.sh: Delete.
2660         * scripttempl/w65.sc: Delete.
2661         * Makefile.in: Regenerate.
2662         * po/BLD-POTFILES.in: Regenerate.
2663
2664 2018-04-16  Alan Modra  <amodra@gmail.com>
2665
2666         * Makefile.am: Remove m88k support.
2667         * configure.host: Likewise.
2668         * configure.tgt: Likewise.
2669         * testsuite/ld-elf/sec-to-seg.exp: Likewise.
2670         * emulparams/m88kbcs.sh: Delete.
2671         * scripttempl/m88kbcs.sc: Delete.
2672         * Makefile.in: Regenerate.
2673         * po/BLD-POTFILES.in: Regenerate.
2674
2675 2018-04-16  Alan Modra  <amodra@gmail.com>
2676
2677         * Makefile.am: Remove i370 support.
2678         * configure.tgt: Likewise.
2679         * testsuite/ld-elf/compressed1d.d: Likewise.
2680         * testsuite/ld-elf/group8a.d: Likewise.
2681         * testsuite/ld-elf/group8b.d: Likewise.
2682         * testsuite/ld-elf/group9a.d: Likewise.
2683         * testsuite/ld-elf/group9b.d: Likewise.
2684         * testsuite/ld-elf/merge.d: Likewise.
2685         * testsuite/ld-elf/pr12851.d: Likewise.
2686         * testsuite/ld-elf/pr12975.d: Likewise.
2687         * testsuite/ld-elf/pr13177.d: Likewise.
2688         * testsuite/ld-elf/pr13195.d: Likewise.
2689         * testsuite/ld-elf/pr17615.d: Likewise.
2690         * testsuite/ld-elf/pr21562a.d: Likewise.
2691         * testsuite/ld-elf/pr21562b.d: Likewise.
2692         * testsuite/ld-elf/pr21562c.d: Likewise.
2693         * testsuite/ld-elf/pr21562d.d: Likewise.
2694         * testsuite/ld-elf/pr21562i.d: Likewise.
2695         * testsuite/ld-elf/pr21562j.d: Likewise.
2696         * testsuite/ld-elf/pr21562k.d: Likewise.
2697         * testsuite/ld-elf/pr21562l.d: Likewise.
2698         * testsuite/ld-elf/pr21562m.d: Likewise.
2699         * testsuite/ld-elf/pr21562n.d: Likewise.
2700         * testsuite/ld-elf/pr22677.d: Likewise.
2701         * testsuite/lib/ld-lib.exp: Likewise.
2702         * emulparams/elf32i370.sh: Delete.
2703         * scripttempl/elfi370.sc: Delete.
2704         * Makefile.in: Regenerate.
2705         * po/BLD-POTFILES.in: Regenerate.
2706
2707 2018-04-16  Alan Modra  <amodra@gmail.com>
2708
2709         * Makefile.am: Remove h8500 support.
2710         * configure.tgt: Likewise.
2711         * emulparams/h8500.sh: Delete.
2712         * emulparams/h8500b.sh: Delete.
2713         * emulparams/h8500c.sh: Delete.
2714         * emulparams/h8500m.sh: Delete.
2715         * emulparams/h8500s.sh: Delete.
2716         * scripttempl/h8500.sc: Delete.
2717         * scripttempl/h8500b.sc: Delete.
2718         * scripttempl/h8500c.sc: Delete.
2719         * scripttempl/h8500m.sc: Delete.
2720         * scripttempl/h8500s.sc: Delete.
2721         * Makefile.in: Regenerate.
2722         * po/BLD-POTFILES.in: Regenerate.
2723
2724 2018-04-16  Alan Modra  <amodra@gmail.com>
2725
2726         * Makefile.am: Remove h8300-coff support.
2727         * configure.tgt: Likewise.
2728         * testsuite/ld-h8300/h8300.exp: Likewise.
2729         * emulparams/h8300.sh: Delete.
2730         * emulparams/h8300h.sh: Delete.
2731         * emulparams/h8300hn.sh: Delete.
2732         * emulparams/h8300s.sh: Delete.
2733         * emulparams/h8300sn.sh: Delete.
2734         * emulparams/h8300sx.sh: Delete.
2735         * emulparams/h8300sxn.sh: Delete.
2736         * scripttempl/h8300.sc: Delete.
2737         * scripttempl/h8300h.sc: Delete.
2738         * scripttempl/h8300hn.sc: Delete.
2739         * scripttempl/h8300s.sc: Delete.
2740         * scripttempl/h8300sn.sc: Delete.
2741         * scripttempl/h8300sx.sc: Delete.
2742         * scripttempl/h8300sxn.sc: Delete.
2743         * testsuite/ld-h8300/relax-3-coff.d: Delete.
2744         * testsuite/ld-h8300/relax-4-coff.d: Delete.
2745         * testsuite/ld-h8300/relax-5-coff.d: Delete.
2746         * testsuite/ld-h8300/relax-6-coff.d: Delete.
2747         * Makefile.in: Regenerate.
2748         * po/BLD-POTFILES.in: Regenerate.
2749
2750 2018-04-16  Alan Modra  <amodra@gmail.com>
2751
2752         * ld.texinfo: Remove IEEE 695 support.
2753         * mri.c: Likewise.
2754
2755 2018-04-16  Alan Modra  <amodra@gmail.com>
2756
2757         * Makefile.am: Remove tandem support.
2758         * configure.tgt: Likewise.
2759         * emulparams/st2000.sh: Delete.
2760         * scripttempl/st2000.sc: Delete.
2761         * Makefile.in: Regenerate.
2762         * po/BLD-POTFILES.in: Regenerate.
2763
2764 2018-04-16  Alan Modra  <amodra@gmail.com>
2765
2766         * Makefile.am: Remove newsos3 support.
2767         * configure.tgt: Likewise.
2768         * emulparams/news.sh: Delete.
2769         * Makefile.in: Regenerate.
2770         * po/BLD-POTFILES.in: Regenerate.
2771
2772 2018-04-16  Alan Modra  <amodra@gmail.com>
2773
2774         * Makefile.am: Remove netware support.
2775         * configure.tgt: Likewise.
2776         * testsuite/ld-powerpc/powerpc.exp: Likewise.
2777         * emulparams/i386nw.sh: Delete.
2778         * emulparams/ppcnw.sh: Delete.
2779         * scripttempl/nw.sc: Delete.
2780         * Makefile.in: Regenerate.
2781         * po/BLD-POTFILES.in: Regenerate.
2782
2783 2018-04-14  Alan Modra  <amodra@gmail.com>
2784
2785         * ldmain.c (main): Move config.maxpagesize and
2786         config.commonpagesize initialization to..
2787         * ldemul.c (after_parse_default): ..here.
2788         * testsuite/ld-powerpc/ppc476-shared.d: Pass -z common-page-size.
2789         * testsuite/ld-powerpc/ppc476-shared2.d: Likewise.
2790
2791 2018-04-14  Alan Modra  <amodra@gmail.com>
2792
2793         * emulparams/elf32ppcwindiss.sh: Rewrite to use elf32ppc.sh.
2794         * emulparams/ppclynx.sh: Likewise.
2795
2796 2018-04-11  Alan Modra  <amodra@gmail.com>
2797
2798         * emulparams/coff_i860.sh: Delete.
2799         * emulparams/elf32_i860.sh: Delete.
2800         * emulparams/elf32_i960.sh: Delete.
2801         * emulparams/gld960.sh: Delete.
2802         * emulparams/gld960coff.sh: Delete.
2803         * emulparams/lnk960.sh: Delete.
2804         * emultempl/gld960.em: Delete.
2805         * emultempl/gld960c.em: Delete.
2806         * emultempl/lnk960.em: Delete.
2807         * scripttempl/i860coff.sc: Delete.
2808         * scripttempl/i960.sc: Delete.
2809         * ld.texinfo: Remove i960 support.
2810         * Makefile.am: Remove i860 and i960 support.
2811         * configure.tgt: Likewise.
2812         * testsuite/ld-discard/extern.d: Likewise.
2813         * testsuite/ld-discard/start.d: Likewise.
2814         * testsuite/ld-discard/static.d: Likewise.
2815         * testsuite/ld-elf/compressed1d.d: Likewise.
2816         * testsuite/ld-elf/group1.d: Likewise.
2817         * testsuite/ld-elf/group3b.d: Likewise.
2818         * testsuite/ld-elf/group8a.d: Likewise.
2819         * testsuite/ld-elf/group8b.d: Likewise.
2820         * testsuite/ld-elf/group9a.d: Likewise.
2821         * testsuite/ld-elf/group9b.d: Likewise.
2822         * testsuite/ld-elf/linkonce2.d: Likewise.
2823         * testsuite/ld-elf/merge.d: Likewise.
2824         * testsuite/ld-elf/merge2.d: Likewise.
2825         * testsuite/ld-elf/merge3.d: Likewise.
2826         * testsuite/ld-elf/orphan-10.d: Likewise.
2827         * testsuite/ld-elf/orphan-11.d: Likewise.
2828         * testsuite/ld-elf/orphan-12.d: Likewise.
2829         * testsuite/ld-elf/orphan-9.d: Likewise.
2830         * testsuite/ld-elf/orphan-region.d: Likewise.
2831         * testsuite/ld-elf/orphan.d: Likewise.
2832         * testsuite/ld-elf/orphan3.d: Likewise.
2833         * testsuite/ld-elf/pr12851.d: Likewise.
2834         * testsuite/ld-elf/pr12975.d: Likewise.
2835         * testsuite/ld-elf/pr13177.d: Likewise.
2836         * testsuite/ld-elf/pr13195.d: Likewise.
2837         * testsuite/ld-elf/pr17550a.d: Likewise.
2838         * testsuite/ld-elf/pr17550b.d: Likewise.
2839         * testsuite/ld-elf/pr17550c.d: Likewise.
2840         * testsuite/ld-elf/pr17550d.d: Likewise.
2841         * testsuite/ld-elf/pr17615.d: Likewise.
2842         * testsuite/ld-elf/pr20528a.d: Likewise.
2843         * testsuite/ld-elf/pr20528b.d: Likewise.
2844         * testsuite/ld-elf/pr21562a.d: Likewise.
2845         * testsuite/ld-elf/pr21562b.d: Likewise.
2846         * testsuite/ld-elf/pr21562c.d: Likewise.
2847         * testsuite/ld-elf/pr21562d.d: Likewise.
2848         * testsuite/ld-elf/pr21562i.d: Likewise.
2849         * testsuite/ld-elf/pr21562j.d: Likewise.
2850         * testsuite/ld-elf/pr21562k.d: Likewise.
2851         * testsuite/ld-elf/pr21562l.d: Likewise.
2852         * testsuite/ld-elf/pr21562m.d: Likewise.
2853         * testsuite/ld-elf/pr21562n.d: Likewise.
2854         * testsuite/ld-elf/pr22677.d: Likewise.
2855         * testsuite/ld-elf/pr22836-1a.d: Likewise.
2856         * testsuite/ld-elf/pr22836-1b.d: Likewise.
2857         * testsuite/ld-elf/pr349.d: Likewise.
2858         * testsuite/ld-elf/sec-to-seg.exp: Likewise.
2859         * testsuite/ld-elf/sec64k.exp: Likewise.
2860         * testsuite/ld-elf/warn1.d: Likewise.
2861         * testsuite/ld-elf/warn2.d: Likewise.
2862         * testsuite/ld-elf/warn3.d: Likewise.
2863         * testsuite/lib/ld-lib.exp: Likewise.
2864         * Makefile.in: Regenerate.
2865         * po/BLD-POTFILES.in: Regenerate.
2866
2867 2018-04-11  Alan Modra  <amodra@gmail.com>
2868
2869         * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Add -mpic for nds32.
2870
2871 2018-04-09  Alan Modra  <amodra@gmail.com>
2872
2873         * po/BLD-POTFILES.in: Regenerate.
2874
2875 2018-04-09  Alan Modra  <amodra@gmail.com>
2876
2877         * emultempl/ppc64elf.em (no_inline_plt): New var.
2878         (ppc_before_allocation): Call ppc64_elf_inline_plt.
2879         (enum ppc64_opt): Add OPTION_NO_INLINE_OPT.
2880         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
2881         PARSE_AND_LIST_ARGS_CASES): Handle --no-inline-optimize.
2882         * emultemps/ppc32elf.em (no_inline_opt): New var.
2883         (prelim_size_sections): New function, extracted from..
2884         (ppc_before_allocation): ..here.  Call ppc_elf_inline_plt.
2885         (enum ppc32_opt): Add OPTION_NO_INLINE_OPT.
2886         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
2887         PARSE_AND_LIST_ARGS_CASES): Handle --no-inline-optimize.
2888
2889 2018-04-09  Alan Modra  <amodra@gmail.com>
2890
2891         * emulparams/elf32ppc.sh (OTHER_RELRO_SECTIONS_2): Add .branch_lt.
2892         (OTHER_GOT_RELOC_SECTIONS): Add .rela.branch_lt.
2893         * testsuite/ld-powerpc/elfv2so.d: Update for symbol/stub reordering.
2894         * testsuite/ld-powerpc/relbrlt.d: Likewise.
2895         * testsuite/ld-powerpc/relbrlt.s: Likewise.
2896         * testsuite/ld-powerpc/tlsso.r: Likewise.
2897         * testsuite/ld-powerpc/tlstocso.r: Likewise.
2898
2899 2018-04-09  Alan Modra  <amodra@gmail.com>
2900
2901         * ppc32elf.em (ppc_finish): Call ppc_finish_symbols.
2902
2903 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
2904
2905         PR gas/22318
2906         * configure: Regenerated.
2907
2908 2018-04-05  Nick Clifton  <nickc@redhat.com>
2909
2910         PR 23030
2911         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Make sure
2912         that the .IA_64.unwind_info and .IA_64.unwind sections are not
2913         subject to garbage collection.
2914
2915 2018-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2916
2917         * deffile.h (def_file_add_import_from): Declare.
2918         (def_file_add_import_at): Likewise.
2919         * deffilep.y (fill_in_import): New function extracted from...
2920         (def_file_add_import): ...here.  Call it.
2921         (def_file_add_import_from): New function.
2922         (def_file_add_import_at): Likewise.
2923         * pe-dll.c (pe_implied_import_dll): Use an optimized version of the
2924         insertion loop for imported symbols if possible.
2925
2926 2018-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2927
2928         * emultempl/pe.em (U_SIZE): Delete.
2929         (pe_data_import_dll): Likewise.
2930         (make_import_fixup): Return void, take 4th parameter and pass it down
2931         in call to pe_create_import_fixup.
2932         (pe_find_data_imports): Move to...
2933         (gld_${EMULATION_NAME}_after_open): Run the stdcall fixup pass after
2934         the auto-import pass and add a guard before running the latter.
2935         * emultempl/pep.em (U_SIZE): Delete.
2936         (pep_data_import_dll): Likewise.
2937         (make_import_fixup): Return void, take 4th parameter and pass it down
2938         in call to pe_create_import_fixup.
2939         (pep_find_data_imports): Move to...
2940         (gld_${EMULATION_NAME}_after_open): Run the stdcall fixup pass after
2941         the auto-import pass and add a guard before running the latter.
2942         * pe-dll.c (runtime_pseudp_reloc_v2_init): Change type to bfd_boolean.
2943         (pe_walk_relocs_of_symbol): Rename into...
2944         (pe_walk_relocs): ...this.  Add 2 more parameters,4th parameter to the
2945         callback prototype and pass 4th parameter in calls to the callback.
2946         If the import hash table is present, invoke the callback on the reloc
2947         if the symbol name is in the table.
2948         (pe_find_data_imports): ...here.  Take 2 parameters.  Build an import
2949         hash table for the pseudo-relocation support version 2.  When it is
2950         built, walk the relocations only once at the end; when it is not, do
2951         not build a fixup when the symbol isn't part of an import table.
2952         Issue the associated warning only after a first fixup is built.
2953         (tmp_seq2): Delete.
2954         (make_singleton_name_imp): Likewise.
2955         (make_import_fixup_mark): Return const char * and a stable string.
2956         (make_import_fixup_entry): Do not deal with the pseudo-relocation
2957         support version 2.
2958         (make_runtime_pseudo_reloc): Factor out code and fix formatting.
2959         (pe_create_import_fixup): Add 5th parameter.  Clearly separate the
2960         pseudo-relocation support version 2 from the rest.  Fix formatting.
2961         * pe-dll.h (pe_walk_relocs_of_symbol): Delete.
2962         (pe_find_data_imports): Declare.
2963         (pe_create_import_fixup): Add 5th parameter.
2964         * pep-dll.c (pe_data_import_dll): Delete.
2965         (pe_find_data_imports): Define.
2966         (pe_walk_relocs_of_symbol): Delete.
2967         * pep-dll.h (pep_walk_relocs_of_symbol): Delete.
2968         (pep_find_data_imports): Declare.
2969         (pep_create_import_fixup): Add 5th parameter.
2970         * ld.texinfo (--enable-auto-import): Adjust to new implementation.
2971
2972 2018-04-04  Nick Clifton  <nickc@redhat.com>
2973
2974         * po/es.po: Updated Spanish translation.
2975
2976 2018-04-03  Maciej W. Rozycki  <macro@mips.com>
2977
2978         * testsuite/ld-mips-elf/comm-data.exp: Correct support for
2979         `mips*-*-kfreebsd*-gnu' targets.
2980
2981 2018-03-23  Renlin Li  <renlin.li@arm.com>
2982
2983         PR ld/22970
2984         * testsuite/ld-aarch64/aarch64-elf.exp: Update to run new tests.
2985         * testsuite/ld-aarch64/emit-relocs-552-overflow.d: New.
2986         * testsuite/ld-aarch64/emit-relocs-552-overflow.s: New.
2987         * testsuite/ld-aarch64/emit-relocs-552.d: New.
2988         * testsuite/ld-aarch64/emit-relocs-552.s: New.
2989         * testsuite/ld-aarch64/emit-relocs-553.d: New.
2990         * testsuite/ld-aarch64/emit-relocs-553.s: New.
2991         * testsuite/ld-aarch64/emit-relocs-554-overflow.d: New.
2992         * testsuite/ld-aarch64/emit-relocs-554-overflow.s: New.
2993         * testsuite/ld-aarch64/emit-relocs-554.d: New.
2994         * testsuite/ld-aarch64/emit-relocs-554.s: New.
2995         * testsuite/ld-aarch64/emit-relocs-555.d: New.
2996         * testsuite/ld-aarch64/emit-relocs-555.s: New.
2997         * testsuite/ld-aarch64/emit-relocs-556-overflow.d: New.
2998         * testsuite/ld-aarch64/emit-relocs-556-overflow.s: New.
2999         * testsuite/ld-aarch64/emit-relocs-556.d: New.
3000         * testsuite/ld-aarch64/emit-relocs-556.s: New.
3001         * testsuite/ld-aarch64/emit-relocs-557.d: New.
3002         * testsuite/ld-aarch64/emit-relocs-557.s: New.
3003         * testsuite/ld-aarch64/emit-relocs-558-overflow.d: New.
3004         * testsuite/ld-aarch64/emit-relocs-558-overflow.s: New.
3005         * testsuite/ld-aarch64/emit-relocs-558.d: New.
3006         * testsuite/ld-aarch64/emit-relocs-558.s: New.
3007         * testsuite/ld-aarch64/emit-relocs-559.d: New.
3008         * testsuite/ld-aarch64/emit-relocs-559.s: New.
3009         * testsuite/ld-aarch64/emit-relocs-112-overflow.d: New.
3010         * testsuite/ld-aarch64/emit-relocs-112-overflow.s: New.
3011         * testsuite/ld-aarch64/emit-relocs-112.d: New.
3012         * testsuite/ld-aarch64/emit-relocs-112.s: New.
3013         * testsuite/ld-aarch64/emit-relocs-113.d: New.
3014         * testsuite/ld-aarch64/emit-relocs-113.s: New.
3015         * testsuite/ld-aarch64/emit-relocs-114-overflow.d: New.
3016         * testsuite/ld-aarch64/emit-relocs-114-overflow.s: New.
3017         * testsuite/ld-aarch64/emit-relocs-114.d: New.
3018         * testsuite/ld-aarch64/emit-relocs-114.s: New.
3019         * testsuite/ld-aarch64/emit-relocs-115.d: New.
3020         * testsuite/ld-aarch64/emit-relocs-115.s: New.
3021         * testsuite/ld-aarch64/emit-relocs-116-overflow.d: New.
3022         * testsuite/ld-aarch64/emit-relocs-116-overflow.s: New.
3023         * testsuite/ld-aarch64/emit-relocs-116.d: New.
3024         * testsuite/ld-aarch64/emit-relocs-116.s: New.
3025         * testsuite/ld-aarch64/emit-relocs-117.d: New.
3026         * testsuite/ld-aarch64/emit-relocs-117.s: New.
3027         * testsuite/ld-aarch64/emit-relocs-118-overflow.d: New.
3028         * testsuite/ld-aarch64/emit-relocs-118-overflow.s: New.
3029         * testsuite/ld-aarch64/emit-relocs-118.d: New.
3030         * testsuite/ld-aarch64/emit-relocs-118.s: New.
3031         * testsuite/ld-aarch64/emit-relocs-119.d: New.
3032         * testsuite/ld-aarch64/emit-relocs-119.s: New.
3033
3034 2018-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3035
3036         PR ld/22972
3037         * testsuite/ld-sparc/sparc.exp: Add test for mixed GOTDATA/GOT relocs.
3038         * testsuite/ld-sparc/gotop-hidden.c: New file.
3039         * testsuite/ld-sparc/got-hidden32.s: Likewise.
3040         * testsuite/ld-sparc/got-hidden64.s: Likewise.
3041         * testsuite/ld-sparc/pass.out: Likewise.
3042
3043 2018-03-25  H.J. Lu  <hongjiu.lu@intel.com>
3044
3045         PR ld/23000
3046         * testsuite/ld-x86-64/tlsdesc.pd: Updated.
3047
3048 2018-03-23  Nick Clifton  <nickc@redhat.com>
3049
3050         PR 22948
3051         * emultempl/pe.em (open_dynamic_archive): Add libXXX.lib template
3052         to library name list.
3053         * emultempl/pep.em (open_dynamic_archive): Likewise.
3054         * ld.texinfo (WIN32): Update documentation.
3055
3056 2018-03-20  Roland McGrath  <mcgrathr@google.com>
3057
3058         * testsuite/ld-elf/shared.exp (pr20995-2): XFAIL on aarch64*-*-elf*,
3059         another target without RELRO.
3060
3061 2018-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3062
3063         * testsuite/ld-plugin/pr22983.d: Allow leading underscore as
3064         well as extra lines between symbols.
3065
3066 2018-03-20  Maciej W. Rozycki  <macro@mips.com>
3067
3068         * testsuite/ld-gc/gc.exp: Remove extraneous LD flags from the
3069         personality test.
3070
3071 2018-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3072
3073         PR ld/22983
3074         * testsuite/ld-plugin/lto.exp: Run PR ld/22983 test.
3075         * testsuite/ld-plugin/pr22983.d: New file.
3076         * testsuite/ld-plugin/pr22983.t: Likewise.
3077         * testsuite/ld-plugin/pr22983a.c: Likewise.
3078         * testsuite/ld-plugin/pr22983b.c: Likewise.
3079
3080 2018-03-15  Andreas Schwab  <schwab@suse.de>
3081
3082         PR ld/22949
3083         * emultempl/riscvelf.em (riscv_elf_before_allocation): Don't
3084         enable relaxation in relocatable link.
3085
3086 2018-03-15  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
3087
3088         * emultempl/nds32elf.em (nds32_elf_after_allocation): Remove
3089         unsupported target feature.
3090
3091 2018-03-14  H.J. Lu  <hongjiu.lu@intel.com>
3092
3093         PR ld/20882
3094         * testsuite/ld-gc/pr20882.d: Also dump and check .debug_abbrev
3095         section.
3096         * testsuite/ld-gc/pr20882b.s: Add .debug_abbrev section.
3097
3098 2018-03-14  H.J. Lu  <hongjiu.lu@intel.com>
3099
3100         * testsuite/ld-gc/gc.exp: Fix a typo: $LFLAGS -> $LDFLAGS.
3101
3102 2018-03-13  Nick Clifton  <nickc@redhat.com>
3103
3104         * po/pt_BR.po: Updated Brazilian Portuguese translation.
3105
3106 2018-03-09  Nick Clifton  <nickc@redhat.com>
3107
3108         * testsuite/ld-ifunc/ifuncmod5.s: New test.  Checks that targets
3109         that support IFUNC symbols can handle relocations against those
3110         symbols in NOTE sections.
3111         * testsuite/ld-ifunc/ifuncmod5.d: New file:  Driver for the new
3112         test.
3113         * testsuite/ld-ifunc/ifunc.exp: Run the new test.
3114
3115 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
3116
3117         PR ld/22929
3118         * testsuite/ld-i386/i386.exp: Run PR ld/22929 test.
3119         * testsuite/ld-x86-64/x86-64.exp: Likewise.
3120         * testsuite/ld-i386/pr22929.d: New file.
3121         * testsuite/ld-i386/pr22929.s: Likewise.
3122         * testsuite/ld-x86-64/pr22929.d: Likewise.
3123         * testsuite/ld-x86-64/pr22929.s: Likewise.
3124
3125 2018-03-07  Max Filippov  <jcmvbkbc@gmail.com>
3126
3127         * emulparams/elf32xtensa.sh (COMMONPAGESIZE): Define.
3128
3129 2018-03-07  Renlin Li  <renlin.li@arm.com>
3130
3131         PR ld/20402
3132         * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
3133         * testsuite/ld-aarch64/pr20402.s: New.
3134         * testsuite/ld-aarch64/pr20402.d: New.
3135
3136 2018-03-06  Jim Wilson  <jimw@sifive.com>
3137
3138         PR 22920
3139         * emultempl/riscvelf.em (riscv_create_output_section_statements): New.
3140         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): New.
3141         * testsuite/ld-elf/pr21884.d (#notarget): Add riscv*-*-*.
3142         * testsuite/ld-unique/pr21529.d (#notarget): Likewise.
3143         * testsuite/ld-srec/srec.exp (run_srec_test): For riscv*-*-* target,
3144         call setup_xfail.
3145
3146 2018-03-03  James Cowgill  <james.cowgill@mips.com>
3147             Maciej W. Rozycki  <macro@mips.com>
3148
3149         PR ld/21900
3150         * testsuite/ld-mips-elf/undefined-warn.d: New test.
3151         * testsuite/ld-mips-elf/undefined.s: Add padding at the end.
3152         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
3153
3154 2018-03-02  Jim Wilson  <jimw@sifive.com>
3155
3156         PR 22903
3157         * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
3158         Give stub_sec 8 byte alignment.
3159         * emulparams/aarch64cloudabi.sh (NOP): Set to 0x1f2003d5.
3160         * emulparams/aarch64elf.sh (NOP): Likewise.
3161         * emulparams/aarch64elf32.sh (NOP): Likewise.
3162         * emulparams/aarch64fbsd.sh (NOP): Likewise.
3163         * emulparams/aarch64linux.sh (NOP): Likewise.
3164         * emulparams/aarch64linux32.sh (NOP): Likewise.
3165         * testsuite/ld-aarch64/erratum835769.d: Adjust for added nop.
3166         * testsuite/ld-aarch64/erratum843419.d: Likewise.
3167         * testsuite/ld-aarch64/farcall-b-defsym.d: Likewise.
3168         * testsuite/ld-aarch64/farcall-b-none-function.d: Likewise.
3169         * testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
3170         * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
3171         * testsuite/ld-aarch64/farcall-b.d: Likewise.
3172         * testsuite/ld-aarch64/farcall-back.d: Likewise.
3173         * testsuite/ld-aarch64/farcall-bl-defsym.d: Likewise.
3174         * testsuite/ld-aarch64/farcall-bl-none-function.d: Likewise.
3175         * testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
3176         * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
3177         * testsuite/ld-aarch64/farcall-bl.d: Likewise.
3178
3179 2018-03-01  Alan Modra  <amodra@gmail.com>
3180
3181         * configure.ac (ALL_LINGUAS): Add ja.  Sort.
3182         * configure: Regenerate.
3183
3184 2018-02-28  Douglas B Rupp  <rupp@adacore.com>
3185
3186         * ldmain.c (main): Remove directory separator, if any, from the
3187         end of the canonicalized sysroot.
3188
3189 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3190
3191         * NEWS: Mention --enable-separate-code.
3192         * configure.ac: Add --enable-separate-code.
3193         (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED.
3194         * configure.tgt: Default ac_default_ld_z_separate_code to 1 for
3195         Linux/x86 targets.
3196         * config.in: Regenerated.
3197         * configure: Likewise.
3198         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
3199         link_info.separate_code DEFAULT_LD_Z_SEPARATE_CODE.
3200
3201 2018-02-26  Alan Modra  <amodra@gmail.com>
3202
3203         * emulparams/call_nop.sh, * emulparams/cet.sh,
3204         * emulparams/elf32mcore.sh, * emultempl/aarch64elf.em
3205         * emultempl/aix.em, * emultempl/alphaelf.em, * emultempl/armcoff.em,
3206         * emultempl/armelf.em, * emultempl/avrelf.em, * emultempl/beos.em,
3207         * emultempl/bfin.em, * emultempl/cr16elf.em, * emultempl/elf32.em,
3208         * emultempl/elf-generic.em, * emultempl/hppaelf.em,
3209         * emultempl/linux.em, * emultempl/lnk960.em,
3210         * emultempl/m68hc1xelf.em, * emultempl/m68kcoff.em,
3211         * emultempl/m68kelf.em, * emultempl/metagelf.em,
3212         * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
3213         * emultempl/mmo.em, * emultempl/msp430.em, * emultempl/nds32elf.em,
3214         * emultempl/nios2elf.em, * emultempl/pe.em, * emultempl/pep.em,
3215         * emultempl/ppc32elf.em, * emultempl/ppc64elf.em,
3216         * emultempl/scoreelf.em, * emultempl/sh64elf.em,
3217         * emultempl/spuelf.em, * emultempl/sunos.em, * emultempl/tic6xdsbt.em,
3218         * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
3219         * emultempl/vxworks.em, * emultempl/xtensaelf.em, * ldcref.c,
3220         * ldctor.c, * ldexp.c, * ldfile.c, * ldgram.y, * ldlang.c,
3221         * ldmain.c, * ldmisc.c, * ldwrite.c, * lexsup.c, * mri.c, * pe-dll.c,
3222         * plugin.c: Standardize error/warning messages.
3223         * testsuite/ld-arc/jli-overflow.err,
3224         * testsuite/ld-arm/cmse-implib-errors.out,
3225         * testsuite/ld-arm/cmse-new-earlier-later-implib.out,
3226         * testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out,
3227         * testsuite/ld-arm/cmse-new-wrong-implib.out,
3228         * testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out,
3229         * testsuite/ld-arm/cmse-veneers-wrong-entryfct.out,
3230         * testsuite/ld-arm/vxworks1-static.d,
3231         * testsuite/ld-cris/tls-err-20x.d, * testsuite/ld-cris/tls-err-29.d,
3232         * testsuite/ld-cris/tls-err-31.d, * testsuite/ld-cris/tls-err-33.d,
3233         * testsuite/ld-cris/tls-err-35.d, * testsuite/ld-cris/tls-err-37.d,
3234         * testsuite/ld-cris/tls-err-39.d, * testsuite/ld-cris/tls-err-41.d,
3235         * testsuite/ld-cris/tls-err-43.d, * testsuite/ld-cris/tls-err-45.d,
3236         * testsuite/ld-cris/tls-err-47.d, * testsuite/ld-cris/tls-err-49.d,
3237         * testsuite/ld-cris/tls-err-51.d, * testsuite/ld-cris/tls-err-67.d,
3238         * testsuite/ld-elf/dwarf2.err, * testsuite/ld-elf/dwarf3.err,
3239         * testsuite/ld-elf/orphan-5.l, * testsuite/ld-elf/orphan-6.l,
3240         * testsuite/ld-i386/vxworks1-static.d,
3241         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d,
3242         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d,
3243         * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d,
3244         * testsuite/ld-mips-elf/bal-jalx-pic-n32.d,
3245         * testsuite/ld-mips-elf/bal-jalx-pic-n64.d,
3246         * testsuite/ld-mips-elf/bal-jalx-pic.d,
3247         * testsuite/ld-mips-elf/jal-global-overflow-1.d,
3248         * testsuite/ld-mips-elf/jal-local-overflow-1.d,
3249         * testsuite/ld-mips-elf/mode-change-error-1.d,
3250         * testsuite/ld-mips-elf/unaligned-branch-2.d,
3251         * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d,
3252         * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d,
3253         * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d,
3254         * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d,
3255         * testsuite/ld-mips-elf/unaligned-branch-micromips.d,
3256         * testsuite/ld-mips-elf/unaligned-branch-mips16.d,
3257         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d,
3258         * testsuite/ld-mips-elf/unaligned-branch-r6-2.d,
3259         * testsuite/ld-mips-elf/unaligned-branch.d,
3260         * testsuite/ld-mips-elf/unaligned-jalx-1.d,
3261         * testsuite/ld-mips-elf/unaligned-jalx-3.d,
3262         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d,
3263         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d,
3264         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d,
3265         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d,
3266         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d,
3267         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d,
3268         * testsuite/ld-mips-elf/unaligned-jump-micromips.d,
3269         * testsuite/ld-mips-elf/unaligned-jump-mips16.d,
3270         * testsuite/ld-mips-elf/unaligned-jump.d,
3271         * testsuite/ld-mips-elf/unaligned-ldpc-1.d,
3272         * testsuite/ld-mips-elf/unaligned-lwpc-1.d,
3273         * testsuite/ld-mips-elf/undefined.d,
3274         * testsuite/ld-mips-elf/vxworks1-static.d,
3275         * testsuite/ld-mmix/bpo-20.d, * testsuite/ld-mmix/bpo-20m.d,
3276         * testsuite/ld-mmix/bpo-7.d, * testsuite/ld-mmix/bpo-7m.d,
3277         * testsuite/ld-mmix/bpo-8.d, * testsuite/ld-mmix/bpo-8m.d,
3278         * testsuite/ld-mmix/greg-17.d, * testsuite/ld-mmix/greg-18.d,
3279         * testsuite/ld-mmix/greg-8.d, * testsuite/ld-mmix/greg-9.d,
3280         * testsuite/ld-plugin/plugin-14.d, * testsuite/ld-plugin/plugin-15.d,
3281         * testsuite/ld-plugin/plugin-16.d, * testsuite/ld-plugin/plugin-20.d,
3282         * testsuite/ld-plugin/plugin-21.d, * testsuite/ld-plugin/plugin-22.d,
3283         * testsuite/ld-plugin/plugin-23.d, * testsuite/ld-plugin/plugin-6.d,
3284         * testsuite/ld-plugin/plugin-7.d, * testsuite/ld-plugin/plugin-8.d,
3285         * testsuite/ld-powerpc/aix-weak-3-32.d,
3286         * testsuite/ld-powerpc/aix-weak-3-64.d,
3287         * testsuite/ld-powerpc/vxworks1-static.d,
3288         * testsuite/ld-sh/vxworks1-static.d,
3289         * testsuite/ld-sparc/vxworks1-static.d,
3290         * testsuite/ld-undefined/undefined.exp,
3291         * testsuite/ld-x86-64/pie1.d: Update for changed errors and warnings.
3292         * testsuite/ld-elf/warn1.d, * testsuite/ld-elf/warn2.d: Correct regex.
3293
3294 2018-02-26  Alan Modra  <amodra@gmail.com>
3295
3296         * Makefile.am (EMULATION_FILES, POTFILES): Delete.
3297         (SRC_POTFILES, BLD_POTFILES): Define.
3298         (po/POTFILES.in): Delete rule.
3299         (po/SRC-POTFILES.in, po/BLD-POTFILES.in): New rules.
3300         * configure.ac: Add AC_CONFIG_COMMANDS to create po/Makefile.
3301         * po/Make-in (DISTFILES): Remove POTFILES.in, add SRC-POTFILES.in
3302         and BLD-POTFILES.in.
3303         (POTFILES): Delete.
3304         (SRC-POTFILES, BLD-POTFILES): Define place marker.
3305         (ld.pot): Build from SRC-POTFILES plus BLD-POTFILES.
3306         (distclean, maintainer-clean): Tidy up new files.
3307         (POTFILES, POTFILES.in): Delete rules.
3308         (SRC-POTFILES, BLD-POTFILES, SRC-POTFILES.in, BLD-POTFILES.in):
3309         New rules.
3310         (Makefile): Depend on SRC-POTFILES and BLD-POTFILES.
3311         * po/SRC-POTFILES.in: Rename from po/POTFILES.in.
3312         * po/BLD-POTFILES.in: New file.
3313         * Makefile.in: Regenerate.
3314         * configure: Regenerate.
3315
3316 2018-02-26  Alan Modra  <amodra@gmail.com>
3317
3318         * testsuite/ld-cris/pcrelcp-1.d,
3319         * testsuite/ld-mmix/start-2.d: Update.
3320
3321 2018-02-26  Alan Modra  <amodra@gmail.com>
3322
3323         * testsuite/ld-arm/cmse-implib-errors.out,
3324         * testsuite/ld-arm/cmse-new-earlier-later-implib.out,
3325         * testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out,
3326         * testsuite/ld-arm/cmse-new-wrong-implib.out,
3327         * testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out,
3328         * testsuite/ld-arm/cmse-veneers-wrong-entryfct.out,
3329         * testsuite/ld-cris/badgotr1.d,
3330         * testsuite/ld-cris/tls-err-24.d,
3331         * testsuite/ld-cris/tls-err-25.d,
3332         * testsuite/ld-cris/tls-err-26.d,
3333         * testsuite/ld-cris/tls-err-27.d,
3334         * testsuite/ld-cris/tls-err-28.d,
3335         * testsuite/ld-cris/tls-err-40.d,
3336         * testsuite/ld-cris/tls-err-44.d,
3337         * testsuite/ld-cris/tls-err-48.d,
3338         * testsuite/ld-cris/tls-err-52.d,
3339         * testsuite/ld-cris/tls-err-53.d,
3340         * testsuite/ld-cris/tls-err-55.d,
3341         * testsuite/ld-cris/tls-err-56.d,
3342         * testsuite/ld-cris/tls-err-62.d,
3343         * testsuite/ld-cris/tls-err-65.d,
3344         * testsuite/ld-cris/tls-err-77.d,
3345         * testsuite/ld-elf/empty-implib.out,
3346         * testsuite/ld-elf/indirect.exp: Update.
3347
3348 2018-02-26  Alan Modra  <amodra@gmail.com>
3349
3350         * testsuite/ld-aarch64/reloc-overflow-bad.d,
3351         * testsuite/ld-arm/attr-merge-9.out,
3352         * testsuite/ld-arm/attr-merge-arch-2.d,
3353         * testsuite/ld-arm/attr-merge-unknown-1.d,
3354         * testsuite/ld-arm/attr-merge-unknown-2.d,
3355         * testsuite/ld-arm/attr-merge-unknown-2r.d,
3356         * testsuite/ld-arm/attr-merge-unknown-3.d,
3357         * testsuite/ld-arm/cmse-implib-errors.out,
3358         * testsuite/ld-arm/cmse-new-earlier-later-implib.out,
3359         * testsuite/ld-arm/cmse-new-implib-no-output.out,
3360         * testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out,
3361         * testsuite/ld-arm/cmse-new-implib.out,
3362         * testsuite/ld-arm/cmse-new-wrong-implib.out,
3363         * testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out,
3364         * testsuite/ld-arm/cmse-veneers-wrong-entryfct.out,
3365         * testsuite/ld-arm/group-relocs-alu-bad-2.d,
3366         * testsuite/ld-arm/group-relocs-alu-bad.d,
3367         * testsuite/ld-arm/group-relocs-ldc-bad-2.d,
3368         * testsuite/ld-arm/group-relocs-ldc-bad.d,
3369         * testsuite/ld-arm/group-relocs-ldr-bad-2.d,
3370         * testsuite/ld-arm/group-relocs-ldr-bad.d,
3371         * testsuite/ld-arm/group-relocs-ldrs-bad-2.d,
3372         * testsuite/ld-arm/group-relocs-ldrs-bad.d,
3373         * testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d: Update.
3374
3375 2018-02-26  Alan Modra  <amodra@gmail.com>
3376
3377         * testsuite/ld-mips-elf/attr-gnu-4-12.d,
3378         * testsuite/ld-mips-elf/attr-gnu-4-13.d,
3379         * testsuite/ld-mips-elf/attr-gnu-4-14.d,
3380         * testsuite/ld-mips-elf/attr-gnu-4-16.d,
3381         * testsuite/ld-mips-elf/attr-gnu-4-17.d,
3382         * testsuite/ld-mips-elf/attr-gnu-4-18.d,
3383         * testsuite/ld-mips-elf/attr-gnu-4-19.d,
3384         * testsuite/ld-mips-elf/attr-gnu-4-21.d,
3385         * testsuite/ld-mips-elf/attr-gnu-4-23.d,
3386         * testsuite/ld-mips-elf/attr-gnu-4-24.d,
3387         * testsuite/ld-mips-elf/attr-gnu-4-25.d,
3388         * testsuite/ld-mips-elf/attr-gnu-4-26.d,
3389         * testsuite/ld-mips-elf/attr-gnu-4-27.d,
3390         * testsuite/ld-mips-elf/attr-gnu-4-28.d,
3391         * testsuite/ld-mips-elf/attr-gnu-4-29.d,
3392         * testsuite/ld-mips-elf/attr-gnu-4-31.d,
3393         * testsuite/ld-mips-elf/attr-gnu-4-32.d,
3394         * testsuite/ld-mips-elf/attr-gnu-4-34.d,
3395         * testsuite/ld-mips-elf/attr-gnu-4-35.d,
3396         * testsuite/ld-mips-elf/attr-gnu-4-36.d,
3397         * testsuite/ld-mips-elf/attr-gnu-4-37.d,
3398         * testsuite/ld-mips-elf/attr-gnu-4-38.d,
3399         * testsuite/ld-mips-elf/attr-gnu-4-39.d,
3400         * testsuite/ld-mips-elf/attr-gnu-4-41.d,
3401         * testsuite/ld-mips-elf/attr-gnu-4-42.d,
3402         * testsuite/ld-mips-elf/attr-gnu-4-43.d,
3403         * testsuite/ld-mips-elf/attr-gnu-4-45.d,
3404         * testsuite/ld-mips-elf/attr-gnu-4-46.d,
3405         * testsuite/ld-mips-elf/attr-gnu-4-47.d,
3406         * testsuite/ld-mips-elf/attr-gnu-4-48.d,
3407         * testsuite/ld-mips-elf/attr-gnu-4-49.d,
3408         * testsuite/ld-mips-elf/attr-gnu-4-52.d,
3409         * testsuite/ld-mips-elf/attr-gnu-4-53.d,
3410         * testsuite/ld-mips-elf/attr-gnu-4-54.d,
3411         * testsuite/ld-mips-elf/attr-gnu-4-58.d,
3412         * testsuite/ld-mips-elf/attr-gnu-4-59.d,
3413         * testsuite/ld-mips-elf/attr-gnu-4-61.d,
3414         * testsuite/ld-mips-elf/attr-gnu-4-62.d,
3415         * testsuite/ld-mips-elf/attr-gnu-4-63.d,
3416         * testsuite/ld-mips-elf/attr-gnu-4-64.d,
3417         * testsuite/ld-mips-elf/attr-gnu-4-68.d,
3418         * testsuite/ld-mips-elf/attr-gnu-4-69.d,
3419         * testsuite/ld-mips-elf/attr-gnu-4-71.d,
3420         * testsuite/ld-mips-elf/attr-gnu-4-72.d,
3421         * testsuite/ld-mips-elf/attr-gnu-4-73.d,
3422         * testsuite/ld-mips-elf/attr-gnu-4-74.d,
3423         * testsuite/ld-mips-elf/attr-gnu-4-78.d,
3424         * testsuite/ld-mips-elf/attr-gnu-4-79.d,
3425         * testsuite/ld-mips-elf/attr-gnu-4-81.d,
3426         * testsuite/ld-mips-elf/attr-gnu-4-89.d,
3427         * testsuite/ld-mips-elf/attr-gnu-8-12.d,
3428         * testsuite/ld-mips-elf/attr-gnu-8-21.d,
3429         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d,
3430         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d,
3431         * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d,
3432         * testsuite/ld-mips-elf/bal-jalx-pic-n32.d,
3433         * testsuite/ld-mips-elf/bal-jalx-pic-n64.d,
3434         * testsuite/ld-mips-elf/bal-jalx-pic.d,
3435         * testsuite/ld-mips-elf/mode-change-error-1.d,
3436         * testsuite/ld-mips-elf/unaligned-branch-2.d,
3437         * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d,
3438         * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d,
3439         * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d,
3440         * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d,
3441         * testsuite/ld-mips-elf/unaligned-branch-micromips.d,
3442         * testsuite/ld-mips-elf/unaligned-branch-mips16.d,
3443         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d,
3444         * testsuite/ld-mips-elf/unaligned-branch-r6-2.d,
3445         * testsuite/ld-mips-elf/unaligned-branch.d,
3446         * testsuite/ld-mips-elf/unaligned-jalx-1.d,
3447         * testsuite/ld-mips-elf/unaligned-jalx-3.d,
3448         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d,
3449         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d,
3450         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d,
3451         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d,
3452         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d,
3453         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d,
3454         * testsuite/ld-mips-elf/unaligned-jump-micromips.d,
3455         * testsuite/ld-mips-elf/unaligned-jump-mips16.d,
3456         * testsuite/ld-mips-elf/unaligned-jump.d: Update.
3457
3458 2018-02-26  Alan Modra  <amodra@gmail.com>
3459
3460         * testsuite/ld-elf/indirect.exp,
3461         * testsuite/ld-elf/pr22649-2ab-mips.msg,
3462         * testsuite/ld-elf/pr22649-2cd-mips.msg,
3463         * testsuite/ld-elf/pr22649.msg,
3464         * testsuite/ld-elf/tls_common.exp,
3465         * testsuite/ld-elfcomm/elfcomm.exp,
3466         * testsuite/ld-arm/attr-merge-incompatible.d,
3467         * testsuite/ld-tic6x/attr-compatibility-gnu-other.d,
3468         * testsuite/ld-tic6x/attr-compatibility-other-gnu.d,
3469         * testsuite/ld-tic6x/attr-compatibility-other-other.d,
3470         * testsuite/ld-i386/warn1.d: Update expected error/warning messages.
3471
3472 2018-02-26  Alan Modra  <amodra@gmail.com>
3473
3474         * testsuite/ld-powerpc/attr-gnu-12-21.d,
3475         * testsuite/ld-powerpc/attr-gnu-4-12.d,
3476         * testsuite/ld-powerpc/attr-gnu-4-13.d,
3477         * testsuite/ld-powerpc/attr-gnu-4-21.d,
3478         * testsuite/ld-powerpc/attr-gnu-4-23.d,
3479         * testsuite/ld-powerpc/attr-gnu-4-31.d,
3480         * testsuite/ld-powerpc/attr-gnu-4-32.d,
3481         * testsuite/ld-powerpc/attr-gnu-8-23.d: Update.
3482
3483 2018-02-21  Alan Modra  <amodra@gmail.com>
3484
3485         * testsuite/ld-elf/group8b.d: Run test on ia64.  Use xfail rather
3486         than notarget.
3487         * testsuite/ld-elf/pr12851.d: Likewise.
3488         * testsuite/ld-elf/pr12975.d: Likewise.
3489         * testsuite/ld-elf/pr13177.d: Likewise.
3490         * testsuite/ld-elf/pr13195.d: Likewise.
3491         * testsuite/ld-elf/pr17615.d: Likewise.
3492         * testsuite/ld-elf/pr21562a.d: Likewise.
3493         * testsuite/ld-elf/pr21562b.d: Likewise.
3494         * testsuite/ld-elf/pr21562c.d: Likewise.
3495         * testsuite/ld-elf/pr21562d.d: Likewise.
3496         * testsuite/ld-elf/pr21562i.d: Likewise.
3497         * testsuite/ld-elf/pr21562j.d: Likewise.
3498         * testsuite/ld-elf/pr21562k.d: Likewise.
3499         * testsuite/ld-elf/pr21562l.d: Likewise.
3500         * testsuite/ld-elf/pr21562m.d: Likewise.
3501         * testsuite/ld-elf/pr21562n.d: Likewise.
3502         * testsuite/ld-elf/group9a.d: Run test on ia64 and alpha.  Use xfail
3503         rather than notarget.
3504         * testsuite/ld-elf/group9b.d: Likewise.
3505         * testsuite/ld-elf/pr22677.d: Likewise.
3506
3507 2018-02-19  Maciej W. Rozycki  <macro@mips.com>
3508
3509         * testsuite/ld-mips-elf/reginfo-0.d: New test.
3510         * testsuite/ld-mips-elf/reginfo-0r.d: New test.
3511         * testsuite/ld-mips-elf/reginfo-1.d: New test.
3512         * testsuite/ld-mips-elf/reginfo-1r.d: New test.
3513         * testsuite/ld-mips-elf/reginfo-2.d: New test.
3514         * testsuite/ld-mips-elf/reginfo-2r.d: New test.
3515         * testsuite/ld-mips-elf/mips-abiflags-0.d: New test.
3516         * testsuite/ld-mips-elf/mips-abiflags-0r.d: New test.
3517         * testsuite/ld-mips-elf/mips-abiflags-1.d: New test.
3518         * testsuite/ld-mips-elf/mips-abiflags-1r.d: New test.
3519         * testsuite/ld-mips-elf/mips-abiflags-2.d: New test.
3520         * testsuite/ld-mips-elf/mips-abiflags-2r.d: New test.
3521         * testsuite/ld-mips-elf/reginfo-0.ld: New test linker script.
3522         * testsuite/ld-mips-elf/reginfo-1.ld: New test linker script.
3523         * testsuite/ld-mips-elf/mips-abiflags-0.ld: New test linker
3524         script.
3525         * testsuite/ld-mips-elf/mips-abiflags-1.ld: New test linker
3526         script.
3527         * testsuite/ld-mips-elf/reginfo-1.s: New test source.
3528         * testsuite/ld-mips-elf/reginfo-2.s: New test source.
3529         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
3530
3531 2018-02-19  Maciej W. Rozycki  <macro@mips.com>
3532
3533         * ldlang.c (insert_pad): Do not change output section's size if
3534         SEC_FIXED_SIZE is set in the flags.
3535         (size_input_section): Likewise.
3536         (lang_size_sections_1): Likewise.
3537         (lang_reset_memory_regions): Likewise.
3538
3539 2018-02-19  Alan Modra  <amodra@gmail.com>
3540
3541         * ldmisc.c (vfinfo) Handle %pI, %pR, %pS and %pT in place of
3542         %I, %R, %S and %T.
3543         * ldcref.c, * ldctor.c, * ldemul.c, * ldexp.c, * ldgram.y,
3544         * ldlang.c, * ldlex.l, * ldmain.c, * ldmisc.c, * pe-dll.c,
3545         * emultempl/sh64elf.em: Replace use of of %I, %R, %S and %T in
3546         format strings passed to einfo and friends by %pI, %pR, %pS and %pT.
3547
3548 2018-02-19  Alan Modra  <amodra@gmail.com>
3549
3550         * ldmisc.c (vfinfo): Handle %pA and %pB in place of %A and %B.
3551         * ldcref.c: Update all messages using %A and %B.
3552         * ldexp.c: Likewise.
3553         * ldlang.c: Likewise.
3554         * ldmain.c: Likewise.
3555         * ldmisc.c: Likewise.
3556         * pe-dll.c: Likewise.
3557         * plugin.c: Likewise.
3558         * emultempl/beos.em: Likewise.
3559         * emultempl/cr16elf.em: Likewise.
3560         * emultempl/elf32.em: Likewise.
3561         * emultempl/m68kcoff.em: Likewise.
3562         * emultempl/m68kelf.em: Likewise.
3563         * emultempl/mmo.em: Likewise.
3564         * emultempl/nds32elf.em: Likewise.
3565         * emultempl/pe.em: Likewise.
3566         * emultempl/pep.em: Likewise.
3567         * emultempl/spuelf.em: Likewise.
3568         * emultempl/sunos.em: Likewise.
3569         * emultempl/xtensaelf.em: Likewise.
3570
3571 2018-02-19  H.J. Lu  <hongjiu.lu@intel.com>
3572
3573         PR ld/22845
3574         * testsuite/ld-elf/frame.exp: Skip if -shared isn't supported.
3575         Add tests for "-z noseparate-code" and "-z separate-code".
3576         Remove unsupported -shared check.
3577
3578 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3579
3580         PR ld/22845
3581         * testsuite/ld-elf/ehdr_start.d: Pass --build-id to ld.
3582
3583 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3584
3585         PR ld/22845
3586         * testsuite/ld-elf/binutils.exp (tls_opts): Add tests for
3587         "-z noseparate-code" and "-z separate-code".
3588
3589 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3590
3591         PR ld/22845
3592         * ld-elf/eh4.d: Pass -z max-page-size=0x200000 -z noseparate-code
3593         to ld.
3594
3595 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3596
3597         * testsuite/ld-x86-64/bnd-branch-1-now.d: Add  -z
3598         max-page-size=0x200000 -z noseparate-code.
3599         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
3600         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
3601         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
3602         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
3603         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
3604         * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
3605         * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
3606         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
3607         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
3608         * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
3609         * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
3610         * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
3611         * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
3612         * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
3613         * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
3614         * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
3615         * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
3616         * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
3617         * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
3618         * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
3619         * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
3620         * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
3621         * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
3622         * testsuite/ld-x86-64/load1a.d: Likewise.
3623         * testsuite/ld-x86-64/load1b.d: Likewise.
3624         * testsuite/ld-x86-64/load1c.d: Likewise.
3625         * testsuite/ld-x86-64/load1d.d: Likewise.
3626         * testsuite/ld-x86-64/pie3.d: Likewise.
3627         * testsuite/ld-x86-64/pr14207.d: Likewise.
3628         * testsuite/ld-x86-64/pr17618.d: Likewise.
3629         * testsuite/ld-x86-64/pr19162.d: Likewise.
3630         * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
3631         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
3632         * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
3633         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
3634         * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
3635         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
3636         * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
3637         * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
3638         * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
3639         * testsuite/ld-x86-64/pr20830a.d: Likewise.
3640         * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
3641         * testsuite/ld-x86-64/pr20830b.d: Likewise.
3642         * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
3643         * testsuite/ld-x86-64/pr21038a.d: Likewise.
3644         * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
3645         * testsuite/ld-x86-64/pr21038b.d: Likewise.
3646         * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
3647         * testsuite/ld-x86-64/pr21038c.d: Likewise.
3648
3649 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3650
3651         * testsuite/ld-x86-64/bnd-ifunc-1.d: Updated.
3652         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
3653
3654 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3655
3656         * testsuite/ld-x86-64/mpx.exp: Add -z max-page-size=0x200000
3657         -z noseparate-code.
3658
3659 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3660
3661         * testsuite/ld-x86-64/x86-64.exp: Add -z noseparate-code
3662         -z max-page-size=0x200000, excluding NaCl target.
3663
3664 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3665
3666         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
3667         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
3668         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
3669         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
3670         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
3671         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
3672         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
3673
3674 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3675
3676         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Add
3677          -z max-page-size=0x200000 -z noseparate-code.
3678         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
3679         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
3680         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
3681         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
3682         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
3683         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
3684
3685 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3686
3687         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated for i386.
3688         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
3689         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
3690
3691 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3692
3693         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
3694         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
3695         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
3696
3697 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3698
3699         * testsuite/ld-i386/ibt-plt-1.d: Add -z noseparate-code.
3700         * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
3701         * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
3702         * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
3703         * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
3704         * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
3705         * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
3706         * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
3707         * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
3708         * testsuite/ld-i386/load1.d: Likewise.
3709         * testsuite/ld-i386/pie1.d: Likewise.
3710         * testsuite/ld-i386/pr20244-1a.d: Likewise.
3711         * testsuite/ld-i386/pr20244-1b.d: Likewise.
3712         * testsuite/ld-i386/pr20244-2a.d: Likewise.
3713         * testsuite/ld-i386/pr20244-2b.d: Likewise.
3714         * testsuite/ld-i386/pr20244-2c.d: Likewise.
3715         * testsuite/ld-i386/pr20244-4a.d: Likewise.
3716         * testsuite/ld-i386/pr20244-4b.d: Likewise.
3717         * testsuite/ld-i386/pr20830.d: Likewise.
3718
3719 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3720
3721         * testsuite/ld-i386/pr19636-1a.d: Updated.
3722         * testsuite/ld-i386/pr19636-1b.d: Likewise.
3723         * testsuite/ld-i386/pr19636-1j.d: Likewise.
3724         * testsuite/ld-i386/pr19636-1k.d: Likewise.
3725         * testsuite/ld-i386/pr19636-2a.d: Likewise.
3726         * testsuite/ld-i386/pr19636-2b.d: Likewise.
3727
3728 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3729
3730         * testsuite/ld-i386/i386.exp: Add -z noseparate-code.
3731
3732 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3733
3734         * testsuite/ld-elf/pr19162.d: Add -z noseparate-code.
3735         * testsuite/ld-elf/textaddr1.d: Likewise.
3736         * testsuite/ld-elf/textaddr2.d: Likewise.
3737         * testsuite/ld-elf/textaddr4.d: Likewise.
3738         * testsuite/ld-elf/textaddr6.d: Likewise.
3739
3740 2018-02-15  Jim Wilson  <jimw@sifive.com>
3741
3742         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run pcrel-lo-addend test.
3743         * testsuite/ld-riscv-elf/pcrel-lo-addend.d: New.
3744         * testsuite/ld-riscv-elf/pcrel-lo-addend.s: New.
3745
3746 2018-02-14  H.J. Lu  <hongjiu.lu@intel.com>
3747
3748         PR ld/22842
3749         * testsuite/ld-i386/i386.exp: Run PR ld/22842 tests.
3750         * testsuite/ld-x86-64/x86-64.exp: Likewise.
3751         * testsuite/ld-i386/pr22842a.c: New file.
3752         * testsuite/ld-i386/pr22842b.S: Likewise.
3753         * testsuite/ld-x86-64/pr22842a.c: Likewise.
3754         * testsuite/ld-x86-64/pr22842a.rd: Likewise.
3755         * testsuite/ld-x86-64/pr22842b.S: Likewise.
3756         * testsuite/ld-x86-64/pr22842b.rd: Likewise.
3757
3758 2018-02-14  Maciej W. Rozycki  <macro@mips.com>
3759
3760         * ldlex.h (ldlex_command): Remove prototype.
3761
3762 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
3763
3764         * testsuite/ld-x86-64/x86-64.exp: Replace pr22393-2a.so and
3765         pr22393-2a-now.so with pr22393-3a.so and pr22393-3a-now.so.
3766
3767 2018-02-14  H.J. Lu  <hongjiu.lu@intel.com>
3768
3769         PR 22836
3770         * testsuite/ld-elf/pr22836-1.s: New file.
3771         * testsuite/ld-elf/pr22836-1a.d: Likewise.
3772         * testsuite/ld-elf/pr22836-1b.d: Likewise.
3773
3774 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
3775
3776         PR gas/22791
3777         * testsuite/ld-x86-64/mpx1c.rd: Updated.
3778         * testsuite/ld-x86-64/pr22791-1.err: New file.
3779         * testsuite/ld-x86-64/pr22791-1a.c: Likewise.
3780         * testsuite/ld-x86-64/pr22791-1b.s: Likewise.
3781         * testsuite/ld-x86-64/pr22791-2.rd: Likewise.
3782         * testsuite/ld-x86-64/pr22791-2a.s: Likewise.
3783         * testsuite/ld-x86-64/pr22791-2b.c: Likewise.
3784         * testsuite/ld-x86-64/pr22791-2c.s: Likewise.
3785         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22791 tests.
3786
3787 2018-02-13  Alan Modra  <amodra@gmail.com>
3788
3789         PR 22836
3790         * testsuite/ld-elf/pr22836-2.d,
3791         * testsuite/ld-elf/pr22836-2.s: New test.
3792
3793 2018-02-13  Alan Modra  <amodra@gmail.com>
3794
3795         * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
3796
3797 2018-02-07  Alan Modra  <amodra@gmail.com>
3798
3799         Revert 2018-01-17  Alan Modra  <amodra@gmail.com>
3800         * emultempl/ppc32elf.em: Remove --speculate-indirect-jumps support.
3801         * emultempl/ppc64elf.em: Likesize
3802         * ld.texinfo: Likewise
3803         * testsuite/ld-powerpc/elfv2exe.d,
3804         * testsuite/ld-powerpc/elfv2so.d,
3805         * testsuite/ld-powerpc/relbrlt.d,
3806         * testsuite/ld-powerpc/powerpc.exp: Likewise.
3807
3808 2018-02-06  Eric Botcazou  <ebotcazou@adacore.com>
3809
3810         * testsuite/ld-elf/tls.exp (AFLAGS_PIC): Define on SPARC.
3811         (pr22263-1): Pass AFLAGS_PIC to the assembler.
3812         * testsuite/ld-sparc/tlspie32.s: Add test for other 3 transitions.
3813         * testsuite/ld-sparc/tlspie32.dd: Adjust to above.
3814         * testsuite/ld-sparc/tlspie64.s: Add test for other 3 transitions.
3815         * testsuite/ld-sparc/tlspie64.dd: Adjust to above.
3816
3817 2018-02-05  Renlin Li  <renlin.li@arm.com>
3818
3819         PR ld/22764
3820         * testsuite/ld-aarch64/emit-relocs-258.s: Define symbol as an address.
3821         * testsuite/ld-aarch64/emit-relocs-259.s: Likewise.
3822         * testsuite/ld-aarch64/pr22764.s: New.
3823         * testsuite/ld-aarch64/pr22764.d: New.
3824
3825 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
3826
3827         PR ld/22782
3828         * testsuite/ld-i386/discarded1.s: Replace mov with div.
3829         * testsuite/ld-x86-64/discarded1.s: Likewise.
3830         * testsuite/ld-i386/i386.exp: Run pr22782.
3831         * testsuite/ld-i386/load1-nacl.d: Updated for removing
3832         _GLOBAL_OFFSET_TABLE_ from output.
3833         * testsuite/ld-i386/load1.d: Likewise.
3834         * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
3835         * testsuite/ld-x86-64/load1a.d: Likewise.
3836         * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
3837         * testsuite/ld-x86-64/load1b.d: Likewise.
3838         * testsuite/ld-i386/pr22782.d: New file.
3839         * testsuite/ld-i386/pr22782.s: Likewise.
3840         * testsuite/ld-x86-64/pr22782.s: Likewise.
3841         * testsuite/ld-x86-64/pr22782a.d: Likewise.
3842         * testsuite/ld-x86-64/pr22782b.d: Likewise.
3843         * testsuite/ld-x86-64/x86-64.exp: Run pr22782a and pr22782b.
3844
3845 2018-02-05  Nick Clifton  <nickc@redhat.com>
3846
3847         * po/pt_BR.po: Updated Brazilian Portuguese translation.
3848
3849 2018-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3850
3851         * testsuite/ld-i386/lea1d.d: Replace -Sw with -SW.
3852         * testsuite/ld-i386/lea1e.d: Likewise.
3853         * testsuite/ld-i386/lea1f.d: Likewise.
3854         * testsuite/ld-x86-64/lea1g.d: Likewise.
3855         * testsuite/ld-x86-64/lea1h.d: Likewise.
3856         * testsuite/ld-x86-64/lea1i.d: Likewise.
3857         * testsuite/ld-x86-64/lea1j.d: Likewise.
3858         * testsuite/ld-x86-64/lea1k.d: Likewise.
3859         * testsuite/ld-x86-64/lea1l.d: Likewise.
3860
3861 2018-02-03  Nick Clifton  <nickc@redhat.com>
3862
3863         PR 22762
3864         * scripttempl/pe.sc: Remove PROVIDE()s from __CTOR_LIST__ and
3865         __DTOR_LIST__ symbols.  Add a comment explaining why this is
3866         necessary.
3867         * scripttemp/pep.sc: Likewise.
3868         * ld.texinfo (PROVIDE): Add a note about the effect of common
3869         symbols.
3870
3871 2018-02-03  Sandra Loosemore  <sandra@codesourcery.com>
3872
3873         * emulparams/nios2elf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
3874
3875 2018-02-02  Maciej W. Rozycki  <macro@mips.com>
3876
3877         * testsuite/ld-elf/shared.exp: Add $AFLAGS_PIC throughout to PIC
3878         assembly builds where missing and remove `tic6x-*-*' XFAIL
3879         markings accordingly.
3880
3881 2018-02-01  Simon Marchi  <simon.marchi@ericsson.com>
3882
3883         * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
3884         on NULL pointer.
3885
3886 2018-01-31  H.J. Lu  <hongjiu.lu@intel.com>
3887
3888         * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
3889
3890 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
3891
3892         * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
3893
3894 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
3895
3896         * testsuite/ld-elf/comm-data.exp: Pass `-call_shared' to links
3897         involving a shared library for `mips*vr4100*-*-elf*',
3898         `mips*vr4300*-*-elf*' and `mips*vr5000*-*-elf*' targets.
3899         * testsuite/ld-elf/provide-hidden.exp: Likewise.
3900         * testsuite/ld-elf/shared.exp: Likewise.
3901         * testsuite/ld-gc/gc.exp: Likewise.
3902         * testsuite/ld-mips-elf/comm-data.exp: Likewise.
3903
3904 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
3905
3906         * testsuite/ld-elf/elf.exp: Move shared library tests over to...
3907         * testsuite/ld-elf/shared.exp: ... here.
3908
3909 2018-01-31  Michael Matz  <matz@suse.de>
3910
3911         * testsuite/ld-elf/pr21964-5.c: New test.
3912         * testsuite/ld-elf/shared.exp: Run it.
3913
3914 2018-01-31  H.J. Lu  <hongjiu.lu@intel.com>
3915
3916         PR ld/21964
3917         * testsuite/ld-elf/pr21964-4.c: New file.
3918         * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
3919
3920 2018-01-30  Alan Modra  <amodra@gmail.com>
3921
3922         * testsuite/ld-gc/stop.d,
3923         * testsuite/ld-gc/stop.s: New test.
3924         * testsuite/ld-gc/gc.exp: Run it.
3925
3926 2018-01-30  Maciej W. Rozycki  <macro@mips.com>
3927
3928         PR ld/22649
3929         * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
3930         * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
3931         * testsuite/ld-elf/shared.exp: Use the new outputs with
3932         `mips*-*-*' targets.
3933
3934 2018-01-30  Maciej W. Rozycki  <macro@mips.com>
3935
3936         * testsuite/ld-elf/comm-data1.sd: Alternatively accept
3937         `PRC[0xff02]' in place of a regular section index.
3938         * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
3939
3940 2018-01-29  Alan Modra  <amodra@gmail.com>
3941
3942         * testsuite/ld-elf/pr21964-3a.c: New file.
3943         * testsuite/ld-elf/pr21964-3c.c: New file.
3944         * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
3945
3946 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
3947
3948         * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
3949         (pr22269-1): Pass AFLAGS_PIC to the assembler.
3950
3951 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
3952
3953         * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
3954
3955 2018-01-29  Maciej W. Rozycki  <macro@mips.com>
3956
3957         * testsuite/ld-mips-elf/comm-data.exp: Correct support for
3958         targets using non-traditional MIPS emulation or having a limited
3959         selection of ABIs available.  Don't force big endianness, use
3960         defaults.
3961
3962 2018-01-29  H.J. Lu  <hongjiu.lu@intel.com>
3963
3964         PR ld/22732
3965         * testsuite/config/default.exp (STATIC_LDFLAGS): New.  Set to
3966         "-static" if target compiler supports it.
3967         * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
3968         tests if target compiler doesn't support it.
3969         * testsuite/ld-ifunc/ifunc.exp: Likewise.
3970         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
3971         (run_cc_link_tests): Likewise.
3972
3973 2018-01-27  H.J. Lu  <hongjiu.lu@intel.com>
3974
3975         PR ld/22751
3976         * testsuite/config/default.exp (INT128_CFLAGS): New.
3977         * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
3978         Run ld/22751 tests.
3979         * testsuite/ld-plugin/pr22751.c: New file.
3980         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
3981         ld trailing options.
3982
3983 2018-01-28  Alan Modra  <amodra@gmail.com>
3984
3985         PR 22751
3986         * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
3987         set.
3988
3989 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
3990
3991         * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
3992         `mipself'.
3993
3994 2018-01-25  Eric Botcazou  <ebotcazou@adacore.com>
3995
3996         * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
3997         Link with a version script.
3998         (32-bit: TLS -fpie): New test.
3999         (64-bit: Helper shared library): Link with a version script.
4000         (64-bit: TLS -fpie): New test.
4001         (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
4002         * testsuite/ld-sparc/tlslib.ver: New file.
4003         * testsuite/ld-sparc/tlspie32.dd: Likewise.
4004         * testsuite/ld-sparc/tlspie32.s: Likewise.
4005         * testsuite/ld-sparc/tlspie64.dd: Likewise.
4006         * testsuite/ld-sparc/tlspie64.s: Likewise.
4007         * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
4008         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
4009         * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
4010         * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
4011         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
4012         * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
4013
4014 2018-01-24  Renlin Li  <renlin.li@arm.com>
4015
4016         * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
4017         * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
4018         * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
4019         * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
4020         * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
4021         * testsuite/ld-aarch64/emit-relocs-288.d: New.
4022         * testsuite/ld-aarch64/emit-relocs-288.s: New.
4023         * testsuite/ld-aarch64/emit-relocs-289.d: New.
4024         * testsuite/ld-aarch64/emit-relocs-289.s: New.
4025         * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
4026         * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
4027         * testsuite/ld-aarch64/emit-relocs-290.d: New.
4028         * testsuite/ld-aarch64/emit-relocs-290.s: New.
4029         * testsuite/ld-aarch64/emit-relocs-291.d: New.
4030         * testsuite/ld-aarch64/emit-relocs-291.s: New.
4031         * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
4032         * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
4033         * testsuite/ld-aarch64/emit-relocs-292.d: New.
4034         * testsuite/ld-aarch64/emit-relocs-292.s: New.
4035         * testsuite/ld-aarch64/emit-relocs-293.d: New.
4036         * testsuite/ld-aarch64/emit-relocs-293.s: New.
4037
4038 2018-01-20  H.J. Lu  <hongjiu.lu@intel.com>
4039
4040         PR ld/22721
4041         * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
4042         * testsuite/ld-plugin/pr22721.t: New file.
4043         * testsuite/ld-plugin/pr22721a.s: Likewise.
4044         * testsuite/ld-plugin/pr22721b.c: Likewise.
4045
4046 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4047
4048         * testsuite/ld-elf/group1.d: Also xfail Solaris.
4049
4050 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4051
4052         * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
4053         PLT/GOT order/layout for Solaris/x86 targets.
4054         * testsuite/ld-elf/linkinfo1b.d: Likewise.
4055
4056 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4057
4058         PR ld/22728
4059         * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
4060         into ...
4061         (elf_solaris2_before_allocation): This.
4062         (LDEMUL_AFTER_ALLOCATION): Removed.
4063
4064 2018-01-18  Alan Modra  <amodra@gmail.com>
4065
4066         * emultempl/ppc32elf.em: Support optional --plt-align arg.
4067         * emultempl/ppc64elf.em: Support negative --plt-align arg.
4068
4069 2018-01-17  Alan Modra  <amodra@gmail.com>
4070
4071         * emultempl/ppc32elf.em (params): Init new field.
4072         (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
4073         (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
4074         (PARSE_AND_LIST_LONGOPTS): Handle new options.
4075         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4076         (PARSE_AND_LIST_OPTIONS): Likewise.
4077         * emultempl/ppc64elf.em (params): Init new field.
4078         (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
4079         (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
4080         (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
4081         (PARSE_AND_LIST_OPTIONS): Likewise.
4082         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4083         * ld.texinfo (--no-plt-thread-safe): Correct itemx.
4084         (--speculate-indirect-jumps): Document.
4085         * testsuite/ld-powerpc/elfv2exe.d,
4086         * testsuite/ld-powerpc/elfv2so.d,
4087         * testsuite/ld-powerpc/relbrlt.d,
4088         * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
4089         speculation barriers on various tests.
4090
4091 2018-01-17  Alan Modra  <amodra@gmail.com>
4092
4093         * emultempl/ppc32elf.em (params): Init new field.
4094         (enum ppc32_opt): New enum to define OPTION_* values.  Add
4095         OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
4096         (PARSE_AND_LIST_LONGOPTS): Handle new options.
4097         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4098         (PARSE_AND_LIST_OPTIONS): Likewise.  Break up help output.
4099         * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
4100         correctly for negative --plt-stub-align.
4101         * testsuite/ld-powerpc/elfv2exe.d,
4102         * testsuite/ld-powerpc/elfv2so.d,
4103         * testsuite/ld-powerpc/relbrlt.d,
4104         * testsuite/ld-powerpc/relbrlt.s,
4105         * testsuite/ld-powerpc/tlsexe.d,
4106         * testsuite/ld-powerpc/tlsexe.r,
4107         * testsuite/ld-powerpc/tlsexe32.d,
4108         * testsuite/ld-powerpc/tlsexe32.g,
4109         * testsuite/ld-powerpc/tlsexe32.r,
4110         * testsuite/ld-powerpc/tlsexetoc.d,
4111         * testsuite/ld-powerpc/tlsexetoc.r,
4112         * testsuite/ld-powerpc/tlsopt5_32.d,
4113         * testsuite/ld-powerpc/tlsso.d,
4114         * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
4115
4116 2018-01-16  Nick Clifton  <nickc@redhat.com>
4117
4118         * po/pt_BR.po: Updated Brazilian Portuguese translation.
4119
4120 2018-01-15  Nick Clifton  <nickc@redhat.com>
4121
4122         * po/uk.po: Updated Ukranian translation.
4123
4124 2018-01-13  Nick Clifton  <nickc@redhat.com>
4125
4126         * po/ld.pot: Regenerated.
4127
4128 2018-01-13  Nick Clifton  <nickc@redhat.com>
4129
4130         * configure: Regenerate.
4131
4132 2018-01-13  Nick Clifton  <nickc@redhat.com>
4133
4134         2.30 branch created.
4135         * NEWS: Add marker for 2.30.
4136
4137 2018-01-12  Alan Modra  <amodra@gmail.com>
4138
4139         * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
4140         initialization" for currently failing targets.
4141
4142 2018-01-12  Alan Modra  <amodra@gmail.com>
4143
4144         PR ld/22649
4145         * testsuite/ld-elf/pr22649.msg: Allow other messages.
4146         * testsuite/ld-elf/shared.exp: Check that --gc-sections is
4147         supported before running ld/22649 tests.
4148
4149 2018-01-12  Nick Clifton  <nickc@redhat.com>
4150
4151         * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
4152         as the opposite of "-z defs".
4153         * ld.texinfo: Document the new option.  Update the description of
4154         the -z defs option to make it clear that it does generate an error
4155         if an undefined symbol reference is found in an object file whilst
4156         creating a shared library.
4157         * NEWS: Document this new feature.
4158
4159 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4160
4161         * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
4162         "-z separate-code".
4163         * testsuite/ld-elf/pr22393-2b.rd: Likewise.
4164         * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
4165         * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
4166
4167 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4168
4169         PR ld/22393
4170         * testsuite/ld-x86-64/pr22393-3a.c: New file.
4171         * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
4172         * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
4173         * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
4174         * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
4175         -z max-page-size=0x1000.
4176
4177 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4178
4179         PR ld/22393
4180         * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
4181         * testsuite/ld-elf/pr22393-1.s: New file.
4182         * testsuite/ld-elf/pr22393-1a.d: Likewise.
4183         * testsuite/ld-elf/pr22393-1b.d: Likewise.
4184         * testsuite/ld-elf/pr22393-1c.d: Likewise.
4185         * testsuite/ld-elf/pr22393-1d.d: Likewise.
4186         * testsuite/ld-elf/pr22393-1e.d: Likewise.
4187         * testsuite/ld-elf/pr22393-1f.d: Likewise.
4188         * testsuite/ld-elf/pr22393-2a.c: Likewise.
4189         * testsuite/ld-elf/pr22393-2a.rd: Likewise.
4190         * testsuite/ld-elf/pr22393-2b.c: Likewise.
4191         * testsuite/ld-elf/pr22393-2b.rd: Likewise.
4192         * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
4193
4194 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4195
4196         PR ld/22393
4197         * NEWS: Mention "-z separate-code".
4198         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
4199         builtin linker scripts and return linker scripts from disk for
4200         "-z separate-code".
4201         (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
4202         and "-z noseparate-code".
4203         * genscripts.sh: Generate linker scripts for "-z separate-code".
4204         (LD_FLAG): Set to *textonly for "-z separate-code".
4205         * ld.texinfo: Document "-z separate-code".
4206         * lexsup.c (elf_shlib_list_options): Add linker help messsages
4207         for "-z separate-code" and "-z noseparate-code".
4208         * scripttempl/elf.sc (SEPARATE_TEXT): New
4209         (TEXT_SEGMENT_ALIGN): Likewise.
4210         Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
4211         ${MAXPAGESIZE}.
4212
4213 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4214
4215         PR ld/22649
4216         * testsuite/ld-elf/pr22649-1.s: New file.
4217         * testsuite/ld-elf/pr22649-2a.s: Likewise.
4218         * testsuite/ld-elf/pr22649-2b.s: Likewise.
4219         * testsuite/ld-elf/pr22649.msg: Likewise.
4220         * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
4221
4222 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4223
4224         PR ld/22677
4225         * scripttempl/elf.sc (PREINIT_ARRAY): New.
4226         Don't add .preinit_array for ld -r.
4227         * testsuite/ld-elf/pr22677.d: New file.
4228         * testsuite/ld-elf/pr22677.s: Likewise.
4229
4230 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
4231
4232         * ldexp.h (union etree_union): Remove defsym field.
4233         * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
4234         parameter.
4235         (exp_assign): Remove passing of defsym parameter.
4236         (exp_defsym): Likewise.
4237         (exp_provide): Likewise.
4238
4239 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
4240
4241         * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
4242         nodes are ignored in the tree walk, and move the location at which
4243         we change provide nodes into provided nodes.
4244         (exp_init_os): Add etree_provided.
4245         * testsuite/ld-scripts/provide-6.d: New file.
4246         * testsuite/ld-scripts/provide-6.t: New file.
4247         * testsuite/ld-scripts/provide-7.d: New file.
4248         * testsuite/ld-scripts/provide-7.t: New file.
4249         * testsuite/ld-scripts/provide-8.d: New file.
4250         * testsuite/ld-scripts/provide-8.t: New file.
4251
4252 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
4253
4254         * testsuite/ld-scripts/provide-3.d: Add xfail directive.
4255         * testsuite/ld-scripts/provide-4.d: Use new map file name.
4256         * testsuite/ld-scripts/provide-5.d: Use new map file name.
4257         * testsuite/ld-scripts/provide-4-map.d: Renamed to...
4258         * testsuite/ld-scripts/provide-4.map: ...this.
4259         * testsuite/ld-scripts/provide-5-map.d: Renamed to...
4260         * testsuite/ld-scripts/provide-5.map: ...this.
4261         * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
4262         file, and run tests in a loop.
4263
4264 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
4265
4266         * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
4267         PROVIDE statements.
4268         * testsuite/ld-scripts/provide-4.map: Update expected output.
4269         * testsuite/ld-scripts/provide-5.map: Likewise.
4270
4271 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4272
4273         PR ld/22696
4274         * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
4275
4276 2018-01-09  Jim Wilson  <jimw@sifive.com>
4277
4278         * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
4279         (#alltargets): Renamed from #target.  Add shared.
4280         * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
4281         Document alltargets option.  Add support for alltargets option.
4282         (istarget): Add support for shared target.
4283
4284 2018-01-08  Jim Wilson  <jimw@sifive.com>
4285
4286         * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared.  Check for _start
4287         instead of .text.
4288         * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
4289         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
4290         tests, add call to check_shared_lib_support.
4291
4292 2018-01-05  Jim Wilson  <jimw@sifive.com>
4293
4294         * testsuite/ld-riscv-elf/disas-jalr.d: New.
4295         * testsuite/ld-riscv-elf/disas-jalr.s: New.
4296         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
4297
4298         * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
4299         case on $target, and don't set for riscv*-elf targets.
4300         (GENERATE_PIE_SCRIPT): Likewise.
4301
4302 2018-01-03  Alan Modra  <amodra@gmail.com>
4303
4304         Update year range in copyright notice of all files.
4305
4306 For older changes see ChangeLog-2017
4307 \f
4308 Copyright (C) 2018 Free Software Foundation, Inc.
4309
4310 Copying and distribution of this file, with or without modification,
4311 are permitted in any medium without royalty provided the copyright
4312 notice and this notice are preserved.
4313
4314 Local Variables:
4315 mode: change-log
4316 left-margin: 8
4317 fill-column: 74
4318 version-control: never
4319 End: