]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Add markers for 2.42 branch
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
299b91cd
NC
12024-01-15 Nick Clifton <nickc@redhat.com>
2
3 * 2.42 branch point.
4
333a6b1a
RO
52023-12-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6
7 * emulparams/elf_i386.sh (LIBPATH_SUFFIX, LIBPATH_SUFFIX_SKIP)
8 [x86_64*-freebsd*]: Set for i386 emulation.
9
0804d18a
GJL
102023-12-12 Georg-Johann Lay <avr@gjlay.de>
11
12 PR 31124
13 * Makefile.am (ALL_EMULATION_SOURCES): Add eavrxmega2_flmap.c and
14 eavrxmega4_flmap.c.
15 * Makefile.in: Regenerate.
16 * configure.tgt: Add eavrxmega2_flmap and eavrxmega4_flmap to
17 avr's targ_extra_emuls list.
18 * emulparams/avrxmega2.sh (MAYBE_FLMAP): Define.
19 * emulparams/avrxmega2_flmap.sh: New file.
20 * emulparams/avrxmega4.sh (MAYBE_FLMAP): Define.
21 * emulparams/avrxmega4_flmap.sh: New file.
22 * scripttempl/avr.sc: Add support for HAVE_FLMAP.
23
4a50820e
JJ
242023-11-28 Jakub Jelinek <jakub@redhat.com>
25
26 * ldbuildid.c (generate_build_id): Use sha1_choose_process_bytes ()
27 instead of &sha1_process_bytes.
28
ec791775
NC
292023-11-28 Nick Clifton <nickc@redhat.com>
30
31 * po/ro.po: New Romanian translation.
32
1c320501
NC
332023-11-21 Nick Clifton <nickc@redhat.com>
34
35 PR 31067
36 * ld.texi (Special Sections): New entry in the linker manual.
37 Describes how the .gnu.warning and .gnu.warning.SYM sections
38 behave.
39
862776f2
AA
402023-11-15 Arsen Arsenović <arsen@aarsen.me>
41
42 * aclocal.m4: Regenerate.
43 * configure: Regenerate.
44 * po/Make-in ($(srcdir)/$(PACKAGE).pot): Output to a .pot
45 temporary file, to suppress xgettext checking charset names.
46
b2a6584d
NC
472023-11-14 Nick Clifton <nickc@redhat.com>
48
49 PR 28910
50 * lexsup.c (ld_options): Ensure that the --mri-script option is
51 correctly recognised.
52
b0dfd742
NC
532023-11-13 Nick Clifton <nickc@redhat.com>
54
55 PR 28910
56 * lexsup.c (ld_options): Ensure that the --format option is
57 correctly recognised.
58
63611bfe
CJW
592023-11-13 Chung-Ju Wu <jasonwucj@gmail.com>
60
61 * ld.texi: Fix redundant space typo.
62
e922d1ea
NC
632023-11-10 Nick Clifton <nickc@redhat.com>
64
65 * ldlex.h (enum option_values): Add OPTION_ERROR_EXECSTACK,
66 OPTION_NO_ERROR_EXECSTACK, OPTION_WARN_EXECSTACK_OBJECTS,
67 OPTION_ERROR_RWX_SEGMENTS and OPTION_NO_ERROR_RWX_SEGMENTS.
68 (struct ld_option): Add new long options.
69 (parse_args): Parse new long options.
70 (elf_static_list_options): Display the new options.
71 * ld.texi: Document the new command line options.
72 * configure.ac (error-execstack): New configuration option.
73 (error-rwx-segments): New configuration option.
74 * emultempl/elf.em (_before_parse): Initialse the new linkinfo
75 fields.
76 * NEWS: Mention the new features.
77 * config.in: Regenerate.
78 * configure: Regenerate.
79 * testsuite/ld-elf/commonpage2.d: Disable errors for RWX segments
80 and/or executable stacks.
81 * testsuite/ld-elf/elf.exp: Likewise.
82 * testsuite/ld-elf/header.d: Likewise.
83 * testsuite/ld-elf/loadaddr1.d: Likewise.
84 * testsuite/ld-elf/loadaddr2.d: Likewise.
85 * testsuite/ld-elf/maxpage4.d: Likewise.
86 * testsuite/ld-elf/nobits-1.d: Likewise.
87 * testsuite/ld-elf/note-1.d: Likewise.
88 * testsuite/ld-elf/orphan-10.d: Likewise.
89 * testsuite/ld-elf/orphan-11.d: Likewise.
90 * testsuite/ld-elf/orphan-12.d: Likewise.
91 * testsuite/ld-elf/orphan-5.d: Likewise.
92 * testsuite/ld-elf/orphan-7.d: Likewise.
93 * testsuite/ld-elf/orphan-8.d: Likewise.
94 * testsuite/ld-elf/orphan-9.d: Likewise.
95 * testsuite/ld-elf/orphan-region.d: Likewise.
96 * testsuite/ld-elf/orphan.d: Likewise.
97 * testsuite/ld-elf/pr19539.d: Likewise.
98 * testsuite/ld-elf/pr26256-1a.d: Likewise.
99 * testsuite/ld-elf/pr26907.d: Likewise.
100 * testsuite/ld-elf/pr28597.d: Likewise.
101 * testsuite/ld-elf/retain2.d: Likewise.
102 * testsuite/ld-elf/shared.exp: Likewise.
103 * testsuite/ld-elf/size-1.d: Likewise.
104 * testsuite/ld-elf/textaddr7.d: Likewise.
105 * testsuite/ld-elf/warn1.d: Likewise.
106 * testsuite/ld-elf/warn2.d: Likewise.
107 * testsuite/ld-i386/discarded1.d: Likewise.
108 * testsuite/ld-i386/pr19175.d: Likewise.
109 * testsuite/ld-i386/pr19539.d: Likewise.
110 * testsuite/ld-i386/pr23189.d: Likewise.
111 * testsuite/ld-plugin/lto-3r.d: Likewise.
112 * testsuite/ld-plugin/lto-5r.d: Likewise.
113 * testsuite/ld-plugin/lto.exp: Likewise.
114 * testsuite/ld-powerpc/ppc476-shared.d: Likewise.
115 * testsuite/ld-powerpc/ppc476-shared2.d: Likewise.
116 * testsuite/ld-powerpc/pr28827-2.d: Likewise.
117 * testsuite/ld-s390/s390.exp: Likewise.
118 * testsuite/ld-scripts/align2a.d: Likewise.
119 * testsuite/ld-scripts/align2b.d: Likewise.
120 * testsuite/ld-scripts/align5.d: Likewise.
121 * testsuite/ld-scripts/alignof.exp: Likewise.
122 * testsuite/ld-scripts/crossref.exp: Likewise.
123 * testsuite/ld-scripts/defined2.d: Likewise.
124 * testsuite/ld-scripts/defined3.d: Likewise.
125 * testsuite/ld-scripts/defined5.d: Likewise.
126 * testsuite/ld-scripts/pr14962.d: Likewise.
127 * testsuite/ld-scripts/pr18963.d: Likewise.
128 * testsuite/ld-scripts/pr20302.d: Likewise.
129 * testsuite/ld-scripts/print-memory-usage.exp: Likewise.
130 * testsuite/ld-scripts/rgn-at1.d: Likewise.
131 * testsuite/ld-scripts/rgn-at10.d: Likewise.
132 * testsuite/ld-scripts/rgn-at4.d: Likewise.
133 * testsuite/ld-scripts/rgn-at6.d: Likewise.
134 * testsuite/ld-scripts/rgn-at8.d: Likewise.
135 * testsuite/ld-scripts/rgn-at9.d: Likewise.
136 * testsuite/ld-scripts/rgn-over1.d: Likewise.
137 * testsuite/ld-scripts/rgn-over2.d: Likewise.
138 * testsuite/ld-scripts/rgn-over4.d: Likewise.
139 * testsuite/ld-scripts/rgn-over5.d: Likewise.
140 * testsuite/ld-scripts/rgn-over6.d: Likewise.
141 * testsuite/ld-scripts/script.exp: Likewise.
142 * testsuite/ld-scripts/sizeof.exp: Likewise.
143 * testsuite/ld-scripts/sort-file.d: Likewise.
144 * testsuite/ld-x86-64/discarded1.d: Likewise.
145 * testsuite/ld-x86-64/pr19175.d: Likewise.
146 * testsuite/ld-x86-64/pr19539a.d: Likewise.
147 * testsuite/ld-x86-64/pr19539b.d: Likewise.
148 * testsuite/ld-x86-64/pr23189.d: Likewise.
149
50df0f43
JB
1502023-11-06 Jan Beulich <jbeulich@suse.com>
151
152 PR 30722
153 * testsuite/ld-x86-64/property-3.r: Revert commit bf77f42f6708.
154 * testsuite/ld-x86-64/property-4.r: Likewise.
155 * testsuite/ld-x86-64/property-5.r: Likewise.
156
f1837d9c
NC
1572023-11-06 Nick Clifton <nickc@redhat.com>
158
159 PR 30865
160 * ld.texi: Update description of the FILL command.
161 * testsuite/ld-scripts/fill2.d: New test.
162 * testsuite/ld-scripts/fill2.t: New test source.
163 * testsuite/ld-scripts/data.exp: Run the new test.
164
bf77f42f
NC
1652023-11-02 Nick Clifton <nickc@redhat.com>
166
167 * testsuite/ld-x86-64/property-3.r: Update regexp to allow for
168 targets which support x86-64-v3.
169 * testsuite/ld-x86-64/property-4.r: Likewise.
170 * testsuite/ld-x86-64/property-5.r: Likewise.
171
85921e9a
NC
1722023-11-01 Nick Clifton <nickc@redhat.com>
173
174 PR 27565
175 * ldlex.l: Add REVERSE.
176 * ldgram.y: Allow REVERSE to be used wherever a sorting command
177 can be used.
178 * ld.h (struct wildcard_spec): Add 'reversed' field.
179 * ldlang.h (lang_wild_statement_struct): Add 'filenames_reversed' field.
180 * ldlang.c (compare_sections): Add reversed parameter.
181 (wild_sort): Reverse the comparison if requested.
182 (print_wild_statement): Handle the reversed field.
183 * ld.texi: Document the new feature.
184 * NEWS: Mention the new feature.
185 * testsuite/ld-scripts/sort-file-reversed-1.d: New test driver.
186 * testsuite/ld-scripts/sort-file-reversed-1.t: New test source.
187 * testsuite/ld-scripts/sort-file-reversed-2.t: New test source.
188 * testsuite/ld-scripts/sort-file-reversed-2.d: New test driver.
189 * testsuite/ld-scripts/sort-sections-reversed-1.d: New test driver.
190 * testsuite/ld-scripts/sort-sections-reversed-1.t: New test source.
191 * testsuite/ld-scripts/sort-sections-reversed-2.t: New test source.
192 * testsuite/ld-scripts/sort-sections-reversed-2.d: New test driver.
193 * testsuite/ld-scripts/sort-sections-reversed-3.d: New test driver.
194 * testsuite/ld-scripts/sort-sections-reversed-3.t: New test source.
195
69bded92
NC
1962023-10-30 Nick Clifton <nickc@redhat.com>
197
198 * po/ka.po: New Georgian translation.
199
8fa1b632
JM
2002023-10-19 Jose E. Marchesi <jose.marchesi@oracle.com>
201
202 * ld.texi (Options): Fix typo metdata->metadata.
203
a79e9a07
NC
2042023-10-16 Nick Clifton <nickc@redhat.com>
205
206 PR 28910
207 * lexsup.c (ld_options): Require that the --architecture option is
208 given exactly two dashes, so that it does not become confused with
209 the -a option.
210
ee1cb49e
NC
2112023-10-09 Nick Clifton <nickc@redhat.com>
212
1b334e27
NC
213 PR 30951
214 * ldlex.l (yy_input): Check for YY_CURRENT_BUFFER being NULL.
215
ee1cb49e
NC
216 PR 30954
217 * ldlang.c (map_input_to_output_sections): Check that os is non
218 NULL before using it.
219
1499719e
W
2202023-10-05 A. Wilcox <awilfox@adelielinux.org>
221
222 PR 30905
223 * testsuite/ld-elf/pr28158.rd: Adjust regexp to allow for section
224 indicies larger than 9.
225
2262023-10-05 A. Wilcox <awilfox@adelielinux.org>
8838ac1c
W
227
228 PR 30917
229 * testsuite/ld-elf/dt-relr.exp: Skip for MUSL targets.
230
1499719e 2312023-10-05 A. Wilcox <awilfox@adelielinux.org>
99b06f8a
W
232
233 PR 30918
234 * testsuite/ld-shared/shared.exp: Add XFAILs for tests that fail
235 with the MUSL library.
236
1499719e 2372023-10-05 A. Wilcox <awilfox@adelielinux.org>
8023a054
W
238
239 PR 30923
240 * testsuite/ld-arm/thumb-plt-got.d: Skip test for configurations
241 using the MUSL library.
242 * testsuite/ld-arm/thumb-plt.d: Likewise.
243
1499719e 2442023-10-05 A. Wilcox <awilfox@adelielinux.org>
693ac69b
W
245
246 PR 30925
247 PR 22001
248 * testsuite/ld-i386/i386.exp: Skip the pr22001 test with TEXTREL
249 relocations enabled on configurations using the MUSL library.
250
1499719e 2512023-10-05 A. Wilcox <awilfox@adelielinux.org>
41ef7afa
W
252
253 PR 30924
254 * testsuite/ld-elfvers/vers.exp (objdump_emptyverstuff): Handle
255 EABI version information in objdump's output.
256
6a6117ab
NC
2572023-10-02 Nick Clifton <nickc@redhat.com>
258
259 * pe-dll.c (fill_edata): Use bfd_get_current_time when filling in
260 the timestamp.
261
193327db
HX
2622023-09-27 Hsinyuan Xavier <TheLastLin@hotmail.com>
263
264 PR 30875
265 * ldlang.c (get_os_init_flag): New function.
266 (exp_init_os, map_input_to_output_sections): Use it.
267
b5c37946 2682023-07-24 Johannes Schauer Marin Rodrigues <josch@debian.org>
6badd102 269
b5c37946
SJ
270 * pe-dll.c (fill_edata): If inserting a timestamp, use the value
271 held in the SOURCE_DATE_EPOCH environment variable, if it is
272 defined.
273 * ld.texi (--insert-timestamp): Document change in behaviour.
6badd102 274
87485f53
NC
2752023-07-03 Nick Clifton <nickc@redhat.com>
276
277 * configure: Regenerate.
278
d501d384
NC
2792023-07-03 Nick Clifton <nickc@redhat.com>
280
281 2.41 Branch Point.
282
b25c1a15
NC
2832023-06-28 Nikita Popov <npopov@redhat.com>
284 Nick Clifton <nickc@redhat.com>
285
286 PR 30568
287 * ldfile.c (ldfile_try_open_bfd): Do not track lto generated
288 temporary files.
289
0ab70050
NC
2902023-06-21 Nick Clifton <nickc@redhat.com>
291
292 PR 29072
293 * testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Always
294 return false for linkers configured with the --enable-default-execstack=no
295 option.
296
fb221fba
NC
2972023-06-14 Nick Clifton <nickc@redhat.com>
298
299 PR 30374
300 * ldfile.c (struct input_remap): New structure.
301 (ldfile_add_remap): New function.
302 (ldfile_remap_input_free): New function.
303 (ldfile_add_remap_file): New function.
304 (ldfile_possibly_remap_input): New function.
305 (ldfile_print_input_remaps): New function.
306 * ldfile.h: Add prototypes for new functions.
307 * ldlang.c (new_afile): Call ldfile_possibly_remap_input.
308 (lang_finish): Call ldfile_remap_input_free.
309 (lang_map): Call ldfile_print_input_remaps.
310 * ldlex.h (OPTION_REMAP_INPUTS, OPTION_REMAP_INPUTS_FILE): Define.
311 * lexsup.c (ld_options): Add --remap-inputs-file and --remap-inputs.
312 (parse_args): Handle new options.
313 * NEWS: Mention the new feature.
314 * ld.texi: Document the new options.
315 * testsuite/ld-misc/input-remap.exp: New test driver.
316 * testsuite/ld-misc/remaps.r: New file: Expected linker output.
317 * testsuite/ld-misc/remaps.txt: New file. Input remaps file.
318
064ad3ea
NC
3192023-06-07 Nick Clifton <nickc@redhat.com>
320
321 PR 30499
322 * testsuite/ld-elfcomm/elfcomm.exp: Update regexps to match new
323 output from the linker.
324
80d4e113
LB
3252023-05-17 Luca Bacci <luca.bacci@outlook.com>
326
327 PR 30421
328 * emultempl/pe.em (set_decoration): New function.
329 (pe_fixup_stdcalls): Call the new function.
330 * emultempl/pep.em (set_decoration): New function.
331 (pep_fixup_stdcalls): Call the new function.
332 * pe-dll.c (make_one): Check for decoated symbols.
333
d1792f72
NC
3342023-05-16 Nick Clifton <nickc@redhat.com>
335
336 PR 30359
337 * ld.texi (WIN32): Document how to create a resource only DLL.
338
0a7dda4f
NC
3392023-05-16 Nick Clifton <nickc@redhat.com>
340
341 * ld.texi (-Ur): Clarify the actions of this option.
342
496917ce
NC
3432023-05-10 Nick Clifton <nickc@redhat.com>
344
345 PR 16566
346 * ldlang.c (ld_is_local_symbol): New function.
347 (print_input_section): Add code to display local symbols in the
348 section.
349 * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
350 OPTION_PRINT_MAP_LOCALS.
351 * lexsup.c (ld_options[]): Add entries for --print-map-locals
352 and --no-print-map-locals.
353 * NEWS: Mention the new feature.
354 * ld.h (struct ld_config_type): Add print_map_locals field.
355 * ld.texi: Document the new command line option.
356 * testsuite/ld-scripts/sizeof.s: Add a local symbol.
357 * testsuite/ld-scripts/map-locals.d: New test control file.
358 * testsuite/ld-scripts/map-address.exp: Run the new test.
359
35394145
NC
3602023-05-04 Nick Clifton <nickc@redhat.com>
361
362 PR 30300
363 * emultempl/pep.em (set_entry_point): Add an undefined reference
364 to the entry point if it has been constructed heuristically.
365 * emultempl/pe.em (set_entry_point): Likewise.
366
35130e73
DD
3672023-05-04 Dimitar Dimitrov <dimitar@dinux.eu>
368
369 * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
370 to place at end of DMEM output sections.
371 (.data): Use the helper variable.
372 (.eh_frame): New output section.
373 (.gnu_extab): Ditto.
374 (.gcc_except_table): Ditto.
375 (.resource_table): Use the helper variable.
376
c386bf4d
NC
3772023-04-27 Nick Clifton <nickc@redhat.com>
378
379 * ldmisc.c (vfinfo): Add support for %x and %lx.
380
a02676b7 3812023-04-18 mengqinggang <mengqinggang@loongson.cn>
382
383 * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
384
b29f2fda
NC
3852023-04-17 Nick Clifton <nickc@redhat.com>
386
387 PR 30354
388 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
389 handle the .gnu.sgstubs section.
390
546c7898
CZ
3912023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
392
393 * testsuite/ld-arc/arc.exp: Update execution predicate.
394 * testsuite/ld-arc/nps-1a.d: Add linker script option.
395 * testsuite/ld-arc/nps-1b.d: Likewise.
396 * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
397
93cda40b
NC
3982023-04-12 Nick Clifton <nickc@redhat.com>
399
400 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
401 example.
402
2d5783fa
NC
4032023-03-15 Nick Clifton <nickc@redhat.com>
404
405 PR 30187
406 * NEWS: Mention the new feature.
407 * ld.texi: Document the new feature.
408 * ldgram.y: Handle LINKER_VERSION token.
409 * ldlang.c (lang_add_version): New function.
410 (enable_linker_version): New global variable.
411 * ldlang.h (land_add_version): Prototype.
412 (enable_linker_version): Export.
413 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
414 (OPTION_DISABLE_LINKER_VERSION): Define.
415 * ldlex.l (LINKER_VERSION): Add token.
416 * lexsup.c (ld_options): Add --enable-linker-version and
417 --disable-linker-version.
418 (parse_args): Handle the new options.
419 * scripttempl/arclinux.sc: Remove stabs and comment sections and
420 replace with inclusion of misc-sections.sc
421 * scripttempl/avr.sc: Likewise.
422 * scripttempl/dlx.sc: Likewise.
423 * scripttempl/elf.sc: Likewise.
424 * scripttempl/elf32cr16.sc: Likewise.
425 * scripttempl/elf32crx.sc: Likewise.
426 * scripttempl/elf32msp430.sc: Likewise.
427 * scripttempl/elf64bpf.sc: Likewise.
428 * scripttempl/elf64hppa.sc: Likewise.
429 * scripttempl/elf_chaos.sc: Likewise.
430 * scripttempl/elfarc.sc: Likewise.
431 * scripttempl/elfarcv2.sc: Likewise.
432 * scripttempl/elfd10v.sc: Likewise.
433 * scripttempl/elfd30v.sc: Likewise.
434 * scripttempl/elfm68hc11.sc: Likewise.
435 * scripttempl/elfm68hc12.sc: Likewise.
436 * scripttempl/elfm9s12z.sc: Likewise.
437 * scripttempl/elfmicroblaze.sc: Likewise.
438 * scripttempl/elfxgate.sc: Likewise.
439 * scripttempl/elfxtensa.sc: Likewise.
440 * scripttempl/epiphany_4x4.sc: Likewise.
441 * scripttempl/ft32.sc: Likewise.
442 * scripttempl/ip2k.sc: Likewise.
443 * scripttempl/iq2000.sc: Likewise.
444 * scripttempl/mep.sc: Likewise.
445 * scripttempl/nds32elf.sc: Likewise.
446 * scripttempl/pru.sc: Likewise.
447 * scripttempl/v850.sc: Likewise.
448 * scripttempl/v850_rh850.sc: Likewise.
449 * scripttempl/visium.sc: Likewise.
450 * scripttempl/xstormy16.sc: Likewise.
451 * scripttempl/z80.sc: Likewise.
452 * testsuite/ld-scripts/script.exp: Run new tests.
453 * scripttempl/misc-sections.sc: New file.
454 * testsuite/ld-scripts/ld-version-2.d: New file.
455 * testsuite/ld-scripts/ld-version.d: New file.
456 * testsuite/ld-scripts/ld-version.t: New file.
457
50980ba3
FS
4582023-02-23 Fangrui Song <i@maskray.me>
459
460 * emultempl/riscvelf.em: Add option parsing.
461 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
462 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
463 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
464 used together.
465
c9802aca
NC
4662023-02-20 Nick Clifton <nickc@redhat.com>
467
468 PR 30004
469 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
470 if all symbols are being excluded.
471
2b56cd91
NC
4722023-02-15 Nick Clifton <nickc@redhat.com>
473
474 PR 30078
475 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
476 order to avoid the special behaviour of the .string directive on
477 HPPA architectures.
478
9b38b85e
NC
4792023-02-14 Nick Clifton <nickc@redhat.com>
480
481 * ld.texi (Plugins): Mention that the -plugin command line option
482 is used to load plugins.
483
1c66b8a0
NC
4842023-01-27 Nick Clifton <nickc@redhat.com>
485
486 PR 29998
487 * pe-dll.c (build_filler_bfd): Initialise the next field of the
488 filler input statement, so that it does not break the file chain.
489
f3d8ae90
NC
4902023-01-24 Nick Clifton <nickc@redhat.com>
491
492 PR 29998
493 * pe-dll.c (generate_reloc): Handle sections with no assigned
494 output section. Terminate early of there are no relocs to put in
495 the .reloc section.
496 (pe_exe_fill_sections): Do not emit an empty .reloc section.
497
59e1f50f
NC
4982023-01-06 Nick Clifton <nickc@redhat.com>
499
500 * po/bg.po: Updated Bulgarian translation.
501
beb6b61d
NC
5022023-01-05 Nick Clifton <nickc@redhat.com>
503
504 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
505 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
506 * emultempl/pep.em: Add suppport for arm64pe emulation.
507 * Makefile.in: Regenerate.
508 * po/BLD-POTFILES.in: Regenerate.
509 * po/ld.pot: Regenerate.
510
b26c8438
AH
5112023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
512
513 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
514 AArch64 architecture.
515
502c7218
AH
5162023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
517
518 PR 29843
519 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
520 for differences in build environments.
521 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
522
11982f9f
NC
5232023-01-03 Nick Clifton <nickc@redhat.com>
524
525 * po/uk.po: Updated Ukrainian translation.
526
a72b0718
NC
5272022-12-31 Nick Clifton <nickc@redhat.com>
528
529 * 2.40 branch created.
530
a7a32d58
NC
5312022-12-21 Nick Clifton <nickc@redhat.com>
532
533 PR 29900
534 * scripttempl/pe.sc: Keep the .drectve section when performing a
535 relocateable link.
536 * scripttempl/pep.sc: Likewise.
537
dcb53d93
NC
5382022-12-08 Nick Clifton <nickc@redhat.com>
539
540 PR 29861
541 * ld.texi (Output Section Type): Note that setting the output
542 section type only works if the section contains untyped data.
543
3bf5bf54
NC
5442022-12-05 Nick Clifton <nickc@redhat.com>
545
546 PR 29849
547 * ldlang.c (spec_match): Check that there is sufficient length in
548 the target name to match the spec's prefix.
549
e26943f9
NC
5502022-11-03 Nick Clifton <nickc@redhat.com>
551
552 PR 29748
553 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
554 the V850.
555
fa6895ad
NC
5562022-11-03 Nick Clifton <nickc@redhat.com>
557
78cd9188 558 PR 29741
fa6895ad
NC
559 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
560 has not been provided on the command line then use DATA_ORIGIN.
561 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
562
4b2e7a57
NC
5632022-10-21 Nick Clifton <nickc@redhat.com>
564
565 PR 29654
566 * ld.h (struct ld_config_type): Add no_warnings field.
567 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
568 * lexsup.c (ld_options): Add --no-warnings.
569 (parse_args): Add support for -w and --no-warnings.
570 * ldmisc.c (vfinfo): Return early if the message is a warning and
571 -w has been enabled.
572 * ld.texi (options): Document new command line option.
573 * NEWS: Mention the new feature.
574
37833b96
NC
5752022-08-30 Nick Clifton <nickc@redhat.com>
576
577 PR 29529
578 * testsuite/ld-x86-64/pr27587.err: Update expected output.
579
f0821653
RH
5802022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
581
582 PR 28362
583 * testsuite/ld-pe/pe-run2-def.exp: New file.
584
a6ad7914
AM
5852022-08-03 Alan Modra <amodra@gmail.com>
586
587 PR 29389
588 * ldlang.h (lang_input_statement_struct): Add sort_key field.
589 * emultempl/pe.em (after_open): If multiple import libraries refer
590 to the same bfd, store their names in the sort_key field.
591 * emultempl/pep.em (after_open): Likewise.
592 * ldlang.c (sort_filename): New function. Returns the filename to
593 be used when sorting input files.
594 (wild_sort): Use the sort_filename function.
595
b80b72c0
RO
5962022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
597
598 PR ld/29411
599 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
600 sparc targets. Expand comment.
601
91896b4d
NC
6022022-07-26 Nick Clifton <nickc@redhat.com>
603
604 PR 29411
605 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
606 sparc-solaris configurations.
607
0bd09323
NC
6082022-07-08 Nick Clifton <nickc@redhat.com>
609
610 * 2.39 branch created.
611
ed1c7ad8
NC
6122022-06-27 Nick Clifton <nickc@redhat.com>
613
614 PR 29263
615 * configure.ac: Move HPPA specific code from here...
616 * configure.tgt: ... to here. Add similar code for MIPS.
617 Move code for CRIS, MIPS and HPPA to block at start of file.
618 * configure: Regenerate.
619
acd65fa6
NC
6202022-06-21 Nick Clifton <nickc@redhat.com>
621
622 PR 29263
623 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
624 HPPA targets.
625 (ac_default_ld_warn_rwx_segments): Likewise.
626 * configure: Regenerate.
627 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
628 option to the command line when running execstack tests for the
629 HPPA target.
630
678dc756
AM
6312022-05-12 Alan Modra <amodra@gmail.com>
632
633 PR 29006
634 * pe-dll.c (dll_name): Delete, replacing with..
635 (dll_filename): ..this, moved earlier in file.
636 (generate_edata): Delete parameters. Don't set up dll_name here..
637 (pe_process_import_defs): ..instead set up dll_filename and
638 dll_symname here before returning.
639 (dll_symname_len): Delete write-only variable.
640 (pe_dll_generate_implib): Don't set up dll_symname here.
641
46465574
NC
6422022-05-03 Nick Clifton <nickc@redhat.com>
643
644 PR 29101
645 * libdep_plugin.c (get_libdeps): Check for overflow when computing
646 amount of memory to allocate.
647
639d467b
NC
6482022-04-27 Nick Clifton <nickc@redhat.com>
649
650 PR 29006
651 * pe-dll.c (make_head): Use asprintf to allocate and populate a
652 buffer containing the temporary name.
653 (make_tail, make_one, make_singleton_name_thunk): Likewise.
654 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
655 (make_runtime_pseudo_reloc): Likewise.
656 (pe_create_runtime_relocator_reference): Likewise.
657
0d38576a
NC
6582022-04-25 Nick Clifton <nickc@redhat.com>
659
660 PR 29072
661 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
662 about the linker's behaviour being depreccated.
663
2d23f965
CC
6642022-04-20 Clément Chigot <clement.chigot@atos.net>
665
666 * emultempl/aix.em (params): New variable.
667 (stub_file): New variable.
668 (xcoff_add_stub_section): New function.
669 (xcoff_layout_sections_again): New function
670 (hook_in_stub): New function.
671 (_after_allocation): Add stub creation.
672 (_create_output_section_statements): Allocate stub file and
673 pass params to backend.
674
1876a542
CC
6752022-04-20 Clément Chigot <clement.chigot@atos.net>
676
677 * emultempl/aix.em (_after_allocation): New function.
678
145667f8
MH
6792022-04-07 Mark Harmstone <mark@harmstone.com>
680
681 * testsuite/ld-pe/secidx1.s: New test source file.
682 * testsuite/ld-pe/secidx2.s: New test source file.
683 * testsuite/ld-pe/secidx.d: New test driver file.
684 * testsuite/ld-pe/secidx_64.d: New test driver file.
685 * testsuite/ld-pe/pe.exp: Add new tests.
686
95e96e05
NC
6872022-03-01 Nick Clifton <nickc@redhat.com>
688
689 PR 21964
690 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
691 * testsuite/ld-elf/pr21964-1b.c: Likewise.
692 * testsuite/ld-elf/pr21964-1c.c: Likewise.
693 * testsuite/ld-elf/pr21964-2a.c: Likewise.
694 * testsuite/ld-elf/pr21964-2b.c: Likewise.
695 * testsuite/ld-elf/pr21964-3a.c: Likewise.
696
5c14cc55
RM
6972022-02-17 Roland McGrath <mcgrathr@google.com>
698
699 * ld.texi (Output Section Type): Fix typo in @code syntax.
700
36d285b9
NC
7012022-02-17 Nick Clifton <nickc@redhat.com>
702
703 * po/sr.po: Updated Serbian translation.
704
c212f39d 7052022-02-16 Fangrui Song <maskray@google.com>
5c14cc55 706 Nick Clifton <nickc@redhat.com>
c212f39d
FS
707
708 PR ld/28841
709 * ld.texi: Document new output section type.
710 * ldlex.l: Add new token TYPE.
711 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
712 * ldlang.h: Add type_section to list of section types.
713 * ldlang.c (lang_add_section): Handle type_section.
714 (map_input_to_output_sections): Handle type_section.
715 * testsuite/ld-scripts/output-section-types.t: Add tests.
716 * testsuite/ld-scripts/output-section-types.d: Update.
717
a6983974
NC
7182022-02-02 Nick Clifton <nickc@redhat.com>
719
720 * po/fr.po: Updated French translation.
721
5fe73d46
NC
7222022-01-24 Nick Clifton <nickc@redhat.com>
723
724 * po/bg.po: Updated Bulgarian translation.
725 * po/uk.po: Updated Ukranian translation.
726
cc5e4073
AGI
7272022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
728
729 * configure.tgt (arm-haiku): Fix typo.
730 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
731 (COMMONPAGESIZE): Likewise.
732
f908e960
NC
7332022-01-22 Nick Clifton <nickc@redhat.com>
734
735 * configure: Regenerate.
736 * po/ld.pot: Regenerate.
737
a74e1cb3
NC
7382022-01-22 Nick Clifton <nickc@redhat.com>
739
740 * 2.38 release branch created.
741
e901223d
NC
7422022-01-21 Nick Clifton <nickc@redhat.com>
743
744 * po/sr.po: Updated Serbian translation.
745
6c037fdb
NC
7462022-01-17 Nick Clifton <nickc@redhat.com>
747
748 * Makefile.in: Regenerate.
749 * po/ld.pot: Regenerate.
750
c4a8df19
MS
7512022-01-11 Martin Storsjö <martin@martin.st>
752
753 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
754 (make_tail, make_one, make_singleton_name_thunk): Likewise.
755 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
756 (pe_create_runtime_relocator_reference): Likewise.
757 (pe_dll_generate_implib): Set dll_symname_len.
758 (pe_process_import_defs): Likewise.
759
f3be70df
NC
7602021-12-16 Nick Clifton <nickc@redhat.com>
761
762 PR 28686
763 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
764 * testsuite/ld-avr/avr-prop-8.d: Likewise.
765 * testsuite/ld-avr/pr13402.d: Likewise.
766
44b357eb
NC
7672021-11-30 Nick Clifton <nickc@redhat.com>
768
769 * scripttempl/pru.sc (.pru_irq_map): Define output section.
770 * testsuite/ld-pru/pru_irq_map-1.d: New test.
771 * testsuite/ld-pru/pru_irq_map-2.d: New test.
772 * testsuite/ld-pru/pru_irq_map.s: New test.
773
ef6379e1
JD
7742021-11-17 Jeremy Drake <cygwin@jdrake.com>
775
776 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
777 Cygwin targets.
778 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
779
ee9e412f
NC
7802021-11-17 Nick Clifton <nickc@redhat.com>
781
782 PR 28452
783 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
784 * ldgram.c: Regenerate.
785
d029b54d
RM
7862021-11-15 Roland McGrath <mcgrathr@google.com>
787
788 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
789 case ld was configured with --enable-textrel-check=error.
790 * testsuite/ld-aarch64/pr22764.d: Likewise.
791 * testsuite/ld-aarch64/pr20402.d: Likewise.
792
eb5323fd
NA
7932021-10-25 Nick Alcock <nick.alcock@oracle.com>
794
795 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
796
10909ea8
NA
7972021-10-25 Nick Alcock <nick.alcock@oracle.com>
798
799 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
800 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
801 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
802 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
803 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
804 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
805 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
806 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
807 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
808 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
809 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
810 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
811 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
812 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
813 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
814 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
815 * testsuite/ld-ctf/cycle-1.d: Likewise.
816 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
817 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
818 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
819 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
820 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
821 * testsuite/ld-ctf/diag-cuname.d: Likewise.
822 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
823 * testsuite/ld-ctf/enum-forward.d: Likewise.
824 * testsuite/ld-ctf/enums.d: Likewise.
825 * testsuite/ld-ctf/forward.d: Likewise.
826 * testsuite/ld-ctf/function.d: Likewise.
827 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
828 * testsuite/ld-ctf/slice.d: Likewise.
829 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
830
5109a7bd
DD
8312021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
832
833 * scripttempl/pru.sc (.resource_table): Align the output
834 section, not the first symbol.
835
b9004024
NA
8362021-09-27 Nick Alcock <nick.alcock@oracle.com>
837
838 * configure: Regenerate.
839
5226a6a8
NC
8402021-09-21 Nick Clifton <nickc@redhat.com>
841
842 * ldlang.c (lang_end): When computing the entry point, only
843 try the start address of the entry section when creating an
844 executable.
845 * ld.texi (Entry point): Update description of heuristic used to
846 choose the entry point.
847 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
848 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
849 testsuite/ld-i386/tlsnopic.rd: Likewise.
850 testsuite/ld-ia64/tlspic.rd: Likewise.
851 testsuite/ld-sparc/gotop32.rd: Likewise.
852 testsuite/ld-sparc/gotop64.rd: Likewise.
853 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
854 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
855 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
856 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
857 testsuite/ld-tic6x/shlib-1.rd: Likewise.
858 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
859 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
860 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
861 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
862 testsuite/ld-x86-64/pr14207.d: Likewise.
863 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
864 testsuite/ld-x86-64/tlspic.rd: Likewise.
865 testsuite/ld-x86-64/tlspic2.rd: Likewise.
866
720f6ee0
CZ
8672021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
868
869 * testsuite/ld-arc/got-weak.d: Update file.
870
09a7e912
CZ
8712021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
872
873 * ld-arc/got-weak.d: New file.
874 * ld-arc/got-weak.s: Likewise.
875
dfe3b805
RM
8762021-07-26 Roland McGrath <mcgrathr@google.com>
877
878 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
879
235f5ef4
MM
8802021-07-06 Michael Matz <matz@suse.de>
881
882 PR ld/28021
883 * testsuite/ld-riscv-elf/relax-twice.ver: New.
884 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
885 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
886 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
887 (run_relax_twice_test): New, and call it.
888
346d80ef
NC
8892021-07-03 Nick Clifton <nickc@redhat.com>
890
891 * configure: Regenerate.
892 * po/ld.pot: Regenerate.
893
51419248
NC
8942021-07-03 Nick Clifton <nickc@redhat.com>
895
896 * 2.37 release branch created.
897
50331d64
NC
8982021-06-22 Nelson Chu <nelson.chu@sifive.com>
899
900 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
901 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
902 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
903 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
904 Should report error since the %pcrel_lo with addend refers to
905 %got_pcrel_hi.
906 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
907 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
908 Should report error since the %got_pcrel_hi with addend.
909 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
910 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
911
406b4ada
L
9122021-06-19 H.J. Lu <hongjiu.lu@intel.com>
913
914 PR ld/27998
915 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
916 * testsuite/ld-i386/pr27998a.d: New file.
917 * testsuite/ld-i386/pr27998a.s: Likewise.
918 * testsuite/ld-i386/pr27998b.d: Likewise.
919 * testsuite/ld-i386/pr27998b.s: Likewise.
920
83b1d8f4
L
9212021-06-19 H.J. Lu <hongjiu.lu@intel.com>
922
923 * testsuite/ld-x86-64/textrel-1.err: New file.
924 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
925 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
926 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
927
c30420d8
L
9282021-06-18 H.J. Lu <hongjiu.lu@intel.com>
929
930 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
931 and mn10300.
932 Pass --generate-missing-build-notes=no to assembler. Allow
933 other note sections for xtensa.
934 * testsuite/ld-elf/property-and-2.d: Likewise.
935 * testsuite/ld-elf/property-and-3.d: Likewise.
936 * testsuite/ld-elf/property-and-4.d: Likewise.
937 * testsuite/ld-elf/property-or-1.d: Likewise.
938 * testsuite/ld-elf/property-or-2.d: Likewise.
939 * testsuite/ld-elf/property-or-3.d: Likewise.
940 * testsuite/ld-elf/property-or-4.d: Likewise.
941
2d95647b
L
9422021-06-18 H.J. Lu <hongjiu.lu@intel.com>
943
944 * ld.texi: Move -z unique-symbol after -z undefs.
945
5a767724
L
9462021-06-18 H.J. Lu <hongjiu.lu@intel.com>
947
948 * testsuite/ld-elf/property-and-1.d: New file.
949 * testsuite/ld-elf/property-and-1.s: Likewise.
950 * testsuite/ld-elf/property-and-2.d: Likewise.
951 * testsuite/ld-elf/property-and-2.s: Likewise.
952 * testsuite/ld-elf/property-and-3.d: Likewise.
953 * testsuite/ld-elf/property-and-3.s: Likewise.
954 * testsuite/ld-elf/property-and-4.d: Likewise.
955 * testsuite/ld-elf/property-and-empty.s: Likewise.
956 * testsuite/ld-elf/property-or-1.d: Likewise.
957 * testsuite/ld-elf/property-or-1.s: Likewise.
958 * testsuite/ld-elf/property-or-2.d: Likewise.
959 * testsuite/ld-elf/property-or-2.s: Likewise.
960 * testsuite/ld-elf/property-or-3.d: Likewise.
961 * testsuite/ld-elf/property-or-3.s: Likewise.
962 * testsuite/ld-elf/property-or-4.d: Likewise.
963 * testsuite/ld-elf/property-or-empty.s: Likewise.
964
e013d20d
L
9652021-06-17 H.J. Lu <hongjiu.lu@intel.com>
966
967 PR ld/27973
968 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
969 $NOPIE_CFLAGS to protected-func-1 without PIE.
970
b6b42983
L
9712021-06-17 H.J. Lu <hongjiu.lu@intel.com>
972
973 PR ld/27973
974 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
975 * testsuite/ld-x86-64/protected-func-1.h: New file.
976 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
977 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
978
d208bc76
FS
9792021-06-17 Fangrui Song <maskray@google.com>
980
981 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
982 * lexsup.c (struct ld_options): Add -no-pie.
983 (parse_args): Handle -no-pie.
984 * ld.texi: Document -no-pie.
985
93df3340
AM
9862021-06-15 Alan Modra <amodra@gmail.com>
987
988 * testsuite/ld-pie/vaddr-0.d: Update expected output.
989
f64b9b13
AM
9902021-06-11 Alan Modra <amodra@gmail.com>
991
992 PR 27952
993 * ldelf.c (ldelf_after_open): Error on input PIEs too.
994
f75bcf7e
NC
9952021-06-09 Nick Clifton <nickc@redhat.com>
996
997 PR 27666
998 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
999 sparc64tests for Solaris2 targets.
1000
364d7729
AM
10012021-06-03 Alan Modra <amodra@gmail.com>
1002
1003 PR 2589
1004 * ld.texi (link-time runtime library search path): Mention
1005 plugin library path. Correct order of search.
1006
ef9d2565
NC
10072021-05-31 Nelson Chu <nelson.chu@sifive.com>
1008 Lifang Xia <lifang_xia@c-sky.com>
1009
1010 PR 27566
1011 * emultempl/riscvelf.em (after_allocation): Call
1012 riscv_set_data_segment_info to set data segment phase before relaxing.
1013 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1014 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
1015 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
1016 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
1017 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
1018
1273b2f8
L
10192021-05-28 H.J. Lu <hongjiu.lu@intel.com>
1020
1021 PR ld/27905
1022 * testsuite/ld-i386/pcrel16-2.d: xfail.
1023 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
1024
50c95a73
L
10252021-05-26 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 PR ld/27905
1028 * testsuite/ld-i386/code16.d: New file.
1029 * testsuite/ld-i386/code16.t: Likewise.
1030 * testsuite/ld-x86-64/code16.d: Likewise.
1031 * testsuite/ld-x86-64/code16.t: Likewise.
1032 * testsuite/ld-i386/i386.exp: Run code16.
1033 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1034
983d5689
L
10352021-05-26 H.J. Lu <hongjiu.lu@intel.com>
1036
1037 * testsuite/ld-x86-64/ilp32-12.d: New file.
1038 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
1039 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
1040
75f03fa7
NC
10412021-05-14 Nelson Chu <nelson.chu@sifive.com>
1042
1043 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1044 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
1045 pcrel-lo-addend-2.
1046 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
1047 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
1048 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
1049
cf893b0e
FS
10502021-05-13 Fangrui Song <maskray@google.com>
1051
1052 PR 27834
1053 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
1054 * lexsup.c (ld_options): Add -Bno-symbolic.
1055 (parse_args): Handle -Bno-symbolic.
1056 * ld.texi: Document -Bno-symbolic.
1057 * NEWS: Mention -Bno-symbolic.
1058 * testsuite/ld-elf/shared.exp: Add a test.
1059
84139c58
RE
10602021-05-12 Richard Earnshaw <rearnsha@arm.com>
1061
1062 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
1063 Correct expected output.
1064
4a1ad5c9
RM
10652021-05-11 Roland McGrath <mcgrathr@google.com>
1066
1067 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
1068 address layout, so it works for e.g. --target=x86-64-elf.
1069
22604fe6
NC
10702021-05-11 Nick Clifton <nickc@redhat.com>
1071
1072 PR 27113
1073 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
1074 is present.
1075 * Makefile.in: Regenerate.
1076
5b45e89f
DD
10772021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
1078
1079 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
1080 * testsuite/ld-elf/group8b.d: Ditto.
1081 * testsuite/ld-elf/group9a.d: Ditto.
1082 * testsuite/ld-elf/group9b.d: Ditto.
1083 * testsuite/ld-elf/pr12851.d: Ditto.
1084 * testsuite/ld-elf/pr22677.d: Ditto.
1085 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
1086 pru from list.
1087
261980de
DD
10882021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
1089
1090 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
1091 Use symbols for memory sizes.
1092
cf758b39
MF
10932021-05-08 Mike Frysinger <vapier@gentoo.org>
1094
1095 * Makefile.am (html-local, doc/ld/index.html): New targets.
1096 * Makefile.in: Regenerate.
1097
2faf902d
MF
10982021-05-08 Mike Frysinger <vapier@gentoo.org>
1099
1100 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
1101 * Makefile.in: Regenerate.
1102
17c6c3b9
JB
11032021-05-07 Jan Beulich <jbeulich@suse.com>
1104
1105 * testsuite/ld-x86-64/rela.d: New.
1106 * testsuite/ld-x86-64/x86-64.exp: Run new test.
1107
d820a652
NC
11082021-05-07 Nick Clifton <nickc@redhat.com>
1109
1110 * ldelfgen.c (compare_link_order): Ignore section size when
1111 performing a relocateable link.
1112
70993db3
AM
11132021-05-07 Alan Modra <amodra@gmail.com>
1114
1115 * ldexp.c (update_definedness): Don't return false for absolute
1116 symbols.
1117 * ldmain.c (multiple_definition): Print "warning: " in message
1118 when not a hard error.
1119
973bba91
AM
11202021-05-07 Alan Modra <amodra@gmail.com>
1121
1122 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
1123 * testsuite/ld-elf/pr27825-2.d: Likewise.
1124
284a1309
SH
11252021-05-06 Stafford Horne <shorne@gmail.com>
1126
1127 PR 27746
1128 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
1129 along with gotha() relocations.
1130 testsuite/ld-or1k/gotha1.dd: New file.
1131 testsuite/ld-or1k/gotha1.s: New file.
1132 testsuite/ld-or1k/gotha2.dd: New file.
1133 testsuite/ld-or1k/gotha2.s: New file
1134 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
1135 failure.
1136
ae064303
NA
11372021-05-06 Nick Alcock <nick.alcock@oracle.com>
1138
1139 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
1140 * testsuite/lib/ld-lib.exp: Likewise.
1141 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
1142 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
1143 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
1144 * testsuite/ld-ctf/array.d: Larger type section.
1145 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1146 * testsuite/ld-ctf/enums.d: Likewise.
1147 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
1148 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
1149 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1150 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
1151
4467df35
L
11522021-05-05 H.J. Lu <hongjiu.lu@intel.com>
1153
1154 PR ld/27825
1155 * testsuite/ld-elf/pr27825-1.d: New file.
1156 * testsuite/ld-elf/pr27825-1a.s: Likewise.
1157 * testsuite/ld-elf/pr27825-1b.s: Likewise.
1158 * testsuite/ld-elf/pr27825-2.d: Likewise.
1159 * testsuite/ld-elf/pr27825-2a.s: Likewise.
1160 * testsuite/ld-elf/pr27825-2b.s: Likewise.
1161
13ffdac3
AM
11622021-05-05 Alan Modra <amodra@gmail.com>
1163
1164 * testsuite/ld-powerpc/empty.s: New file.
1165 * testsuite/ld-powerpc/undefweak.d,
1166 * testsuite/ld-powerpc/undefweak.s: New testcase.
1167 * testsuite/ld-powerpc/powerpc.exp: Run it.
1168
df6fbc21
AM
11692021-05-03 Alan Modra <amodra@gmail.com>
1170
1171 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
1172 named section symbols.
1173
24aebc79
NC
11742021-04-28 Nick Clifton <nickc@redhat.com>
1175
1176 * testsuite/ld-elf/anno-sym.s: New test source file.
1177 * testsuite/ld-elf/anno-sym.d: New test driver.
1178 * testsuite/ld-elf/anno-sym.l: New test error output.
1179
a7664973
JB
11802021-04-26 Jan Beulich <jbeulich@suse.com>
1181
1182 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
1183 testsuite/ld-x86-64/pcrel16-2.d: New.
1184 * testsuite/ld-i386/i386.exp: Run new test.
1185 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1186
69cc1945
L
11872021-04-23 H.J. Lu <hongjiu.lu@intel.com>
1188
1189 PR ld/27771
1190 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
1191 to tmpdir/ldscripts only if it doesn't exist.
1192
d018cd83
JB
11932021-04-22 Jan Beulich <jbeulich@suse.com>
1194
1195 PR ld/26659
1196 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
1197
23356397
NC
11982021-04-21 Nick Clifton <nickc@redhat.com>
1199
1200 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
1201 to allow for named section symbols.
1202 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
1203 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
1204 * testsuite/ld-alpha/tlsbin.rd: Likewise.
1205 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
1206 * testsuite/ld-alpha/tlspic.rd: Likewise.
1207 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
1208 * testsuite/ld-arm/script-type.sym: Likewise.
1209 * testsuite/ld-cris/libdso-2.d: Likewise.
1210 * testsuite/ld-cris/pr16044.d: Likewise.
1211 * testsuite/ld-elf/sec64k.exp: Likewise.
1212 * testsuite/ld-ia64/tlsbin.rd: Likewise.
1213 * testsuite/ld-ia64/tlspic.rd: Likewise.
1214 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1215 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1216 * testsuite/ld-mmix/bspec1.d: Likewise.
1217 * testsuite/ld-mmix/bspec2.d: Likewise.
1218 * testsuite/ld-mmix/local1.d: Likewise.
1219 * testsuite/ld-mmix/local3.d: Likewise.
1220 * testsuite/ld-mmix/local5.d: Likewise.
1221 * testsuite/ld-mmix/local7.d: Likewise.
1222 * testsuite/ld-mmix/undef-3.d: Likewise.
1223 * testsuite/ld-powerpc/tlsso.r: Likewise.
1224 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1225 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1226 * testsuite/ld-s390/tlsbin.rd: Likewise.
1227 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1228 * testsuite/ld-s390/tlspic.rd: Likewise.
1229 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1230 * testsuite/ld-sparc/gotop32.rd: Likewise.
1231 * testsuite/ld-sparc/gotop64.rd: Likewise.
1232 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
1233 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
1234 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
1235 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
1236 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
1237 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
1238 * testsuite/ld-tic6x/common.d: Likewise.
1239 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1240 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1241 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1242 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1243 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1244 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1245 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1246 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1247 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1248 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1249 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1250 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1251 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1252
c5df7e44
CC
12532021-04-20 Clément Chigot <clement.chigot@atos.net>
1254
1255 PR binutils/21700
1256 * testsuite/ld-powerpc/aix52.exp: Add new test.
1257 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
1258 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
1259 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
1260 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
1261
6418520e
NC
12622021-04-13 Nick Clifton <nickc@redhat.com>
1263
1264 * ld.texi (Options): Add note about the effect of --as-needed on
1265 the --rpath and --rpath-link options on Linux based systems.
1266
1cfc6f00
AM
12672021-04-13 Alan Modra <amodra@gmail.com>
1268
1269 PR 27722
1270 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
1271 to isspace.
1272
43e05cd4
AM
12732021-04-12 Alan Modra <amodra@gmail.com>
1274
1275 * configure.ac (--enable-checking): Add support.
1276 * config.in: Regenerate.
1277 * configure: Regenerate.
1278
2cc15b10
AM
12792021-04-12 Alan Modra <amodra@gmail.com>
1280
1281 * emultempl/mipself.em (mips_create_output_section_statements):
1282 Pass base type of hash table to is_elf_hash_table.
1283 * ldelf.c (ldelf_after_open): Likewise.
1284
fc304b88
AM
12852021-04-12 Alan Modra <amodra@gmail.com>
1286
1287 PR 27719
1288 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
1289 the symbol hash table is the correct type before accessing
1290 elf_link_hash_entry symbols.
1291 * plugin.c (is_visible_from_outside): Likewise.
1292 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
1293 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
1294
c3f72de4
AM
12952021-04-09 Alan Modra <amodra@gmail.com>
1296
1297 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
1298 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
1299 * testsuite/ld-powerpc/notoc2.d: Likewise.
1300 * testsuite/ld-powerpc/notoc3.d: Likewise.
1301 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
1302 * testsuite/ld-powerpc/startstop.d: Likewise.
1303 * testsuite/ld-powerpc/tlsget.d: Likewise.
1304 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1305 * testsuite/ld-powerpc/tlsld.d: Likewise.
1306 * testsuite/ld-powerpc/weak1.d: Likewise.
1307 * testsuite/ld-powerpc/weak1so.d: Likewise.
1308
bd3d1480
JB
13092021-04-06 Jan Beulich <jbeulich@suse.com>
1310
1311 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
1312 being discarded. Warn when relocated entry is above .reloc.
1313
c774eab1
AM
13142021-04-05 Alan Modra <amodra@gmail.com>
1315
1316 * configure.ac: Move initfini-array arg handling earlier. Don't
1317 check for string.h, strings.h, stdlib.h, or locale.h. Do check
1318 for inttypes.h, stdint.h, sys/types.h. Don't check for
1319 setlocale, free, getev or strstr.
1320 (AC_ISC_POSIX): Don't invoke.
1321 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
1322 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
1323 getenv fallback declarations.
1324 * ld.h: Don't test HAVE_LOCALE_H.
1325 * ldmain.c: Don't test HAVE_SETLOCALE.
1326 * config.in: Regenerate.
1327 * configure: Regenerate.
1328
74edb473
TC
13292021-04-01 Tamar Christina <tamar.christina@arm.com>
1330
1331 PR ld/26659
1332 * testsuite/ld-pe/pe.exp: Add test.
1333 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
1334 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
1335
e9b095a5
ML
13362021-04-01 Martin Liska <mliska@suse.cz>
1337
1338 * ldbuildid.c (strneq): Remove strneq and use startswith.
1339 (validate_build_id_style): Likewise.
1340 (compute_build_id_size): Likewise.
1341
f38a2680
AM
13422021-03-31 Alan Modra <amodra@gmail.com>
1343
1344 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1345 * configure.ac (elf_list_options, elf_shlib_list_options=false),
1346 (elf_plt_unwind_list_options=false): Replace FALSE with false,
1347 and TRUE with true.
1348 * emulparams/call_nop.sh, * emulparams/cet.sh,
1349 * emulparams/dynamic_undefined_weak.sh,
1350 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
1351 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1352 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
1353 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
1354 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
1355 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
1356 * emultempl/aix.em, * emultempl/alphaelf.em,
1357 * emultempl/armcoff.em, * emultempl/armelf.em,
1358 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1359 * emultempl/cr16elf.em, * emultempl/crxelf.em,
1360 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1361 * emultempl/hppaelf.em, * emultempl/linux.em,
1362 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1363 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1364 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1365 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1366 * emultempl/pep.em, * emultempl/ppc32elf.em,
1367 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1368 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1369 * emultempl/solaris2.em, * emultempl/spuelf.em,
1370 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1371 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1372 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1373 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1374 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1375 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1376 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1377 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1378 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1379 bfd_boolean with bool, FALSE with false, and TRUE with true.
1380 * configure: Regenerate.
1381
3dfb1b6d
AM
13822021-03-31 Alan Modra <amodra@gmail.com>
1383
1384 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1385 * emultempl/nds32elf.em: Likewise.
1386 * testsuite/ld-elf/mbind2b.c: Likewise.
1387 * testsuite/ld-elf/pr18718.c: Likewise.
1388 * testsuite/ld-elf/pr18720a.c: Likewise.
1389 * testsuite/ld-elf/pr25749-1.c: Likewise.
1390 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1391 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1392 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1393 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1394 * testsuite/ld-elf/pr25749-2.c: Likewise.
1395 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1396 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1397 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1398 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1399 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1400 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1401
63b4cc53
AM
14022021-03-29 Alan Modra <amodra@gmail.com>
1403
1404 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1405 boolean expression.
1406 * lexsup.c (parse_args): Likewise.
1407 * pe-dll.c (pe_dll_id_target): Likewise.
1408
8592be8c
NA
14092021-03-25 Nick Alcock <nick.alcock@oracle.com>
1410
1411 * testsuite/ld-ctf/array.d: Only check that the data object
1412 section is nonempty: do not check its exact size.
1413 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1414 * testsuite/ld-ctf/slice.d: Likewise.
1415 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1416 func info section too.
1417 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1418
08dedd66
ML
14192021-03-22 Martin Liska <mliska@suse.cz>
1420
1421 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1422 * emultempl/beos.em: Likewise.
1423 * emultempl/elf.em: Likewise.
1424 * emultempl/pe.em: Likewise.
1425 * emultempl/pep.em: Likewise.
1426 * emultempl/xtensaelf.em: Likewise.
1427 * ldctor.c (ctor_prio): Likewise.
1428 * ldelf.c (ldelf_try_needed): Likewise.
1429 (ldelf_parse_ld_so_conf): Likewise.
1430 (ldelf_after_open): Likewise.
1431 (output_rel_find): Likewise.
1432 (ldelf_place_orphan): Likewise.
1433 * ldfile.c (ldfile_add_library_path): Likewise.
1434 * ldlang.c (lang_add_input_file): Likewise.
1435 * ldmain.c (get_sysroot): Likewise.
1436 (get_emulation): Likewise.
1437 (add_archive_element): Likewise.
1438 * ldwrite.c (unsplittable_name): Likewise.
1439 (clone_section): Likewise.
1440 * lexsup.c (parse_args): Likewise.
1441 * pe-dll.c (is_import): Likewise.
1442 (pe_implied_import_dll): Likewise.
1443
1de96e5d
L
14442021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1445
1446 PR ld/27590
1447 * testsuite/ld-x86-64/pr27590.rd: New file.
1448 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1449 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1450 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1451
15407e7e
AM
14522021-03-20 Alan Modra <amodra@gmail.com>
1453
1454 PR 27590
1455 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1456 for all sections except .stabstr.
1457
fba7f753
AM
14582021-03-19 Alan Modra <amodra@gmail.com>
1459
1460 PR 27590
1461 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1462 R_MIPS_NONE.
1463 * testsuite/ld-elf/pr27590b.d: Likewise.
1464
3818d4ab
L
14652021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1466
1467 PR ld/27590
1468 * testsuite/ld-elf/pr27590.s: New file.
1469 * testsuite/ld-elf/pr27590a.d: Likewise.
1470 * testsuite/ld-elf/pr27590b.d: Likewise.
1471 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1472 --reduce-memory-overheads.
1473
51f6e7a9
L
14742021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1475
1476 PR ld/27587
1477 * testsuite/ld-x86-64/pr27587.err: New file.
1478 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1479 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1480 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1481
69a28486
NA
14822021-03-18 Nick Alcock <nick.alcock@oracle.com>
1483
1484 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1485 * testsuite/ld-ctf/slice.d: Results adjusted.
1486
ee42883c
NC
14872021-03-16 Nick Clifton <nickc@redhat.com>
1488
1489 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1490 lname string.
1491
c68b1842
JB
14922021-03-15 Jan Beulich <jbeulich@suse.com>
1493
1494 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1495
203a206d
AM
14962021-03-12 Alan Modra <amodra@gmail.com>
1497
1498 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1499 (ALL_64_EMULATION_SOURCES): ..here.
1500 * Makefile.in: Regenerate.
1501
1b2cb8e2
CC
15022021-03-12 Clément Chigot <clement.chigot@atos.net>
1503
1504 * emultempl/aix.em: Ensure .tdata section is removed
1505 if empty, even with -r flag.
1506 * scripttempl/aix.sc: Handle TLS sections.
1507 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1508 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1509 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1510 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1511 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1512 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1513 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1514 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1515 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1516
4a403be0
CC
15172021-03-12 Clément Chigot <clement.chigot@atos.net>
1518
1519 * scripttempl/aix.sc: Add .te to .data section.
1520 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1521 Add aix-largetoc-1 test.
1522 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1523 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1524 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1525 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1526
68cb2183
AM
15272021-03-12 Alan Modra <amodra@gmail.com>
1528
1529 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1530 arrange to define __main for some run_dump_test tests.
1531 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1532 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1533 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1534 * testsuite/ld-srec/srec.exp: Likewise.
1535 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1536
ebdcad3f
NC
15372021-03-11 Nelson Chu <nelson.chu@sifive.com>
1538
1539 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1540 many times if riscv_restart_relax_sections returns TRUE.
1541 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1542 applying this patch, the call won't be relaxed to jal; But now we
1543 have more chances to do relaxations.
1544 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1545 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1546
67b0f684
JB
15472021-03-10 Jan Beulich <jbeulich@suse.com>
1548
1549 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1550 than 32 set bits.
1551 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1552 comment.
1553 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1554
5dc75cf3
JB
15552021-03-09 Jan Beulich <jbeulich@suse.com>
1556
1557 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1558 alignment to 4k.
1559 * testsuite/ld-pe/reloc.d: xfail for mcore.
1560
87fa7d56
JB
15612021-03-09 Jan Beulich <jbeulich@suse.com>
1562
1563 * testsuite/ld-scripts/alignof.exp,
1564 testsuite/ld-scripts/data.exp,
1565 testsuite/ld-scripts/default-script.exp,
1566 testsuite/ld-scripts/log2.exp,
1567 testsuite/ld-scripts/print-memory-usage.exp,
1568 testsuite/ld-scripts/sizeof.exp,
1569 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1570 for PE/COFF.
1571 * testsuite/ld-scripts/default-script1.d,
1572 testsuite/ld-scripts/default-script2.d,
1573 testsuite/ld-scripts/default-script3.d,
1574 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1575
8c0546e9
L
15762021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1577
1578 PR ld/27425
1579 PR ld/27432
1580 * ldelf.c (ldelf_set_output_arch): New function.
1581 * ldelf.h (ldelf_set_output_arch): New prototype.
1582 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1583 ldelf_set_output_arch.
1584 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1585 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1586 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1587 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1588 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1589 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1590 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1591 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1592 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1593
d4e5db4e
JB
15942021-03-04 Jan Beulich <jbeulich@suse.com>
1595
1596 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1597 for PE/COFF.
1598 * testsuite/ld-scripts/map-address.t: Place .text.
1599
6fa7408d
JB
16002021-03-04 Jan Beulich <jbeulich@suse.com>
1601
1602 * ldexp.c (ldexp_is_final_sym_absolute): New.
1603 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1604 * pe-dll.c (generate_reloc): Skip absolute symbols.
1605 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1606 * testsuite/ld-pe/pe.exp: Run new test.
1607
5789f845
AM
16082021-03-03 Alan Modra <amodra@gmail.com>
1609
1610 PR 27500
1611 * ldlang.c (insert_undefined): Don't mark symbols here.
1612 (lang_mark_undefineds): Do so here instead, new function.
1613 (lang_process): Call lang_mark_undefineds.
1614 * testsuite/ld-gc/start3.d,
1615 * testsuite/ld-gc/start3.s: New test.
1616 * testsuite/ld-gc/start4.d,
1617 * testsuite/ld-gc/start4.s: New test.
1618 * testsuite/ld-gc/gc.exp: Run them.
1619
270f32fc
AM
16202021-03-03 Alan Modra <amodra@gmail.com>
1621
1622 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1623 Move tests with ELF section directives to is_elf_format block.
1624 * testsuite/ld-gc/abi-note.d: Run on more targets.
1625 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1626 * testsuite/ld-gc/start.d: Likewise.
1627 * testsuite/ld-gc/start2.d: Likewise.
1628 * testsuite/ld-gc/stop.d: Likewise.
1629 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1630 * testsuite/ld-gc/start.s: Likewise.
1631 * testsuite/ld-gc/start2.s: Likewise.
1632
211bcd01
NA
16332021-03-02 Nick Alcock <nick.alcock@oracle.com>
1634
1635 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1636
b80e421f
AM
16372021-03-02 Alan Modra <amodra@gmail.com>
1638
1639 * testsuite/ld-powerpc/startstop.d,
1640 * testsuite/ld-powerpc/startstop.r,
1641 * testsuite/ld-powerpc/startstop.s: New test.
1642 * testsuite/ld-powerpc/powerpc.exp: Run it.
1643
f5b9c288
AM
16442021-03-02 Alan Modra <amodra@gmail.com>
1645
1646 * testsuite/ld-powerpc/weak1.d,
1647 * testsuite/ld-powerpc/weak1.r,
1648 * testsuite/ld-powerpc/weak1.s,
1649 * testsuite/ld-powerpc/weak1so.d,
1650 * testsuite/ld-powerpc/weak1so.r: New tests.
1651 * testsuite/ld-powerpc/powerpc.exp: Run them.
1652
ba6eb62f
NC
16532021-03-01 Hannes Domani <ssbssa@sourceware.org>
1654 Nick Clifton <nickc@redhat.com>
1655
1656 PR 27268
1657 * scripttempl/pe.sc: Add DWARF-5 section names.
1658 * scripttempl/pep.sc: Likewise.
1659
8ee10e86
AM
16602021-03-01 Alan Modra <amodra@gmail.com>
1661 Fangrui Song <maskray@google.com>
1662
1663 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1664 * lexsup.c (elf_static_list_options): Display help for them. Move
1665 help for -z stack-size to here from elf_shlib_list_options. Add
1666 help for -z start-stop-visibility and -z undefs.
1667 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1668 * NEWS: Mention -z start-stop-gc.
1669 * testsuite/ld-gc/start2.s,
1670 * testsuite/ld-gc/start2.d: New test.
1671 * testsuite/ld-gc/gc.exp: Run it.
1672
7824c1d2
AM
16732021-03-01 Alan Modra <amodra@gmail.com>
1674
1675 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1676 symbols undefweak if that was how they were referenced. Undo
1677 dynamic state too.
1678
6a1224ec
AM
16792021-03-01 Alan Modra <amodra@gmail.com>
1680
1681 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1682 * testsuite/ld-elf/pr27128a.d: Likewise.
1683 * testsuite/ld-elf/pr27128b.d: Likewise.
1684 * testsuite/ld-elf/pr27128c.d: Likewise.
1685 * testsuite/ld-elf/pr27128d.d: Likewise.
1686 * testsuite/ld-elf/pr27128e.d: Likewise.
1687
bfece756
AM
16882021-02-26 Alan Modra <amodra@gmail.com>
1689
1690 PR 27441
1691 * testsuite/ld-plugin/pr27441a.c,
1692 * testsuite/ld-plugin/pr27441b.c,
1693 * testsuite/ld-plugin/pr27441c.c,
1694 * testsuite/ld-plugin/pr27441c.d: New test.
1695 * testsuite/ld-plugin/lto.exp: Run it.
1696
3c27360b
JB
16972021-02-25 Jan Beulich <jbeulich@suse.com>
1698
1699 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1700
89753bbf
AM
17012021-02-21 Alan Modra <amodra@gmail.com>
1702
1703 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1704 defined in an object file.
1705 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1706 * testsuite/ld-scripts/defined5.d: Expect a warning.
1707
2f973f13
AM
17082021-02-19 Alan Modra <amodra@gmail.com>
1709
1710 * testsuite/lib/ld-lib.exp: Whitespace.
1711 (load_common_lib): Expand single use and delete this proc.
1712 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1713 Use -B for clang too.
1714
a364a116
AB
17152021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * testplugin.c (record_read_length): Remove debug fprintf.
1718
5b1f6c95
AM
17192021-02-14 Alan Modra <amodra@gmail.com>
1720
1721 * testsuite/ld-cdtest/cdtest.exp,
1722 * testsuite/ld-checks/checks.exp,
1723 * testsuite/ld-elf/binutils.exp,
1724 * testsuite/ld-elf/compress.exp,
1725 * testsuite/ld-elf/dwarf.exp,
1726 * testsuite/ld-elf/exclude.exp,
1727 * testsuite/ld-elf/frame.exp,
1728 * testsuite/ld-elf/indirect.exp,
1729 * testsuite/ld-elf/linux-x86.exp,
1730 * testsuite/ld-elf/sec-to-seg.exp,
1731 * testsuite/ld-elf/tls_common.exp,
1732 * testsuite/ld-elfcomm/elfcomm.exp,
1733 * testsuite/ld-elfvers/vers.exp,
1734 * testsuite/ld-elfvsb/elfvsb.exp,
1735 * testsuite/ld-elfweak/elfweak.exp,
1736 * testsuite/ld-ifunc/binutils.exp,
1737 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1738 * testsuite/ld-misc/defsym.exp,
1739 * testsuite/ld-mn10300/mn10300.exp,
1740 * testsuite/ld-plugin/lto.exp,
1741 * testsuite/ld-plugin/plugin.exp,
1742 * testsuite/ld-scripts/align.exp,
1743 * testsuite/ld-scripts/assert.exp,
1744 * testsuite/ld-scripts/crossref.exp,
1745 * testsuite/ld-scripts/defined.exp,
1746 * testsuite/ld-scripts/extern.exp,
1747 * testsuite/ld-scripts/log2.exp,
1748 * testsuite/ld-scripts/map-address.exp,
1749 * testsuite/ld-scripts/phdrs.exp,
1750 * testsuite/ld-scripts/phdrs2.exp,
1751 * testsuite/ld-scripts/script.exp,
1752 * testsuite/ld-scripts/section-flags.exp,
1753 * testsuite/ld-scripts/sizeof.exp,
1754 * testsuite/ld-scripts/weak.exp,
1755 * testsuite/ld-selective/selective.exp,
1756 * testsuite/ld-sh/sh.exp,
1757 * testsuite/ld-shared/shared.exp,
1758 * testsuite/ld-srec/srec.exp,
1759 * testsuite/ld-tic6x/tic6x.exp,
1760 * testsuite/ld-undefined/undefined.exp,
1761 * testsuite/ld-undefined/weak-undef.exp,
1762 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1763 perror. Instead report "unsupported" or "fail".
1764
c46b7066
NC
17652021-02-12 Nick Clifton <nickc@redhat.com>
1766
1767 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1768 following debug links.
1769
933feaf3
AM
17702021-02-11 Alan Modra <amodra@gmail.com>
1771
1772 * NEWS: Mention arm-symbianelf removal.
1773
a57d1773
AM
17742021-02-09 Alan Modra <amodra@gmail.com>
1775
1776 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1777 Don't include symbian dep file.
1778 * configure.tgt: Remove arm*-*-symbianelf* entry.
1779 * emulparams/armsymbian.sh: Delete.
1780 * ld.texi: Don't mention symbian.
1781 * scripttempl/armbpabi.sc: Delete.
1782 * testsuite/ld-arm/symbian-seg1.d: Delete.
1783 * testsuite/ld-arm/symbian-seg1.s: Delete.
1784 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1785 * Makefile.in: Regenerate.
1786 * po/BLD-POTFILES.in: Regenerate.
1787
38a143aa
L
17882021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1789
1790 PR ld/27358
1791 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1792 tests.
1793 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1794
35a01a04
NA
17952021-01-26 Nick Alcock <nick.alcock@oracle.com>
1796
1797 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1798 when appropriate.
1799
1a2f1b54
L
18002021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1801
1802 PR ld/19609
1803 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1804 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1805 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1806 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1807 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1808 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1809 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1810
37707bd8
L
18112021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1812
1813 PR ld/15146
1814 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1815 * testsuite/ld-plugin/pr15146.d: Restored.
1816 * testsuite/ld-plugin/pr15146a.c: Likewise.
1817 * testsuite/ld-plugin/pr15146b.c: Likewise.
1818 * testsuite/ld-plugin/pr15146c.c: Likewise.
1819 * testsuite/ld-plugin/pr15146d.c: Likewise.
1820
7d409ac0
AM
18212021-02-04 Alan Modra <amodra@gmail.com>
1822
1823 * testsuite/ld-plugin/pr27311d.c: New test.
1824 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1825 and link new test as pr27311-2.
1826
69551367
AM
18272021-02-03 Alan Modra <amodra@gmail.com>
1828
1829 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1830 Link with --as-needed.
1831
9918bff7
AM
18322021-02-02 Alan Modra <amodra@gmail.com>
1833
1834 * testsuite/ld-plugin/pr27311.d,
1835 * testsuite/ld-plugin/pr27311.ver,
1836 * testsuite/ld-plugin/pr27311a.c,
1837 * testsuite/ld-plugin/pr27311b.c,
1838 * testsuite/ld-plugin/pr27311c.c: New testcase.
1839 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1840 PR12982 entries.
1841
1f568f9a
EH
18422021-02-01 Emery Hemingway <ehmry@posteo.net>
1843
1844 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1845
fb6c220e
AM
18462021-02-01 Alan Modra <amodra@gmail.com>
1847
1848 * ldgram.y (defsym_expr): Use assignment rule.
1849 * ldlex.h (ldlex_defsym): Delete.
1850 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1851
40726f16
AM
18522021-02-01 Alan Modra <amodra@gmail.com>
1853
1854 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1855 * ldlex.h (ldlex_backup): Declare.
1856 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1857 chars, use SYMBOLNAMECHAR.
1858 (ldlex_backup): New function.
1859
a5f92c67
AM
18602021-02-01 Alan Modra <amodra@gmail.com>
1861
1862 * ldgram.y: Whitespace fixes.
1863
49daa38f
AM
18642021-02-01 Alan Modra <amodra@gmail.com>
1865
1866 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1867
c4566785
AM
18682021-01-29 Alan Modra <amodra@gmail.com>
1869
1870 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1871
53e556e5
L
18722021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1873
1874 PR ld/27259
1875 * testsuite/ld-elf/pr27259.d: New file.
1876 * testsuite/ld-elf/pr27259.s: Likewise.
1877
def97fb9
AM
18782021-01-28 Alan Modra <amodra@gmail.com>
1879
1880 PR 27259
1881 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1882 prevent endless looping of linked-to sections.
1883
2eda57ef
L
18842021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1885
1886 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1887
1c9c9b9b
AM
18882021-01-26 Alan Modra <amodra@gmail.com>
1889
1890 PR 27226
1891 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1892 * emulparams/elf64_ia64_vms.sh: Likewise.
1893 * emulparams/elf64mmix.sh: Likewise.
1894 * emulparams/elf_iamcu.sh: Likewise.
1895 * emulparams/elf_k1om.sh: Likewise.
1896 * emulparams/elf_l1om.sh: Likewise.
1897 * emulparams/mmo.sh: Likewise.
1898 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1899 * scripttempl/pdp11.sc: Use it.
1900 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1901 instead use .xe script. Support scripts from file system.
1902 * emultempl/beos.em: Support scripts from file system.
1903 * emultempl/pe.em: Likewise.
1904 * emultempl/pep.em: Likewise.
1905 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1906
9e42b976
FS
19072021-01-25 Fangrui Song <maskray@google.com>
1908
1909 PR ld/27230
1910 * scripttempl/DWARF.sc: Add .debug_* sections.
1911
b8df6900
NC
19122021-01-25 Nick Clifton <nickc@redhat.com>
1913
1914 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1915 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1916 .debug_addr into DWARF-5 section.
1917
c78eec44
AM
19182021-01-21 Alan Modra <amodra@gmail.com>
1919
1920 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1921
4bd7c902
AM
19222021-01-20 Alan Modra <amodra@gmail.com>
1923
1924 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1925 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1926 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1927 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1928 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1929 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1930 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1931 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1932 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1933 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1934 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1935 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1936 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1937 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1938 * testsuite/ld-powerpc/tlsso.r: Likewise.
1939 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1940 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1941
c98de297
NA
19422021-01-19 Nick Alcock <nick.alcock@oracle.com>
1943
1944 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1945 symbols by the optimizer.
1946 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1947
85e963f1
NC
19482021-01-19 Nelson Chu <nelson.chu@sifive.com>
1949
1950 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1951 if target is riscv little endian. Otherwise, return false.
1952 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1953 targets by [riscv_little_endian].
1954
326adec3
AM
19552021-01-18 Alan Modra <amodra@gmail.com>
1956
1957 PR 26378
1958 * ldlang.c (map_input_to_output_sections): Start with a read-only
1959 section for data statements.
1960 * testsuite/ld-elf/size-2.d: Adjust to suit.
1961
994b2513
L
19622021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1963
1964 PR ld/27193
1965 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1966 * testsuite/ld-i386/pr27193.dd: New file.
1967 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1968 * testsuite/ld-i386/pr27193b.s: Likewise.
1969
edf0f284
L
19702021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1971
1972 PR binutils/23460
1973 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1974 files to 20 for PR binutils/23460 test.
1975
75a933f3
L
19762021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1977
1978 PR ld/23169
1979 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1980 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1981 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1982 address.
1983
68b00778
L
19842021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1985
1986 * NEWS: Mention -z report-relative-reloc.
1987 * ld.texi: Document -z report-relative-reloc.
1988 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1989 * emulparams/elf_i386.sh: Likewse.
1990 * emulparams/elf_x86_64.sh: Likewse.
1991 * emulparams/x86-report-relative.sh: New file.
1992 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1993 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1994 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1995 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1996 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1997 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1998 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1999 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
2000 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
2001 report-reloc-1-x32.
2002
eb6e6af8
AM
20032021-01-16 Alan Modra <amodra@gmail.com>
2004
2005 PR 26002
2006 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
2007 unversioned symbols.
2008 * testsuite/ld-elfvers/vers16.dsym: Likewise.
2009
b800637e
NC
20102021-01-15 Nelson Chu <nelson.chu@sifive.com>
2011
2012 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
2013 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
2014 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
2015 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
2016 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
2017 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
2018
5a10699f
NC
20192021-01-14 Nick Clifton <nickc@redhat.com>
2020
2021 * po/fr.po: Updated French translation.
2022
271bea6a
MF
20232021-01-14 Mike Frysinger <vapier@gentoo.org>
2024
2025 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
2026
4120e488
AM
20272021-01-14 Alan Modra <amodra@gmail.com>
2028
2029 PR 27160
2030 * ldelfgen.c (compare_link_order): Protect access of ELF section
2031 data.
2032 (add_link_order_input_section): Remove redundant NULL check.
2033 Use bfd_get_flavour.
2034 (ldelf_map_segments): Use bfd_get_flavour.
2035
b634d11d
L
20362021-01-13 H.J. Lu <hongjiu.lu@intel.com>
2037
2038 * ldelfgen.c (add_link_order_input_section): Check for ELF input
2039 before accessing ELF section data.
2040
5347ed60
AM
20412021-01-13 Alan Modra <amodra@gmail.com>
2042
2043 * Makefile.in: Regenerate.
2044
b209b5a6
AM
20452021-01-13 Alan Modra <amodra@gmail.com>
2046
2047 PR 27160
2048 * ldlang.h (lang_output_section_statement_type): Add data field.
2049 (lang_input_section_type, lang_section_bst_type): Add pattern field.
2050 (statement_list): Declare.
2051 (lang_add_section): Adjust prototype.
2052 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
2053 * emultempl/armelf.em: Likewise.
2054 * emultempl/beos.em: Likewise.
2055 * emultempl/cskyelf.em: Likewise.
2056 * emultempl/hppaelf.em: Likewise.
2057 * emultempl/m68hc1xelf.em: Likewise.
2058 * emultempl/metagelf.em: Likewise.
2059 * emultempl/mipself.em: Likewise.
2060 * emultempl/mmo.em: Likewise.
2061 * emultempl/msp430.em: Likewise.
2062 * emultempl/nios2elf.em: Likewise.
2063 * emultempl/pe.em: Likewise.
2064 * emultempl/pep.em: Likewise.
2065 * emultempl/ppc64elf.em: Likewise.
2066 * emultempl/spuelf.em: Likewise.
2067 * emultempl/vms.em: Likewise.
2068 * ldelf.c: Likewise.
2069 * ldelfgen.c: Include ldctor.h.
2070 (struct os_sections): New.
2071 (add_link_order_input_section, link_order_scan): New functions.
2072 (compare_link_order, fixup_link_order): New functions.
2073 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
2074 * ldlang.c (statement_list): Make global.
2075 (output_section_callback_fast): Save pattern in tree node.
2076 (lang_add_section): Add pattern parameter, save in lang_input_section.
2077 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
2078 (lang_insert_orphan, output_section_callback): Likewise.
2079 (ldlang_place_orphan): Likewise.
2080 (gc_section_callback): Don't set section->pattern.
2081 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
2082 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2083 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
2084
8c4645b4
AM
20852021-01-13 Alan Modra <amodra@gmail.com>
2086
2087 * ldlang.h (callback_t): Remove flag_info function parameter.
2088 * ldlang.c (walk_wild_consider_section): Adjust to suit.
2089 (walk_wild_section_general): Likewise.
2090 (output_section_callback_fast, output_section_callback): Likewise.
2091 (check_section_callback, gc_section_callback): Likewise.
2092 (find_relro_section_callback): Likewise.
2093
d546b610
L
20942021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2095
2096 PR binutils/26792
2097 * configure.ac: Use GNU_MAKE_JOBSERVER.
2098 * aclocal.m4: Regenerated.
2099 * configure: Likewise.
2100
c2e9a4a3
L
21012021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2102
2103 PR ld/27171
2104 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
2105 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
2106 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
2107 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
2108
83b33c6c
L
21092021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2110
2111 PR ld/27173
2112 * configure: Regenerated.
2113
c0f6e439
MJ
21142021-01-11 Matt Jenkins <matt@majenko.co.uk>
2115
2116 PR ld/27167
2117 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
2118 and mips64r5 to list of known mips targets.
2119
21202021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
2121
2122 * po/pt_BR.po: Updated Brazilian Portuguese translation.
2123` * po/uk.po: Updated Ukranian translation.
2124
a4966cd9
L
21252021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2126
2127 * configure: Regenerated.
2128
0a94990b
L
21292021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2130
2131 PR ld/27166
2132 * testsuite/ld-x86-64/lam-u48.rd: New file.
2133 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
2134 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
2135
573fe3fb
NC
21362021-01-09 Nick Clifton <nickc@redhat.com>
2137
2138 * configure: Regenerate.
2139 * po/ld.pot: Regenerate.
2140
055bc77a
NC
21412021-01-09 Nick Clifton <nickc@redhat.com>
2142
2143 * 2.36 release branch crated.
2144
ba9e922f
L
21452021-01-08 H.J. Lu <hongjiu.lu@intel.com>
2146
2147 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
2148 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
2149
64307045
AM
21502021-01-09 Alan Modra <amodra@gmail.com>
2151
2152 * configure: Regenerate.
2153 * Makefile.in: Regenerate.
2154
f4782128
ST
21552021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2156
2157 * configure: Regenerate.
2158
d1bcae83
L
21592021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2160
2161 PR 27109
2162 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
2163 * testsuite/ld-elf/loadaddr3b.d: Likewise.
2164 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
2165 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
2166 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
2167 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
2168 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
2169 * testsuite/ld-i386/pr19636-1d.d: Likewise.
2170 * testsuite/ld-i386/pr19636-1l.d: Likewise.
2171 * testsuite/ld-i386/pr19636-2c.d: Likewise.
2172 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
2173 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
2174 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
2175 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
2176 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
2177 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
2178 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2179 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
2180 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2181 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
2182 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2183 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2184 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2185 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
2186 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2187 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
2188 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
2189 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
2190 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
2191 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
2192 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
2193 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
2194 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
2195 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
2196 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
2197 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
2198 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
2199 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
2200 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
2201 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
2202 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
2203 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
2204 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
2205 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
2206 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2207 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2208 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2209 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2210 * testsuite/ld-x86-64/pr23854.d: Likewise.
2211 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
2212 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
2213 * testsuite/ld-i386/plt-pic.pd: Likewise.
2214 * testsuite/ld-i386/plt-pic2.dd: Likewise.
2215 * testsuite/ld-i386/plt.pd: Likewise.
2216 * testsuite/ld-i386/plt2.dd: Likewise.
2217 * testsuite/ld-i386/tlsbin.rd: Likewise.
2218 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2219 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2220 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2221 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
2222 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2223 * testsuite/ld-i386/tlspic.rd: Likewise.
2224 * testsuite/ld-i386/tlspic2.rd: Likewise.
2225 * testsuite/ld-x86-64/mpx3.dd: Likewise.
2226 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2227 * testsuite/ld-x86-64/mpx4.dd: Likewise.
2228 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2229 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
2230 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
2231 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
2232 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
2233 * testsuite/ld-x86-64/plt.pd: Likewise.
2234 * testsuite/ld-x86-64/plt2.dd: Likewise.
2235 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2236 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2237 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2238 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2239 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
2240 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2241 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2242 * testsuite/ld-elf/sec64k.exp: Check
2243 is_elf_unused_section_symbols.
2244
dc200613
AM
22452021-01-07 Alan Modra <amodra@gmail.com>
2246
2247 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
2248 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
2249 * testsuite/ld-scripts/segment-start.d: Likewise.
2250
8e604ff0
AM
22512021-01-07 Alan Modra <amodra@gmail.com>
2252
2253 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
2254 about dynamic relocations in read-only sections.
2255 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2256 * testsuite/ld-elf/ehdr_start.d: Likewise.
2257 * testsuite/ld-scripts/pr22267.d: Likewise.
2258 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
2259 pr20995 text.
2260 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
2261
4d4490b8
MC
22622021-01-07 Marcus Comstedt <marcus@mc.pp.se>
2263
2264 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
2265 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
2266
f526791a
AM
22672021-01-07 Alan Modra <amodra@gmail.com>
2268
2269 * po/BLD-POTFILES.in: Regenerate.
2270
4018f4e0
AM
22712021-01-07 Alan Modra <amodra@gmail.com>
2272
2273 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
2274 complain about relocs in read-only sections. Tidy ASFLAGS append.
2275
3677b729
AM
22762021-01-06 Alan Modra <amodra@gmail.com>
2277
2278 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
2279 base for some tests.
2280 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
2281 * testsuite/ld-sparc/gotop32.sd: Likewise.
2282 * testsuite/ld-sparc/gotop32.td: Likewise.
2283 * testsuite/ld-sparc/gotop64.dd: Likewise.
2284 * testsuite/ld-sparc/gotop64.sd: Likewise.
2285 * testsuite/ld-sparc/gotop64.td: Likewise.
2286 * testsuite/ld-sparc/tlsg32.sd: Likewise.
2287 * testsuite/ld-sparc/tlsg64.sd: Likewise.
2288 * testsuite/ld-sparc/tlspie32.dd: Likewise.
2289 * testsuite/ld-sparc/tlspie64.dd: Likewise.
2290 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
2291 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
2292 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
2293 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
2294 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
2295 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
2296 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
2297 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
2298 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
2299 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
2300 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
2301 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
2302 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
2303 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
2304 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
2305 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
2306 * testsuite/ld-sparc/wdispcall.dd: Likewise.
2307
73624512
AM
23082021-01-06 Alan Modra <amodra@gmail.com>
2309
2310 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
2311 * testsuite/ld-scripts/rgn-at11.d: Likewise.
2312
f36ce378
MC
23132021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2314
2315 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
2316 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
2317 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
2318 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
2319 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2320 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2321 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2322 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
2323 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
2324 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
2325 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
2326 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
2327 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
2328 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
2329 to littleriscv.
2330 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
2331
fbc09e7a
MC
23322021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2333
2334 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
2335 riscv32be*-*-linux*, and riscv64be*-*-linux*.
2336 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
2337 eelf32briscv_ilp32.c.
2338 * Makefile.in: Regenerate.
2339 * emulparams/elf32briscv.sh: Added.
2340 * emulparams/elf32briscv_ilp32.sh: Likewise.
2341 * emulparams/elf32briscv_ilp32f.sh: Likewise.
2342 * emulparams/elf64briscv.sh: Likewise.
2343 * emulparams/elf64briscv_lp64.sh: Likewise.
2344 * emulparams/elf64briscv_lp64f.sh: Likewise.
2345
b4b6ea46
NA
23462021-01-05 Nick Alcock <nick.alcock@oracle.com>
2347
2348 * testsuite/ld-ctf/enum-forward.c: New test.
2349 * testsuite/ld-ctf/enum-forward.c: New results.
2350
37002871
NA
23512021-01-05 Nick Alcock <nick.alcock@oracle.com>
2352
2353 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2354 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2355 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2356 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2357 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2358 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2359 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2360 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2361 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2362 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2363 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2364 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2365 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2366 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2367 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2368 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2369 * testsuite/ld-ctf/cycle-1.d: Likewise.
2370 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2371 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2372 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2373 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2374 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2375 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2376 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2377 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2378 * testsuite/ld-ctf/forward.d: Likewise.
2379 * testsuite/ld-ctf/function.d: Likewise.
2380 * testsuite/ld-ctf/slice.d: Likewise.
2381 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2382 * testsuite/ld-ctf/enums.c: New test.
2383 * testsuite/ld-ctf/enums.d: New test.
2384
ffeece6a
NA
23852021-01-05 Nick Alcock <nick.alcock@oracle.com>
2386
2387 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2388 changes.
2389 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2390 * testsuite/ld-ctf/forward.c: New test...
2391 * testsuite/ld-ctf/forward.d: ... and results.
2392
91e7ce2f
NA
23932021-01-05 Nick Alcock <nick.alcock@oracle.com>
2394
2395 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2396 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2397 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2398 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2399 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2400 * testsuite/ld-ctf/function.d: Likewise.
2401 * testsuite/ld-ctf/slice.d: Likewise.
2402
57f97d0e
NA
24032021-01-05 Nick Alcock <nick.alcock@oracle.com>
2404
2405 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2406 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2407 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2408 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2409 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2410 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2411 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2412 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2413 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2414 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2415 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2416 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2417 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2418 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2419 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2420 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2421 * testsuite/ld-ctf/cycle-1.d: Likewise.
2422 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2423 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2424 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2425 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2426 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2427 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2428 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2429 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2430 * testsuite/ld-ctf/function.d: Likewise.
2431 * testsuite/ld-ctf/slice.d: Likewise.
2432 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2433
b281a04f
AM
24342021-01-05 Alan Modra <amodra@gmail.com>
2435
2436 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2437
40b11930
AM
24382021-01-05 Alan Modra <amodra@gmail.com>
2439
2440 PR ld/26256
2441 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2442 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2443
cd6d537c
L
24442021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2445
2446 PR ld/26256
2447 * ldlang.c (gc_section_callback): Set pattern.
2448 * testsuite/ld-elf/pr26256-1.s: New file.
2449 * testsuite/ld-elf/pr26256-1.t: Likewise.
2450 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2451 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2452 * testsuite/ld-elf/pr26256-2.s: Likewise.
2453 * testsuite/ld-elf/pr26256-2.t: Likewise.
2454 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2455 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2456 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2457 * testsuite/ld-elf/pr26256-3.s: Likewise.
2458 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2459 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2460 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2461 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2462
5b4293ba
AM
24632021-01-04 Alan Modra <amodra@gmail.com>
2464
2465 PR 26822
2466 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2467 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2468 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2469 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2470 * testsuite/ld-i386/tlsbin.rd: Likewise.
2471 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2472 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2473 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2474 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2475 * testsuite/ld-i386/tlspic.rd: Likewise.
2476 * testsuite/ld-i386/tlspic2.rd: Likewise.
2477 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2478 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2479 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2480 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2481 * testsuite/ld-plugin/pr17973.d: Likewise.
2482 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2483 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2484 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2485 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2486 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2487 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2488 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2489 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2490 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2491 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2492 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2493 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2494 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2495 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2496 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2497 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2498 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2499 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2500 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2501 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2502 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2503
f9a6a8f0
AM
25042021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2505
2506 * configure.tgt: Correct comment grammar.
2507 * emultempl/m68hc1xelf.em: Likewise.
2508 * ld.texi: Correct grammar.
2509
250d07de
AM
25102021-01-01 Alan Modra <amodra@gmail.com>
2511
2512 Update year range in copyright notice of all files.
2513
c2795844 2514For older changes see ChangeLog-2020
3499769a 2515\f
fd67aa11 2516Copyright (C) 2021-2024 Free Software Foundation, Inc.
3499769a
AM
2517
2518Copying and distribution of this file, with or without modification,
2519are permitted in any medium without royalty provided the copyright
2520notice and this notice are preserved.
2521
2522Local Variables:
2523mode: change-log
2524left-margin: 8
2525fill-column: 74
2526version-control: never
2527End: