1 2019-09-11 Alan Modra <amodra@gmail.com>
3 * Makefile.am (ALL_EMUL_EXTRA_OFILES): Add ldelf and ldelfgen.
4 (CFILES, HFILES, EXTRA_ld_new_SOURCES): Likewise.
5 * configure.tgt: Formatting.
6 (targ_extra_ofiles): Init to ldelf.o ldelfgen.o, reset to just
7 ldelfgen.o for generic ELF targets, and empty for non-ELF.
8 * emultempl/aarch64elf.em (gldaarch64_layout_sections_again): Use
10 (gld${EMULATION_NAME}_after_allocation): Likewise.
11 (real_func, aarch64_for_each_input_file_wrapper),
12 (aarch64_lang_for_each_input_file): Delete.
13 (lang_for_each_input_file): Don't define.
14 * emultempl/alphaelf.em (alpha_after_parse): Use ldelf_map_segments.
15 * emultempl/armelf.em (gldarm_layout_sections_again): Likewise.
16 (gld${EMULATION_NAME}_after_allocation): Likewise.
17 (real_func, arm_for_each_input_file_wrapper),
18 (arm_lang_for_each_input_file): Delete.
19 (lang_for_each_input_file): Don't define.
20 * emultempl/cr16elf.em (cr16elf_after_parse): Use ldelf_map_segments.
21 * emultempl/crxelf.em (crxelf_after_parse): Likewise. Delete
23 * emultempl/cskyelf.em (gldcsky_layout_sections_again): Use
25 (gld${EMULATION_NAME}_after_allocation): Likewise.
26 (real_func, csky_for_each_input_file_wrapper),
27 (csky_lang_for_each_input_file): Delete.
28 (lang_for_each_input_file): Don't define.
29 * emultempl/genelf.em: Include ldelfgen.h.
30 (gld${EMULATION_NAME}_before_allocation): Use ldelf_map_segments.
31 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
32 (hppaelf_layout_sections_again): Likewise.
33 (gld${EMULATION_NAME}_after_allocation): Likewise.
34 (real_func, hppa_for_each_input_file_wrapper),
35 (hppa_lang_for_each_input_file): Delete.
36 (lang_for_each_input_file): Don't define.
37 * emultempl/ia64elf.em (ia64elf_after_parse): Use ldelf_map_segments.
38 * emultempl/m68hc1xelf.em (real_func),
39 (m68hc11_for_each_input_file_wrapper),
40 (m68hc11_lang_for_each_input_file): Delete.
41 (lang_for_each_input_file): Don't define.
42 * emultempl/metagelf.em (metagelf_layout_sections_again): Use
44 (gld${EMULATION_NAME}_after_allocation): Likewise.
45 (real_func, metag_for_each_input_file_wrapper),
46 (metag_lang_for_each_input_file): Delete.
47 (lang_for_each_input_file): Don't define.
48 * emultempl/mipself.em (real_func),
49 (mips_for_each_input_file_wrapper),
50 (mips_lang_for_each_input_file): Delete.
51 (lang_for_each_input_file): Don't define.
52 * emultempl/mmo.em: Don't include elf-bfd.h, do include ldelfgen.h.
53 (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
54 * emultempl/nds32elf.em (nds32_elf_after_parse): Use ldelf_after_parse.
55 (nds32_elf_after_allocation): Comment fix.
56 * emultempl/nios2elf.em (nios2elf_layout_sections_again): Use
58 (gld${EMULATION_NAME}_after_allocation): Likewise.
59 (real_func, nios2_for_each_input_file_wrapper),
60 (nios2_lang_for_each_input_file): Delete.
61 (lang_for_each_input_file): Don't define.
62 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_load_symbols): Delete
64 (ppc_recognized_file): Call ldelf_load_symbols.
65 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
66 (gld${EMULATION_NAME}_after_allocation): Likewise.
67 (real_func, ppc_for_each_input_file_wrapper),
68 (ppc_lang_for_each_input_file): Delete.
69 (lang_for_each_input_file): Don't define.
70 (gld${EMULATION_NAME}_load_symbols): Don't declare.
71 (ppc64_recognized_file): Call ldelf_load_symbols.
72 * emultempl/riscvelf.em (gld${EMULATION_NAME}_after_allocation):
73 Use ldelf_map_segments.
74 * emultempl/spuelf.em (spu_place_special_section): Use
76 * emultempl/tic6xdsbt.em (gld${EMULATION_NAME}_after_allocation):
77 Use ldelf_map_segments.
78 * emultempl/vms.em: Include ldelfgen.h.
79 (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
80 * emultempl/elf32.em: Remove unnecessary headers, include ldelf.h
81 and ldelfgen.h. Move much of file content to..
82 * ldelf.c: ..here. New file.
84 * emultempl/elf-generic.em: Move gld${EMULATION_NAME}_map_segments..
85 * ldelfgen.c: ..to here.
86 * ldelfgen.h: New file.
87 * ldlang.c (lang_for_each_input_file): Adjust to only call func
89 (lang_for_each_file): Likewise.
90 * po/SRC-POTFILES.in: Regenerate.
91 * Makefile.in: Regenerate.
93 2019-09-11 Alan Modra <amodra@gmail.com>
95 * ldmisc.c: Don't #include elf-bfd.h or coff-bfd.h.
96 (vfinfo): Use bfd_group_name.
98 2019-09-11 Alan Modra <amodra@gmail.com>
100 * plugin.c (asymbol_from_plugin_symbol): Move code handling
101 ELF common symbols to block handling ELF visibility. Simplify
104 2019-09-09 H.J. Lu <hongjiu.lu@intel.com>
107 * testsuite/ld-i386/property-1.r: Adjust for new output format
109 * testsuite/ld-i386/property-1a.r: Likewise.
110 * testsuite/ld-i386/property-2.r: Likewise.
111 * testsuite/ld-i386/property-2a.r: Likewise.
112 * testsuite/ld-i386/property-3.r: Likewise.
113 * testsuite/ld-i386/property-3a.r: Likewise.
114 * testsuite/ld-i386/property-4.r: Likewise.
115 * testsuite/ld-i386/property-4a.r: Likewise.
116 * testsuite/ld-i386/property-5.r: Likewise.
117 * testsuite/ld-i386/property-5a.r: Likewise.
118 * testsuite/ld-i386/property-6.r: Likewise.
119 * testsuite/ld-i386/property-7.r: Likewise.
120 * testsuite/ld-i386/property-7a.r: Likewise.
121 * testsuite/ld-i386/property-1.r: Likewise.
122 * testsuite/ld-i386/property-1a.r: Likewise.
123 * testsuite/ld-i386/property-2.r: Likewise.
124 * testsuite/ld-i386/property-2a.r: Likewise.
125 * testsuite/ld-i386/property-3.r: Likewise.
126 * testsuite/ld-i386/property-3a.r: Likewise.
127 * testsuite/ld-i386/property-4.r: Likewise.
128 * testsuite/ld-i386/property-4a.r: Likewise.
129 * testsuite/ld-i386/property-5.r: Likewise.
130 * testsuite/ld-i386/property-5a.r: Likewise.
131 * testsuite/ld-i386/property-6.r: Likewise.
132 * testsuite/ld-i386/property-7.r: Likewise.
133 * testsuite/ld-i386/property-7a.r: Likewise.
135 2019-09-09 Phil Blundell <pb@pbcl.net>
137 binutils 2.33 branch created.
139 2019-09-06 Alan Modra <amodra@gmail.com>
141 * emultempl/beos.em (sort_by_file_name): Use appropriate
142 intermediary variables.
143 (sort_by_section_name): Likewise.
145 2019-09-06 Alan Modra <amodra@gmail.com>
147 * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Constify
149 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
150 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
152 2019-09-05 Eric Botcazou <ebotcazou@adacore.com>
155 * pe-dll.c (pe_find_data_imports): Replace again the original name of
156 the undefined symbol with the __imp_ prefixed one after it is resolved.
158 2019-09-05 Alan Modra <amodra@gmail.com>
160 * testsuite/ld-powerpc/pcrelopt.s,
161 * testsuite/ld-powerpc/pcrelopt.d: Test offset and prefix in
164 2019-08-29 Alan Modra <amodra@gmail.com>
167 * plugin.c (get_symbols): Test link_info.wrap_hash before calling
170 2019-08-22 Tamar Christina <tamar.christina@arm.com>
173 * testsuite/ld-aarch64/aarch64-elf.exp (undef-tls, weak-tls): New.
174 * testsuite/ld-aarch64/undef-tls.d: New test.
175 * testsuite/ld-aarch64/undef-tls.s: New test.
176 * testsuite/ld-aarch64/weak-tls.d: New test.
177 * testsuite/ld-aarch64/weak-tls.s: New test.
179 2019-08-20 Tamar Christina <tamar.christina@arm.com>
181 * testsuite/ld-arm/cortex-a8-fix-b-plt.d: Update Testcase.
182 * testsuite/ld-arm/cortex-a8-fix-b-rel-arm.d: Likewise.
183 * testsuite/ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
184 * testsuite/ld-arm/farcall-cond-thumb-arm.d: Likewise.
185 * testsuite/ld-arm/farcall-mixed-app.d: Likewise.
186 * testsuite/ld-arm/farcall-mixed-app2.d: Likewise.
187 * testsuite/ld-arm/farcall-mixed-lib-v4t.d: Likewise.
188 * testsuite/ld-arm/farcall-thumb-arm-pic-veneer.d: Likewise.
189 * testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
190 * testsuite/ld-arm/farcall-thumb-arm.d: Likewise.
191 * testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
192 * testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
193 * testsuite/ld-arm/fix-arm1176-on.d: Likewise.
194 * testsuite/ld-arm/ifunc-10.dd: Likewise.
195 * testsuite/ld-arm/ifunc-2.dd: Likewise.
196 * testsuite/ld-arm/ifunc-4.dd: Likewise.
197 * testsuite/ld-arm/ifunc-6.dd: Likewise.
198 * testsuite/ld-arm/ifunc-8.dd: Likewise.
199 * testsuite/ld-arm/jump-reloc-veneers-long.d: Likewise.
200 * testsuite/ld-arm/mixed-app.d: Likewise.
201 * testsuite/ld-arm/thumb2-b-interwork.d: Likewise.
202 * testsuite/ld-arm/tls-longplt.d: Likewise.
203 * testsuite/ld-arm/tls-thumb1.d: Likewise.
205 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
208 * testsuite/ld-x86-64/pr24905-x32.d: New file.
209 * testsuite/ld-x86-64/pr24905.d: Likewise.
210 * testsuite/ld-x86-64/pr24905.s: Likewise.
211 * testsuite/ld-x86-64/pr24905.t: Likewise.
212 * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
214 2019-08-16 Christophe Lyon <christophe.lyon@linaro.org>
216 * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
219 2019-08-16 Alan Modra <amodra@gmail.com>
221 * emultempl/ppc32elf.em (ppc_before_allocation): Force running
222 prelim_size_sections before deciding whether branch trampolines
225 2019-08-15 Jim Wilson <jimw@sifive.com>
227 * testsuite/ld-riscv-elf/c-lui-2.d: New.
228 * testsuite/ld-riscv-elf/c-lui-2.ld: New.
229 * testsuite/ld-riscv-elf/c-lui-2.s: New.
230 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
232 2019-08-10 Alan Modra <amodra@gmail.com>
234 * ldlang.h (enum statement_enum): Sort.
235 (union lang_statement_union): Sort.
237 2019-08-10 Alan Modra <amodra@gmail.com>
239 * ldlang.h (lang_common_statement_type): Delete.
240 (lang_object_symbols_statement_type): Delete.
241 (union lang_statement_union): Remove common_statement and
242 object_symbols_statement.
244 2019-08-10 Alan Modra <amodra@gmail.com>
246 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
247 (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
248 stat_alloc return value.
249 * ldlang.c (new_statement, new_afile, sort_def_symbol),
250 (lang_memory_region_lookup, lang_memory_region_alias),
251 (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
252 (lang_add_gc_name, lang_new_phdr): Likewise.
253 * lexsup.c (set_segment_start): Likewise.
255 2019-08-10 Alan Modra <amodra@gmail.com>
257 * ldlang.h (lang_input_statement_type): Make next
258 and next_real_file a lang_input_statement_type pointer.
259 (lang_statement_append): Delete prototype.
260 (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
262 * ldmain.c (add_archive_element): Likewise.
263 * ldlang.c: Likewise throughout.
264 (lang_statement_append): Make static. Make element and field
265 void pointers. Remove casts in calls.
266 (lang_check): Use a lang_input_statement_type pointer for "file".
267 (find_rescan_insertion): Similarly for "iter" and return value.
268 (lang_process): Similarly for "insert", "iter" and "temp".
269 * emultempl/spuelf.em (embedded_spu_file): Likewise.
270 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
271 lang_statment_append call.
273 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
275 * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
276 * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
277 * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
278 * emultempl/mipself.em: Remove mips_after_parse function.
279 * testsuite/ld-elf/hash.d: Update comment.
280 * testsuite/ld-mips-elf/hash1.d: New test.
281 * testsuite/ld-mips-elf/hash1.s: Ditto.
282 * testsuite/ld-mips-elf/hash1a.d: Remove.
283 * testsuite/ld-mips-elf/hash1b.d: Ditto.
284 * testsuite/ld-mips-elf/hash1c.d: Ditto
285 * testsuite/ld-mips-elf/hash2.d: New test.
286 * testsuite/ld-mips-elf/mips-elf.exp: New tests.
287 * testsuite/ld-mips-elf/start.s: New test.
289 2019-08-08 Nick Clifton <nickc@redhat.com>
292 * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
294 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
295 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
296 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
297 * testsuite/ld-aarch64/bti-warn.d: Likewise.
298 * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
299 * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
300 * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
301 * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
302 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
303 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
304 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
305 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
306 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
307 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
308 * testsuite/ld-i386/pr23372a.d: Likewise.
309 * testsuite/ld-i386/pr23372c.d: Likewise.
310 * testsuite/ld-i386/pr23486a.d: Likewise.
311 * testsuite/ld-i386/pr23486b.d: Likewise.
312 * testsuite/ld-i386/pr23486c.d: Likewise.
313 * testsuite/ld-i386/pr23486d.d: Likewise.
314 * testsuite/ld-i386/pr24322a.d: Likewise.
315 * testsuite/ld-i386/pr24322b.d: Likewise.
316 * testsuite/ld-i386/property-x86-3.d: Likewise.
317 * testsuite/ld-i386/property-x86-4a.d: Likewise.
318 * testsuite/ld-i386/property-x86-5.d: Likewise.
319 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
320 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
321 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
322 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
323 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
324 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
325 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
326 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
327 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
328 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
329 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
330 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
331 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
332 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
333 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
334 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
335 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
336 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
337 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
338 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
339 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
340 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
341 * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
342 * testsuite/ld-x86-64/pr23372a.d: Likewise.
343 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
344 * testsuite/ld-x86-64/pr23372c.d: Likewise.
345 * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
346 * testsuite/ld-x86-64/pr23486a.d: Likewise.
347 * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
348 * testsuite/ld-x86-64/pr23486b.d: Likewise.
349 * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
350 * testsuite/ld-x86-64/pr23486c.d: Likewise.
351 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
352 * testsuite/ld-x86-64/pr23486d.d: Likewise.
353 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
354 * testsuite/ld-x86-64/pr24322a.d: Likewise.
355 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
356 * testsuite/ld-x86-64/pr24322b.d: Likewise.
357 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
358 * testsuite/ld-x86-64/pr24458a.d: Likewise.
359 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
360 * testsuite/ld-x86-64/pr24458b.d: Likewise.
361 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
362 * testsuite/ld-x86-64/pr24458c.d: Likewise.
363 * testsuite/ld-x86-64/property-1.r: Likewise.
364 * testsuite/ld-x86-64/property-1a.r: Likewise.
365 * testsuite/ld-x86-64/property-2.r: Likewise.
366 * testsuite/ld-x86-64/property-2a.r: Likewise.
367 * testsuite/ld-x86-64/property-3.r: Likewise.
368 * testsuite/ld-x86-64/property-3a.r: Likewise.
369 * testsuite/ld-x86-64/property-4.r: Likewise.
370 * testsuite/ld-x86-64/property-4a.r: Likewise.
371 * testsuite/ld-x86-64/property-5.r: Likewise.
372 * testsuite/ld-x86-64/property-5a.r: Likewise.
373 * testsuite/ld-x86-64/property-6.r: Likewise.
374 * testsuite/ld-x86-64/property-7.r: Likewise.
375 * testsuite/ld-x86-64/property-7a.r: Likewise.
376 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
377 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
378 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
379 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
380 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
381 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
382 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
383 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
384 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
385 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
386 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
387 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
388 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
389 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
390 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
391 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
392 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
393 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
394 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
395 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
396 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
397 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
398 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
399 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
400 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
401 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
402 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
403 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
404 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
405 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
406 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
407 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
408 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
409 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
410 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
411 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
412 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
413 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
414 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
415 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
416 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
417 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
419 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
421 * scripttempl/elf64bpf.sc: Adapted from elf.sc.
422 * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
424 * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
425 undefined entry symbol.
426 * testsuite/ld-bpf/jump-1.d: Likewise.
427 * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
428 ld in BPF targets, and do not expect line number information.
429 * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
432 2019-08-06 Alan Modra <amodra@gmail.com>
435 * ldlang.c (find_replacements_insert_point): Return "before" flag.
436 (find_next_input_statement): New function.
437 (lang_process): When placing recompiled LTO objects before a
438 claimed archive, place them immediately before in the statement
441 2019-08-06 Alan Modra <amodra@gmail.com>
444 * ldlang.c (plugin_undefs): New static var.
445 (open_input_bfds <lang_group_statement_enum>): Loop on
446 plugin_undefs and hitting plugin_insert point.
447 (lang_process <lto_plugin_active>): Set plugin_undefs.
449 2019-08-02 Alan Modra <amodra@gmail.com>
451 * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
453 2019-08-01 Alan Modra <amodra@gmail.com>
456 * ldlang.c (process_insert_statements): Add start of list
457 parameter. Use rather than lang_os_list.head. Process insert
458 statements inside group statements with a recursive call.
459 (lang_process): Adjust process_insert_statements call.
460 * lexsup.c (parse_args): Warn when adding missing --end-group.
462 2019-08-01 Alan Modra <amodra@gmail.com>
464 * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
465 * ldlang.c: Likewise throughout file.
466 * emultempl/alphaelf.em: Likewise.
467 * emultempl/elf32.em: Likewise.
468 * emultempl/mmo.em: Likewise.
469 * emultempl/pe.em: Likewise.
470 * emultempl/pep.em: Likewise.
471 * emultempl/ppc32elf.em: Likewise.
472 * emultempl/spuelf.em: Likewise.
474 2019-07-26 Alan Modra <amodra@gmail.com>
476 * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
477 * testsuite/ld-plugin/lto-5r.d: Likewise.
479 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
481 * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
483 * testsuite/ld-plugin/lto-5r.d: Likewise.
484 * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
486 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
488 * ld-arc/relax-local-pic.d: New test.
489 * ld-arc/relax-local-pic.s: New file.
491 2019-07-22 Martin Liska <mliska@suse.cz>
493 * testsuite/ld-plugin/lto-3r.d: Remove.
494 * testsuite/ld-plugin/lto-5r.d: Remove.
495 * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
498 2019-07-23 Alan Modra <amodra@gmail.com>
500 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
501 SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
503 2019-07-23 Alan Modra <amodra@gmail.com>
505 * testsuite/ld-elf/size-1.d,
506 * testsuite/ld-elf/size-1.s,
507 * testsuite/ld-elf/size-1.t: New test.
508 * testsuite/ld-elf/size-2.d,
509 * testsuite/ld-elf/size-2.s,
510 * testsuite/ld-elf/size-2.t: New test.
511 * testsuite/ld-scripts/size-1.d,
512 * testsuite/ld-scripts/size-1.s,
513 * testsuite/ld-scripts/size-1.t,
514 * testsuite/ld-scripts/size-2.s,
515 * testsuite/ld-scripts/size-2.d,
516 * testsuite/ld-scripts/size-2.t,
517 * testsuite/ld-scripts/size.exp: Delete.
519 2019-07-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
521 * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
522 allow for output from a arm-none-linux-gnueabihf target.
524 2019-07-20 Alan Modra <amodra@gmail.com>
527 * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
529 2019-07-19 Alan Modra <amodra@gmail.com>
531 * testsuite/ld-powerpc/tlsgd.d,
532 * testsuite/ld-powerpc/tlsgd.s,
533 * testsuite/ld-powerpc/tlsie.d,
534 * testsuite/ld-powerpc/tlsie.s,
535 * testsuite/ld-powerpc/tlsld.d,
536 * testsuite/ld-powerpc/tlsld.s: New tests.
537 * testsuite/ld-powerpc/powerpc.exp: Run them.
539 2019-07-19 Alan Modra <amodra@gmail.com>
541 * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
542 * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
543 * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
544 * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
545 * testsuite/ld-powerpc/powerpc.exp: Update.
547 2019-07-19 Alan Modra <amodra@gmail.com>
550 * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
552 2019-07-18 H.J. Lu <hongjiu.lu@intel.com>
555 * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
556 member of output section group when doing a relocatable link.
557 * testsuite/ld-elf/pr24819.d: New file.
558 * testsuite/ld-elf/pr24819.s: Likewise.
560 2019-07-13 Alan Modra <amodra@gmail.com>
562 * testsuite/ld-powerpc/tlsso.r: Update.
563 * testsuite/ld-powerpc/tlsso32.g: Update.
564 * testsuite/ld-powerpc/tlsso32.r: Update.
565 * testsuite/ld-powerpc/tlstocso.r: Update.
566 * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
567 * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
568 * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
569 * testsuite/ld-cris/tls-gd-1.d: Update.
570 * testsuite/ld-cris/tls-gd-1h.d: Update.
571 * testsuite/ld-cris/tls-gd-2.d: Update.
572 * testsuite/ld-cris/tls-gd-2h.d: Update.
573 * testsuite/ld-cris/tls-ie-10.d: Update.
574 * testsuite/ld-cris/tls-ie-11.d: Update.
575 * testsuite/ld-cris/tls-ie-8.d: Update.
576 * testsuite/ld-cris/tls-ie-9.d: Update.
577 * testsuite/ld-cris/tls-js1.d: Update.
578 * testsuite/ld-cris/tls-ld-4.d: Update.
579 * testsuite/ld-cris/tls-ld-5.d: Update.
580 * testsuite/ld-cris/tls-ld-6.d: Update.
581 * testsuite/ld-cris/tls-ld-7.d: Update.
582 * testsuite/ld-cris/tls-ldgd-14.d: Update.
583 * testsuite/ld-cris/tls-ldgd-15.d: Update.
584 * testsuite/ld-cris/tls-ldgdx-14.d: Update.
585 * testsuite/ld-cris/tls-ldgdx-15.d: Update.
586 * testsuite/ld-cris/tls-local-54.d: Update.
587 * testsuite/ld-cris/tls-local-60.d: Update.
588 * testsuite/ld-cris/tls-local-61.d: Update.
589 * testsuite/ld-cris/tls-local-63.d: Update.
590 * testsuite/ld-cris/tls-local-64.d: Update.
591 * testsuite/ld-cris/tls-ok-30.d: Update.
592 * testsuite/ld-cris/tls-ok-32.d: Update.
593 * testsuite/ld-cris/tls-ok-34.d: Update.
594 * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
595 * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
596 * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
597 * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
598 * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
599 * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
600 * testsuite/ld-mips-elf/tlslib-o32.got: Update.
601 * testsuite/ld-s390/tlspic.rd: Update.
602 * testsuite/ld-s390/tlspic_64.rd: Update.
603 * testsuite/ld-sparc/tlssunnopic32.rd: Update.
604 * testsuite/ld-sparc/tlssunnopic64.rd: Update.
605 * testsuite/ld-sparc/tlssunpic32.rd: Update.
606 * testsuite/ld-sparc/tlssunpic64.rd: Update.
608 2019-07-13 Alan Modra <amodra@gmail.com>
611 * ldlang.h (enum section_type): Add first_overlay_section.
612 * ldlang.c (lang_add_section): Adjust switch statement.
613 (map_input_to_output_sections): Likewise.
614 (lang_size_sections_1): Always set last_os for first overlay section.
615 (lang_leave_overlay): Set sectype to first_overlay_section.
617 2019-07-08 Alan Modra <amodra@gmail.com>
619 * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
620 * testsuite/ld-powerpc/callstub-2.d: Likewise.
622 2019-07-04 Jan Beulich <jbeulich@suse.com>
624 * testsuite/ld-elf/group9.s: Correct argument of .type.
626 2019-07-02 Nick Clifton <nickc@redhat.com>
629 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
630 LINKER_CREATED section flag when creating the stub section.
632 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
634 * testsuite/ld-arm/arm-elf.exp: Add tests.
635 * testsuite/ld-arm/cmse_main.s: New test.
636 * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
637 * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
639 2019-07-01 Nick Clifton <nickc@redhat.com>
642 * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
645 2019-06-28 Alan Modra <amodra@gmail.com>
647 * testsuite/ld-powerpc/callstub-1.d,
648 * testsuite/ld-powerpc/callstub-1.s: New test.
649 * testsuite/ld-powerpc/callstub-2.d,
650 * testsuite/ld-powerpc/callstub-2.s: New test.
651 * testsuite/ld-powerpc/powerpc.exp: Run them.
653 2019-06-25 Jan Beulich <jbeulich@suse.com>
655 * plugin.c (get_lto_kind, get_lto_resolution,
656 get_lto_visibility): Rename "index" to "idx".
658 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
661 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
662 * testsuite/ld-x86-64/pr24721-x32.d: New file.
663 * testsuite/ld-x86-64/pr24721.d: Likewise.
664 * testsuite/ld-x86-64/pr24721.map: Likewise.
665 * testsuite/ld-x86-64/pr24721a.s: Likewise.
666 * testsuite/ld-x86-64/pr24721b.s: Likewise.
668 2019-06-23 Alan Modra <amodra@gmail.com>
671 * testsuite/ld-powerpc/elfv2exe.d: Update.
672 * testsuite/ld-powerpc/elfv2so.d: Update.
674 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
676 * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
677 * testsuite/ld-aarch64/emit-relocs-22.d: New test.
678 * testsuite/ld-aarch64/emit-relocs-22.s: New test.
679 * testsuite/ld-aarch64/emit-relocs-23.d: New test.
680 * testsuite/ld-aarch64/emit-relocs-23.s: New test.
682 2019-06-14 Alan Modra <amodra@gmail.com>
684 * Makefile.in: Regenerate.
685 * configure: Regenerate.
687 2019-06-14 Alan Modra <amodra@gmail.com>
690 * testsuite/ld-alpha/tlsbin.rd: Update.
691 * testsuite/ld-alpha/tlsbinr.rd: Update.
692 * testsuite/ld-alpha/tlspic.rd: Update.
694 2019-06-07 Maciej W. Rozycki <macro@wdc.com>
696 * ld.texi (Options): Also document `-rpath' option restrictions
697 in the description of the option itself.
699 2019-06-06 Sudakshina Das <sudi.das@arm.com>
701 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
702 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
703 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
704 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
706 2019-06-06 Sudakshina Das <sudi.das@arm.com>
708 * NEWS: Update options names.
709 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
710 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
711 (PARSE_AND_LIST_OPTIONS): Update to -z.
712 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
713 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
714 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
715 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
716 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
717 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
718 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
719 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
720 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
721 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
722 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
723 * testsuite/ld-aarch64/bti-warn.d: Likewise.
724 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
725 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
727 2019-05-30 Nick Clifton <nickc@redhat.com>
730 * testsuite/ld-elf/ver_def.vd: Update expected output.
732 2019-05-30 Alan Modra <amodra@gmail.com>
735 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
736 (EXTRA_EM_FILE): Define to genelf.
737 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
739 2019-05-30 Alan Modra <amodra@gmail.com>
741 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
742 calls in optional "xfail" args.
743 (run_ld_link_exec_tests): Likewise.
745 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
746 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
747 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
749 * testsuite/ld-elf/sec64k.exp: Use is_generic.
750 * testsuite/ld-elf/shared.exp: Likewise.
751 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
752 * testsuite/ld-discard/start.d: Likewise.
753 * testsuite/ld-discard/static.d: Likewise.
754 * testsuite/ld-elf/attributes.d: Likewise.
755 * testsuite/ld-elf/group1.d: Likewise.
756 * testsuite/ld-elf/group3b.d: Likewise.
757 * testsuite/ld-elf/group8a.d: Likewise.
758 * testsuite/ld-elf/group8b.d: Likewise.
759 * testsuite/ld-elf/group9a.d: Likewise.
760 * testsuite/ld-elf/group9b.d: Likewise.
761 * testsuite/ld-elf/linkonce2.d: Likewise.
762 * testsuite/ld-elf/merge2.d: Likewise.
763 * testsuite/ld-elf/merge3.d: Likewise.
764 * testsuite/ld-elf/pr12851.d: Likewise.
765 * testsuite/ld-elf/pr12975.d: Likewise.
766 * testsuite/ld-elf/pr13177.d: Likewise.
767 * testsuite/ld-elf/pr13195.d: Likewise.
768 * testsuite/ld-elf/pr17550c.d: Likewise.
769 * testsuite/ld-elf/pr17550d.d: Likewise.
770 * testsuite/ld-elf/pr17615.d: Likewise.
771 * testsuite/ld-elf/pr21562a.d: Likewise.
772 * testsuite/ld-elf/pr21562b.d: Likewise.
773 * testsuite/ld-elf/pr21562c.d: Likewise.
774 * testsuite/ld-elf/pr21562d.d: Likewise.
775 * testsuite/ld-elf/pr21562i.d: Likewise.
776 * testsuite/ld-elf/pr21562j.d: Likewise.
777 * testsuite/ld-elf/pr21562k.d: Likewise.
778 * testsuite/ld-elf/pr21562l.d: Likewise.
779 * testsuite/ld-elf/pr21562m.d: Likewise.
780 * testsuite/ld-elf/pr21562n.d: Likewise.
781 * testsuite/ld-elf/pr22677.d: Likewise.
782 * testsuite/ld-elf/pr22836-1a.d: Likewise.
783 * testsuite/ld-elf/pr22836-1b.d: Likewise.
784 * testsuite/ld-elf/warn3.d: Likewise.
785 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
786 targets rather than notarget.
787 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
788 * testsuite/ld-elf/orphan-10.d: Likewise.
789 * testsuite/ld-elf/orphan-9.d: Likewise.
790 * testsuite/ld-elf/orphan-region.d: Likewise.
791 * testsuite/ld-elf/orphan.d: Likewise.
792 * testsuite/ld-elf/orphan3.d: Likewise.
793 * testsuite/ld-elf/pr20528a.d: Likewise.
794 * testsuite/ld-elf/pr20528b.d: Likewise.
795 * testsuite/ld-elf/pr23658-1a.d: Likewise.
796 * testsuite/ld-elf/pr23658-1b.d: Likewise.
797 * testsuite/ld-elf/pr349.d: Likewise.
798 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
799 targets rather than notarget.
800 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
802 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
804 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
805 for pcrel_hi/pcrel_lo.
806 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
807 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
808 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
809 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
810 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
812 2019-05-28 Alan Modra <amodra@gmail.com>
815 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
816 the output is coff before accessing coff tdata.
817 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
819 2019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
821 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
822 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
824 2019-05-27 Alan Modra <amodra@gmail.com>
827 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
828 BFS_KEEP on group signature symbol.
830 2019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
832 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
833 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
834 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
835 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
836 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
837 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
838 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
840 2019-05-24 Alan Modra <amodra@gmail.com>
842 * po/BLD-POTFILES.in: Regenerate.
844 2019-05-24 Alan Modra <amodra@gmail.com>
846 * testsuite/ld-powerpc/notoc2.d,
847 * testsuite/ld-powerpc/notoc2.s: New test.
848 * testsuite/ld-powerpc/powerpc.exp: Run it.
850 2019-05-24 Alan Modra <amodra@gmail.com>
852 * testsuite/ld-powerpc/pcrelopt.s,
853 * testsuite/ld-powerpc/pcrelopt.d,
854 * testsuite/ld-powerpc/pcrelopt.sec: New test.
855 * testsuite/ld-powerpc/powerpc.exp: Run it.
857 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
859 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
860 * Makefile.in (prefix): Regenerate.
861 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
862 * emulparams/elf64bpf.sh: New file.
863 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
864 bpf-*-* to the list of targets not supporting gc-sections.
865 * testsuite/ld-bpf/bar.s: New file.
866 * testsuite/ld-bpf/jump-1.d: Likewise.
867 * testsuite/ld-bpf/foo.s: Likewise.
868 * testsuite/ld-bpf/call-1.d: Likewise.
869 * testsuite/ld-bpf/bpf.exp: Likewise.
870 * testsuite/ld-bpf/baz.s: Likewise.
872 2019-05-23 Alan Modra <amodra@gmail.com>
875 * ldfile.c (enum script_open_style): New.
876 (struct script_name_list): New.
877 (ldfile_open_command_file_1): Take a script_open_style param
878 rather than booleans. Adjust callers. Only fail when -T or
879 default -T script is invoked twice.
880 (ldfile_try_open_bfd): Revert last change.
882 2019-05-22 Julius Werner <jwerner@chromium.org>
883 Nick Clifton <nickc@redhat.com>
886 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
887 is_script. If true check that the file has not already been
888 parsed as a linker script.
889 (ldfile_open_script_file): New function.
890 (ldfile_try_open_bfd): Use the new function in place of
891 ldfile_open_command_line.
892 * ldmain.c (main): Likewise.
893 * lexsup.c (parse_args): Use the new function for opening linker
894 scripts with the -T option.
895 * ldfile.h (ldfile_open_script_file): Add prototype.
897 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
899 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
900 %tprel_hi and %tprel_lo relocations.
901 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
902 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
903 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
904 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
907 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
909 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
910 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
911 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
912 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
913 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
914 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
915 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
917 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
918 Faraz Shahbazker <fshahbazker@wavecomp.com>
920 * emultempl/mipself.em (compact_branches): New static variable.
921 (mips_create_output_section_statements): Call
922 _bfd_mips_elf_compact_branches.
923 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
924 OPTION_NO_COMPACT_BRANCHES.
925 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
927 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
928 --no-compact-branches.
929 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
930 * ld.texinfo: Document --compact-branches, --no-compact-branches.
931 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
932 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
933 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
934 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
935 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
936 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
937 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
939 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
941 * testsuite/ld-arm/arm-elf.exp: Add tests
942 * testsuite/ld-arm/bfs-0.s: New test.
943 * testsuite/ld-arm/bfs-1.s: New test.
944 * testsuite/ld-arm/branch-futures.d: New test.
946 2019-05-21 Tamar Christina <tamar.christina@arm.com>
949 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
951 * NEWS: Add changes to flag.
952 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
953 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
954 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
955 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
956 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
957 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
958 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
959 * testsuite/ld-aarch64/erratum843419-far.s: New test.
960 * testsuite/ld-aarch64/erratum843419-full.d: New test.
961 * testsuite/ld-aarch64/erratum843419-near.s: New test.
962 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
964 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
967 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
968 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
970 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
973 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
974 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
976 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
979 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
981 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
983 2019-05-17 Alan Modra <amodra@gmail.com>
986 * plugin.c (plugin_notice): Do not let a common symbol override
987 a non-common definition in IR.
989 2019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
991 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
994 2019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
997 * ldbuildid.c (generate_build_id): Cast return value from
998 GetProcAddress in order to avoid a compile time warning.
1000 2019-05-06 Alan Modra <amodra@gmail.com>
1002 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
1004 2019-05-04 Alan Modra <amodra@gmail.com>
1006 * testsuite/ld-scripts/fill.d: Don't xfail m32c
1007 * testsuite/ld-scripts/fill16.d: Likewise.
1009 2019-05-04 Alan Modra <amodra@gmail.com>
1012 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
1013 data section on hppa64.
1014 * testsuite/ld-elf/pr14156b.d: Likewise.
1015 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
1016 output section flags.
1017 * testsuite/ld-scripts/sane1.t: Likewise.
1018 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
1019 and __fini_array_start. Define __start et al.
1020 * testsuite/ld-elf/pr24511.d: New test.
1022 2019-04-30 Alan Modra <amodra@gmail.com>
1024 * testsuite/ld-powerpc/elfv2exe.d: Update.
1025 * testsuite/ld-powerpc/elfv2so.d: Update.
1026 * testsuite/ld-powerpc/tocopt.d: Update.
1027 * testsuite/ld-powerpc/tocopt.s: Update.
1028 * testsuite/ld-powerpc/tocopt5.d: Update.
1029 * testsuite/ld-powerpc/tocopt5.s: Update.
1030 * testsuite/ld-powerpc/tocopt7.d: Update.
1031 * testsuite/ld-powerpc/tocopt7.s: Update.
1032 * testsuite/ld-powerpc/tocopt8.d: Update.
1033 * testsuite/ld-powerpc/tocopt8.s: Update.
1035 2019-04-30 Alan Modra <amodra@gmail.com>
1037 * ld.texi (How GNU properties are merged): Avoid pod2man error.
1040 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1043 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
1044 * testsuite/ld-plugin/pr24486a.c: New file.
1045 * testsuite/ld-plugin/pr24486b.c: Likewise.
1046 * testsuite/ld-plugin/pr24486c.c: Likewise.
1048 2019-04-26 Nick Clifton <nickc@redhat.com>
1050 * po/ru.po: Updated Russian translation.
1052 2019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
1054 * ld.texi: Properly hyphenate the word "specific".
1056 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
1059 * ld.texi: Remove LTO warning from --wrap.
1060 * plugin.c (get_symbols): Update resolution for wrapper and
1062 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
1063 * testsuite/ld-plugin/pr24406-1.c: New file.
1064 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
1065 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
1067 2019-04-25 Sudakshina Das <sudi.das@arm.com>
1069 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
1070 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
1071 * testsuite/ld-aarch64/bti-plt-1.d: Update.
1072 * testsuite/ld-aarch64/bti-plt-3.d: Update.
1073 * testsuite/ld-aarch64/bti-plt-5.d: Update.
1074 * testsuite/ld-aarch64/pac-plt-1.d: Update.
1075 * testsuite/ld-aarch64/pac-plt-2.d: Update.
1077 2019-04-24 Sandra Loosemore <sandra@codesourcery.com>
1079 * testsuite/config/default.exp: Use [check_compiler_available]
1080 instead of [which $CC].
1081 * testsuite/ld-auto-import/auto-import.exp: Likewise.
1082 * testsuite/ld-cygwin/exe-export.exp: Likewise.
1083 * testsuite/ld-elf/audit.exp: Likewise.
1084 * testsuite/ld-elf/compress.exp: Likewise.
1085 * testsuite/ld-elf/dwarf.exp: Likewise.
1086 * testsuite/ld-elf/elf.exp: Likewise.
1087 * testsuite/ld-elf/indirect.exp: Likewise.
1088 * testsuite/ld-elf/linux-x86.exp: Likewise.
1089 * testsuite/ld-elf/shared.exp: Likewise.
1090 * testsuite/ld-elf/tls.exp: Likewise.
1091 * testsuite/ld-elf/wrap.exp: Likewise.
1092 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1093 * testsuite/ld-elfvers/vers.exp: Likewise.
1094 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1095 * testsuite/ld-elfweak/elfweak.exp: Likewise.
1096 * testsuite/ld-gc/gc.exp: Likewise.
1097 * testsuite/ld-i386/i386.exp: Likewise.
1098 * testsuite/ld-i386/no-plt.exp: Likewise.
1099 * testsuite/ld-i386/tls.exp: Likewise.
1100 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1101 * testsuite/ld-mn10300/mn10300.exp: Likewise.
1102 * testsuite/ld-pe/pe-compile.exp: Likewise.
1103 * testsuite/ld-pe/pe-run.exp: Likewise.
1104 * testsuite/ld-pe/pe-run2.exp: Likewise.
1105 * testsuite/ld-pie/pie.exp: Likewise.
1106 * testsuite/ld-plugin/lto.exp: Likewise.
1107 * testsuite/ld-plugin/plugin.exp: Likewise.
1108 * testsuite/ld-scripts/crossref.exp: Likewise.
1109 * testsuite/ld-sh/sh.exp: Likewise.
1110 * testsuite/ld-shared/shared.exp: Likewise.
1111 * testsuite/ld-size/size.exp: Likewise.
1112 * testsuite/ld-srec/srec.exp: Likewise.
1113 * testsuite/ld-undefined/undefined.exp: Likewise.
1114 * testsuite/ld-unique/unique.exp: Likewise.
1115 * testsuite/ld-x86-64/mpx.exp: Likewise.
1116 * testsuite/ld-x86-64/no-plt.exp: Likewise.
1117 * testsuite/ld-x86-64/tls.exp: Likewise.
1118 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1119 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
1120 check_compiler_available before trying to use the compiler.
1121 (run_cc_link_tests): Likewise.
1122 (check_compiler_available): New. Use it instead of [which $CC].
1124 2019-04-23 Alan Modra <amodra@gmail.com>
1126 * Makefile.am (GENDEPDIR): New var, used..
1127 (GENSCRIPTS): ..here.
1128 * Makefile.in: Regenerate.
1129 * genscripts.sh: Test for $DEPDIR set before every use.
1131 2019-04-22 Matthew Fortune <matthew.fortune@mips.com>
1133 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
1136 2019-04-19 Alan Modra <amodra@gmail.com>
1138 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
1139 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
1140 s12z to list of targets not supporting --gc-sections.
1142 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1144 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
1146 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1147 * testsuite/ld-i386/pr18801.d: Removed.
1148 * testsuite/ld-x86-64/pr18801.d: Likewise.
1149 * testsuite/ld-i386/pr18801a.d: New file.
1150 * testsuite/ld-i386/pr18801b.d: Likewise.
1151 * testsuite/ld-x86-64/pr18801a.d: Likewise.
1152 * testsuite/ld-x86-64/pr18801b.d: Likewise.
1153 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
1154 * testsuite/ld-x86-64/pie2.d: Likewise.
1155 * testsuite/ld-x86-64/pr19719.d: Likewise.
1156 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1157 * testsuite/ld-x86-64/pr19969.d: Likewise.
1158 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
1159 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
1160 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
1161 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
1162 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
1164 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1167 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
1168 * testsuite/ld-x86-64/pr24458.s: New file.
1169 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
1170 * testsuite/ld-x86-64/pr24458a.d: Likewise.
1171 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
1172 * testsuite/ld-x86-64/pr24458b.d: Likewise.
1173 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
1174 * testsuite/ld-x86-64/pr24458c.d: Likewise.
1176 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1178 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
1179 symbol when .lower.bss or .either.bss sections exist.
1180 Define __crt0_movedata when .lower.data or .either.data sections exist.
1181 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
1182 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
1183 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
1184 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
1185 * testsuite/gas/msp430/msp430.exp: Run new tests.
1186 Enable large code model when running -mdata-region={upper,either}
1189 2019-04-16 Alan Modra <amodra@gmail.com>
1191 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
1192 * testsuite/ld-scripts/section-match-1.d: Likewise.
1193 * testsuite/ld-undefined/require-defined.exp: Likewise.
1195 2019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
1197 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
1200 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1202 * testsuite/ld-arm/bfcsel.s: New.
1203 * testsuite/ld-arm/bfcsel.d: New.
1204 * testsuite/ld-arm/arm-elf.exp: Add above test.
1206 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1208 * testsuite/ld-arm/bfl.s: New.
1209 * testsuite/ld-arm/bfl.d: New.
1210 * testsuite/ld-arm/arm-elf.exp: Add above test.
1212 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1214 * testsuite/ld-arm/bf.s: New.
1215 * testsuite/ld-arm/bf.d: New.
1216 * testsuite/ld-arm/arm-elf.exp: Add above test.
1218 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1220 * testsuite/ld-arm/attr-merge-13.attr: New test.
1221 * testsuite/ld-arm/attr-merge-13a.s: New test.
1222 * testsuite/ld-arm/attr-merge-13b.s: New test.
1224 2019-04-13 Alan Modra <amodra@gmail.com>
1226 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
1228 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
1229 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
1231 (e*.c): Delete all dependencies, instead include dependencies
1233 * Makefile.in: Regenerate.
1234 * configure.ac (source_sh): Define and use function.
1235 * configure: Regenerate.
1236 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
1237 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
1238 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
1239 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
1240 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
1241 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
1242 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
1243 * emulparams/armelf_linux_eabi.sh,
1244 * emulparams/armelf_linux_fdpiceabi.sh,
1245 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
1246 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
1247 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
1248 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
1249 * emulparams/armelfb_linux_fdpiceabi.sh,
1250 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
1251 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
1252 * emulparams/elf32_sparc_sol2.sh,
1253 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
1254 * emulparams/elf32_tic6x_elf_be.sh,
1255 * emulparams/elf32_tic6x_elf_le.sh,
1256 * emulparams/elf32_tic6x_linux_be.sh,
1257 * emulparams/elf32_tic6x_linux_le.sh,
1258 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
1259 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
1260 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
1261 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
1262 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
1263 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
1264 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
1265 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
1266 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
1267 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
1268 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
1269 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1270 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
1271 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
1272 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
1273 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
1274 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
1275 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
1276 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
1277 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
1278 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
1279 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
1280 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
1281 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
1282 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
1283 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
1284 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
1285 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
1286 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
1287 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
1288 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
1289 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
1290 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
1291 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
1292 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
1293 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
1294 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
1295 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
1296 * emulparams/elf_x86_64_cloudabi.sh,
1297 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
1298 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
1299 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
1300 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
1301 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
1302 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
1303 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
1304 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
1305 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
1306 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
1307 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
1308 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
1309 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
1310 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
1311 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
1312 * emulparams/shl.sh, * emulparams/shlelf.sh,
1313 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
1314 * emulparams/shlelf_vxworks.sh: Use source_sh.
1315 * genscripts.sh: Adjust for changed parameters. Emit dependencies
1316 for e*.c to .deps/*.Pc.
1317 (source_sh): New function, use it throughout to source scripts.
1318 * genscrba.sh (source_em): Use source_sh.
1320 2019-04-13 Alan Modra <amodra@gmail.com>
1322 * configure.ac (TDIRS): Build up tdirs in this variable and
1323 AC_SUBST, also using AM_SUBST_NOTMAKE.
1324 * configure: Regenerate.
1325 * Makefile.am (DISTCLEANFILES): Remove tdirs.
1326 * Makefile.in: Regenerate.
1328 2019-04-12 Nick Clifton <nickc@redhat.com>
1331 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
1332 example of section attributes.
1334 2019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
1336 * NEWS: Mention new option --no-print-map-discarded.
1337 * ld.h (ld_config_type) <print_map_discarded>: New field.
1338 * ldlang.c (lang_map): Conditionally output discarded sections
1339 in map files based on configuration option.
1340 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
1341 OPTION_NO_PRINT_MAP_DISCARDED>: New.
1342 * ldmain.c (main): Enabled print_map_discarded by default.
1343 * lexsup.c (ld_options): Add new command-line options.
1344 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
1345 OPTION_PRINT_MAP_DISCARDED>: New cases.
1346 * ld.texi: Document new options.
1347 * testsuite/ld-gc/gc.exp: Add new test.
1348 * testsuite/ld-gc/skip-map-discarded.s: New file.
1349 * testsuite/ld-gc/skip-map-discarded.d: New file.
1350 * testsuite/ld-gc/skip-map-discarded.map: New file.
1352 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1354 * ld.texi: Document -z cet-report=[none|warning|error].
1355 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
1356 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
1358 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1359 * testsuite/ld-i386/property-x86-cet1.d: New file.
1360 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
1361 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
1362 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
1363 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
1364 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
1365 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
1366 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
1367 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
1368 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
1369 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
1370 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
1371 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
1372 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
1373 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
1374 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
1375 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
1376 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
1377 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
1378 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
1379 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
1380 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
1381 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
1382 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
1383 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
1384 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
1385 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
1386 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
1387 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
1388 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
1389 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
1391 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1393 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
1394 to "-static-pie" if target compiler supports it.
1395 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
1396 $STATIC_PIE_LDFLAGS isn't empty.
1397 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1399 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1402 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1403 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
1405 2019-04-10 H.J. Lu <hongjiu.lu@intel.com>
1407 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
1409 (__rel_iplt_start): Don't define for CREATE_PIC.
1410 (__rel_iplt_end): Likewise.
1411 (__rela_iplt_start): Likewise.
1412 (__rela_iplt_end): Likewise.
1414 2019-04-10 Alan Modra <amodra@gmail.com>
1416 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
1419 2019-04-10 Alan Modra <amodra@gmail.com>
1421 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
1422 setting use_branch_stub false for linux.
1423 (csky_elf_create_output_section_statements): Do emit this
1424 function and all others in the file for linux, plus the branch
1425 option control. Disable branch stubs when non-ELF.
1427 2019-04-10 Alan Modra <amodra@gmail.com>
1429 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
1430 (ecskyelf_linux.c): Depend on cskyelf.sh.
1431 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
1432 * Makefile.in: Regenerate.
1433 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
1434 (PAGE_SIZE): Don't define.
1435 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
1436 the differing variable defs/undefs.
1437 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
1438 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
1439 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
1440 (PAGE_SIZE): Don't define.
1441 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
1442 leaving just the differing OUTPUT_FORMAT.
1444 2019-04-10 Alan Modra <amodra@gmail.com>
1446 * po/BLD-POTFILES.in: Regenerate.
1448 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1450 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
1451 lynxos and nto targets.
1453 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1455 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
1456 (eelf_i386_chaos.c): Removed.
1457 * Makefile.in: Regenerated.
1458 * configure.tgt: Remove i[3-7]86-*-kaos*.
1459 * emulparams/elf_i386_chaos.sh: Removed.
1461 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1463 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
1464 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
1466 2019-04-08 Alan Modra <amodra@gmail.com>
1468 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
1469 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
1470 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
1472 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1474 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
1475 (eelf_i386_sol2.c): Also depend on
1476 $(srcdir)/emultempl/solaris2-x86.em.
1477 (eelf_x86_64_sol2.c): Likewise.
1478 * Makefile.in: Regenerated.
1479 * emulparams/call_nop.sh: Set x86-specific linker options via
1481 * emulparams/cet.sh: Likewise.
1482 * emulparams/reloc_overflow.sh: Likewise.
1483 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
1485 * emulparams/elf_i386.sh: Likewise.
1486 * emulparams/elf_i386_be.sh: Likewise.
1487 * emulparams/elf_i386_chaos.sh: Likewise.
1488 * emulparams/elf_i386_ldso.sh: Likewise.
1489 * emulparams/elf_i386_vxworks.sh: Likewise.
1490 * emulparams/elf_iamcu.sh: Likewise.
1491 * emulparams/elf_k1om.sh: Likewise.
1492 * emulparams/elf_l1om.sh: Likewise.
1493 * emulparams/elf_x86_64.sh: Likewise.
1494 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
1496 * emulparams/elf_x86_64_sol2.sh: Likewise.
1497 * emultempl/elf-x86.em: New file.
1498 * emultempl/solaris2-x86.em: Likewise.
1499 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1500 set link_info.call_nop_byte.
1502 2019-04-05 Alan Modra <amodra@gmail.com>
1504 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
1505 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1506 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1508 2019-04-03 Alan Modra <amodra@gmail.com>
1511 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
1512 (<EXPRESSION>"/DISCARD/"): New.
1514 2019-04-03 Alan Modra <amodra@gmail.com>
1516 * ldlex.l: Formatting.
1517 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
1518 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
1519 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
1520 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
1521 (<INPUTLIST>"$SYSROOT"..): Delete rule.
1523 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1525 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
1527 * testsuite/ld-xtensa/xtensa.exp
1528 (relax-undef-weak-pie-export-dynamic): Add new test.
1530 2019-03-26 Martin Liska <mliska@suse.cz>
1532 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
1533 lto_visibility_str and use then to inform about plugin-symbols.
1534 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
1536 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1538 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
1539 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
1541 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1543 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1544 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
1545 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
1546 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1547 * testsuite/ld-aarch64/bti-warn.d: New test.
1549 2019-03-21 Alan Modra <amodra@gmail.com>
1551 * testsuite/ld-elf/fini2.s: Reduce alignment.
1552 * testsuite/ld-elf/fini3.s: Likewise.
1553 * testsuite/ld-elf/finin.s: Likewise.
1554 * testsuite/ld-elf/init2.s: Likewise.
1555 * testsuite/ld-elf/init3.s: Likewise.
1556 * testsuite/ld-elf/initn.s: Likewise.
1557 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
1558 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
1560 2019-03-21 Alan Modra <amodra@gmail.com>
1562 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
1563 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
1564 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
1565 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
1566 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
1567 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
1568 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
1569 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
1570 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
1571 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
1572 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
1573 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
1574 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
1575 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
1576 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
1577 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
1578 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
1579 SORT_NONE to .init and .fini wildcards.
1580 * scripttempl/elf32xc16x.sc,
1581 * scripttempl/elf32xc16xl.sc,
1582 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
1583 * scripttempl/elf_chaos.sc: Add .init output section.
1584 * scripttempl/elfd30v.sc: Remove duplicate .init.
1585 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
1586 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
1587 duplicate .init, and add .fini wildcard.
1588 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
1589 * ldlang.c (update_wild_statements): Special case .init and
1590 .fini in the wildcard, not the output section.
1592 2019-03-21 Alan Modra <amodra@gmail.com>
1594 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
1596 2019-03-21 Alan Modra <amodra@gmail.com>
1598 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
1599 create_object_symbols_section.
1600 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
1602 2019-03-18 Alan Modra <amodra@gmail.com>
1604 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
1605 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
1606 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
1607 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
1609 2019-03-15 Nick Clifton <nickc@redhat.com>
1612 * ld.texi (-plugin): Correct the path used to locate linker
1615 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1617 * NEWS: Document --pac-plt.
1618 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
1619 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
1620 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
1621 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
1622 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
1623 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
1624 * testsuite/ld-aarch64/pac-plt-1.d: New test.
1625 * testsuite/ld-aarch64/pac-plt-2.d: New test.
1626 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
1628 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1629 Szabolcs Nagy <szabolcs.nagy@arm.com>
1631 * NEWS: Document --force-bti.
1632 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
1633 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
1634 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
1635 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
1636 * testsuite/ld-aarch64/bti-plt-1.d: New test.
1637 * testsuite/ld-aarch64/bti-plt-1.s: New test.
1638 * testsuite/ld-aarch64/bti-plt-2.d: New test.
1639 * testsuite/ld-aarch64/bti-plt-3.d: New test.
1640 * testsuite/ld-aarch64/bti-plt-4.d: New test.
1641 * testsuite/ld-aarch64/bti-plt-5.d: New test.
1642 * testsuite/ld-aarch64/bti-plt-6.d: New test.
1643 * testsuite/ld-aarch64/bti-plt-7.d: New test.
1644 * testsuite/ld-aarch64/bti-plt-so.s: New test.
1645 * testsuite/ld-aarch64/bti-plt.ld: New test.
1647 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1649 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
1650 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
1651 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
1652 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
1653 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
1654 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
1655 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
1656 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
1658 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1661 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
1662 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1663 * testsuite/ld-i386/pr24322a.d: New file.
1664 * testsuite/ld-i386/pr24322b.d: Likewise.
1665 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
1666 * testsuite/ld-x86-64/pr24322a.d: Likewise.
1667 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
1668 * testsuite/ld-x86-64/pr24322b.d: Likewise.
1669 * testsuite/ld-x86-64/pr24322a.s: Likewise.
1670 * testsuite/ld-x86-64/pr24322b.s: Likewise.
1671 * testsuite/ld-x86-64/pr24322c.s: Likewise.
1673 2019-03-06 Nick Bowler <nbowler@draconx.ca>
1676 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
1677 attributes during the first phase.
1679 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1681 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1682 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1685 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1686 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1687 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1688 * testsuite/ld-s390/tlsbin.dd: Likewise.
1689 * testsuite/ld-s390/tlsbin.rd: Likewise.
1690 * testsuite/ld-s390/tlsbin.sd: Likewise.
1691 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1692 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1693 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1694 * testsuite/ld-s390/tlspic.dd: Likewise.
1695 * testsuite/ld-s390/tlspic.rd: Likewise.
1696 * testsuite/ld-s390/tlspic.sd: Likewise.
1697 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1698 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1699 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1700 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1702 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1705 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
1706 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1707 * testsuite/ld-i386/pr24276.dso: New file.
1708 * testsuite/ld-i386/pr24276.warn: Likewise.
1709 * testsuite/ld-x86-64/pr24276.dso: Likewise.
1710 * testsuite/ld-x86-64/pr24276.warn: Likewise.
1712 2019-02-20 Eric Tsai <erictsai@cadence.com>
1714 * testsuite/ld-xtensa/call_overflow.d: New test definition.
1715 * testsuite/ld-xtensa/call_overflow1.s: New test source.
1716 * testsuite/ld-xtensa/call_overflow2.s: New test source.
1717 * testsuite/ld-xtensa/call_overflow3.s: New test source.
1718 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
1720 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1722 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
1724 2019-02-12 Nick Clifton <nickc@redhat.com>
1726 * po/fr.po: Updated French translation.
1728 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
1730 * emultempl/arclinux.em: Delete special INIT/FINI handling.
1732 2019-02-07 Nick Clifton <nickc@redhat.com>
1735 * ld.texi (Options): Add missing word to the description of the
1736 --start-group option.
1738 2019-02-06 Alan Modra <amodra@gmail.com>
1741 * testsuite/ld-scripts/pr24008.d: Pass with extra target
1744 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1747 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
1748 * testsuite/ld-x86-64/pr24151a.d: Likewise.
1749 * testsuite/ld-x86-64/pr24151a.s: Likewise.
1750 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
1752 2019-01-31 Alan Modra <amodra@gmail.com>
1754 * NEWS: Mention -t change.
1755 * ld.texi (--trace/-t): Expand documentation a little.
1757 2019-01-29 H.J. Lu <hongjiu.lu@intel.com>
1760 * testsuite/ld-scripts/defined.exp: Run pr24008.
1761 * testsuite/ld-scripts/pr24008.d: New file.
1762 * testsuite/ld-scripts/pr24008.map: Likewise.
1763 * testsuite/ld-scripts/pr24008.s: Likewise.
1764 * testsuite/ld-scripts/pr24008.t: Likewise.
1766 2019-01-29 Eric Botcazou <ebotcazou@adacore.com>
1768 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
1770 2019-01-28 Alan Modra <amodra@gmail.com>
1773 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
1774 * ldexp.c (fold_name): Move expld.assign_name check later to
1775 avoid an extra lookup.
1776 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
1777 values, and don't clear expld.assign_name.
1778 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
1779 (print_assignment): Resolve entire assignment expression.
1780 Don't access symbol u.def unless symbol is defined.
1782 2019-01-25 Nick Clifton <nickc@redhat.com>
1784 * po/bg.po: Updated Bulgarian translation.
1786 2019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
1788 * ld.texi (--wrap): Add warning that LTO may make this feature
1791 2019-01-21 Nick Clifton <nickc@redhat.com>
1793 * po/uk.po: Updated Ukranian translation.
1794 * po/pr_BR.po: Updated Brazilian Portuguese translation.
1796 2019-01-21 Nick Clifton <nickc@redhat.com>
1799 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
1800 expected error message.
1802 2019-01-19 Nick Clifton <nickc@redhat.com>
1804 * configure: Regenerate.
1805 * po/ld.pot: Regenerate.
1807 2018-06-24 Nick Clifton <nickc@redhat.com>
1809 2.32 branch created.
1811 2019-01-16 Kito Cheng <kito@andestech.com>
1813 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
1815 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
1816 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
1817 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
1818 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
1819 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1820 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
1821 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
1822 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1823 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
1824 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
1825 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1826 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
1827 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
1828 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
1829 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
1830 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
1831 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
1832 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
1833 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
1834 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
1835 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
1836 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
1837 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
1838 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
1839 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
1840 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
1841 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
1842 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
1843 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
1844 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
1845 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
1846 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1847 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
1848 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
1849 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1850 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
1851 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
1853 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1856 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1857 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1858 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1859 * testsuite/ld-s390/tlsbin.dd: Likewise.
1860 * testsuite/ld-s390/tlsbin.rd: Likewise.
1861 * testsuite/ld-s390/tlsbin.sd: Likewise.
1862 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1863 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1864 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1865 * testsuite/ld-s390/tlspic.dd: Likewise.
1866 * testsuite/ld-s390/tlspic.rd: Likewise.
1867 * testsuite/ld-s390/tlspic.sd: Likewise.
1868 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1869 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1870 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1871 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1873 2019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1875 * ld.texi (--wrap): Add example to emphasise that only undefined
1876 references are replaced by the linker.
1878 2019-01-09 Nick Clifton <nickc@redhat.com>
1880 * po/es.po: Updated Spanish translation.
1882 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1884 * configure: Regenerate.
1886 2019-01-08 Alan Modra <amodra@gmail.com>
1888 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
1889 generated source file names.
1890 * testsuite/ld-m68k/m68k-got.exp: Likewise.
1892 2019-01-01 Alan Modra <amodra@gmail.com>
1894 Update year range in copyright notice of all files.
1896 For older changes see ChangeLog-2018
1898 Copyright (C) 2019 Free Software Foundation, Inc.
1900 Copying and distribution of this file, with or without modification,
1901 are permitted in any medium without royalty provided the copyright
1902 notice and this notice are preserved.
1908 version-control: never