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