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