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