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