Ignore broken plugins
[external/binutils.git] / ld / ChangeLog
1 2019-10-12  Nick Clifton  <nickc@redhat.com>
2
3         Release 2.33.1
4         * configure: Regenerate.
5         * po/ld.pot: Regenerate.
6
7 2019-10-11  Alan Modra  <amodra@gmail.com>
8
9         Apply from master
10         2019-10-09  Alan Modra  <amodra@gmail.com>
11         PR 25081
12         * ldlang.c (lang_size_sections_1): Set lma from section vma
13         rather than dot.
14
15 2019-10-10  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16
17         Apply from master
18         2019-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19         PR ld/25062
20         * testsuite/ld-arm/arm-elf.exp: Update.
21         * testsuite/ld-arm/tls-gdesc-neg.d: New test.
22         * testsuite/ld-arm/tls-gdesc-neg.s: New test.
23
24 2019-10-09  Alan Modra  <amodra@gmail.com>
25
26         Apply from master
27         2019-10-04  Alan Modra  <amodra@gmail.com>
28         * testsuite/ld-powerpc/tlsso.d: Adjust to suit tlsld_got usage change.
29         * testsuite/ld-powerpc/tlsso.g: Likewise.
30         * testsuite/ld-powerpc/tlsso.r: Likewise.
31         * testsuite/ld-powerpc/tlsso32.d: Likewise.
32         * testsuite/ld-powerpc/tlsso32.g: Likewise.
33         * testsuite/ld-powerpc/tlsso32.r: Likewise.
34
35         2019-09-26  Alan Modra  <amodra@gmail.com>
36         PR 24262
37         * ld.texi (-plugin): Revert 2019-03-15 change.
38
39 2019-09-30  Phil Blundell  <pb@pbcl.net>
40
41         Release 2.33
42         * configure, Makefile.in, po/ld.pot: Regenerate.
43
44 2019-09-25  Alan Modra  <amodra@gmail.com>
45
46         Apply from master
47         2019-09-22  Alan Modra  <amodra@gmail.com>
48         * testsuite/ld-srec/sr3.cc (FOO_MSG_LEN): Set to 4.
49
50 2019-09-19  Alan Modra  <amodra@gmail.com>
51
52         PR 24981
53         Apply 2019-09-12  Alan Modra  <amodra@gmail.com>
54         * ldlang.c (lang_process): Remove assertion.  Comment.
55
56 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
57
58         PR binutils/24887
59         * testsuite/ld-i386/property-1.r: Adjust for new output format
60         from readelf.
61         * testsuite/ld-i386/property-1a.r: Likewise.
62         * testsuite/ld-i386/property-2.r: Likewise.
63         * testsuite/ld-i386/property-2a.r: Likewise.
64         * testsuite/ld-i386/property-3.r: Likewise.
65         * testsuite/ld-i386/property-3a.r: Likewise.
66         * testsuite/ld-i386/property-4.r: Likewise.
67         * testsuite/ld-i386/property-4a.r: Likewise.
68         * testsuite/ld-i386/property-5.r: Likewise.
69         * testsuite/ld-i386/property-5a.r: Likewise.
70         * testsuite/ld-i386/property-6.r: Likewise.
71         * testsuite/ld-i386/property-7.r: Likewise.
72         * testsuite/ld-i386/property-7a.r: Likewise.
73         * testsuite/ld-i386/property-1.r: Likewise.
74         * testsuite/ld-i386/property-1a.r: Likewise.
75         * testsuite/ld-i386/property-2.r: Likewise.
76         * testsuite/ld-i386/property-2a.r: Likewise.
77         * testsuite/ld-i386/property-3.r: Likewise.
78         * testsuite/ld-i386/property-3a.r: Likewise.
79         * testsuite/ld-i386/property-4.r: Likewise.
80         * testsuite/ld-i386/property-4a.r: Likewise.
81         * testsuite/ld-i386/property-5.r: Likewise.
82         * testsuite/ld-i386/property-5a.r: Likewise.
83         * testsuite/ld-i386/property-6.r: Likewise.
84         * testsuite/ld-i386/property-7.r: Likewise.
85         * testsuite/ld-i386/property-7a.r: Likewise.
86
87 2019-09-16  Phil Blundell  <pb@pbcl.net>
88
89         * configure, Makefile.in: Regenerated.
90
91 2019-09-09  Phil Blundell  <pb@pbcl.net>
92
93         binutils 2.33 branch created.
94
95 2019-09-06  Alan Modra  <amodra@gmail.com>
96
97         * emultempl/beos.em (sort_by_file_name): Use appropriate
98         intermediary variables.
99         (sort_by_section_name): Likewise.
100
101 2019-09-06  Alan Modra  <amodra@gmail.com>
102
103         * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Constify
104         variable.
105         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
106         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
107
108 2019-09-05  Eric Botcazou  <ebotcazou@adacore.com>
109
110         PR ld/24574
111         * pe-dll.c (pe_find_data_imports): Replace again the original name of
112         the undefined symbol with the __imp_ prefixed one after it is resolved.
113
114 2019-09-05  Alan Modra  <amodra@gmail.com>
115
116         * testsuite/ld-powerpc/pcrelopt.s,
117         * testsuite/ld-powerpc/pcrelopt.d: Test offset and prefix in
118         second instruction.
119
120 2019-08-29  Alan Modra  <amodra@gmail.com>
121
122         PR ld/24406
123         * plugin.c (get_symbols): Test link_info.wrap_hash before calling
124         unwrap_hash_lookup.
125
126 2019-08-22  Tamar Christina  <tamar.christina@arm.com>
127
128         PR ld/24601
129         * testsuite/ld-aarch64/aarch64-elf.exp (undef-tls, weak-tls): New.
130         * testsuite/ld-aarch64/undef-tls.d: New test.
131         * testsuite/ld-aarch64/undef-tls.s: New test.
132         * testsuite/ld-aarch64/weak-tls.d: New test.
133         * testsuite/ld-aarch64/weak-tls.s: New test.
134
135 2019-08-20  Tamar Christina  <tamar.christina@arm.com>
136
137         * testsuite/ld-arm/cortex-a8-fix-b-plt.d: Update Testcase.
138         * testsuite/ld-arm/cortex-a8-fix-b-rel-arm.d: Likewise.
139         * testsuite/ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
140         * testsuite/ld-arm/farcall-cond-thumb-arm.d: Likewise.
141         * testsuite/ld-arm/farcall-mixed-app.d: Likewise.
142         * testsuite/ld-arm/farcall-mixed-app2.d: Likewise.
143         * testsuite/ld-arm/farcall-mixed-lib-v4t.d: Likewise.
144         * testsuite/ld-arm/farcall-thumb-arm-pic-veneer.d: Likewise.
145         * testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
146         * testsuite/ld-arm/farcall-thumb-arm.d: Likewise.
147         * testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
148         * testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
149         * testsuite/ld-arm/fix-arm1176-on.d: Likewise.
150         * testsuite/ld-arm/ifunc-10.dd: Likewise.
151         * testsuite/ld-arm/ifunc-2.dd: Likewise.
152         * testsuite/ld-arm/ifunc-4.dd: Likewise.
153         * testsuite/ld-arm/ifunc-6.dd: Likewise.
154         * testsuite/ld-arm/ifunc-8.dd: Likewise.
155         * testsuite/ld-arm/jump-reloc-veneers-long.d: Likewise.
156         * testsuite/ld-arm/mixed-app.d: Likewise.
157         * testsuite/ld-arm/thumb2-b-interwork.d: Likewise.
158         * testsuite/ld-arm/tls-longplt.d: Likewise.
159         * testsuite/ld-arm/tls-thumb1.d: Likewise.
160
161 2019-08-16  H.J. Lu  <hongjiu.lu@intel.com>
162
163         PR ld/24905
164         * testsuite/ld-x86-64/pr24905-x32.d: New file.
165         * testsuite/ld-x86-64/pr24905.d: Likewise.
166         * testsuite/ld-x86-64/pr24905.s: Likewise.
167         * testsuite/ld-x86-64/pr24905.t: Likewise.
168         * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
169
170 2019-08-16  Christophe Lyon  <christophe.lyon@linaro.org>
171
172         * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
173         section.
174
175 2019-08-16  Alan Modra  <amodra@gmail.com>
176
177         * emultempl/ppc32elf.em (ppc_before_allocation): Force running
178         prelim_size_sections before deciding whether branch trampolines
179         might be needed.
180
181 2019-08-15  Jim Wilson  <jimw@sifive.com>
182
183         * testsuite/ld-riscv-elf/c-lui-2.d: New.
184         * testsuite/ld-riscv-elf/c-lui-2.ld: New.
185         * testsuite/ld-riscv-elf/c-lui-2.s: New.
186         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
187
188 2019-08-10  Alan Modra  <amodra@gmail.com>
189
190         * ldlang.h (enum statement_enum): Sort.
191         (union lang_statement_union): Sort.
192
193 2019-08-10  Alan Modra  <amodra@gmail.com>
194
195         * ldlang.h (lang_common_statement_type): Delete.
196         (lang_object_symbols_statement_type): Delete.
197         (union lang_statement_union): Remove common_statement and
198         object_symbols_statement.
199
200 2019-08-10  Alan Modra  <amodra@gmail.com>
201
202         * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
203         (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
204         stat_alloc return value.
205         * ldlang.c (new_statement, new_afile, sort_def_symbol),
206         (lang_memory_region_lookup, lang_memory_region_alias),
207         (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
208         (lang_add_gc_name, lang_new_phdr): Likewise.
209         * lexsup.c (set_segment_start): Likewise.
210
211 2019-08-10  Alan Modra  <amodra@gmail.com>
212
213         * ldlang.h (lang_input_statement_type): Make next
214         and next_real_file a lang_input_statement_type pointer.
215         (lang_statement_append): Delete prototype.
216         (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
217         change.
218         * ldmain.c (add_archive_element): Likewise.
219         * ldlang.c: Likewise throughout.
220         (lang_statement_append): Make static.  Make element and field
221         void pointers.  Remove casts in calls.
222         (lang_check): Use a lang_input_statement_type pointer for "file".
223         (find_rescan_insertion): Similarly for "iter" and return value.
224         (lang_process): Similarly for "insert", "iter" and "temp".
225         * emultempl/spuelf.em (embedded_spu_file): Likewise.
226         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
227         lang_statment_append call.
228
229 2019-08-09  Mihailo Stojanovic  <mihailo.stojanovic@rt-rk.com>
230
231         * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
232         * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
233         * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
234         * emultempl/mipself.em: Remove mips_after_parse function.
235         * testsuite/ld-elf/hash.d: Update comment.
236         * testsuite/ld-mips-elf/hash1.d: New test.
237         * testsuite/ld-mips-elf/hash1.s: Ditto.
238         * testsuite/ld-mips-elf/hash1a.d: Remove.
239         * testsuite/ld-mips-elf/hash1b.d: Ditto.
240         * testsuite/ld-mips-elf/hash1c.d: Ditto
241         * testsuite/ld-mips-elf/hash2.d: New test.
242         * testsuite/ld-mips-elf/mips-elf.exp: New tests.
243         * testsuite/ld-mips-elf/start.s: New test.
244
245 2019-08-08  Nick Clifton  <nickc@redhat.com>
246
247         PR 24887
248         * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
249         from readelf.
250         * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
251         * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
252         * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
253         * testsuite/ld-aarch64/bti-warn.d: Likewise.
254         * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
255         * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
256         * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
257         * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
258         * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
259         * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
260         * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
261         * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
262         * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
263         * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
264         * testsuite/ld-i386/pr23372a.d: Likewise.
265         * testsuite/ld-i386/pr23372c.d: Likewise.
266         * testsuite/ld-i386/pr23486a.d: Likewise.
267         * testsuite/ld-i386/pr23486b.d: Likewise.
268         * testsuite/ld-i386/pr23486c.d: Likewise.
269         * testsuite/ld-i386/pr23486d.d: Likewise.
270         * testsuite/ld-i386/pr24322a.d: Likewise.
271         * testsuite/ld-i386/pr24322b.d: Likewise.
272         * testsuite/ld-i386/property-x86-3.d: Likewise.
273         * testsuite/ld-i386/property-x86-4a.d: Likewise.
274         * testsuite/ld-i386/property-x86-5.d: Likewise.
275         * testsuite/ld-i386/property-x86-cet1.d: Likewise.
276         * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
277         * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
278         * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
279         * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
280         * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
281         * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
282         * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
283         * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
284         * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
285         * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
286         * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
287         * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
288         * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
289         * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
290         * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
291         * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
292         * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
293         * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
294         * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
295         * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
296         * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
297         * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
298         * testsuite/ld-x86-64/pr23372a.d: Likewise.
299         * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
300         * testsuite/ld-x86-64/pr23372c.d: Likewise.
301         * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
302         * testsuite/ld-x86-64/pr23486a.d: Likewise.
303         * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
304         * testsuite/ld-x86-64/pr23486b.d: Likewise.
305         * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
306         * testsuite/ld-x86-64/pr23486c.d: Likewise.
307         * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
308         * testsuite/ld-x86-64/pr23486d.d: Likewise.
309         * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
310         * testsuite/ld-x86-64/pr24322a.d: Likewise.
311         * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
312         * testsuite/ld-x86-64/pr24322b.d: Likewise.
313         * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
314         * testsuite/ld-x86-64/pr24458a.d: Likewise.
315         * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
316         * testsuite/ld-x86-64/pr24458b.d: Likewise.
317         * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
318         * testsuite/ld-x86-64/pr24458c.d: Likewise.
319         * testsuite/ld-x86-64/property-1.r: Likewise.
320         * testsuite/ld-x86-64/property-1a.r: Likewise.
321         * testsuite/ld-x86-64/property-2.r: Likewise.
322         * testsuite/ld-x86-64/property-2a.r: Likewise.
323         * testsuite/ld-x86-64/property-3.r: Likewise.
324         * testsuite/ld-x86-64/property-3a.r: Likewise.
325         * testsuite/ld-x86-64/property-4.r: Likewise.
326         * testsuite/ld-x86-64/property-4a.r: Likewise.
327         * testsuite/ld-x86-64/property-5.r: Likewise.
328         * testsuite/ld-x86-64/property-5a.r: Likewise.
329         * testsuite/ld-x86-64/property-6.r: Likewise.
330         * testsuite/ld-x86-64/property-7.r: Likewise.
331         * testsuite/ld-x86-64/property-7a.r: Likewise.
332         * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
333         * testsuite/ld-x86-64/property-x86-3.d: Likewise.
334         * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
335         * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
336         * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
337         * testsuite/ld-x86-64/property-x86-5.d: Likewise.
338         * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
339         * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
340         * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
341         * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
342         * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
343         * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
344         * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
345         * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
346         * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
347         * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
348         * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
349         * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
350         * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
351         * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
352         * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
353         * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
354         * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
355         * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
356         * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
357         * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
358         * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
359         * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
360         * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
361         * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
362         * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
363         * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
364         * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
365         * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
366         * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
367         * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
368         * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
369         * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
370         * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
371         * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
372         * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
373         * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
374
375 2019-08-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
376
377         * scripttempl/elf64bpf.sc: Adapted from elf.sc.
378         * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
379         (EMBEDDED): Define.
380         * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
381         undefined entry symbol.
382         * testsuite/ld-bpf/jump-1.d: Likewise.
383         * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
384         ld in BPF targets, and do not expect line number information.
385         * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
386         in BPF targets.
387
388 2019-08-06  Alan Modra  <amodra@gmail.com>
389
390         PR 24873
391         * ldlang.c (find_replacements_insert_point): Return "before" flag.
392         (find_next_input_statement): New function.
393         (lang_process): When placing recompiled LTO objects before a
394         claimed archive, place them immediately before in the statement
395         list.
396
397 2019-08-06  Alan Modra  <amodra@gmail.com>
398
399         PR 24873
400         * ldlang.c (plugin_undefs): New static var.
401         (open_input_bfds <lang_group_statement_enum>): Loop on
402         plugin_undefs and hitting plugin_insert point.
403         (lang_process <lto_plugin_active>): Set plugin_undefs.
404
405 2019-08-02  Alan Modra  <amodra@gmail.com>
406
407         * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
408
409 2019-08-01  Alan Modra  <amodra@gmail.com>
410
411         PR 24806
412         * ldlang.c (process_insert_statements): Add start of list
413         parameter.  Use rather than lang_os_list.head.  Process insert
414         statements inside group statements with a recursive call.
415         (lang_process): Adjust process_insert_statements call.
416         * lexsup.c (parse_args): Warn when adding missing --end-group.
417
418 2019-08-01  Alan Modra  <amodra@gmail.com>
419
420         * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
421         * ldlang.c: Likewise throughout file.
422         * emultempl/alphaelf.em: Likewise.
423         * emultempl/elf32.em: Likewise.
424         * emultempl/mmo.em: Likewise.
425         * emultempl/pe.em: Likewise.
426         * emultempl/pep.em: Likewise.
427         * emultempl/ppc32elf.em: Likewise.
428         * emultempl/spuelf.em: Likewise.
429
430 2019-07-26  Alan Modra  <amodra@gmail.com>
431
432         * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
433         * testsuite/ld-plugin/lto-5r.d: Likewise.
434
435 2019-07-24  H.J. Lu  <hongjiu.lu@intel.com>
436
437         * testsuite/ld-plugin/lto-3r.d: Restored.  Check foo instead
438         of __gnu_lto_v.*.
439         * testsuite/ld-plugin/lto-5r.d: Likewise.
440         * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
441
442 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
443
444         * ld-arc/relax-local-pic.d: New test.
445         * ld-arc/relax-local-pic.s: New file.
446
447 2019-07-22  Martin Liska  <mliska@suse.cz>
448
449         * testsuite/ld-plugin/lto-3r.d: Remove.
450         * testsuite/ld-plugin/lto-5r.d: Remove.
451         * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
452         tests.
453
454 2019-07-23  Alan Modra  <amodra@gmail.com>
455
456         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
457         SHF_GNU_MBIND on osabi.  Set output elf_gnu_osabi_mbind.
458
459 2019-07-23  Alan Modra  <amodra@gmail.com>
460
461         * testsuite/ld-elf/size-1.d,
462         * testsuite/ld-elf/size-1.s,
463         * testsuite/ld-elf/size-1.t: New test.
464         * testsuite/ld-elf/size-2.d,
465         * testsuite/ld-elf/size-2.s,
466         * testsuite/ld-elf/size-2.t: New test.
467         * testsuite/ld-scripts/size-1.d,
468         * testsuite/ld-scripts/size-1.s,
469         * testsuite/ld-scripts/size-1.t,
470         * testsuite/ld-scripts/size-2.s,
471         * testsuite/ld-scripts/size-2.d,
472         * testsuite/ld-scripts/size-2.t,
473         * testsuite/ld-scripts/size.exp: Delete.
474
475 2019-07-22  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
476
477         * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
478         allow for output from a arm-none-linux-gnueabihf target.
479
480 2019-07-20  Alan Modra  <amodra@gmail.com>
481
482         PR 24827
483         * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
484
485 2019-07-19  Alan Modra  <amodra@gmail.com>
486
487         * testsuite/ld-powerpc/tlsgd.d,
488         * testsuite/ld-powerpc/tlsgd.s,
489         * testsuite/ld-powerpc/tlsie.d,
490         * testsuite/ld-powerpc/tlsie.s,
491         * testsuite/ld-powerpc/tlsld.d,
492         * testsuite/ld-powerpc/tlsld.s: New tests.
493         * testsuite/ld-powerpc/powerpc.exp: Run them.
494
495 2019-07-19  Alan Modra  <amodra@gmail.com>
496
497         * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
498         * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
499         * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
500         * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
501         * testsuite/ld-powerpc/powerpc.exp: Update.
502
503 2019-07-19  Alan Modra  <amodra@gmail.com>
504
505         PR 24819
506         * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
507
508 2019-07-18  H.J. Lu  <hongjiu.lu@intel.com>
509
510         PR ld/24819
511         * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
512         member of output section group when doing a relocatable link.
513         * testsuite/ld-elf/pr24819.d: New file.
514         * testsuite/ld-elf/pr24819.s: Likewise.
515
516 2019-07-13  Alan Modra  <amodra@gmail.com>
517
518         * testsuite/ld-powerpc/tlsso.r: Update.
519         * testsuite/ld-powerpc/tlsso32.g: Update.
520         * testsuite/ld-powerpc/tlsso32.r: Update.
521         * testsuite/ld-powerpc/tlstocso.r: Update.
522         * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
523         * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
524         * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
525         * testsuite/ld-cris/tls-gd-1.d: Update.
526         * testsuite/ld-cris/tls-gd-1h.d: Update.
527         * testsuite/ld-cris/tls-gd-2.d: Update.
528         * testsuite/ld-cris/tls-gd-2h.d: Update.
529         * testsuite/ld-cris/tls-ie-10.d: Update.
530         * testsuite/ld-cris/tls-ie-11.d: Update.
531         * testsuite/ld-cris/tls-ie-8.d: Update.
532         * testsuite/ld-cris/tls-ie-9.d: Update.
533         * testsuite/ld-cris/tls-js1.d: Update.
534         * testsuite/ld-cris/tls-ld-4.d: Update.
535         * testsuite/ld-cris/tls-ld-5.d: Update.
536         * testsuite/ld-cris/tls-ld-6.d: Update.
537         * testsuite/ld-cris/tls-ld-7.d: Update.
538         * testsuite/ld-cris/tls-ldgd-14.d: Update.
539         * testsuite/ld-cris/tls-ldgd-15.d: Update.
540         * testsuite/ld-cris/tls-ldgdx-14.d: Update.
541         * testsuite/ld-cris/tls-ldgdx-15.d: Update.
542         * testsuite/ld-cris/tls-local-54.d: Update.
543         * testsuite/ld-cris/tls-local-60.d: Update.
544         * testsuite/ld-cris/tls-local-61.d: Update.
545         * testsuite/ld-cris/tls-local-63.d: Update.
546         * testsuite/ld-cris/tls-local-64.d: Update.
547         * testsuite/ld-cris/tls-ok-30.d: Update.
548         * testsuite/ld-cris/tls-ok-32.d: Update.
549         * testsuite/ld-cris/tls-ok-34.d: Update.
550         * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
551         * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
552         * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
553         * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
554         * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
555         * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
556         * testsuite/ld-mips-elf/tlslib-o32.got: Update.
557         * testsuite/ld-s390/tlspic.rd: Update.
558         * testsuite/ld-s390/tlspic_64.rd: Update.
559         * testsuite/ld-sparc/tlssunnopic32.rd: Update.
560         * testsuite/ld-sparc/tlssunnopic64.rd: Update.
561         * testsuite/ld-sparc/tlssunpic32.rd: Update.
562         * testsuite/ld-sparc/tlssunpic64.rd: Update.
563
564 2019-07-13  Alan Modra  <amodra@gmail.com>
565
566         PR 24786
567         * ldlang.h (enum section_type): Add first_overlay_section.
568         * ldlang.c (lang_add_section): Adjust switch statement.
569         (map_input_to_output_sections): Likewise.
570         (lang_size_sections_1): Always set last_os for first overlay section.
571         (lang_leave_overlay): Set sectype to first_overlay_section.
572
573 2019-07-08  Alan Modra  <amodra@gmail.com>
574
575         * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
576         * testsuite/ld-powerpc/callstub-2.d: Likewise.
577
578 2019-07-04  Jan Beulich  <jbeulich@suse.com>
579
580         * testsuite/ld-elf/group9.s: Correct argument of .type.
581
582 2019-07-02  Nick Clifton  <nickc@redhat.com>
583
584         PR 24753
585         * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
586         LINKER_CREATED section flag when creating the stub section.
587
588 2019-07-02  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
589
590         * testsuite/ld-arm/arm-elf.exp: Add tests.
591         * testsuite/ld-arm/cmse_main.s: New test.
592         * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
593         * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
594
595 2019-07-01  Nick Clifton  <nickc@redhat.com>
596
597         PR 23839
598         * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
599         exidx relocs.
600
601 2019-06-28  Alan Modra  <amodra@gmail.com>
602
603         * testsuite/ld-powerpc/callstub-1.d,
604         * testsuite/ld-powerpc/callstub-1.s: New test.
605         * testsuite/ld-powerpc/callstub-2.d,
606         * testsuite/ld-powerpc/callstub-2.s: New test.
607         * testsuite/ld-powerpc/powerpc.exp: Run them.
608
609 2019-06-25  Jan Beulich  <jbeulich@suse.com>
610
611         * plugin.c (get_lto_kind, get_lto_resolution,
612         get_lto_visibility): Rename "index" to "idx".
613
614 2019-06-24  H.J. Lu  <hongjiu.lu@intel.com>
615
616         PR ld/24721
617         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
618         * testsuite/ld-x86-64/pr24721-x32.d: New file.
619         * testsuite/ld-x86-64/pr24721.d: Likewise.
620         * testsuite/ld-x86-64/pr24721.map: Likewise.
621         * testsuite/ld-x86-64/pr24721a.s: Likewise.
622         * testsuite/ld-x86-64/pr24721b.s: Likewise.
623
624 2019-06-23  Alan Modra  <amodra@gmail.com>
625
626         PR 24704
627         * testsuite/ld-powerpc/elfv2exe.d: Update.
628         * testsuite/ld-powerpc/elfv2so.d: Update.
629
630 2019-06-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
631
632         * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
633         * testsuite/ld-aarch64/emit-relocs-22.d: New test.
634         * testsuite/ld-aarch64/emit-relocs-22.s: New test.
635         * testsuite/ld-aarch64/emit-relocs-23.d: New test.
636         * testsuite/ld-aarch64/emit-relocs-23.s: New test.
637
638 2019-06-14  Alan Modra  <amodra@gmail.com>
639
640         * Makefile.in: Regenerate.
641         * configure: Regenerate.
642
643 2019-06-14  Alan Modra  <amodra@gmail.com>
644
645         PR 24662
646         * testsuite/ld-alpha/tlsbin.rd: Update.
647         * testsuite/ld-alpha/tlsbinr.rd: Update.
648         * testsuite/ld-alpha/tlspic.rd: Update.
649
650 2019-06-07  Maciej W. Rozycki  <macro@wdc.com>
651
652         * ld.texi (Options): Also document `-rpath' option restrictions
653         in the description of the option itself.
654
655 2019-06-06  Sudakshina Das  <sudi.das@arm.com>
656
657         * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
658         * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
659         * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
660         * testsuite/ld-aarch64/property-bti-pac4.s: New test.
661
662 2019-06-06  Sudakshina Das  <sudi.das@arm.com>
663
664         * NEWS: Update options names.
665         * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
666         (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
667         (PARSE_AND_LIST_OPTIONS): Update to -z.
668         (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
669         (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
670         (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
671         * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
672         * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
673         * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
674         * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
675         * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
676         * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
677         * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
678         * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
679         * testsuite/ld-aarch64/bti-warn.d: Likewise.
680         * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
681         * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
682
683 2019-05-30  Nick Clifton  <nickc@redhat.com>
684
685         PR 24627
686         * testsuite/ld-elf/ver_def.vd: Update expected output.
687
688 2019-05-30  Alan Modra  <amodra@gmail.com>
689
690         PR 24596
691         * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
692         (EXTRA_EM_FILE): Define to genelf.
693         * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
694
695 2019-05-30  Alan Modra  <amodra@gmail.com>
696
697         * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
698         calls in optional "xfail" args.
699         (run_ld_link_exec_tests): Likewise.
700         (is_generic): New.
701         (uses_genelf): Rename from is_generic_elf.  Delete bogus semicolons.
702         * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
703         * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf.  Delete
704         xfail_implib var.
705         * testsuite/ld-elf/sec64k.exp: Use is_generic.
706         * testsuite/ld-elf/shared.exp: Likewise.
707         * testsuite/ld-discard/extern.d: Use is_generic in xfail.
708         * testsuite/ld-discard/start.d: Likewise.
709         * testsuite/ld-discard/static.d: Likewise.
710         * testsuite/ld-elf/attributes.d: Likewise.
711         * testsuite/ld-elf/group1.d: Likewise.
712         * testsuite/ld-elf/group3b.d: Likewise.
713         * testsuite/ld-elf/group8a.d: Likewise.
714         * testsuite/ld-elf/group8b.d: Likewise.
715         * testsuite/ld-elf/group9a.d: Likewise.
716         * testsuite/ld-elf/group9b.d: Likewise.
717         * testsuite/ld-elf/linkonce2.d: Likewise.
718         * testsuite/ld-elf/merge2.d: Likewise.
719         * testsuite/ld-elf/merge3.d: Likewise.
720         * testsuite/ld-elf/pr12851.d: Likewise.
721         * testsuite/ld-elf/pr12975.d: Likewise.
722         * testsuite/ld-elf/pr13177.d: Likewise.
723         * testsuite/ld-elf/pr13195.d: Likewise.
724         * testsuite/ld-elf/pr17550c.d: Likewise.
725         * testsuite/ld-elf/pr17550d.d: Likewise.
726         * testsuite/ld-elf/pr17615.d: Likewise.
727         * testsuite/ld-elf/pr21562a.d: Likewise.
728         * testsuite/ld-elf/pr21562b.d: Likewise.
729         * testsuite/ld-elf/pr21562c.d: Likewise.
730         * testsuite/ld-elf/pr21562d.d: Likewise.
731         * testsuite/ld-elf/pr21562i.d: Likewise.
732         * testsuite/ld-elf/pr21562j.d: Likewise.
733         * testsuite/ld-elf/pr21562k.d: Likewise.
734         * testsuite/ld-elf/pr21562l.d: Likewise.
735         * testsuite/ld-elf/pr21562m.d: Likewise.
736         * testsuite/ld-elf/pr21562n.d: Likewise.
737         * testsuite/ld-elf/pr22677.d: Likewise.
738         * testsuite/ld-elf/pr22836-1a.d: Likewise.
739         * testsuite/ld-elf/pr22836-1b.d: Likewise.
740         * testsuite/ld-elf/warn3.d: Likewise.
741         * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
742         targets rather than notarget.
743         * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
744         * testsuite/ld-elf/orphan-10.d: Likewise.
745         * testsuite/ld-elf/orphan-9.d: Likewise.
746         * testsuite/ld-elf/orphan-region.d: Likewise.
747         * testsuite/ld-elf/orphan.d: Likewise.
748         * testsuite/ld-elf/orphan3.d: Likewise.
749         * testsuite/ld-elf/pr20528a.d: Likewise.
750         * testsuite/ld-elf/pr20528b.d: Likewise.
751         * testsuite/ld-elf/pr23658-1a.d: Likewise.
752         * testsuite/ld-elf/pr23658-1b.d: Likewise.
753         * testsuite/ld-elf/pr349.d: Likewise.
754         * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
755         targets rather than notarget.
756         * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
757
758 2019-05-28  Faraz Shahbazker  <fshahbazker@wavecomp.com>
759
760         * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
761         for pcrel_hi/pcrel_lo.
762         * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
763         * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
764         * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
765         * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
766         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
767
768 2019-05-28  Alan Modra  <amodra@gmail.com>
769
770         PR 24596
771         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
772         the output is coff before accessing coff tdata.
773         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
774
775 2019-05-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
776
777         * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
778         * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
779
780 2019-05-27  Alan Modra  <amodra@gmail.com>
781
782         PR 24596
783         * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
784         BFS_KEEP on group signature symbol.
785
786 2019-04-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
787
788         * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
789         * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
790         * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
791         * testsuite/ld-aarch64/variant_pcs-now.d: New test.
792         * testsuite/ld-aarch64/variant_pcs-r.d: New test.
793         * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
794         * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
795
796 2019-05-24  Alan Modra  <amodra@gmail.com>
797
798         * po/BLD-POTFILES.in: Regenerate.
799
800 2019-05-24  Alan Modra  <amodra@gmail.com>
801
802         * testsuite/ld-powerpc/notoc2.d,
803         * testsuite/ld-powerpc/notoc2.s: New test.
804         * testsuite/ld-powerpc/powerpc.exp: Run it.
805
806 2019-05-24  Alan Modra  <amodra@gmail.com>
807
808         * testsuite/ld-powerpc/pcrelopt.s,
809         * testsuite/ld-powerpc/pcrelopt.d,
810         * testsuite/ld-powerpc/pcrelopt.sec: New test.
811         * testsuite/ld-powerpc/powerpc.exp: Run it.
812
813 2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>
814
815         * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
816         * Makefile.in (prefix): Regenerate.
817         * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
818         * emulparams/elf64bpf.sh: New file.
819         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
820         bpf-*-* to the list of targets not supporting gc-sections.
821         * testsuite/ld-bpf/bar.s: New file.
822         * testsuite/ld-bpf/jump-1.d: Likewise.
823         * testsuite/ld-bpf/foo.s: Likewise.
824         * testsuite/ld-bpf/call-1.d: Likewise.
825         * testsuite/ld-bpf/bpf.exp: Likewise.
826         * testsuite/ld-bpf/baz.s: Likewise.
827
828 2019-05-23  Alan Modra  <amodra@gmail.com>
829
830         PR 24576
831         * ldfile.c (enum script_open_style): New.
832         (struct script_name_list): New.
833         (ldfile_open_command_file_1): Take a script_open_style param
834         rather than booleans.  Adjust callers.  Only fail when -T or
835         default -T script is invoked twice.
836         (ldfile_try_open_bfd): Revert last change.
837
838 2019-05-22  Julius Werner  <jwerner@chromium.org>
839             Nick Clifton  <nickc@redhat.com>
840
841         PR 24576
842         * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
843         is_script.  If true check that the file has not already been
844         parsed as a linker script.
845         (ldfile_open_script_file): New function.
846         (ldfile_try_open_bfd): Use the new function in place of
847         ldfile_open_command_line.
848         * ldmain.c (main): Likewise.
849         * lexsup.c (parse_args): Use the new function for opening linker
850         scripts with the -T option.
851         * ldfile.h (ldfile_open_script_file): Add prototype.
852
853 2019-05-21  Faraz Shahbazker  <fshahbazker@wavecomp.com>
854
855         * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
856         %tprel_hi and %tprel_lo relocations.
857         * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
858         * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
859         * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
860         * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
861         script file.
862
863 2019-05-21  Faraz Shahbazker  <fshahbazker@wavecomp.com>
864
865         * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
866         * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
867         * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
868         * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
869         * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
870         * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
871         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
872
873 2019-05-21  Matthew Fortune  <matthew.fortune@mips.com>
874             Faraz Shahbazker  <fshahbazker@wavecomp.com>
875
876         * emultempl/mipself.em (compact_branches): New static variable.
877         (mips_create_output_section_statements): Call
878         _bfd_mips_elf_compact_branches.
879         (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
880         OPTION_NO_COMPACT_BRANCHES.
881         (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
882         no-compact-branches.
883         (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
884         --no-compact-branches.
885         (PARSE_AND_LIST_ARGS_CASES): Handle the above.
886         * ld.texinfo: Document --compact-branches, --no-compact-branches.
887         * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
888         * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
889         * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
890         * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
891         * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
892         * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
893         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
894
895 2019-05-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
896
897         * testsuite/ld-arm/arm-elf.exp: Add tests
898         * testsuite/ld-arm/bfs-0.s: New test.
899         * testsuite/ld-arm/bfs-1.s: New test.
900         * testsuite/ld-arm/branch-futures.d: New test.
901
902 2019-05-21  Tamar Christina  <tamar.christina@arm.com>
903
904         PR ld/24373
905         * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
906         to flags.
907         * NEWS: Add changes to flag.
908         (PARSE_AND_LIST_OPTIONS): Update help descriptions.
909         (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
910         * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
911         * testsuite/ld-aarch64/erratum843419-adr.d: New test.
912         * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
913         * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
914         * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
915         * testsuite/ld-aarch64/erratum843419-far.s: New test.
916         * testsuite/ld-aarch64/erratum843419-full.d: New test.
917         * testsuite/ld-aarch64/erratum843419-near.s: New test.
918         * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
919
920 2019-05-21  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
921
922         PR ld/24571
923         * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
924         * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
925
926 2019-05-21  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
927
928         PR ld/24564
929         * testsuite/ld-avr/wraparound-range-boundary.d: New test.
930         * testsuite/ld-avr/wraparound-range-boundary.s: New test.
931
932 2019-05-20  Faraz Shahbazker  <fshahbazker@wavecomp.com>
933
934         PR 14798
935         * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
936         global code symbols.
937         * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
938
939 2019-05-17  Alan Modra  <amodra@gmail.com>
940
941         PR 24567
942         * plugin.c (plugin_notice): Do not let a common symbol override
943         a non-common definition in IR.
944
945 2019-05-09  Dimitar Dimitrov  <dimitar@dinux.eu>
946
947         * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
948         Rename.
949
950 2019-05-08  Pekka Seppänen  <pexu@sourceware.mail.kapsi.fi>
951
952         PR 24536
953         * ldbuildid.c (generate_build_id): Cast return value from
954         GetProcAddress in order to avoid a compile time warning.
955
956 2019-05-06  Alan Modra  <amodra@gmail.com>
957
958         * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
959
960 2019-05-04  Alan Modra  <amodra@gmail.com>
961
962         * testsuite/ld-scripts/fill.d: Don't xfail m32c
963         * testsuite/ld-scripts/fill16.d: Likewise.
964
965 2019-05-04  Alan Modra  <amodra@gmail.com>
966
967         PR 24511
968         * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
969         data section on hppa64.
970         * testsuite/ld-elf/pr14156b.d: Likewise.
971         * testsuite/ld-scripts/pr18963.t: Map standard sections to set
972         output section flags.
973         * testsuite/ld-scripts/sane1.t: Likewise.
974         * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
975         and __fini_array_start.  Define __start et al.
976         * testsuite/ld-elf/pr24511.d: New test.
977
978 2019-04-30  Alan Modra  <amodra@gmail.com>
979
980         * testsuite/ld-powerpc/elfv2exe.d: Update.
981         * testsuite/ld-powerpc/elfv2so.d: Update.
982         * testsuite/ld-powerpc/tocopt.d: Update.
983         * testsuite/ld-powerpc/tocopt.s: Update.
984         * testsuite/ld-powerpc/tocopt5.d: Update.
985         * testsuite/ld-powerpc/tocopt5.s: Update.
986         * testsuite/ld-powerpc/tocopt7.d: Update.
987         * testsuite/ld-powerpc/tocopt7.s: Update.
988         * testsuite/ld-powerpc/tocopt8.d: Update.
989         * testsuite/ld-powerpc/tocopt8.s: Update.
990
991 2019-04-30  Alan Modra  <amodra@gmail.com>
992
993         * ld.texi (How GNU properties are merged): Avoid pod2man error.
994         Correct example.
995
996 2019-04-26  H.J. Lu  <hongjiu.lu@intel.com>
997
998         PR ld/24486
999         * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
1000         * testsuite/ld-plugin/pr24486a.c: New file.
1001         * testsuite/ld-plugin/pr24486b.c: Likewise.
1002         * testsuite/ld-plugin/pr24486c.c: Likewise.
1003
1004 2019-04-26  Nick Clifton  <nickc@redhat.com>
1005
1006         * po/ru.po: Updated Russian translation.
1007
1008 2019-04-26  Christopher Yeleighton  <giecrilj@stegny.2a.pl>
1009
1010         * ld.texi: Properly hyphenate the word "specific".
1011
1012 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
1013
1014         PR ld/24406
1015         * ld.texi: Remove LTO warning from --wrap.
1016         * plugin.c (get_symbols): Update resolution for wrapper and
1017         wrapped symbols.
1018         * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
1019         * testsuite/ld-plugin/pr24406-1.c: New file.
1020         * testsuite/ld-plugin/pr24406-2a.c: Likewise.
1021         * testsuite/ld-plugin/pr24406-2b.c: Likewise.
1022
1023 2019-04-25  Sudakshina Das  <sudi.das@arm.com>
1024
1025         * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
1026         * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
1027         * testsuite/ld-aarch64/bti-plt-1.d: Update.
1028         * testsuite/ld-aarch64/bti-plt-3.d: Update.
1029         * testsuite/ld-aarch64/bti-plt-5.d: Update.
1030         * testsuite/ld-aarch64/pac-plt-1.d: Update.
1031         * testsuite/ld-aarch64/pac-plt-2.d: Update.
1032
1033 2019-04-24  Sandra Loosemore  <sandra@codesourcery.com>
1034
1035         * testsuite/config/default.exp: Use [check_compiler_available]
1036         instead of [which $CC].
1037         * testsuite/ld-auto-import/auto-import.exp: Likewise.
1038         * testsuite/ld-cygwin/exe-export.exp: Likewise.
1039         * testsuite/ld-elf/audit.exp: Likewise.
1040         * testsuite/ld-elf/compress.exp: Likewise.
1041         * testsuite/ld-elf/dwarf.exp: Likewise.
1042         * testsuite/ld-elf/elf.exp: Likewise.
1043         * testsuite/ld-elf/indirect.exp: Likewise.
1044         * testsuite/ld-elf/linux-x86.exp: Likewise.
1045         * testsuite/ld-elf/shared.exp: Likewise.
1046         * testsuite/ld-elf/tls.exp: Likewise.
1047         * testsuite/ld-elf/wrap.exp: Likewise.
1048         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1049         * testsuite/ld-elfvers/vers.exp: Likewise.
1050         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1051         * testsuite/ld-elfweak/elfweak.exp: Likewise.
1052         * testsuite/ld-gc/gc.exp: Likewise.
1053         * testsuite/ld-i386/i386.exp: Likewise.
1054         * testsuite/ld-i386/no-plt.exp: Likewise.
1055         * testsuite/ld-i386/tls.exp: Likewise.
1056         * testsuite/ld-ifunc/ifunc.exp: Likewise.
1057         * testsuite/ld-mn10300/mn10300.exp: Likewise.
1058         * testsuite/ld-pe/pe-compile.exp: Likewise.
1059         * testsuite/ld-pe/pe-run.exp: Likewise.
1060         * testsuite/ld-pe/pe-run2.exp: Likewise.
1061         * testsuite/ld-pie/pie.exp: Likewise.
1062         * testsuite/ld-plugin/lto.exp: Likewise.
1063         * testsuite/ld-plugin/plugin.exp: Likewise.
1064         * testsuite/ld-scripts/crossref.exp: Likewise.
1065         * testsuite/ld-sh/sh.exp: Likewise.
1066         * testsuite/ld-shared/shared.exp: Likewise.
1067         * testsuite/ld-size/size.exp: Likewise.
1068         * testsuite/ld-srec/srec.exp: Likewise.
1069         * testsuite/ld-undefined/undefined.exp: Likewise.
1070         * testsuite/ld-unique/unique.exp: Likewise.
1071         * testsuite/ld-x86-64/mpx.exp: Likewise.
1072         * testsuite/ld-x86-64/no-plt.exp: Likewise.
1073         * testsuite/ld-x86-64/tls.exp: Likewise.
1074         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1075         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
1076         check_compiler_available before trying to use the compiler.
1077         (run_cc_link_tests): Likewise.
1078         (check_compiler_available): New.  Use it instead of [which $CC].
1079
1080 2019-04-23  Alan Modra  <amodra@gmail.com>
1081
1082         * Makefile.am (GENDEPDIR): New var, used..
1083         (GENSCRIPTS): ..here.
1084         * Makefile.in: Regenerate.
1085         * genscripts.sh: Test for $DEPDIR set before every use.
1086
1087 2019-04-22  Matthew Fortune  <matthew.fortune@mips.com>
1088
1089         * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
1090         for M5100.
1091
1092 2019-04-19  Alan Modra  <amodra@gmail.com>
1093
1094         * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
1095         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
1096         s12z to list of targets not supporting --gc-sections.
1097
1098 2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1099
1100         * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
1101         of pr18801.
1102         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1103         * testsuite/ld-i386/pr18801.d: Removed.
1104         * testsuite/ld-x86-64/pr18801.d: Likewise.
1105         * testsuite/ld-i386/pr18801a.d: New file.
1106         * testsuite/ld-i386/pr18801b.d: Likewise.
1107         * testsuite/ld-x86-64/pr18801a.d: Likewise.
1108         * testsuite/ld-x86-64/pr18801b.d: Likewise.
1109         * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
1110         * testsuite/ld-x86-64/pie2.d: Likewise.
1111         * testsuite/ld-x86-64/pr19719.d: Likewise.
1112         * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1113         * testsuite/ld-x86-64/pr19969.d: Likewise.
1114         * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
1115         * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
1116         * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
1117         * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
1118         * testsuite/ld-x86-64/pr22791-1.err: Likewise.
1119
1120 2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1121
1122         PR ld/24458
1123         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
1124         * testsuite/ld-x86-64/pr24458.s: New file.
1125         * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
1126         * testsuite/ld-x86-64/pr24458a.d: Likewise.
1127         * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
1128         * testsuite/ld-x86-64/pr24458b.d: Likewise.
1129         * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
1130         * testsuite/ld-x86-64/pr24458c.d: Likewise.
1131
1132 2019-04-17  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1133
1134         * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
1135         symbol when .lower.bss or .either.bss sections exist.
1136         Define __crt0_movedata when .lower.data or .either.data sections exist.
1137         * testsuite/gas/msp430/either-data-bss-sym.d: New test.
1138         * testsuite/gas/msp430/low-data-bss-sym.d: New test.
1139         * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
1140         * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
1141         * testsuite/gas/msp430/msp430.exp: Run new tests.
1142         Enable large code model when running -mdata-region={upper,either}
1143         tests.
1144
1145 2019-04-16  Alan Modra  <amodra@gmail.com>
1146
1147         * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
1148         * testsuite/ld-scripts/section-match-1.d: Likewise.
1149         * testsuite/ld-undefined/require-defined.exp: Likewise.
1150
1151 2019-04-15  Faraz Shahbazker  <fshahbazker@wavecomp.com>
1152
1153         * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
1154         targets.
1155
1156 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
1157
1158         * testsuite/ld-arm/bfcsel.s: New.
1159         * testsuite/ld-arm/bfcsel.d: New.
1160         * testsuite/ld-arm/arm-elf.exp: Add above test.
1161
1162 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
1163
1164         * testsuite/ld-arm/bfl.s: New.
1165         * testsuite/ld-arm/bfl.d: New.
1166         * testsuite/ld-arm/arm-elf.exp: Add above test.
1167
1168 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
1169
1170         * testsuite/ld-arm/bf.s: New.
1171         * testsuite/ld-arm/bf.d: New.
1172         * testsuite/ld-arm/arm-elf.exp: Add above test.
1173
1174 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1175
1176         * testsuite/ld-arm/attr-merge-13.attr: New test.
1177         * testsuite/ld-arm/attr-merge-13a.s: New test.
1178         * testsuite/ld-arm/attr-merge-13b.s: New test.
1179
1180 2019-04-13  Alan Modra  <amodra@gmail.com>
1181
1182         * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter.  Add
1183         DEPDIR parameter.
1184         (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
1185         (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
1186         $GEN_DEPENDS.
1187         (e*.c): Delete all dependencies, instead include dependencies
1188         from $DEPDIR/*.Pc.
1189         * Makefile.in: Regenerate.
1190         * configure.ac (source_sh): Define and use function.
1191         * configure: Regenerate.
1192         * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
1193         * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
1194         * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
1195         * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
1196         * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
1197         * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
1198         * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
1199         * emulparams/armelf_linux_eabi.sh,
1200         * emulparams/armelf_linux_fdpiceabi.sh,
1201         * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
1202         * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
1203         * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
1204         * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
1205         * emulparams/armelfb_linux_fdpiceabi.sh,
1206         * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
1207         * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
1208         * emulparams/elf32_sparc_sol2.sh,
1209         * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
1210         * emulparams/elf32_tic6x_elf_be.sh,
1211         * emulparams/elf32_tic6x_elf_le.sh,
1212         * emulparams/elf32_tic6x_linux_be.sh,
1213         * emulparams/elf32_tic6x_linux_le.sh,
1214         * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
1215         * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
1216         * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
1217         * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
1218         * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
1219         * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
1220         * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
1221         * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
1222         * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
1223         * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
1224         * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
1225         * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1226         * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
1227         * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
1228         * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
1229         * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
1230         * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
1231         * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
1232         * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
1233         * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
1234         * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
1235         * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
1236         * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
1237         * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
1238         * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
1239         * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
1240         * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
1241         * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
1242         * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
1243         * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
1244         * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
1245         * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
1246         * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
1247         * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
1248         * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
1249         * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
1250         * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
1251         * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
1252         * emulparams/elf_x86_64_cloudabi.sh,
1253         * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
1254         * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
1255         * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
1256         * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
1257         * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
1258         * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
1259         * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
1260         * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
1261         * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
1262         * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
1263         * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
1264         * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
1265         * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
1266         * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
1267         * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
1268         * emulparams/shl.sh, * emulparams/shlelf.sh,
1269         * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
1270         * emulparams/shlelf_vxworks.sh: Use source_sh.
1271         * genscripts.sh: Adjust for changed parameters.  Emit dependencies
1272         for e*.c to .deps/*.Pc.
1273         (source_sh): New function, use it throughout to source scripts.
1274         * genscrba.sh (source_em): Use source_sh.
1275
1276 2019-04-13  Alan Modra  <amodra@gmail.com>
1277
1278         * configure.ac (TDIRS): Build up tdirs in this variable and
1279         AC_SUBST, also using AM_SUBST_NOTMAKE.
1280         * configure: Regenerate.
1281         * Makefile.am (DISTCLEANFILES): Remove tdirs.
1282         * Makefile.in: Regenerate.
1283
1284 2019-04-12  Nick Clifton  <nickc@redhat.com>
1285
1286         PR 24450
1287         * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
1288         example of section attributes.
1289
1290 2019-04-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
1291
1292         * NEWS: Mention new option --no-print-map-discarded.
1293         * ld.h (ld_config_type) <print_map_discarded>: New field.
1294         * ldlang.c (lang_map): Conditionally output discarded sections
1295         in map files based on configuration option.
1296         * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
1297         OPTION_NO_PRINT_MAP_DISCARDED>: New.
1298         * ldmain.c (main): Enabled print_map_discarded by default.
1299         * lexsup.c (ld_options): Add new command-line options.
1300         (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
1301         OPTION_PRINT_MAP_DISCARDED>: New cases.
1302         * ld.texi: Document new options.
1303         * testsuite/ld-gc/gc.exp: Add new test.
1304         * testsuite/ld-gc/skip-map-discarded.s: New file.
1305         * testsuite/ld-gc/skip-map-discarded.d: New file.
1306         * testsuite/ld-gc/skip-map-discarded.map: New file.
1307
1308 2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1309
1310         * ld.texi: Document -z cet-report=[none|warning|error].
1311         * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
1312         * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
1313         tests.
1314         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1315         * testsuite/ld-i386/property-x86-cet1.d: New file.
1316         * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
1317         * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
1318         * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
1319         * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
1320         * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
1321         * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
1322         * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
1323         * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
1324         * testsuite/ld-i386/property-x86-cet6.d: Likewise.
1325         * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
1326         * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
1327         * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
1328         * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
1329         * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
1330         * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
1331         * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
1332         * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
1333         * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
1334         * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
1335         * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
1336         * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
1337         * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
1338         * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
1339         * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
1340         * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
1341         * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
1342         * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
1343         * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
1344         * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
1345         * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
1346
1347 2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1348
1349         * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New.  Set
1350         to "-static-pie" if target compiler supports it.
1351         * testsuite/ld-elf/elf.exp: Run -static-pie tests if
1352         $STATIC_PIE_LDFLAGS isn't empty.
1353         * testsuite/ld-ifunc/ifunc.exp: Likewise.
1354
1355 2019-04-11  Tamar Christina  <tamar.christina@arm.com>
1356
1357         PR ld/24302
1358         * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1359         * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
1360
1361 2019-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1362
1363         * scripttempl/elf.sc (CREATE_PIC): New.  Set for CREATE_SHLIB or
1364         CREATE_PIE.
1365         (__rel_iplt_start): Don't define for CREATE_PIC.
1366         (__rel_iplt_end): Likewise.
1367         (__rela_iplt_start): Likewise.
1368         (__rela_iplt_end): Likewise.
1369
1370 2019-04-10  Alan Modra  <amodra@gmail.com>
1371
1372         * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
1373         powerpc-nto.
1374
1375 2019-04-10  Alan Modra  <amodra@gmail.com>
1376
1377         * emultempl/cskyelf.em (csk_elf_before_parse): New function,
1378         setting use_branch_stub false for linux.
1379         (csky_elf_create_output_section_statements): Do emit this
1380         function and all others in the file for linux, plus the branch
1381         option control.  Disable branch stubs when non-ELF.
1382
1383 2019-04-10  Alan Modra  <amodra@gmail.com>
1384
1385         * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
1386         (ecskyelf_linux.c): Depend on cskyelf.sh.
1387         (eelf32microblazeel.c): Depend on elf32microblaze.sh.
1388         * Makefile.in: Regenerate.
1389         * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
1390         (PAGE_SIZE): Don't define.
1391         * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
1392         the differing variable defs/undefs.
1393         * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
1394         * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
1395         (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
1396         (PAGE_SIZE): Don't define.
1397         * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
1398         leaving just the differing OUTPUT_FORMAT.
1399
1400 2019-04-10  Alan Modra  <amodra@gmail.com>
1401
1402         * po/BLD-POTFILES.in: Regenerate.
1403
1404 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
1405
1406         * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
1407         lynxos and nto targets.
1408
1409 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
1410
1411         * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
1412         (eelf_i386_chaos.c): Removed.
1413         * Makefile.in: Regenerated.
1414         * configure.tgt: Remove i[3-7]86-*-kaos*.
1415         * emulparams/elf_i386_chaos.sh: Removed.
1416
1417 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
1418
1419         * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
1420         * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
1421
1422 2019-04-08  Alan Modra  <amodra@gmail.com>
1423
1424         * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
1425         * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
1426         * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
1427
1428 2019-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1429
1430         * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
1431         (eelf_i386_sol2.c): Also depend on
1432         $(srcdir)/emultempl/solaris2-x86.em.
1433         (eelf_x86_64_sol2.c): Likewise.
1434         * Makefile.in: Regenerated.
1435         * emulparams/call_nop.sh: Set x86-specific linker options via
1436         params.
1437         * emulparams/cet.sh: Likewise.
1438         * emulparams/reloc_overflow.sh: Likewise.
1439         * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New.  Set to
1440         "elf-x86".
1441         * emulparams/elf_i386.sh: Likewise.
1442         * emulparams/elf_i386_be.sh: Likewise.
1443         * emulparams/elf_i386_chaos.sh: Likewise.
1444         * emulparams/elf_i386_ldso.sh: Likewise.
1445         * emulparams/elf_i386_vxworks.sh: Likewise.
1446         * emulparams/elf_iamcu.sh: Likewise.
1447         * emulparams/elf_k1om.sh: Likewise.
1448         * emulparams/elf_l1om.sh: Likewise.
1449         * emulparams/elf_x86_64.sh: Likewise.
1450         * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
1451         "solaris2-x86".
1452         * emulparams/elf_x86_64_sol2.sh: Likewise.
1453         * emultempl/elf-x86.em: New file.
1454         * emultempl/solaris2-x86.em: Likewise.
1455         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1456         set link_info.call_nop_byte.
1457
1458 2019-04-05  Alan Modra  <amodra@gmail.com>
1459
1460         * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
1461         * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1462         * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1463
1464 2019-04-03  Alan Modra  <amodra@gmail.com>
1465
1466         PR 24411
1467         ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
1468         (<EXPRESSION>"/DISCARD/"): New.
1469
1470 2019-04-03  Alan Modra  <amodra@gmail.com>
1471
1472         * ldlex.l: Formatting.
1473         (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
1474         (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
1475         (NOCFILENAMECHAR): Remove duplicate chars.  Reorder.
1476         (SYMBOLCHARN): Likewise.  Rename to SYMBOLNAMECHAR.
1477         (<INPUTLIST>"$SYSROOT"..): Delete rule.
1478
1479 2019-03-29  Max Filippov  <jcmvbkbc@gmail.com>
1480
1481         * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
1482         test definition.
1483         * testsuite/ld-xtensa/xtensa.exp
1484         (relax-undef-weak-pie-export-dynamic): Add new test.
1485
1486 2019-03-26  Martin Liska  <mliska@suse.cz>
1487
1488         * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
1489         lto_visibility_str and use then to inform about plugin-symbols.
1490         * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
1491
1492 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
1493
1494         * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
1495         * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
1496
1497 2019-03-21  Sudakshina Das  <sudi.das@arm.com>
1498
1499         * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1500         * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
1501         * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
1502         * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1503         * testsuite/ld-aarch64/bti-warn.d: New test.
1504
1505 2019-03-21  Alan Modra  <amodra@gmail.com>
1506
1507         * testsuite/ld-elf/fini2.s: Reduce alignment.
1508         * testsuite/ld-elf/fini3.s: Likewise.
1509         * testsuite/ld-elf/finin.s: Likewise.
1510         * testsuite/ld-elf/init2.s: Likewise.
1511         * testsuite/ld-elf/init3.s: Likewise.
1512         * testsuite/ld-elf/initn.s: Likewise.
1513         * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
1514         * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
1515
1516 2019-03-21  Alan Modra  <amodra@gmail.com>
1517
1518         * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
1519         * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
1520         * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
1521         * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
1522         * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
1523         * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
1524         * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
1525         * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
1526         * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
1527         * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
1528         * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
1529         * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
1530         * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
1531         * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
1532         * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
1533         * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
1534         * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
1535         SORT_NONE to .init and .fini wildcards.
1536         * scripttempl/elf32xc16x.sc,
1537         * scripttempl/elf32xc16xl.sc,
1538         * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
1539         * scripttempl/elf_chaos.sc: Add .init output section.
1540         * scripttempl/elfd30v.sc: Remove duplicate .init.
1541         * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
1542         * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
1543         duplicate .init, and add .fini wildcard.
1544         * scripttempl/ppcpe.sc (INIT, FINI): Delete.
1545         * ldlang.c (update_wild_statements): Special case .init and
1546         .fini in the wildcard, not the output section.
1547
1548 2019-03-21  Alan Modra  <amodra@gmail.com>
1549
1550         * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
1551
1552 2019-03-21  Alan Modra  <amodra@gmail.com>
1553
1554         * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
1555         create_object_symbols_section.
1556         * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
1557
1558 2019-03-18  Alan Modra  <amodra@gmail.com>
1559
1560         * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
1561         * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
1562         * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
1563         * testsuite/ld-unique/pr21529.d: Remove csky from xfails
1564
1565 2019-03-15  Nick Clifton  <nickc@redhat.com>
1566
1567         PR 24262
1568         * ld.texi (-plugin): Correct the path used to locate linker
1569         plugins.
1570
1571 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
1572
1573         * NEWS: Document --pac-plt.
1574         * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
1575         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
1576         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
1577         * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
1578         * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
1579         * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
1580         * testsuite/ld-aarch64/pac-plt-1.d: New test.
1581         * testsuite/ld-aarch64/pac-plt-2.d: New test.
1582         * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
1583
1584 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
1585             Szabolcs Nagy  <szabolcs.nagy@arm.com>
1586
1587         * NEWS: Document --force-bti.
1588         * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
1589         (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
1590         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
1591         * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
1592         * testsuite/ld-aarch64/bti-plt-1.d: New test.
1593         * testsuite/ld-aarch64/bti-plt-1.s: New test.
1594         * testsuite/ld-aarch64/bti-plt-2.d: New test.
1595         * testsuite/ld-aarch64/bti-plt-3.d: New test.
1596         * testsuite/ld-aarch64/bti-plt-4.d: New test.
1597         * testsuite/ld-aarch64/bti-plt-5.d: New test.
1598         * testsuite/ld-aarch64/bti-plt-6.d: New test.
1599         * testsuite/ld-aarch64/bti-plt-7.d: New test.
1600         * testsuite/ld-aarch64/bti-plt-so.s: New test.
1601         * testsuite/ld-aarch64/bti-plt.ld: New test.
1602
1603 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
1604
1605         * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
1606         GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
1607         * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
1608         * testsuite/ld-aarch64/property-bti-pac1.d: New test.
1609         * testsuite/ld-aarch64/property-bti-pac1.s: New test.
1610         * testsuite/ld-aarch64/property-bti-pac2.d: New test.
1611         * testsuite/ld-aarch64/property-bti-pac2.s: New test.
1612         * testsuite/ld-aarch64/property-bti-pac3.d: New test.
1613
1614 2019-03-13  H.J. Lu  <hongjiu.lu@intel.com>
1615
1616         PR ld/24322
1617         * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
1618         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1619         * testsuite/ld-i386/pr24322a.d: New file.
1620         * testsuite/ld-i386/pr24322b.d: Likewise.
1621         * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
1622         * testsuite/ld-x86-64/pr24322a.d: Likewise.
1623         * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
1624         * testsuite/ld-x86-64/pr24322b.d: Likewise.
1625         * testsuite/ld-x86-64/pr24322a.s: Likewise.
1626         * testsuite/ld-x86-64/pr24322b.s: Likewise.
1627         * testsuite/ld-x86-64/pr24322c.s: Likewise.
1628
1629 2019-03-06  Nick Bowler  <nbowler@draconx.ca>
1630
1631         PR 24289
1632         * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
1633         attributes during the first phase.
1634
1635 2019-03-01  Andreas Krebbel  <krebbel@linux.ibm.com>
1636
1637         This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1638         2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
1639
1640         PR 20113
1641         * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1642         * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1643         * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1644         * testsuite/ld-s390/tlsbin.dd: Likewise.
1645         * testsuite/ld-s390/tlsbin.rd: Likewise.
1646         * testsuite/ld-s390/tlsbin.sd: Likewise.
1647         * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1648         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1649         * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1650         * testsuite/ld-s390/tlspic.dd: Likewise.
1651         * testsuite/ld-s390/tlspic.rd: Likewise.
1652         * testsuite/ld-s390/tlspic.sd: Likewise.
1653         * testsuite/ld-s390/tlspic_64.dd: Likewise.
1654         * testsuite/ld-s390/tlspic_64.rd: Likewise.
1655         * testsuite/ld-s390/tlspic_64.sd: Likewise.
1656         * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1657
1658 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
1659
1660         PR ld/24276
1661         * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
1662         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1663         * testsuite/ld-i386/pr24276.dso: New file.
1664         * testsuite/ld-i386/pr24276.warn: Likewise.
1665         * testsuite/ld-x86-64/pr24276.dso: Likewise.
1666         * testsuite/ld-x86-64/pr24276.warn: Likewise.
1667
1668 2019-02-20  Eric Tsai  <erictsai@cadence.com>
1669
1670         * testsuite/ld-xtensa/call_overflow.d: New test definition.
1671         * testsuite/ld-xtensa/call_overflow1.s: New test source.
1672         * testsuite/ld-xtensa/call_overflow2.s: New test source.
1673         * testsuite/ld-xtensa/call_overflow3.s: New test source.
1674         * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
1675
1676 2019-02-14  Thomas Schwinge  <thomas@codesourcery.com>
1677
1678         * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
1679
1680 2019-02-12  Nick Clifton  <nickc@redhat.com>
1681
1682         * po/fr.po: Updated French translation.
1683
1684 2019-02-09  Vineet Gupta  <vgupta@synopsys.com>
1685
1686         * emultempl/arclinux.em: Delete special INIT/FINI handling.
1687
1688 2019-02-07  Nick Clifton  <nickc@redhat.com>
1689
1690         PR 24175
1691         * ld.texi (Options): Add missing word to the description of the
1692         --start-group option.
1693
1694 2019-02-06  Alan Modra  <amodra@gmail.com>
1695
1696         PR ld/24008
1697         * testsuite/ld-scripts/pr24008.d: Pass with extra target
1698         defined symbols.
1699
1700 2019-02-05  H.J. Lu  <hongjiu.lu@intel.com>
1701
1702         PR ld/24151
1703         * testsuite/ld-x86-64/pr24151a-x32.d: New file.
1704         * testsuite/ld-x86-64/pr24151a.d: Likewise.
1705         * testsuite/ld-x86-64/pr24151a.s: Likewise.
1706         * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
1707
1708 2019-01-31  Alan Modra  <amodra@gmail.com>
1709
1710         * NEWS: Mention -t change.
1711         * ld.texi (--trace/-t): Expand documentation a little.
1712
1713 2019-01-29  H.J. Lu  <hongjiu.lu@intel.com>
1714
1715         PR ld/24008
1716         * testsuite/ld-scripts/defined.exp: Run pr24008.
1717         * testsuite/ld-scripts/pr24008.d: New file.
1718         * testsuite/ld-scripts/pr24008.map: Likewise.
1719         * testsuite/ld-scripts/pr24008.s: Likewise.
1720         * testsuite/ld-scripts/pr24008.t: Likewise.
1721
1722 2019-01-29  Eric Botcazou  <ebotcazou@adacore.com>
1723
1724         * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
1725
1726 2019-01-28  Alan Modra  <amodra@gmail.com>
1727
1728         PR 24008
1729         * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
1730         * ldexp.c (fold_name): Move expld.assign_name check later to
1731         avoid an extra lookup.
1732         (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
1733         values, and don't clear expld.assign_name.
1734         * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
1735         (print_assignment): Resolve entire assignment expression.
1736         Don't access symbol u.def unless symbol is defined.
1737
1738 2019-01-25  Nick Clifton  <nickc@redhat.com>
1739
1740         * po/bg.po: Updated Bulgarian translation.
1741
1742 2019-01-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1743
1744         * ld.texi (--wrap): Add warning that LTO may make this feature
1745         ineffective.
1746
1747 2019-01-21  Nick Clifton  <nickc@redhat.com>
1748
1749         * po/uk.po: Updated Ukranian translation.
1750         * po/pr_BR.po: Updated Brazilian Portuguese translation.
1751
1752 2019-01-21  Nick Clifton  <nickc@redhat.com>
1753
1754         PR 24108
1755         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
1756         expected error message.
1757
1758 2019-01-19  Nick Clifton  <nickc@redhat.com>
1759
1760         * configure: Regenerate.
1761         * po/ld.pot: Regenerate.
1762
1763 2018-06-24  Nick Clifton  <nickc@redhat.com>
1764
1765         2.32 branch created.
1766
1767 2019-01-16  Kito Cheng  <kito@andestech.com>
1768
1769         * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
1770         section.
1771         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
1772         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
1773         * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
1774         * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
1775         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1776         * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
1777         * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
1778         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1779         * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
1780         * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
1781         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1782         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
1783         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
1784         * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
1785         * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
1786         * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
1787         * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
1788         * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
1789         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
1790         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
1791         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
1792         * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
1793         * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
1794         * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
1795         * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
1796         * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
1797         * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
1798         * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
1799         * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
1800         * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
1801         * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
1802         * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1803         * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
1804         * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
1805         * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1806         * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
1807         * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
1808
1809 2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
1810
1811         PR 20113
1812         * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1813         * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1814         * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1815         * testsuite/ld-s390/tlsbin.dd: Likewise.
1816         * testsuite/ld-s390/tlsbin.rd: Likewise.
1817         * testsuite/ld-s390/tlsbin.sd: Likewise.
1818         * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1819         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1820         * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1821         * testsuite/ld-s390/tlspic.dd: Likewise.
1822         * testsuite/ld-s390/tlspic.rd: Likewise.
1823         * testsuite/ld-s390/tlspic.sd: Likewise.
1824         * testsuite/ld-s390/tlspic_64.dd: Likewise.
1825         * testsuite/ld-s390/tlspic_64.rd: Likewise.
1826         * testsuite/ld-s390/tlspic_64.sd: Likewise.
1827         * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1828
1829 2019-01-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1830
1831         * ld.texi (--wrap): Add example to emphasise that only undefined
1832         references are replaced by the linker.
1833
1834 2019-01-09  Nick Clifton  <nickc@redhat.com>
1835
1836         * po/es.po: Updated Spanish translation.
1837
1838 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
1839
1840         * configure: Regenerate.
1841
1842 2019-01-08  Alan Modra  <amodra@gmail.com>
1843
1844         * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
1845         generated source file names.
1846         * testsuite/ld-m68k/m68k-got.exp: Likewise.
1847
1848 2019-01-01  Alan Modra  <amodra@gmail.com>
1849
1850         Update year range in copyright notice of all files.
1851
1852 For older changes see ChangeLog-2018
1853 \f
1854 Copyright (C) 2019 Free Software Foundation, Inc.
1855
1856 Copying and distribution of this file, with or without modification,
1857 are permitted in any medium without royalty provided the copyright
1858 notice and this notice are preserved.
1859
1860 Local Variables:
1861 mode: change-log
1862 left-margin: 8
1863 fill-column: 74
1864 version-control: never
1865 End: