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