]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/ChangeLog
ENABLE_CHECKING in bfd, opcodes, binutils, ld
[thirdparty/binutils-gdb.git] / ld / ChangeLog
1 2021-04-12 Alan Modra <amodra@gmail.com>
2
3 * configure.ac (--enable-checking): Add support.
4 * config.in: Regenerate.
5 * configure: Regenerate.
6
7 2021-04-12 Alan Modra <amodra@gmail.com>
8
9 * emultempl/mipself.em (mips_create_output_section_statements):
10 Pass base type of hash table to is_elf_hash_table.
11 * ldelf.c (ldelf_after_open): Likewise.
12
13 2021-04-12 Alan Modra <amodra@gmail.com>
14
15 PR 27719
16 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
17 the symbol hash table is the correct type before accessing
18 elf_link_hash_entry symbols.
19 * plugin.c (is_visible_from_outside): Likewise.
20 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
21 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
22
23 2021-04-09 Alan Modra <amodra@gmail.com>
24
25 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
26 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
27 * testsuite/ld-powerpc/notoc2.d: Likewise.
28 * testsuite/ld-powerpc/notoc3.d: Likewise.
29 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
30 * testsuite/ld-powerpc/startstop.d: Likewise.
31 * testsuite/ld-powerpc/tlsget.d: Likewise.
32 * testsuite/ld-powerpc/tlsget2.d: Likewise.
33 * testsuite/ld-powerpc/tlsld.d: Likewise.
34 * testsuite/ld-powerpc/weak1.d: Likewise.
35 * testsuite/ld-powerpc/weak1so.d: Likewise.
36
37 2021-04-06 Jan Beulich <jbeulich@suse.com>
38
39 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
40 being discarded. Warn when relocated entry is above .reloc.
41
42 2021-04-05 Alan Modra <amodra@gmail.com>
43
44 * configure.ac: Move initfini-array arg handling earlier. Don't
45 check for string.h, strings.h, stdlib.h, or locale.h. Do check
46 for inttypes.h, stdint.h, sys/types.h. Don't check for
47 setlocale, free, getev or strstr.
48 (AC_ISC_POSIX): Don't invoke.
49 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
50 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
51 getenv fallback declarations.
52 * ld.h: Don't test HAVE_LOCALE_H.
53 * ldmain.c: Don't test HAVE_SETLOCALE.
54 * config.in: Regenerate.
55 * configure: Regenerate.
56
57 2021-04-01 Tamar Christina <tamar.christina@arm.com>
58
59 PR ld/26659
60 * testsuite/ld-pe/pe.exp: Add test.
61 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
62 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
63
64 2021-04-01 Martin Liska <mliska@suse.cz>
65
66 * ldbuildid.c (strneq): Remove strneq and use startswith.
67 (validate_build_id_style): Likewise.
68 (compute_build_id_size): Likewise.
69
70 2021-03-31 Alan Modra <amodra@gmail.com>
71
72 * sysdep.h (POISON_BFD_BOOLEAN): Define.
73 * configure.ac (elf_list_options, elf_shlib_list_options=false),
74 (elf_plt_unwind_list_options=false): Replace FALSE with false,
75 and TRUE with true.
76 * emulparams/call_nop.sh, * emulparams/cet.sh,
77 * emulparams/dynamic_undefined_weak.sh,
78 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
79 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
80 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
81 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
82 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
83 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
84 * emultempl/aix.em, * emultempl/alphaelf.em,
85 * emultempl/armcoff.em, * emultempl/armelf.em,
86 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
87 * emultempl/cr16elf.em, * emultempl/crxelf.em,
88 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
89 * emultempl/hppaelf.em, * emultempl/linux.em,
90 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
91 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
92 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
93 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
94 * emultempl/pep.em, * emultempl/ppc32elf.em,
95 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
96 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
97 * emultempl/solaris2.em, * emultempl/spuelf.em,
98 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
99 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
100 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
101 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
102 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
103 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
104 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
105 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
106 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
107 bfd_boolean with bool, FALSE with false, and TRUE with true.
108 * configure: Regenerate.
109
110 2021-03-31 Alan Modra <amodra@gmail.com>
111
112 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
113 * emultempl/nds32elf.em: Likewise.
114 * testsuite/ld-elf/mbind2b.c: Likewise.
115 * testsuite/ld-elf/pr18718.c: Likewise.
116 * testsuite/ld-elf/pr18720a.c: Likewise.
117 * testsuite/ld-elf/pr25749-1.c: Likewise.
118 * testsuite/ld-elf/pr25749-1a.c: Likewise.
119 * testsuite/ld-elf/pr25749-1b.c: Likewise.
120 * testsuite/ld-elf/pr25749-1c.c: Likewise.
121 * testsuite/ld-elf/pr25749-1d.c: Likewise.
122 * testsuite/ld-elf/pr25749-2.c: Likewise.
123 * testsuite/ld-elf/pr25754-1a.c: Likewise.
124 * testsuite/ld-elf/pr25754-2a.c: Likewise.
125 * testsuite/ld-elf/pr25754-3a.c: Likewise.
126 * testsuite/ld-elf/pr25754-4a.c: Likewise.
127 * testsuite/ld-elf/pr25754-5a.c: Likewise.
128 * testsuite/ld-elf/pr25754-6a.c: Likewise.
129
130 2021-03-29 Alan Modra <amodra@gmail.com>
131
132 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
133 boolean expression.
134 * lexsup.c (parse_args): Likewise.
135 * pe-dll.c (pe_dll_id_target): Likewise.
136
137 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
138
139 * testsuite/ld-ctf/array.d: Only check that the data object
140 section is nonempty: do not check its exact size.
141 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
142 * testsuite/ld-ctf/slice.d: Likewise.
143 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
144 func info section too.
145 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
146
147 2021-03-22 Martin Liska <mliska@suse.cz>
148
149 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
150 * emultempl/beos.em: Likewise.
151 * emultempl/elf.em: Likewise.
152 * emultempl/pe.em: Likewise.
153 * emultempl/pep.em: Likewise.
154 * emultempl/xtensaelf.em: Likewise.
155 * ldctor.c (ctor_prio): Likewise.
156 * ldelf.c (ldelf_try_needed): Likewise.
157 (ldelf_parse_ld_so_conf): Likewise.
158 (ldelf_after_open): Likewise.
159 (output_rel_find): Likewise.
160 (ldelf_place_orphan): Likewise.
161 * ldfile.c (ldfile_add_library_path): Likewise.
162 * ldlang.c (lang_add_input_file): Likewise.
163 * ldmain.c (get_sysroot): Likewise.
164 (get_emulation): Likewise.
165 (add_archive_element): Likewise.
166 * ldwrite.c (unsplittable_name): Likewise.
167 (clone_section): Likewise.
168 * lexsup.c (parse_args): Likewise.
169 * pe-dll.c (is_import): Likewise.
170 (pe_implied_import_dll): Likewise.
171
172 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
173
174 PR ld/27590
175 * testsuite/ld-x86-64/pr27590.rd: New file.
176 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
177 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
178 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
179
180 2021-03-20 Alan Modra <amodra@gmail.com>
181
182 PR 27590
183 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
184 for all sections except .stabstr.
185
186 2021-03-19 Alan Modra <amodra@gmail.com>
187
188 PR 27590
189 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
190 R_MIPS_NONE.
191 * testsuite/ld-elf/pr27590b.d: Likewise.
192
193 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
194
195 PR ld/27590
196 * testsuite/ld-elf/pr27590.s: New file.
197 * testsuite/ld-elf/pr27590a.d: Likewise.
198 * testsuite/ld-elf/pr27590b.d: Likewise.
199 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
200 --reduce-memory-overheads.
201
202 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
203
204 PR ld/27587
205 * testsuite/ld-x86-64/pr27587.err: New file.
206 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
207 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
208 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
209
210 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
211
212 * testsuite/ld-ctf/slice.c: Check slices of enums too.
213 * testsuite/ld-ctf/slice.d: Results adjusted.
214
215 2021-03-16 Nick Clifton <nickc@redhat.com>
216
217 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
218 lname string.
219
220 2021-03-15 Jan Beulich <jbeulich@suse.com>
221
222 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
223
224 2021-03-12 Alan Modra <amodra@gmail.com>
225
226 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
227 (ALL_64_EMULATION_SOURCES): ..here.
228 * Makefile.in: Regenerate.
229
230 2021-03-12 Clément Chigot <clement.chigot@atos.net>
231
232 * emultempl/aix.em: Ensure .tdata section is removed
233 if empty, even with -r flag.
234 * scripttempl/aix.sc: Handle TLS sections.
235 * testsuite/ld-powerpc/aix52.exp: Add new tests.
236 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
237 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
238 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
239 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
240 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
241 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
242 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
243 * testsuite/ld-powerpc/aix-tls-section.s: New test.
244
245 2021-03-12 Clément Chigot <clement.chigot@atos.net>
246
247 * scripttempl/aix.sc: Add .te to .data section.
248 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
249 Add aix-largetoc-1 test.
250 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
251 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
252 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
253 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
254
255 2021-03-12 Alan Modra <amodra@gmail.com>
256
257 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
258 arrange to define __main for some run_dump_test tests.
259 * testsuite/ld-gc/pr13683.d: Accept more symbols.
260 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
261 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
262 * testsuite/ld-srec/srec.exp: Likewise.
263 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
264
265 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
266
267 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
268 many times if riscv_restart_relax_sections returns TRUE.
269 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
270 applying this patch, the call won't be relaxed to jal; But now we
271 have more chances to do relaxations.
272 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
273 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
274
275 2021-03-10 Jan Beulich <jbeulich@suse.com>
276
277 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
278 than 32 set bits.
279 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
280 comment.
281 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
282
283 2021-03-09 Jan Beulich <jbeulich@suse.com>
284
285 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
286 alignment to 4k.
287 * testsuite/ld-pe/reloc.d: xfail for mcore.
288
289 2021-03-09 Jan Beulich <jbeulich@suse.com>
290
291 * testsuite/ld-scripts/alignof.exp,
292 testsuite/ld-scripts/data.exp,
293 testsuite/ld-scripts/default-script.exp,
294 testsuite/ld-scripts/log2.exp,
295 testsuite/ld-scripts/print-memory-usage.exp,
296 testsuite/ld-scripts/sizeof.exp,
297 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
298 for PE/COFF.
299 * testsuite/ld-scripts/default-script1.d,
300 testsuite/ld-scripts/default-script2.d,
301 testsuite/ld-scripts/default-script3.d,
302 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
303
304 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
305
306 PR ld/27425
307 PR ld/27432
308 * ldelf.c (ldelf_set_output_arch): New function.
309 * ldelf.h (ldelf_set_output_arch): New prototype.
310 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
311 ldelf_set_output_arch.
312 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
313 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
314 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
315 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
316 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
317 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
318 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
319 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
320 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
321
322 2021-03-04 Jan Beulich <jbeulich@suse.com>
323
324 * testsuite/ld-scripts/map-address.exp: Set image base to zero
325 for PE/COFF.
326 * testsuite/ld-scripts/map-address.t: Place .text.
327
328 2021-03-04 Jan Beulich <jbeulich@suse.com>
329
330 * ldexp.c (ldexp_is_final_sym_absolute): New.
331 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
332 * pe-dll.c (generate_reloc): Skip absolute symbols.
333 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
334 * testsuite/ld-pe/pe.exp: Run new test.
335
336 2021-03-03 Alan Modra <amodra@gmail.com>
337
338 PR 27500
339 * ldlang.c (insert_undefined): Don't mark symbols here.
340 (lang_mark_undefineds): Do so here instead, new function.
341 (lang_process): Call lang_mark_undefineds.
342 * testsuite/ld-gc/start3.d,
343 * testsuite/ld-gc/start3.s: New test.
344 * testsuite/ld-gc/start4.d,
345 * testsuite/ld-gc/start4.s: New test.
346 * testsuite/ld-gc/gc.exp: Run them.
347
348 2021-03-03 Alan Modra <amodra@gmail.com>
349
350 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
351 Move tests with ELF section directives to is_elf_format block.
352 * testsuite/ld-gc/abi-note.d: Run on more targets.
353 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
354 * testsuite/ld-gc/start.d: Likewise.
355 * testsuite/ld-gc/start2.d: Likewise.
356 * testsuite/ld-gc/stop.d: Likewise.
357 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
358 * testsuite/ld-gc/start.s: Likewise.
359 * testsuite/ld-gc/start2.s: Likewise.
360
361 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
362
363 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
364
365 2021-03-02 Alan Modra <amodra@gmail.com>
366
367 * testsuite/ld-powerpc/startstop.d,
368 * testsuite/ld-powerpc/startstop.r,
369 * testsuite/ld-powerpc/startstop.s: New test.
370 * testsuite/ld-powerpc/powerpc.exp: Run it.
371
372 2021-03-02 Alan Modra <amodra@gmail.com>
373
374 * testsuite/ld-powerpc/weak1.d,
375 * testsuite/ld-powerpc/weak1.r,
376 * testsuite/ld-powerpc/weak1.s,
377 * testsuite/ld-powerpc/weak1so.d,
378 * testsuite/ld-powerpc/weak1so.r: New tests.
379 * testsuite/ld-powerpc/powerpc.exp: Run them.
380
381 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
382 Nick Clifton <nickc@redhat.com>
383
384 PR 27268
385 * scripttempl/pe.sc: Add DWARF-5 section names.
386 * scripttempl/pep.sc: Likewise.
387
388 2021-03-01 Alan Modra <amodra@gmail.com>
389 Fangrui Song <maskray@google.com>
390
391 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
392 * lexsup.c (elf_static_list_options): Display help for them. Move
393 help for -z stack-size to here from elf_shlib_list_options. Add
394 help for -z start-stop-visibility and -z undefs.
395 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
396 * NEWS: Mention -z start-stop-gc.
397 * testsuite/ld-gc/start2.s,
398 * testsuite/ld-gc/start2.d: New test.
399 * testsuite/ld-gc/gc.exp: Run it.
400
401 2021-03-01 Alan Modra <amodra@gmail.com>
402
403 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
404 symbols undefweak if that was how they were referenced. Undo
405 dynamic state too.
406
407 2021-03-01 Alan Modra <amodra@gmail.com>
408
409 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
410 * testsuite/ld-elf/pr27128a.d: Likewise.
411 * testsuite/ld-elf/pr27128b.d: Likewise.
412 * testsuite/ld-elf/pr27128c.d: Likewise.
413 * testsuite/ld-elf/pr27128d.d: Likewise.
414 * testsuite/ld-elf/pr27128e.d: Likewise.
415
416 2021-02-26 Alan Modra <amodra@gmail.com>
417
418 PR 27441
419 * testsuite/ld-plugin/pr27441a.c,
420 * testsuite/ld-plugin/pr27441b.c,
421 * testsuite/ld-plugin/pr27441c.c,
422 * testsuite/ld-plugin/pr27441c.d: New test.
423 * testsuite/ld-plugin/lto.exp: Run it.
424
425 2021-02-25 Jan Beulich <jbeulich@suse.com>
426
427 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
428
429 2021-02-21 Alan Modra <amodra@gmail.com>
430
431 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
432 defined in an object file.
433 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
434 * testsuite/ld-scripts/defined5.d: Expect a warning.
435
436 2021-02-19 Alan Modra <amodra@gmail.com>
437
438 * testsuite/lib/ld-lib.exp: Whitespace.
439 (load_common_lib): Expand single use and delete this proc.
440 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
441 Use -B for clang too.
442
443 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * testplugin.c (record_read_length): Remove debug fprintf.
446
447 2021-02-14 Alan Modra <amodra@gmail.com>
448
449 * testsuite/ld-cdtest/cdtest.exp,
450 * testsuite/ld-checks/checks.exp,
451 * testsuite/ld-elf/binutils.exp,
452 * testsuite/ld-elf/compress.exp,
453 * testsuite/ld-elf/dwarf.exp,
454 * testsuite/ld-elf/exclude.exp,
455 * testsuite/ld-elf/frame.exp,
456 * testsuite/ld-elf/indirect.exp,
457 * testsuite/ld-elf/linux-x86.exp,
458 * testsuite/ld-elf/sec-to-seg.exp,
459 * testsuite/ld-elf/tls_common.exp,
460 * testsuite/ld-elfcomm/elfcomm.exp,
461 * testsuite/ld-elfvers/vers.exp,
462 * testsuite/ld-elfvsb/elfvsb.exp,
463 * testsuite/ld-elfweak/elfweak.exp,
464 * testsuite/ld-ifunc/binutils.exp,
465 * testsuite/ld-mips-elf/mips-elf-flags.exp,
466 * testsuite/ld-misc/defsym.exp,
467 * testsuite/ld-mn10300/mn10300.exp,
468 * testsuite/ld-plugin/lto.exp,
469 * testsuite/ld-plugin/plugin.exp,
470 * testsuite/ld-scripts/align.exp,
471 * testsuite/ld-scripts/assert.exp,
472 * testsuite/ld-scripts/crossref.exp,
473 * testsuite/ld-scripts/defined.exp,
474 * testsuite/ld-scripts/extern.exp,
475 * testsuite/ld-scripts/log2.exp,
476 * testsuite/ld-scripts/map-address.exp,
477 * testsuite/ld-scripts/phdrs.exp,
478 * testsuite/ld-scripts/phdrs2.exp,
479 * testsuite/ld-scripts/script.exp,
480 * testsuite/ld-scripts/section-flags.exp,
481 * testsuite/ld-scripts/sizeof.exp,
482 * testsuite/ld-scripts/weak.exp,
483 * testsuite/ld-selective/selective.exp,
484 * testsuite/ld-sh/sh.exp,
485 * testsuite/ld-shared/shared.exp,
486 * testsuite/ld-srec/srec.exp,
487 * testsuite/ld-tic6x/tic6x.exp,
488 * testsuite/ld-undefined/undefined.exp,
489 * testsuite/ld-undefined/weak-undef.exp,
490 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
491 perror. Instead report "unsupported" or "fail".
492
493 2021-02-12 Nick Clifton <nickc@redhat.com>
494
495 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
496 following debug links.
497
498 2021-02-11 Alan Modra <amodra@gmail.com>
499
500 * NEWS: Mention arm-symbianelf removal.
501
502 2021-02-09 Alan Modra <amodra@gmail.com>
503
504 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
505 Don't include symbian dep file.
506 * configure.tgt: Remove arm*-*-symbianelf* entry.
507 * emulparams/armsymbian.sh: Delete.
508 * ld.texi: Don't mention symbian.
509 * scripttempl/armbpabi.sc: Delete.
510 * testsuite/ld-arm/symbian-seg1.d: Delete.
511 * testsuite/ld-arm/symbian-seg1.s: Delete.
512 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
513 * Makefile.in: Regenerate.
514 * po/BLD-POTFILES.in: Regenerate.
515
516 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
517
518 PR ld/27358
519 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
520 tests.
521 * testsuite/ld-x86-64/x86-64.exp: Likewise.
522
523 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
524
525 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
526 when appropriate.
527
528 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
529
530 PR ld/19609
531 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
532 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
533 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
534 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
535 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
536 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
537 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
538
539 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
540
541 PR ld/15146
542 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
543 * testsuite/ld-plugin/pr15146.d: Restored.
544 * testsuite/ld-plugin/pr15146a.c: Likewise.
545 * testsuite/ld-plugin/pr15146b.c: Likewise.
546 * testsuite/ld-plugin/pr15146c.c: Likewise.
547 * testsuite/ld-plugin/pr15146d.c: Likewise.
548
549 2021-02-04 Alan Modra <amodra@gmail.com>
550
551 * testsuite/ld-plugin/pr27311d.c: New test.
552 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
553 and link new test as pr27311-2.
554
555 2021-02-03 Alan Modra <amodra@gmail.com>
556
557 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
558 Link with --as-needed.
559
560 2021-02-02 Alan Modra <amodra@gmail.com>
561
562 * testsuite/ld-plugin/pr27311.d,
563 * testsuite/ld-plugin/pr27311.ver,
564 * testsuite/ld-plugin/pr27311a.c,
565 * testsuite/ld-plugin/pr27311b.c,
566 * testsuite/ld-plugin/pr27311c.c: New testcase.
567 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
568 PR12982 entries.
569
570 2021-02-01 Emery Hemingway <ehmry@posteo.net>
571
572 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
573
574 2021-02-01 Alan Modra <amodra@gmail.com>
575
576 * ldgram.y (defsym_expr): Use assignment rule.
577 * ldlex.h (ldlex_defsym): Delete.
578 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
579
580 2021-02-01 Alan Modra <amodra@gmail.com>
581
582 * ldgram.y (section): Call ldlex_backup. Remove empty action.
583 * ldlex.h (ldlex_backup): Declare.
584 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
585 chars, use SYMBOLNAMECHAR.
586 (ldlex_backup): New function.
587
588 2021-02-01 Alan Modra <amodra@gmail.com>
589
590 * ldgram.y: Whitespace fixes.
591
592 2021-02-01 Alan Modra <amodra@gmail.com>
593
594 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
595
596 2021-01-29 Alan Modra <amodra@gmail.com>
597
598 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
599
600 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
601
602 PR ld/27259
603 * testsuite/ld-elf/pr27259.d: New file.
604 * testsuite/ld-elf/pr27259.s: Likewise.
605
606 2021-01-28 Alan Modra <amodra@gmail.com>
607
608 PR 27259
609 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
610 prevent endless looping of linked-to sections.
611
612 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
613
614 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
615
616 2021-01-26 Alan Modra <amodra@gmail.com>
617
618 PR 27226
619 * emulparams/alphavms.sh: Don't set COMPILE_IN.
620 * emulparams/elf64_ia64_vms.sh: Likewise.
621 * emulparams/elf64mmix.sh: Likewise.
622 * emulparams/elf_iamcu.sh: Likewise.
623 * emulparams/elf_k1om.sh: Likewise.
624 * emulparams/elf_l1om.sh: Likewise.
625 * emulparams/mmo.sh: Likewise.
626 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
627 * scripttempl/pdp11.sc: Use it.
628 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
629 instead use .xe script. Support scripts from file system.
630 * emultempl/beos.em: Support scripts from file system.
631 * emultempl/pe.em: Likewise.
632 * emultempl/pep.em: Likewise.
633 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
634
635 2021-01-25 Fangrui Song <maskray@google.com>
636
637 PR ld/27230
638 * scripttempl/DWARF.sc: Add .debug_* sections.
639
640 2021-01-25 Nick Clifton <nickc@redhat.com>
641
642 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
643 .debug_line_str and .debug_str_offsets. Move .debug_macro and
644 .debug_addr into DWARF-5 section.
645
646 2021-01-21 Alan Modra <amodra@gmail.com>
647
648 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
649
650 2021-01-20 Alan Modra <amodra@gmail.com>
651
652 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
653 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
654 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
655 * testsuite/ld-powerpc/tlsget.wf: Likewise.
656 * testsuite/ld-powerpc/tlsget2.d: Likewise.
657 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
658 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
659 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
660 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
661 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
662 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
663 * testsuite/ld-powerpc/tlsexers.r: Likewise.
664 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
665 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
666 * testsuite/ld-powerpc/tlsso.r: Likewise.
667 * testsuite/ld-powerpc/tlsso32.r: Likewise.
668 * testsuite/ld-powerpc/tlstocso.r: Likewise.
669
670 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
671
672 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
673 symbols by the optimizer.
674 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
675
676 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
677
678 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
679 if target is riscv little endian. Otherwise, return false.
680 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
681 targets by [riscv_little_endian].
682
683 2021-01-18 Alan Modra <amodra@gmail.com>
684
685 PR 26378
686 * ldlang.c (map_input_to_output_sections): Start with a read-only
687 section for data statements.
688 * testsuite/ld-elf/size-2.d: Adjust to suit.
689
690 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
691
692 PR ld/27193
693 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
694 * testsuite/ld-i386/pr27193.dd: New file.
695 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
696 * testsuite/ld-i386/pr27193b.s: Likewise.
697
698 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
699
700 PR binutils/23460
701 * testsuite/ld-plugin/lto.exp: Increase the max number of open
702 files to 20 for PR binutils/23460 test.
703
704 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
705
706 PR ld/23169
707 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
708 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
709 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
710 address.
711
712 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
713
714 * NEWS: Mention -z report-relative-reloc.
715 * ld.texi: Document -z report-relative-reloc.
716 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
717 * emulparams/elf_i386.sh: Likewse.
718 * emulparams/elf_x86_64.sh: Likewse.
719 * emulparams/x86-report-relative.sh: New file.
720 * testsuite/ld-i386/report-reloc-1.d: Likewse.
721 * testsuite/ld-i386/report-reloc-1.l: Likewse.
722 * testsuite/ld-i386/report-reloc-1.s: Likewse.
723 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
724 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
725 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
726 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
727 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
728 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
729 report-reloc-1-x32.
730
731 2021-01-16 Alan Modra <amodra@gmail.com>
732
733 PR 26002
734 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
735 unversioned symbols.
736 * testsuite/ld-elfvers/vers16.dsym: Likewise.
737
738 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
739
740 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
741 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
742 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
743 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
744 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
745 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
746
747 2021-01-14 Nick Clifton <nickc@redhat.com>
748
749 * po/fr.po: Updated French translation.
750
751 2021-01-14 Mike Frysinger <vapier@gentoo.org>
752
753 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
754
755 2021-01-14 Alan Modra <amodra@gmail.com>
756
757 PR 27160
758 * ldelfgen.c (compare_link_order): Protect access of ELF section
759 data.
760 (add_link_order_input_section): Remove redundant NULL check.
761 Use bfd_get_flavour.
762 (ldelf_map_segments): Use bfd_get_flavour.
763
764 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
765
766 * ldelfgen.c (add_link_order_input_section): Check for ELF input
767 before accessing ELF section data.
768
769 2021-01-13 Alan Modra <amodra@gmail.com>
770
771 * Makefile.in: Regenerate.
772
773 2021-01-13 Alan Modra <amodra@gmail.com>
774
775 PR 27160
776 * ldlang.h (lang_output_section_statement_type): Add data field.
777 (lang_input_section_type, lang_section_bst_type): Add pattern field.
778 (statement_list): Declare.
779 (lang_add_section): Adjust prototype.
780 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
781 * emultempl/armelf.em: Likewise.
782 * emultempl/beos.em: Likewise.
783 * emultempl/cskyelf.em: Likewise.
784 * emultempl/hppaelf.em: Likewise.
785 * emultempl/m68hc1xelf.em: Likewise.
786 * emultempl/metagelf.em: Likewise.
787 * emultempl/mipself.em: Likewise.
788 * emultempl/mmo.em: Likewise.
789 * emultempl/msp430.em: Likewise.
790 * emultempl/nios2elf.em: Likewise.
791 * emultempl/pe.em: Likewise.
792 * emultempl/pep.em: Likewise.
793 * emultempl/ppc64elf.em: Likewise.
794 * emultempl/spuelf.em: Likewise.
795 * emultempl/vms.em: Likewise.
796 * ldelf.c: Likewise.
797 * ldelfgen.c: Include ldctor.h.
798 (struct os_sections): New.
799 (add_link_order_input_section, link_order_scan): New functions.
800 (compare_link_order, fixup_link_order): New functions.
801 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
802 * ldlang.c (statement_list): Make global.
803 (output_section_callback_fast): Save pattern in tree node.
804 (lang_add_section): Add pattern parameter, save in lang_input_section.
805 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
806 (lang_insert_orphan, output_section_callback): Likewise.
807 (ldlang_place_orphan): Likewise.
808 (gc_section_callback): Don't set section->pattern.
809 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
810 * testsuite/ld-elf/pr26256-3b.d: Likewise.
811 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
812
813 2021-01-13 Alan Modra <amodra@gmail.com>
814
815 * ldlang.h (callback_t): Remove flag_info function parameter.
816 * ldlang.c (walk_wild_consider_section): Adjust to suit.
817 (walk_wild_section_general): Likewise.
818 (output_section_callback_fast, output_section_callback): Likewise.
819 (check_section_callback, gc_section_callback): Likewise.
820 (find_relro_section_callback): Likewise.
821
822 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
823
824 PR binutils/26792
825 * configure.ac: Use GNU_MAKE_JOBSERVER.
826 * aclocal.m4: Regenerated.
827 * configure: Likewise.
828
829 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
830
831 PR ld/27171
832 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
833 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
834 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
835 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
836
837 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
838
839 PR ld/27173
840 * configure: Regenerated.
841
842 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
843
844 PR ld/27167
845 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
846 and mips64r5 to list of known mips targets.
847
848 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
849
850 * po/pt_BR.po: Updated Brazilian Portuguese translation.
851 ` * po/uk.po: Updated Ukranian translation.
852
853 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
854
855 * configure: Regenerated.
856
857 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
858
859 PR ld/27166
860 * testsuite/ld-x86-64/lam-u48.rd: New file.
861 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
862 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
863
864 2021-01-09 Nick Clifton <nickc@redhat.com>
865
866 * configure: Regenerate.
867 * po/ld.pot: Regenerate.
868
869 2021-01-09 Nick Clifton <nickc@redhat.com>
870
871 * 2.36 release branch crated.
872
873 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
874
875 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
876 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
877
878 2021-01-09 Alan Modra <amodra@gmail.com>
879
880 * configure: Regenerate.
881 * Makefile.in: Regenerate.
882
883 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
884
885 * configure: Regenerate.
886
887 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
888
889 PR 27109
890 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
891 * testsuite/ld-elf/loadaddr3b.d: Likewise.
892 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
893 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
894 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
895 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
896 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
897 * testsuite/ld-i386/pr19636-1d.d: Likewise.
898 * testsuite/ld-i386/pr19636-1l.d: Likewise.
899 * testsuite/ld-i386/pr19636-2c.d: Likewise.
900 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
901 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
902 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
903 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
904 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
905 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
906 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
907 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
908 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
909 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
910 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
911 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
912 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
913 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
914 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
915 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
916 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
917 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
918 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
919 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
920 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
921 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
922 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
923 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
924 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
925 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
926 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
927 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
928 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
929 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
930 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
931 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
932 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
933 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
934 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
935 * testsuite/ld-x86-64/pr21038b.d: Likewise.
936 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
937 * testsuite/ld-x86-64/pr21038c.d: Likewise.
938 * testsuite/ld-x86-64/pr23854.d: Likewise.
939 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
940 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
941 * testsuite/ld-i386/plt-pic.pd: Likewise.
942 * testsuite/ld-i386/plt-pic2.dd: Likewise.
943 * testsuite/ld-i386/plt.pd: Likewise.
944 * testsuite/ld-i386/plt2.dd: Likewise.
945 * testsuite/ld-i386/tlsbin.rd: Likewise.
946 * testsuite/ld-i386/tlsbin2.rd: Likewise.
947 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
948 * testsuite/ld-i386/tlsdesc.rd: Likewise.
949 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
950 * testsuite/ld-i386/tlsnopic.rd: Likewise.
951 * testsuite/ld-i386/tlspic.rd: Likewise.
952 * testsuite/ld-i386/tlspic2.rd: Likewise.
953 * testsuite/ld-x86-64/mpx3.dd: Likewise.
954 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
955 * testsuite/ld-x86-64/mpx4.dd: Likewise.
956 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
957 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
958 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
959 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
960 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
961 * testsuite/ld-x86-64/plt.pd: Likewise.
962 * testsuite/ld-x86-64/plt2.dd: Likewise.
963 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
964 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
965 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
966 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
967 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
968 * testsuite/ld-x86-64/tlspic.rd: Likewise.
969 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
970 * testsuite/ld-elf/sec64k.exp: Check
971 is_elf_unused_section_symbols.
972
973 2021-01-07 Alan Modra <amodra@gmail.com>
974
975 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
976 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
977 * testsuite/ld-scripts/segment-start.d: Likewise.
978
979 2021-01-07 Alan Modra <amodra@gmail.com>
980
981 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
982 about dynamic relocations in read-only sections.
983 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
984 * testsuite/ld-elf/ehdr_start.d: Likewise.
985 * testsuite/ld-scripts/pr22267.d: Likewise.
986 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
987 pr20995 text.
988 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
989
990 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
991
992 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
993 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
994
995 2021-01-07 Alan Modra <amodra@gmail.com>
996
997 * po/BLD-POTFILES.in: Regenerate.
998
999 2021-01-07 Alan Modra <amodra@gmail.com>
1000
1001 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1002 complain about relocs in read-only sections. Tidy ASFLAGS append.
1003
1004 2021-01-06 Alan Modra <amodra@gmail.com>
1005
1006 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1007 base for some tests.
1008 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1009 * testsuite/ld-sparc/gotop32.sd: Likewise.
1010 * testsuite/ld-sparc/gotop32.td: Likewise.
1011 * testsuite/ld-sparc/gotop64.dd: Likewise.
1012 * testsuite/ld-sparc/gotop64.sd: Likewise.
1013 * testsuite/ld-sparc/gotop64.td: Likewise.
1014 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1015 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1016 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1017 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1018 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1019 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1020 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1021 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1022 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1023 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1024 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1025 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1026 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1027 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1028 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1029 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1030 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1031 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1032 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1033 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1034 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1035
1036 2021-01-06 Alan Modra <amodra@gmail.com>
1037
1038 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1039 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1040
1041 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1042
1043 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1044 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1045 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1046 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1047 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1048 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1049 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1050 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1051 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1052 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1053 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1054 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1055 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1056 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1057 to littleriscv.
1058 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1059
1060 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1061
1062 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1063 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1064 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1065 eelf32briscv_ilp32.c.
1066 * Makefile.in: Regenerate.
1067 * emulparams/elf32briscv.sh: Added.
1068 * emulparams/elf32briscv_ilp32.sh: Likewise.
1069 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1070 * emulparams/elf64briscv.sh: Likewise.
1071 * emulparams/elf64briscv_lp64.sh: Likewise.
1072 * emulparams/elf64briscv_lp64f.sh: Likewise.
1073
1074 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1075
1076 * testsuite/ld-ctf/enum-forward.c: New test.
1077 * testsuite/ld-ctf/enum-forward.c: New results.
1078
1079 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1080
1081 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1082 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1083 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1084 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1085 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1086 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1087 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1088 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1089 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1090 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1091 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1092 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1093 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1094 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1095 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1096 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1097 * testsuite/ld-ctf/cycle-1.d: Likewise.
1098 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1099 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1100 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1101 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1102 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1103 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1104 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1105 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1106 * testsuite/ld-ctf/forward.d: Likewise.
1107 * testsuite/ld-ctf/function.d: Likewise.
1108 * testsuite/ld-ctf/slice.d: Likewise.
1109 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1110 * testsuite/ld-ctf/enums.c: New test.
1111 * testsuite/ld-ctf/enums.d: New test.
1112
1113 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1114
1115 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1116 changes.
1117 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1118 * testsuite/ld-ctf/forward.c: New test...
1119 * testsuite/ld-ctf/forward.d: ... and results.
1120
1121 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1122
1123 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1124 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1125 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1126 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1127 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1128 * testsuite/ld-ctf/function.d: Likewise.
1129 * testsuite/ld-ctf/slice.d: Likewise.
1130
1131 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1132
1133 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1134 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1135 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1136 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1137 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1138 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1139 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1140 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1141 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1142 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1143 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1144 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1145 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1146 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1147 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1148 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1149 * testsuite/ld-ctf/cycle-1.d: Likewise.
1150 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1151 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1152 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1153 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1154 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1155 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1156 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1157 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1158 * testsuite/ld-ctf/function.d: Likewise.
1159 * testsuite/ld-ctf/slice.d: Likewise.
1160 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1161
1162 2021-01-05 Alan Modra <amodra@gmail.com>
1163
1164 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1165
1166 2021-01-05 Alan Modra <amodra@gmail.com>
1167
1168 PR ld/26256
1169 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1170 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1171
1172 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1173
1174 PR ld/26256
1175 * ldlang.c (gc_section_callback): Set pattern.
1176 * testsuite/ld-elf/pr26256-1.s: New file.
1177 * testsuite/ld-elf/pr26256-1.t: Likewise.
1178 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1179 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1180 * testsuite/ld-elf/pr26256-2.s: Likewise.
1181 * testsuite/ld-elf/pr26256-2.t: Likewise.
1182 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1183 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1184 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1185 * testsuite/ld-elf/pr26256-3.s: Likewise.
1186 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1187 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1188 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1189 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1190
1191 2021-01-04 Alan Modra <amodra@gmail.com>
1192
1193 PR 26822
1194 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1195 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1196 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1197 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1198 * testsuite/ld-i386/tlsbin.rd: Likewise.
1199 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1200 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1201 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1202 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1203 * testsuite/ld-i386/tlspic.rd: Likewise.
1204 * testsuite/ld-i386/tlspic2.rd: Likewise.
1205 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1206 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1207 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1208 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1209 * testsuite/ld-plugin/pr17973.d: Likewise.
1210 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1211 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1212 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1213 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1214 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1215 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1216 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1217 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1218 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1219 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1220 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1221 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1222 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1223 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1224 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1225 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1226 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1227 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1228 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1229 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1230 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1231
1232 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1233
1234 * configure.tgt: Correct comment grammar.
1235 * emultempl/m68hc1xelf.em: Likewise.
1236 * ld.texi: Correct grammar.
1237
1238 2021-01-01 Alan Modra <amodra@gmail.com>
1239
1240 Update year range in copyright notice of all files.
1241
1242 For older changes see ChangeLog-2020
1243 \f
1244 Copyright (C) 2021 Free Software Foundation, Inc.
1245
1246 Copying and distribution of this file, with or without modification,
1247 are permitted in any medium without royalty provided the copyright
1248 notice and this notice are preserved.
1249
1250 Local Variables:
1251 mode: change-log
1252 left-margin: 8
1253 fill-column: 74
1254 version-control: never
1255 End: