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