4b4956e9ccc99c5a1fe33bca5d0bba63b382d902
[external/binutils.git] / ld / ChangeLog
1 2019-04-23  Alan Modra  <amodra@gmail.com>
2
3         * Makefile.am (GENDEPDIR): New var, used..
4         (GENSCRIPTS): ..here.
5         * Makefile.in: Regenerate.
6         * genscripts.sh: Test for $DEPDIR set before every use.
7
8 2019-04-22  Matthew Fortune  <matthew.fortune@mips.com>
9
10         * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
11         for M5100.
12
13 2019-04-19  Alan Modra  <amodra@gmail.com>
14
15         * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
16         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
17         s12z to list of targets not supporting --gc-sections.
18
19 2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
20
21         * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
22         of pr18801.
23         * testsuite/ld-x86-64/x86-64.exp: Likewise.
24         * testsuite/ld-i386/pr18801.d: Removed.
25         * testsuite/ld-x86-64/pr18801.d: Likewise.
26         * testsuite/ld-i386/pr18801a.d: New file.
27         * testsuite/ld-i386/pr18801b.d: Likewise.
28         * testsuite/ld-x86-64/pr18801a.d: Likewise.
29         * testsuite/ld-x86-64/pr18801b.d: Likewise.
30         * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
31         * testsuite/ld-x86-64/pie2.d: Likewise.
32         * testsuite/ld-x86-64/pr19719.d: Likewise.
33         * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
34         * testsuite/ld-x86-64/pr19969.d: Likewise.
35         * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
36         * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
37         * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
38         * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
39         * testsuite/ld-x86-64/pr22791-1.err: Likewise.
40
41 2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
42
43         PR ld/24458
44         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
45         * testsuite/ld-x86-64/pr24458.s: New file.
46         * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
47         * testsuite/ld-x86-64/pr24458a.d: Likewise.
48         * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
49         * testsuite/ld-x86-64/pr24458b.d: Likewise.
50         * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
51         * testsuite/ld-x86-64/pr24458c.d: Likewise.
52
53 2019-04-17  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
54
55         * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
56         symbol when .lower.bss or .either.bss sections exist.
57         Define __crt0_movedata when .lower.data or .either.data sections exist.
58         * testsuite/gas/msp430/either-data-bss-sym.d: New test.
59         * testsuite/gas/msp430/low-data-bss-sym.d: New test.
60         * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
61         * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
62         * testsuite/gas/msp430/msp430.exp: Run new tests.
63         Enable large code model when running -mdata-region={upper,either}
64         tests.
65
66 2019-04-16  Alan Modra  <amodra@gmail.com>
67
68         * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
69         * testsuite/ld-scripts/section-match-1.d: Likewise.
70         * testsuite/ld-undefined/require-defined.exp: Likewise.
71
72 2019-04-15  Faraz Shahbazker  <fshahbazker@wavecomp.com>
73
74         * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
75         targets.
76
77 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
78
79         * testsuite/ld-arm/bfcsel.s: New.
80         * testsuite/ld-arm/bfcsel.d: New.
81         * testsuite/ld-arm/arm-elf.exp: Add above test.
82
83 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
84
85         * testsuite/ld-arm/bfl.s: New.
86         * testsuite/ld-arm/bfl.d: New.
87         * testsuite/ld-arm/arm-elf.exp: Add above test.
88
89 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
90
91         * testsuite/ld-arm/bf.s: New.
92         * testsuite/ld-arm/bf.d: New.
93         * testsuite/ld-arm/arm-elf.exp: Add above test.
94
95 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
96
97         * testsuite/ld-arm/attr-merge-13.attr: New test.
98         * testsuite/ld-arm/attr-merge-13a.s: New test.
99         * testsuite/ld-arm/attr-merge-13b.s: New test.
100
101 2019-04-13  Alan Modra  <amodra@gmail.com>
102
103         * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter.  Add
104         DEPDIR parameter.
105         (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
106         (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
107         $GEN_DEPENDS.
108         (e*.c): Delete all dependencies, instead include dependencies
109         from $DEPDIR/*.Pc.
110         * Makefile.in: Regenerate.
111         * configure.ac (source_sh): Define and use function.
112         * configure: Regenerate.
113         * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
114         * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
115         * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
116         * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
117         * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
118         * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
119         * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
120         * emulparams/armelf_linux_eabi.sh,
121         * emulparams/armelf_linux_fdpiceabi.sh,
122         * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
123         * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
124         * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
125         * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
126         * emulparams/armelfb_linux_fdpiceabi.sh,
127         * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
128         * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
129         * emulparams/elf32_sparc_sol2.sh,
130         * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
131         * emulparams/elf32_tic6x_elf_be.sh,
132         * emulparams/elf32_tic6x_elf_le.sh,
133         * emulparams/elf32_tic6x_linux_be.sh,
134         * emulparams/elf32_tic6x_linux_le.sh,
135         * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
136         * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
137         * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
138         * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
139         * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
140         * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
141         * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
142         * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
143         * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
144         * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
145         * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
146         * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
147         * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
148         * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
149         * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
150         * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
151         * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
152         * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
153         * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
154         * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
155         * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
156         * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
157         * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
158         * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
159         * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
160         * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
161         * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
162         * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
163         * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
164         * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
165         * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
166         * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
167         * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
168         * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
169         * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
170         * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
171         * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
172         * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
173         * emulparams/elf_x86_64_cloudabi.sh,
174         * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
175         * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
176         * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
177         * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
178         * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
179         * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
180         * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
181         * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
182         * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
183         * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
184         * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
185         * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
186         * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
187         * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
188         * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
189         * emulparams/shl.sh, * emulparams/shlelf.sh,
190         * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
191         * emulparams/shlelf_vxworks.sh: Use source_sh.
192         * genscripts.sh: Adjust for changed parameters.  Emit dependencies
193         for e*.c to .deps/*.Pc.
194         (source_sh): New function, use it throughout to source scripts.
195         * genscrba.sh (source_em): Use source_sh.
196
197 2019-04-13  Alan Modra  <amodra@gmail.com>
198
199         * configure.ac (TDIRS): Build up tdirs in this variable and
200         AC_SUBST, also using AM_SUBST_NOTMAKE.
201         * configure: Regenerate.
202         * Makefile.am (DISTCLEANFILES): Remove tdirs.
203         * Makefile.in: Regenerate.
204
205 2019-04-12  Nick Clifton  <nickc@redhat.com>
206
207         PR 24450
208         * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
209         example of section attributes.
210
211 2019-04-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
212
213         * NEWS: Mention new option --no-print-map-discarded.
214         * ld.h (ld_config_type) <print_map_discarded>: New field.
215         * ldlang.c (lang_map): Conditionally output discarded sections
216         in map files based on configuration option.
217         * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
218         OPTION_NO_PRINT_MAP_DISCARDED>: New.
219         * ldmain.c (main): Enabled print_map_discarded by default.
220         * lexsup.c (ld_options): Add new command-line options.
221         (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
222         OPTION_PRINT_MAP_DISCARDED>: New cases.
223         * ld.texi: Document new options.
224         * testsuite/ld-gc/gc.exp: Add new test.
225         * testsuite/ld-gc/skip-map-discarded.s: New file.
226         * testsuite/ld-gc/skip-map-discarded.d: New file.
227         * testsuite/ld-gc/skip-map-discarded.map: New file.
228
229 2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
230
231         * ld.texi: Document -z cet-report=[none|warning|error].
232         * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
233         * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
234         tests.
235         * testsuite/ld-x86-64/x86-64.exp: Likewise.
236         * testsuite/ld-i386/property-x86-cet1.d: New file.
237         * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
238         * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
239         * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
240         * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
241         * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
242         * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
243         * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
244         * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
245         * testsuite/ld-i386/property-x86-cet6.d: Likewise.
246         * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
247         * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
248         * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
249         * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
250         * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
251         * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
252         * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
253         * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
254         * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
255         * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
256         * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
257         * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
258         * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
259         * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
260         * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
261         * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
262         * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
263         * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
264         * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
265         * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
266         * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
267
268 2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
269
270         * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New.  Set
271         to "-static-pie" if target compiler supports it.
272         * testsuite/ld-elf/elf.exp: Run -static-pie tests if
273         $STATIC_PIE_LDFLAGS isn't empty.
274         * testsuite/ld-ifunc/ifunc.exp: Likewise.
275
276 2019-04-11  Tamar Christina  <tamar.christina@arm.com>
277
278         PR ld/24302
279         * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
280         * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
281
282 2019-04-10  H.J. Lu  <hongjiu.lu@intel.com>
283
284         * scripttempl/elf.sc (CREATE_PIC): New.  Set for CREATE_SHLIB or
285         CREATE_PIE.
286         (__rel_iplt_start): Don't define for CREATE_PIC.
287         (__rel_iplt_end): Likewise.
288         (__rela_iplt_start): Likewise.
289         (__rela_iplt_end): Likewise.
290
291 2019-04-10  Alan Modra  <amodra@gmail.com>
292
293         * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
294         powerpc-nto.
295
296 2019-04-10  Alan Modra  <amodra@gmail.com>
297
298         * emultempl/cskyelf.em (csk_elf_before_parse): New function,
299         setting use_branch_stub false for linux.
300         (csky_elf_create_output_section_statements): Do emit this
301         function and all others in the file for linux, plus the branch
302         option control.  Disable branch stubs when non-ELF.
303
304 2019-04-10  Alan Modra  <amodra@gmail.com>
305
306         * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
307         (ecskyelf_linux.c): Depend on cskyelf.sh.
308         (eelf32microblazeel.c): Depend on elf32microblaze.sh.
309         * Makefile.in: Regenerate.
310         * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
311         (PAGE_SIZE): Don't define.
312         * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
313         the differing variable defs/undefs.
314         * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
315         * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
316         (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
317         (PAGE_SIZE): Don't define.
318         * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
319         leaving just the differing OUTPUT_FORMAT.
320
321 2019-04-10  Alan Modra  <amodra@gmail.com>
322
323         * po/BLD-POTFILES.in: Regenerate.
324
325 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
326
327         * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
328         lynxos and nto targets.
329
330 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
331
332         * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
333         (eelf_i386_chaos.c): Removed.
334         * Makefile.in: Regenerated.
335         * configure.tgt: Remove i[3-7]86-*-kaos*.
336         * emulparams/elf_i386_chaos.sh: Removed.
337
338 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
339
340         * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
341         * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
342
343 2019-04-08  Alan Modra  <amodra@gmail.com>
344
345         * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
346         * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
347         * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
348
349 2019-04-06  H.J. Lu  <hongjiu.lu@intel.com>
350
351         * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
352         (eelf_i386_sol2.c): Also depend on
353         $(srcdir)/emultempl/solaris2-x86.em.
354         (eelf_x86_64_sol2.c): Likewise.
355         * Makefile.in: Regenerated.
356         * emulparams/call_nop.sh: Set x86-specific linker options via
357         params.
358         * emulparams/cet.sh: Likewise.
359         * emulparams/reloc_overflow.sh: Likewise.
360         * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New.  Set to
361         "elf-x86".
362         * emulparams/elf_i386.sh: Likewise.
363         * emulparams/elf_i386_be.sh: Likewise.
364         * emulparams/elf_i386_chaos.sh: Likewise.
365         * emulparams/elf_i386_ldso.sh: Likewise.
366         * emulparams/elf_i386_vxworks.sh: Likewise.
367         * emulparams/elf_iamcu.sh: Likewise.
368         * emulparams/elf_k1om.sh: Likewise.
369         * emulparams/elf_l1om.sh: Likewise.
370         * emulparams/elf_x86_64.sh: Likewise.
371         * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
372         "solaris2-x86".
373         * emulparams/elf_x86_64_sol2.sh: Likewise.
374         * emultempl/elf-x86.em: New file.
375         * emultempl/solaris2-x86.em: Likewise.
376         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
377         set link_info.call_nop_byte.
378
379 2019-04-05  Alan Modra  <amodra@gmail.com>
380
381         * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
382         * testsuite/ld-powerpc/tlsopt5.d: Likewise.
383         * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
384
385 2019-04-03  Alan Modra  <amodra@gmail.com>
386
387         PR 24411
388         ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
389         (<EXPRESSION>"/DISCARD/"): New.
390
391 2019-04-03  Alan Modra  <amodra@gmail.com>
392
393         * ldlex.l: Formatting.
394         (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
395         (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
396         (NOCFILENAMECHAR): Remove duplicate chars.  Reorder.
397         (SYMBOLCHARN): Likewise.  Rename to SYMBOLNAMECHAR.
398         (<INPUTLIST>"$SYSROOT"..): Delete rule.
399
400 2019-03-29  Max Filippov  <jcmvbkbc@gmail.com>
401
402         * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
403         test definition.
404         * testsuite/ld-xtensa/xtensa.exp
405         (relax-undef-weak-pie-export-dynamic): Add new test.
406
407 2019-03-26  Martin Liska  <mliska@suse.cz>
408
409         * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
410         lto_visibility_str and use then to inform about plugin-symbols.
411         * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
412
413 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
414
415         * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
416         * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
417
418 2019-03-21  Sudakshina Das  <sudi.das@arm.com>
419
420         * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
421         * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
422         * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
423         * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
424         * testsuite/ld-aarch64/bti-warn.d: New test.
425
426 2019-03-21  Alan Modra  <amodra@gmail.com>
427
428         * testsuite/ld-elf/fini2.s: Reduce alignment.
429         * testsuite/ld-elf/fini3.s: Likewise.
430         * testsuite/ld-elf/finin.s: Likewise.
431         * testsuite/ld-elf/init2.s: Likewise.
432         * testsuite/ld-elf/init3.s: Likewise.
433         * testsuite/ld-elf/initn.s: Likewise.
434         * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
435         * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
436
437 2019-03-21  Alan Modra  <amodra@gmail.com>
438
439         * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
440         * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
441         * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
442         * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
443         * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
444         * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
445         * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
446         * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
447         * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
448         * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
449         * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
450         * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
451         * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
452         * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
453         * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
454         * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
455         * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
456         SORT_NONE to .init and .fini wildcards.
457         * scripttempl/elf32xc16x.sc,
458         * scripttempl/elf32xc16xl.sc,
459         * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
460         * scripttempl/elf_chaos.sc: Add .init output section.
461         * scripttempl/elfd30v.sc: Remove duplicate .init.
462         * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
463         * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
464         duplicate .init, and add .fini wildcard.
465         * scripttempl/ppcpe.sc (INIT, FINI): Delete.
466         * ldlang.c (update_wild_statements): Special case .init and
467         .fini in the wildcard, not the output section.
468
469 2019-03-21  Alan Modra  <amodra@gmail.com>
470
471         * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
472
473 2019-03-21  Alan Modra  <amodra@gmail.com>
474
475         * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
476         create_object_symbols_section.
477         * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
478
479 2019-03-18  Alan Modra  <amodra@gmail.com>
480
481         * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
482         * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
483         * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
484         * testsuite/ld-unique/pr21529.d: Remove csky from xfails
485
486 2019-03-15  Nick Clifton  <nickc@redhat.com>
487
488         PR 24262
489         * ld.texi (-plugin): Correct the path used to locate linker
490         plugins.
491
492 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
493
494         * NEWS: Document --pac-plt.
495         * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
496         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
497         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
498         * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
499         * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
500         * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
501         * testsuite/ld-aarch64/pac-plt-1.d: New test.
502         * testsuite/ld-aarch64/pac-plt-2.d: New test.
503         * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
504
505 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
506             Szabolcs Nagy  <szabolcs.nagy@arm.com>
507
508         * NEWS: Document --force-bti.
509         * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
510         (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
511         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
512         * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
513         * testsuite/ld-aarch64/bti-plt-1.d: New test.
514         * testsuite/ld-aarch64/bti-plt-1.s: New test.
515         * testsuite/ld-aarch64/bti-plt-2.d: New test.
516         * testsuite/ld-aarch64/bti-plt-3.d: New test.
517         * testsuite/ld-aarch64/bti-plt-4.d: New test.
518         * testsuite/ld-aarch64/bti-plt-5.d: New test.
519         * testsuite/ld-aarch64/bti-plt-6.d: New test.
520         * testsuite/ld-aarch64/bti-plt-7.d: New test.
521         * testsuite/ld-aarch64/bti-plt-so.s: New test.
522         * testsuite/ld-aarch64/bti-plt.ld: New test.
523
524 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
525
526         * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
527         GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
528         * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
529         * testsuite/ld-aarch64/property-bti-pac1.d: New test.
530         * testsuite/ld-aarch64/property-bti-pac1.s: New test.
531         * testsuite/ld-aarch64/property-bti-pac2.d: New test.
532         * testsuite/ld-aarch64/property-bti-pac2.s: New test.
533         * testsuite/ld-aarch64/property-bti-pac3.d: New test.
534
535 2019-03-13  H.J. Lu  <hongjiu.lu@intel.com>
536
537         PR ld/24322
538         * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
539         * testsuite/ld-x86-64/x86-64.exp: Likewise.
540         * testsuite/ld-i386/pr24322a.d: New file.
541         * testsuite/ld-i386/pr24322b.d: Likewise.
542         * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
543         * testsuite/ld-x86-64/pr24322a.d: Likewise.
544         * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
545         * testsuite/ld-x86-64/pr24322b.d: Likewise.
546         * testsuite/ld-x86-64/pr24322a.s: Likewise.
547         * testsuite/ld-x86-64/pr24322b.s: Likewise.
548         * testsuite/ld-x86-64/pr24322c.s: Likewise.
549
550 2019-03-06  Nick Bowler  <nbowler@draconx.ca>
551
552         PR 24289
553         * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
554         attributes during the first phase.
555
556 2019-03-01  Andreas Krebbel  <krebbel@linux.ibm.com>
557
558         This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
559         2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
560
561         PR 20113
562         * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
563         * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
564         * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
565         * testsuite/ld-s390/tlsbin.dd: Likewise.
566         * testsuite/ld-s390/tlsbin.rd: Likewise.
567         * testsuite/ld-s390/tlsbin.sd: Likewise.
568         * testsuite/ld-s390/tlsbin_64.dd: Likewise.
569         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
570         * testsuite/ld-s390/tlsbin_64.sd: Likewise.
571         * testsuite/ld-s390/tlspic.dd: Likewise.
572         * testsuite/ld-s390/tlspic.rd: Likewise.
573         * testsuite/ld-s390/tlspic.sd: Likewise.
574         * testsuite/ld-s390/tlspic_64.dd: Likewise.
575         * testsuite/ld-s390/tlspic_64.rd: Likewise.
576         * testsuite/ld-s390/tlspic_64.sd: Likewise.
577         * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
578
579 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
580
581         PR ld/24276
582         * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
583         * testsuite/ld-x86-64/x86-64.exp: Likewise.
584         * testsuite/ld-i386/pr24276.dso: New file.
585         * testsuite/ld-i386/pr24276.warn: Likewise.
586         * testsuite/ld-x86-64/pr24276.dso: Likewise.
587         * testsuite/ld-x86-64/pr24276.warn: Likewise.
588
589 2019-02-20  Eric Tsai  <erictsai@cadence.com>
590
591         * testsuite/ld-xtensa/call_overflow.d: New test definition.
592         * testsuite/ld-xtensa/call_overflow1.s: New test source.
593         * testsuite/ld-xtensa/call_overflow2.s: New test source.
594         * testsuite/ld-xtensa/call_overflow3.s: New test source.
595         * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
596
597 2019-02-14  Thomas Schwinge  <thomas@codesourcery.com>
598
599         * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
600
601 2019-02-12  Nick Clifton  <nickc@redhat.com>
602
603         * po/fr.po: Updated French translation.
604
605 2019-02-09  Vineet Gupta  <vgupta@synopsys.com>
606
607         * emultempl/arclinux.em: Delete special INIT/FINI handling.
608
609 2019-02-07  Nick Clifton  <nickc@redhat.com>
610
611         PR 24175
612         * ld.texi (Options): Add missing word to the description of the
613         --start-group option.
614
615 2019-02-06  Alan Modra  <amodra@gmail.com>
616
617         PR ld/24008
618         * testsuite/ld-scripts/pr24008.d: Pass with extra target
619         defined symbols.
620
621 2019-02-05  H.J. Lu  <hongjiu.lu@intel.com>
622
623         PR ld/24151
624         * testsuite/ld-x86-64/pr24151a-x32.d: New file.
625         * testsuite/ld-x86-64/pr24151a.d: Likewise.
626         * testsuite/ld-x86-64/pr24151a.s: Likewise.
627         * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
628
629 2019-01-31  Alan Modra  <amodra@gmail.com>
630
631         * NEWS: Mention -t change.
632         * ld.texi (--trace/-t): Expand documentation a little.
633
634 2019-01-29  H.J. Lu  <hongjiu.lu@intel.com>
635
636         PR ld/24008
637         * testsuite/ld-scripts/defined.exp: Run pr24008.
638         * testsuite/ld-scripts/pr24008.d: New file.
639         * testsuite/ld-scripts/pr24008.map: Likewise.
640         * testsuite/ld-scripts/pr24008.s: Likewise.
641         * testsuite/ld-scripts/pr24008.t: Likewise.
642
643 2019-01-29  Eric Botcazou  <ebotcazou@adacore.com>
644
645         * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
646
647 2019-01-28  Alan Modra  <amodra@gmail.com>
648
649         PR 24008
650         * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
651         * ldexp.c (fold_name): Move expld.assign_name check later to
652         avoid an extra lookup.
653         (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
654         values, and don't clear expld.assign_name.
655         * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
656         (print_assignment): Resolve entire assignment expression.
657         Don't access symbol u.def unless symbol is defined.
658
659 2019-01-25  Nick Clifton  <nickc@redhat.com>
660
661         * po/bg.po: Updated Bulgarian translation.
662
663 2019-01-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
664
665         * ld.texi (--wrap): Add warning that LTO may make this feature
666         ineffective.
667
668 2019-01-21  Nick Clifton  <nickc@redhat.com>
669
670         * po/uk.po: Updated Ukranian translation.
671         * po/pr_BR.po: Updated Brazilian Portuguese translation.
672
673 2019-01-21  Nick Clifton  <nickc@redhat.com>
674
675         PR 24108
676         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
677         expected error message.
678
679 2019-01-19  Nick Clifton  <nickc@redhat.com>
680
681         * configure: Regenerate.
682         * po/ld.pot: Regenerate.
683
684 2018-06-24  Nick Clifton  <nickc@redhat.com>
685
686         2.32 branch created.
687
688 2019-01-16  Kito Cheng  <kito@andestech.com>
689
690         * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
691         section.
692         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
693         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
694         * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
695         * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
696         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
697         * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
698         * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
699         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
700         * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
701         * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
702         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
703         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
704         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
705         * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
706         * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
707         * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
708         * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
709         * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
710         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
711         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
712         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
713         * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
714         * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
715         * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
716         * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
717         * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
718         * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
719         * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
720         * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
721         * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
722         * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
723         * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
724         * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
725         * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
726         * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
727         * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
728         * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
729
730 2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
731
732         PR 20113
733         * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
734         * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
735         * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
736         * testsuite/ld-s390/tlsbin.dd: Likewise.
737         * testsuite/ld-s390/tlsbin.rd: Likewise.
738         * testsuite/ld-s390/tlsbin.sd: Likewise.
739         * testsuite/ld-s390/tlsbin_64.dd: Likewise.
740         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
741         * testsuite/ld-s390/tlsbin_64.sd: Likewise.
742         * testsuite/ld-s390/tlspic.dd: Likewise.
743         * testsuite/ld-s390/tlspic.rd: Likewise.
744         * testsuite/ld-s390/tlspic.sd: Likewise.
745         * testsuite/ld-s390/tlspic_64.dd: Likewise.
746         * testsuite/ld-s390/tlspic_64.rd: Likewise.
747         * testsuite/ld-s390/tlspic_64.sd: Likewise.
748         * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
749
750 2019-01-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
751
752         * ld.texi (--wrap): Add example to emphasise that only undefined
753         references are replaced by the linker.
754
755 2019-01-09  Nick Clifton  <nickc@redhat.com>
756
757         * po/es.po: Updated Spanish translation.
758
759 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
760
761         * configure: Regenerate.
762
763 2019-01-08  Alan Modra  <amodra@gmail.com>
764
765         * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
766         generated source file names.
767         * testsuite/ld-m68k/m68k-got.exp: Likewise.
768
769 2019-01-01  Alan Modra  <amodra@gmail.com>
770
771         Update year range in copyright notice of all files.
772
773 For older changes see ChangeLog-2018
774 \f
775 Copyright (C) 2019 Free Software Foundation, Inc.
776
777 Copying and distribution of this file, with or without modification,
778 are permitted in any medium without royalty provided the copyright
779 notice and this notice are preserved.
780
781 Local Variables:
782 mode: change-log
783 left-margin: 8
784 fill-column: 74
785 version-control: never
786 End: