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