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