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