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