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