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