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