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