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