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