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