LTO object insertion point
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
128bf1fe
AM
12019-08-06 Alan Modra <amodra@gmail.com>
2
3 PR 24873
4 * ldlang.c (find_replacements_insert_point): Return "before" flag.
5 (find_next_input_statement): New function.
6 (lang_process): When placing recompiled LTO objects before a
7 claimed archive, place them immediately before in the statement
8 list.
9
b02c4f16
AM
102019-08-06 Alan Modra <amodra@gmail.com>
11
12 PR 24873
13 * ldlang.c (plugin_undefs): New static var.
14 (open_input_bfds <lang_group_statement_enum>): Loop on
15 plugin_undefs and hitting plugin_insert point.
16 (lang_process <lto_plugin_active>): Set plugin_undefs.
17
1b611b2d
AM
182019-08-02 Alan Modra <amodra@gmail.com>
19
20 * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
21
776ab89f
AM
222019-08-01 Alan Modra <amodra@gmail.com>
23
24 PR 24806
25 * ldlang.c (process_insert_statements): Add start of list
26 parameter. Use rather than lang_os_list.head. Process insert
27 statements inside group statements with a recursive call.
28 (lang_process): Adjust process_insert_statements call.
29 * lexsup.c (parse_args): Warn when adding missing --end-group.
30
5c1e6d53
AM
312019-08-01 Alan Modra <amodra@gmail.com>
32
33 * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
34 * ldlang.c: Likewise throughout file.
35 * emultempl/alphaelf.em: Likewise.
36 * emultempl/elf32.em: Likewise.
37 * emultempl/mmo.em: Likewise.
38 * emultempl/pe.em: Likewise.
39 * emultempl/pep.em: Likewise.
40 * emultempl/ppc32elf.em: Likewise.
41 * emultempl/spuelf.em: Likewise.
42
6e99a238
AM
432019-07-26 Alan Modra <amodra@gmail.com>
44
45 * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
46 * testsuite/ld-plugin/lto-5r.d: Likewise.
47
8f79c107
L
482019-07-24 H.J. Lu <hongjiu.lu@intel.com>
49
50 * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
51 of __gnu_lto_v.*.
52 * testsuite/ld-plugin/lto-5r.d: Likewise.
53 * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
54
ef551643
CZ
552019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
56
57 * ld-arc/relax-local-pic.d: New test.
58 * ld-arc/relax-local-pic.s: New file.
59
19889a58
L
602019-07-22 Martin Liska <mliska@suse.cz>
61
62 * testsuite/ld-plugin/lto-3r.d: Remove.
63 * testsuite/ld-plugin/lto-5r.d: Remove.
64 * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
65 tests.
66
df3a023b
AM
672019-07-23 Alan Modra <amodra@gmail.com>
68
69 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
70 SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
71
ec49711a
AM
722019-07-23 Alan Modra <amodra@gmail.com>
73
74 * testsuite/ld-elf/size-1.d,
75 * testsuite/ld-elf/size-1.s,
76 * testsuite/ld-elf/size-1.t: New test.
77 * testsuite/ld-elf/size-2.d,
78 * testsuite/ld-elf/size-2.s,
79 * testsuite/ld-elf/size-2.t: New test.
80 * testsuite/ld-scripts/size-1.d,
81 * testsuite/ld-scripts/size-1.s,
82 * testsuite/ld-scripts/size-1.t,
83 * testsuite/ld-scripts/size-2.s,
84 * testsuite/ld-scripts/size-2.d,
85 * testsuite/ld-scripts/size-2.t,
86 * testsuite/ld-scripts/size.exp: Delete.
87
0c628bba
SP
882019-07-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
89
90 * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
91 allow for output from a arm-none-linux-gnueabihf target.
92
9ab3a744
AM
932019-07-20 Alan Modra <amodra@gmail.com>
94
95 PR 24827
96 * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
97
c213164a
AM
982019-07-19 Alan Modra <amodra@gmail.com>
99
100 * testsuite/ld-powerpc/tlsgd.d,
101 * testsuite/ld-powerpc/tlsgd.s,
102 * testsuite/ld-powerpc/tlsie.d,
103 * testsuite/ld-powerpc/tlsie.s,
104 * testsuite/ld-powerpc/tlsld.d,
105 * testsuite/ld-powerpc/tlsld.s: New tests.
106 * testsuite/ld-powerpc/powerpc.exp: Run them.
107
7a708984
AM
1082019-07-19 Alan Modra <amodra@gmail.com>
109
110 * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
111 * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
112 * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
113 * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
114 * testsuite/ld-powerpc/powerpc.exp: Update.
115
88468fe0
AM
1162019-07-19 Alan Modra <amodra@gmail.com>
117
118 PR 24819
119 * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
120
54d7dae5
L
1212019-07-18 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR ld/24819
124 * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
125 member of output section group when doing a relocatable link.
126 * testsuite/ld-elf/pr24819.d: New file.
127 * testsuite/ld-elf/pr24819.s: Likewise.
128
f26a3287
AM
1292019-07-13 Alan Modra <amodra@gmail.com>
130
131 * testsuite/ld-powerpc/tlsso.r: Update.
132 * testsuite/ld-powerpc/tlsso32.g: Update.
133 * testsuite/ld-powerpc/tlsso32.r: Update.
134 * testsuite/ld-powerpc/tlstocso.r: Update.
135 * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
136 * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
137 * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
138 * testsuite/ld-cris/tls-gd-1.d: Update.
139 * testsuite/ld-cris/tls-gd-1h.d: Update.
140 * testsuite/ld-cris/tls-gd-2.d: Update.
141 * testsuite/ld-cris/tls-gd-2h.d: Update.
142 * testsuite/ld-cris/tls-ie-10.d: Update.
143 * testsuite/ld-cris/tls-ie-11.d: Update.
144 * testsuite/ld-cris/tls-ie-8.d: Update.
145 * testsuite/ld-cris/tls-ie-9.d: Update.
146 * testsuite/ld-cris/tls-js1.d: Update.
147 * testsuite/ld-cris/tls-ld-4.d: Update.
148 * testsuite/ld-cris/tls-ld-5.d: Update.
149 * testsuite/ld-cris/tls-ld-6.d: Update.
150 * testsuite/ld-cris/tls-ld-7.d: Update.
151 * testsuite/ld-cris/tls-ldgd-14.d: Update.
152 * testsuite/ld-cris/tls-ldgd-15.d: Update.
153 * testsuite/ld-cris/tls-ldgdx-14.d: Update.
154 * testsuite/ld-cris/tls-ldgdx-15.d: Update.
155 * testsuite/ld-cris/tls-local-54.d: Update.
156 * testsuite/ld-cris/tls-local-60.d: Update.
157 * testsuite/ld-cris/tls-local-61.d: Update.
158 * testsuite/ld-cris/tls-local-63.d: Update.
159 * testsuite/ld-cris/tls-local-64.d: Update.
160 * testsuite/ld-cris/tls-ok-30.d: Update.
161 * testsuite/ld-cris/tls-ok-32.d: Update.
162 * testsuite/ld-cris/tls-ok-34.d: Update.
163 * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
164 * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
165 * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
166 * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
167 * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
168 * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
169 * testsuite/ld-mips-elf/tlslib-o32.got: Update.
170 * testsuite/ld-s390/tlspic.rd: Update.
171 * testsuite/ld-s390/tlspic_64.rd: Update.
172 * testsuite/ld-sparc/tlssunnopic32.rd: Update.
173 * testsuite/ld-sparc/tlssunnopic64.rd: Update.
174 * testsuite/ld-sparc/tlssunpic32.rd: Update.
175 * testsuite/ld-sparc/tlssunpic64.rd: Update.
176
7b243801
AM
1772019-07-13 Alan Modra <amodra@gmail.com>
178
179 PR 24786
180 * ldlang.h (enum section_type): Add first_overlay_section.
181 * ldlang.c (lang_add_section): Adjust switch statement.
182 (map_input_to_output_sections): Likewise.
183 (lang_size_sections_1): Always set last_os for first overlay section.
184 (lang_leave_overlay): Set sectype to first_overlay_section.
185
3836e1d1
AM
1862019-07-08 Alan Modra <amodra@gmail.com>
187
188 * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
189 * testsuite/ld-powerpc/callstub-2.d: Likewise.
190
f2d4ba38
JB
1912019-07-04 Jan Beulich <jbeulich@suse.com>
192
193 * testsuite/ld-elf/group9.s: Correct argument of .type.
194
125f83f6
NC
1952019-07-02 Nick Clifton <nickc@redhat.com>
196
197 PR 24753
198 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
199 LINKER_CREATED section flag when creating the stub section.
200
bb32413f
SP
2012019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
202
203 * testsuite/ld-arm/arm-elf.exp: Add tests.
204 * testsuite/ld-arm/cmse_main.s: New test.
205 * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
206 * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
207
539300fb
NC
2082019-07-01 Nick Clifton <nickc@redhat.com>
209
210 PR 23839
211 * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
212 exidx relocs.
213
60d53d7f
AM
2142019-06-28 Alan Modra <amodra@gmail.com>
215
216 * testsuite/ld-powerpc/callstub-1.d,
217 * testsuite/ld-powerpc/callstub-1.s: New test.
218 * testsuite/ld-powerpc/callstub-2.d,
219 * testsuite/ld-powerpc/callstub-2.s: New test.
220 * testsuite/ld-powerpc/powerpc.exp: Run them.
221
8e5cb9a5
JB
2222019-06-25 Jan Beulich <jbeulich@suse.com>
223
224 * plugin.c (get_lto_kind, get_lto_resolution,
225 get_lto_visibility): Rename "index" to "idx".
226
f93ab3a0
L
2272019-06-24 H.J. Lu <hongjiu.lu@intel.com>
228
229 PR ld/24721
230 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
231 * testsuite/ld-x86-64/pr24721-x32.d: New file.
232 * testsuite/ld-x86-64/pr24721.d: Likewise.
233 * testsuite/ld-x86-64/pr24721.map: Likewise.
234 * testsuite/ld-x86-64/pr24721a.s: Likewise.
235 * testsuite/ld-x86-64/pr24721b.s: Likewise.
236
bb22a418
AM
2372019-06-23 Alan Modra <amodra@gmail.com>
238
239 PR 24704
240 * testsuite/ld-powerpc/elfv2exe.d: Update.
241 * testsuite/ld-powerpc/elfv2so.d: Update.
242
e30d1fa1
SN
2432019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
244
245 * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
246 * testsuite/ld-aarch64/emit-relocs-22.d: New test.
247 * testsuite/ld-aarch64/emit-relocs-22.s: New test.
248 * testsuite/ld-aarch64/emit-relocs-23.d: New test.
249 * testsuite/ld-aarch64/emit-relocs-23.s: New test.
250
3a3a077c
AM
2512019-06-14 Alan Modra <amodra@gmail.com>
252
253 * Makefile.in: Regenerate.
254 * configure: Regenerate.
255
e3fa7860
AM
2562019-06-14 Alan Modra <amodra@gmail.com>
257
258 PR 24662
259 * testsuite/ld-alpha/tlsbin.rd: Update.
260 * testsuite/ld-alpha/tlsbinr.rd: Update.
261 * testsuite/ld-alpha/tlspic.rd: Update.
262
c1b00498
MR
2632019-06-07 Maciej W. Rozycki <macro@wdc.com>
264
265 * ld.texi (Options): Also document `-rpath' option restrictions
266 in the description of the option itself.
267
237df8fe
SD
2682019-06-06 Sudakshina Das <sudi.das@arm.com>
269
270 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
271 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
272 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
273 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
274
8bf6d176
SD
2752019-06-06 Sudakshina Das <sudi.das@arm.com>
276
277 * NEWS: Update options names.
278 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
279 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
280 (PARSE_AND_LIST_OPTIONS): Update to -z.
281 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
282 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
283 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
284 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
285 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
286 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
287 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
288 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
289 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
290 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
291 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
292 * testsuite/ld-aarch64/bti-warn.d: Likewise.
293 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
294 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
295
ae9ac79e
NC
2962019-05-30 Nick Clifton <nickc@redhat.com>
297
298 PR 24627
299 * testsuite/ld-elf/ver_def.vd: Update expected output.
300
6ff185b8
AM
3012019-05-30 Alan Modra <amodra@gmail.com>
302
303 PR 24596
304 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
305 (EXTRA_EM_FILE): Define to genelf.
306 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
307
1336939d
AM
3082019-05-30 Alan Modra <amodra@gmail.com>
309
310 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
311 calls in optional "xfail" args.
312 (run_ld_link_exec_tests): Likewise.
313 (is_generic): New.
314 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
315 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
316 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
317 xfail_implib var.
318 * testsuite/ld-elf/sec64k.exp: Use is_generic.
319 * testsuite/ld-elf/shared.exp: Likewise.
320 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
321 * testsuite/ld-discard/start.d: Likewise.
322 * testsuite/ld-discard/static.d: Likewise.
323 * testsuite/ld-elf/attributes.d: Likewise.
324 * testsuite/ld-elf/group1.d: Likewise.
325 * testsuite/ld-elf/group3b.d: Likewise.
326 * testsuite/ld-elf/group8a.d: Likewise.
327 * testsuite/ld-elf/group8b.d: Likewise.
328 * testsuite/ld-elf/group9a.d: Likewise.
329 * testsuite/ld-elf/group9b.d: Likewise.
330 * testsuite/ld-elf/linkonce2.d: Likewise.
331 * testsuite/ld-elf/merge2.d: Likewise.
332 * testsuite/ld-elf/merge3.d: Likewise.
333 * testsuite/ld-elf/pr12851.d: Likewise.
334 * testsuite/ld-elf/pr12975.d: Likewise.
335 * testsuite/ld-elf/pr13177.d: Likewise.
336 * testsuite/ld-elf/pr13195.d: Likewise.
337 * testsuite/ld-elf/pr17550c.d: Likewise.
338 * testsuite/ld-elf/pr17550d.d: Likewise.
339 * testsuite/ld-elf/pr17615.d: Likewise.
340 * testsuite/ld-elf/pr21562a.d: Likewise.
341 * testsuite/ld-elf/pr21562b.d: Likewise.
342 * testsuite/ld-elf/pr21562c.d: Likewise.
343 * testsuite/ld-elf/pr21562d.d: Likewise.
344 * testsuite/ld-elf/pr21562i.d: Likewise.
345 * testsuite/ld-elf/pr21562j.d: Likewise.
346 * testsuite/ld-elf/pr21562k.d: Likewise.
347 * testsuite/ld-elf/pr21562l.d: Likewise.
348 * testsuite/ld-elf/pr21562m.d: Likewise.
349 * testsuite/ld-elf/pr21562n.d: Likewise.
350 * testsuite/ld-elf/pr22677.d: Likewise.
351 * testsuite/ld-elf/pr22836-1a.d: Likewise.
352 * testsuite/ld-elf/pr22836-1b.d: Likewise.
353 * testsuite/ld-elf/warn3.d: Likewise.
354 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
355 targets rather than notarget.
356 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
357 * testsuite/ld-elf/orphan-10.d: Likewise.
358 * testsuite/ld-elf/orphan-9.d: Likewise.
359 * testsuite/ld-elf/orphan-region.d: Likewise.
360 * testsuite/ld-elf/orphan.d: Likewise.
361 * testsuite/ld-elf/orphan3.d: Likewise.
362 * testsuite/ld-elf/pr20528a.d: Likewise.
363 * testsuite/ld-elf/pr20528b.d: Likewise.
364 * testsuite/ld-elf/pr23658-1a.d: Likewise.
365 * testsuite/ld-elf/pr23658-1b.d: Likewise.
366 * testsuite/ld-elf/pr349.d: Likewise.
367 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
368 targets rather than notarget.
369 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
370
1e129bbe
FS
3712019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
372
373 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
374 for pcrel_hi/pcrel_lo.
375 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
376 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
377 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
378 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
379 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
380
eabf307f
AM
3812019-05-28 Alan Modra <amodra@gmail.com>
382
383 PR 24596
384 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
385 the output is coff before accessing coff tdata.
386 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
387
65f381e7
SN
3882019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
389
390 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
391 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
392
3d7d6a6f
AM
3932019-05-27 Alan Modra <amodra@gmail.com>
394
395 PR 24596
396 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
397 BFS_KEEP on group signature symbol.
398
823710d5
SN
3992019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
400
401 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
402 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
403 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
404 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
405 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
406 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
407 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
408
405b5bd8
AM
4092019-05-24 Alan Modra <amodra@gmail.com>
410
411 * po/BLD-POTFILES.in: Regenerate.
412
04bdff6a
AM
4132019-05-24 Alan Modra <amodra@gmail.com>
414
415 * testsuite/ld-powerpc/notoc2.d,
416 * testsuite/ld-powerpc/notoc2.s: New test.
417 * testsuite/ld-powerpc/powerpc.exp: Run it.
418
4a421c53
AM
4192019-05-24 Alan Modra <amodra@gmail.com>
420
421 * testsuite/ld-powerpc/pcrelopt.s,
422 * testsuite/ld-powerpc/pcrelopt.d,
423 * testsuite/ld-powerpc/pcrelopt.sec: New test.
424 * testsuite/ld-powerpc/powerpc.exp: Run it.
425
8376927b
JM
4262019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
427
428 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
429 * Makefile.in (prefix): Regenerate.
430 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
431 * emulparams/elf64bpf.sh: New file.
432 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
433 bpf-*-* to the list of targets not supporting gc-sections.
434 * testsuite/ld-bpf/bar.s: New file.
435 * testsuite/ld-bpf/jump-1.d: Likewise.
436 * testsuite/ld-bpf/foo.s: Likewise.
437 * testsuite/ld-bpf/call-1.d: Likewise.
438 * testsuite/ld-bpf/bpf.exp: Likewise.
439 * testsuite/ld-bpf/baz.s: Likewise.
440
82d7a6f4
AM
4412019-05-23 Alan Modra <amodra@gmail.com>
442
443 PR 24576
444 * ldfile.c (enum script_open_style): New.
445 (struct script_name_list): New.
446 (ldfile_open_command_file_1): Take a script_open_style param
447 rather than booleans. Adjust callers. Only fail when -T or
448 default -T script is invoked twice.
449 (ldfile_try_open_bfd): Revert last change.
450
6ec6968b
NC
4512019-05-22 Julius Werner <jwerner@chromium.org>
452 Nick Clifton <nickc@redhat.com>
453
454 PR 24576
455 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
456 is_script. If true check that the file has not already been
457 parsed as a linker script.
458 (ldfile_open_script_file): New function.
459 (ldfile_try_open_bfd): Use the new function in place of
460 ldfile_open_command_line.
461 * ldmain.c (main): Likewise.
462 * lexsup.c (parse_args): Use the new function for opening linker
463 scripts with the -T option.
464 * ldfile.h (ldfile_open_script_file): Add prototype.
465
b474a202
FS
4662019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
467
468 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
469 %tprel_hi and %tprel_lo relocations.
470 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
471 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
472 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
473 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
474 script file.
475
304f09d0
FS
4762019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
477
478 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
479 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
480 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
481 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
482 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
483 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
484 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
485
3734320d
MF
4862019-05-21 Matthew Fortune <matthew.fortune@mips.com>
487 Faraz Shahbazker <fshahbazker@wavecomp.com>
488
489 * emultempl/mipself.em (compact_branches): New static variable.
490 (mips_create_output_section_statements): Call
491 _bfd_mips_elf_compact_branches.
492 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
493 OPTION_NO_COMPACT_BRANCHES.
494 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
495 no-compact-branches.
496 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
497 --no-compact-branches.
498 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
499 * ld.texinfo: Document --compact-branches, --no-compact-branches.
500 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
501 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
502 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
503 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
504 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
505 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
506 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
507
e6f65e75
AV
5082019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
509
510 * testsuite/ld-arm/arm-elf.exp: Add tests
511 * testsuite/ld-arm/bfs-0.s: New test.
512 * testsuite/ld-arm/bfs-1.s: New test.
513 * testsuite/ld-arm/branch-futures.d: New test.
514
739b5c9c
TC
5152019-05-21 Tamar Christina <tamar.christina@arm.com>
516
517 PR ld/24373
518 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
519 to flags.
520 * NEWS: Add changes to flag.
521 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
522 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
523 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
524 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
525 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
526 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
527 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
528 * testsuite/ld-aarch64/erratum843419-far.s: New test.
529 * testsuite/ld-aarch64/erratum843419-full.d: New test.
530 * testsuite/ld-aarch64/erratum843419-near.s: New test.
531 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
532
7622049e
SKS
5332019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
534
535 PR ld/24571
536 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
537 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
538
338ba755
SKS
5392019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
540
541 PR ld/24564
542 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
543 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
544
d8734380
FS
5452019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
546
547 PR 14798
548 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
549 global code symbols.
550 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
551
af4fa23f
AM
5522019-05-17 Alan Modra <amodra@gmail.com>
553
554 PR 24567
555 * plugin.c (plugin_notice): Do not let a common symbol override
556 a non-common definition in IR.
557
dd318999
DD
5582019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
559
560 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
561 Rename.
562
46752c37
PS
5632019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
564
565 PR 24536
566 * ldbuildid.c (generate_build_id): Cast return value from
567 GetProcAddress in order to avoid a compile time warning.
568
e1cbf07a
AM
5692019-05-06 Alan Modra <amodra@gmail.com>
570
571 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
572
27cdfa03
AM
5732019-05-04 Alan Modra <amodra@gmail.com>
574
575 * testsuite/ld-scripts/fill.d: Don't xfail m32c
576 * testsuite/ld-scripts/fill16.d: Likewise.
577
a288c270
AM
5782019-05-04 Alan Modra <amodra@gmail.com>
579
580 PR 24511
581 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
582 data section on hppa64.
583 * testsuite/ld-elf/pr14156b.d: Likewise.
584 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
585 output section flags.
586 * testsuite/ld-scripts/sane1.t: Likewise.
587 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
588 and __fini_array_start. Define __start et al.
589 * testsuite/ld-elf/pr24511.d: New test.
590
066f4018
AM
5912019-04-30 Alan Modra <amodra@gmail.com>
592
593 * testsuite/ld-powerpc/elfv2exe.d: Update.
594 * testsuite/ld-powerpc/elfv2so.d: Update.
595 * testsuite/ld-powerpc/tocopt.d: Update.
596 * testsuite/ld-powerpc/tocopt.s: Update.
597 * testsuite/ld-powerpc/tocopt5.d: Update.
598 * testsuite/ld-powerpc/tocopt5.s: Update.
599 * testsuite/ld-powerpc/tocopt7.d: Update.
600 * testsuite/ld-powerpc/tocopt7.s: Update.
601 * testsuite/ld-powerpc/tocopt8.d: Update.
602 * testsuite/ld-powerpc/tocopt8.s: Update.
603
06ddcada
AM
6042019-04-30 Alan Modra <amodra@gmail.com>
605
606 * ld.texi (How GNU properties are merged): Avoid pod2man error.
607 Correct example.
608
c54f1524
L
6092019-04-26 H.J. Lu <hongjiu.lu@intel.com>
610
611 PR ld/24486
612 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
613 * testsuite/ld-plugin/pr24486a.c: New file.
614 * testsuite/ld-plugin/pr24486b.c: Likewise.
615 * testsuite/ld-plugin/pr24486c.c: Likewise.
616
8e1920d6
NC
6172019-04-26 Nick Clifton <nickc@redhat.com>
618
619 * po/ru.po: Updated Russian translation.
620
a094d01f
CY
6212019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
622
623 * ld.texi: Properly hyphenate the word "specific".
624
6fe014bc
L
6252019-04-25 H.J. Lu <hongjiu.lu@intel.com>
626
627 PR ld/24406
628 * ld.texi: Remove LTO warning from --wrap.
629 * plugin.c (get_symbols): Update resolution for wrapper and
630 wrapped symbols.
631 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
632 * testsuite/ld-plugin/pr24406-1.c: New file.
633 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
634 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
635
68bb0359
SD
6362019-04-25 Sudakshina Das <sudi.das@arm.com>
637
638 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
639 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
640 * testsuite/ld-aarch64/bti-plt-1.d: Update.
641 * testsuite/ld-aarch64/bti-plt-3.d: Update.
642 * testsuite/ld-aarch64/bti-plt-5.d: Update.
643 * testsuite/ld-aarch64/pac-plt-1.d: Update.
644 * testsuite/ld-aarch64/pac-plt-2.d: Update.
645
44ed8092
SL
6462019-04-24 Sandra Loosemore <sandra@codesourcery.com>
647
648 * testsuite/config/default.exp: Use [check_compiler_available]
649 instead of [which $CC].
650 * testsuite/ld-auto-import/auto-import.exp: Likewise.
651 * testsuite/ld-cygwin/exe-export.exp: Likewise.
652 * testsuite/ld-elf/audit.exp: Likewise.
653 * testsuite/ld-elf/compress.exp: Likewise.
654 * testsuite/ld-elf/dwarf.exp: Likewise.
655 * testsuite/ld-elf/elf.exp: Likewise.
656 * testsuite/ld-elf/indirect.exp: Likewise.
657 * testsuite/ld-elf/linux-x86.exp: Likewise.
658 * testsuite/ld-elf/shared.exp: Likewise.
659 * testsuite/ld-elf/tls.exp: Likewise.
660 * testsuite/ld-elf/wrap.exp: Likewise.
661 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
662 * testsuite/ld-elfvers/vers.exp: Likewise.
663 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
664 * testsuite/ld-elfweak/elfweak.exp: Likewise.
665 * testsuite/ld-gc/gc.exp: Likewise.
666 * testsuite/ld-i386/i386.exp: Likewise.
667 * testsuite/ld-i386/no-plt.exp: Likewise.
668 * testsuite/ld-i386/tls.exp: Likewise.
669 * testsuite/ld-ifunc/ifunc.exp: Likewise.
670 * testsuite/ld-mn10300/mn10300.exp: Likewise.
671 * testsuite/ld-pe/pe-compile.exp: Likewise.
672 * testsuite/ld-pe/pe-run.exp: Likewise.
673 * testsuite/ld-pe/pe-run2.exp: Likewise.
674 * testsuite/ld-pie/pie.exp: Likewise.
675 * testsuite/ld-plugin/lto.exp: Likewise.
676 * testsuite/ld-plugin/plugin.exp: Likewise.
677 * testsuite/ld-scripts/crossref.exp: Likewise.
678 * testsuite/ld-sh/sh.exp: Likewise.
679 * testsuite/ld-shared/shared.exp: Likewise.
680 * testsuite/ld-size/size.exp: Likewise.
681 * testsuite/ld-srec/srec.exp: Likewise.
682 * testsuite/ld-undefined/undefined.exp: Likewise.
683 * testsuite/ld-unique/unique.exp: Likewise.
684 * testsuite/ld-x86-64/mpx.exp: Likewise.
685 * testsuite/ld-x86-64/no-plt.exp: Likewise.
686 * testsuite/ld-x86-64/tls.exp: Likewise.
687 * testsuite/ld-x86-64/x86-64.exp: Likewise.
688 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
689 check_compiler_available before trying to use the compiler.
690 (run_cc_link_tests): Likewise.
691 (check_compiler_available): New. Use it instead of [which $CC].
692
cc9519e7
AM
6932019-04-23 Alan Modra <amodra@gmail.com>
694
695 * Makefile.am (GENDEPDIR): New var, used..
696 (GENSCRIPTS): ..here.
697 * Makefile.in: Regenerate.
698 * genscripts.sh: Test for $DEPDIR set before every use.
699
6f38008b
MF
7002019-04-22 Matthew Fortune <matthew.fortune@mips.com>
701
702 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
703 for M5100.
704
fce97736
AM
7052019-04-19 Alan Modra <amodra@gmail.com>
706
707 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
708 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
709 s12z to list of targets not supporting --gc-sections.
710
9a7f0679
L
7112019-04-17 H.J. Lu <hongjiu.lu@intel.com>
712
713 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
714 of pr18801.
715 * testsuite/ld-x86-64/x86-64.exp: Likewise.
716 * testsuite/ld-i386/pr18801.d: Removed.
717 * testsuite/ld-x86-64/pr18801.d: Likewise.
718 * testsuite/ld-i386/pr18801a.d: New file.
719 * testsuite/ld-i386/pr18801b.d: Likewise.
720 * testsuite/ld-x86-64/pr18801a.d: Likewise.
721 * testsuite/ld-x86-64/pr18801b.d: Likewise.
722 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
723 * testsuite/ld-x86-64/pie2.d: Likewise.
724 * testsuite/ld-x86-64/pr19719.d: Likewise.
725 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
726 * testsuite/ld-x86-64/pr19969.d: Likewise.
727 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
728 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
729 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
730 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
731 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
732
4e84a8f8
L
7332019-04-17 H.J. Lu <hongjiu.lu@intel.com>
734
735 PR ld/24458
736 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
737 * testsuite/ld-x86-64/pr24458.s: New file.
738 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
739 * testsuite/ld-x86-64/pr24458a.d: Likewise.
740 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
741 * testsuite/ld-x86-64/pr24458b.d: Likewise.
742 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
743 * testsuite/ld-x86-64/pr24458c.d: Likewise.
744
e25de718
JL
7452019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
746
747 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
748 symbol when .lower.bss or .either.bss sections exist.
749 Define __crt0_movedata when .lower.data or .either.data sections exist.
750 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
751 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
752 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
753 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
754 * testsuite/gas/msp430/msp430.exp: Run new tests.
755 Enable large code model when running -mdata-region={upper,either}
756 tests.
757
a0fb9615
AM
7582019-04-16 Alan Modra <amodra@gmail.com>
759
760 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
761 * testsuite/ld-scripts/section-match-1.d: Likewise.
762 * testsuite/ld-undefined/require-defined.exp: Likewise.
763
86333705
FS
7642019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
765
766 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
767 targets.
768
f6b2b12d
AV
7692019-04-15 Sudakshina Das <sudi.das@arm.com>
770
771 * testsuite/ld-arm/bfcsel.s: New.
772 * testsuite/ld-arm/bfcsel.d: New.
773 * testsuite/ld-arm/arm-elf.exp: Add above test.
774
65d1bc05
AV
7752019-04-15 Sudakshina Das <sudi.das@arm.com>
776
777 * testsuite/ld-arm/bfl.s: New.
778 * testsuite/ld-arm/bfl.d: New.
779 * testsuite/ld-arm/arm-elf.exp: Add above test.
780
4389b29a
AV
7812019-04-15 Sudakshina Das <sudi.das@arm.com>
782
783 * testsuite/ld-arm/bf.s: New.
784 * testsuite/ld-arm/bf.d: New.
785 * testsuite/ld-arm/arm-elf.exp: Add above test.
786
031254f2
AV
7872019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
788
789 * testsuite/ld-arm/attr-merge-13.attr: New test.
790 * testsuite/ld-arm/attr-merge-13a.s: New test.
791 * testsuite/ld-arm/attr-merge-13b.s: New test.
792
c40e31a1
AM
7932019-04-13 Alan Modra <amodra@gmail.com>
794
795 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
796 DEPDIR parameter.
797 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
798 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
799 $GEN_DEPENDS.
800 (e*.c): Delete all dependencies, instead include dependencies
801 from $DEPDIR/*.Pc.
802 * Makefile.in: Regenerate.
803 * configure.ac (source_sh): Define and use function.
804 * configure: Regenerate.
805 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
806 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
807 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
808 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
809 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
810 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
811 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
812 * emulparams/armelf_linux_eabi.sh,
813 * emulparams/armelf_linux_fdpiceabi.sh,
814 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
815 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
816 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
817 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
818 * emulparams/armelfb_linux_fdpiceabi.sh,
819 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
820 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
821 * emulparams/elf32_sparc_sol2.sh,
822 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
823 * emulparams/elf32_tic6x_elf_be.sh,
824 * emulparams/elf32_tic6x_elf_le.sh,
825 * emulparams/elf32_tic6x_linux_be.sh,
826 * emulparams/elf32_tic6x_linux_le.sh,
827 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
828 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
829 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
830 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
831 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
832 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
833 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
834 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
835 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
836 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
837 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
838 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
839 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
840 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
841 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
842 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
843 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
844 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
845 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
846 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
847 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
848 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
849 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
850 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
851 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
852 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
853 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
854 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
855 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
856 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
857 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
858 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
859 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
860 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
861 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
862 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
863 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
864 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
865 * emulparams/elf_x86_64_cloudabi.sh,
866 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
867 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
868 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
869 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
870 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
871 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
872 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
873 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
874 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
875 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
876 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
877 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
878 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
879 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
880 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
881 * emulparams/shl.sh, * emulparams/shlelf.sh,
882 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
883 * emulparams/shlelf_vxworks.sh: Use source_sh.
884 * genscripts.sh: Adjust for changed parameters. Emit dependencies
885 for e*.c to .deps/*.Pc.
886 (source_sh): New function, use it throughout to source scripts.
887 * genscrba.sh (source_em): Use source_sh.
888
50ff67e6
AM
8892019-04-13 Alan Modra <amodra@gmail.com>
890
891 * configure.ac (TDIRS): Build up tdirs in this variable and
892 AC_SUBST, also using AM_SUBST_NOTMAKE.
893 * configure: Regenerate.
894 * Makefile.am (DISTCLEANFILES): Remove tdirs.
895 * Makefile.in: Regenerate.
896
3bbec4bd
NC
8972019-04-12 Nick Clifton <nickc@redhat.com>
898
899 PR 24450
900 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
901 example of section attributes.
902
035801ce
FS
9032019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
904
905 * NEWS: Mention new option --no-print-map-discarded.
906 * ld.h (ld_config_type) <print_map_discarded>: New field.
907 * ldlang.c (lang_map): Conditionally output discarded sections
908 in map files based on configuration option.
909 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
910 OPTION_NO_PRINT_MAP_DISCARDED>: New.
911 * ldmain.c (main): Enabled print_map_discarded by default.
912 * lexsup.c (ld_options): Add new command-line options.
913 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
914 OPTION_PRINT_MAP_DISCARDED>: New cases.
915 * ld.texi: Document new options.
916 * testsuite/ld-gc/gc.exp: Add new test.
917 * testsuite/ld-gc/skip-map-discarded.s: New file.
918 * testsuite/ld-gc/skip-map-discarded.d: New file.
919 * testsuite/ld-gc/skip-map-discarded.map: New file.
920
233a0083
L
9212019-04-11 H.J. Lu <hongjiu.lu@intel.com>
922
923 * ld.texi: Document -z cet-report=[none|warning|error].
924 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
925 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
926 tests.
927 * testsuite/ld-x86-64/x86-64.exp: Likewise.
928 * testsuite/ld-i386/property-x86-cet1.d: New file.
929 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
930 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
931 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
932 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
933 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
934 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
935 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
936 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
937 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
938 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
939 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
940 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
941 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
942 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
943 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
944 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
945 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
946 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
947 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
948 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
949 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
950 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
951 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
952 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
953 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
954 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
955 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
956 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
957 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
958 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
959
b3d7a867
L
9602019-04-11 H.J. Lu <hongjiu.lu@intel.com>
961
962 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
963 to "-static-pie" if target compiler supports it.
964 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
965 $STATIC_PIE_LDFLAGS isn't empty.
966 * testsuite/ld-ifunc/ifunc.exp: Likewise.
967
ce12121b
TC
9682019-04-11 Tamar Christina <tamar.christina@arm.com>
969
970 PR ld/24302
971 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
972 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
973
795e3bb7
L
9742019-04-10 H.J. Lu <hongjiu.lu@intel.com>
975
976 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
977 CREATE_PIE.
978 (__rel_iplt_start): Don't define for CREATE_PIC.
979 (__rel_iplt_end): Likewise.
980 (__rela_iplt_start): Likewise.
981 (__rela_iplt_end): Likewise.
982
e6aded7c
AM
9832019-04-10 Alan Modra <amodra@gmail.com>
984
985 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
986 powerpc-nto.
987
53b81c6d
AM
9882019-04-10 Alan Modra <amodra@gmail.com>
989
990 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
991 setting use_branch_stub false for linux.
992 (csky_elf_create_output_section_statements): Do emit this
993 function and all others in the file for linux, plus the branch
994 option control. Disable branch stubs when non-ELF.
995
c55b17b8
AM
9962019-04-10 Alan Modra <amodra@gmail.com>
997
998 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
999 (ecskyelf_linux.c): Depend on cskyelf.sh.
1000 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
1001 * Makefile.in: Regenerate.
1002 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
1003 (PAGE_SIZE): Don't define.
1004 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
1005 the differing variable defs/undefs.
1006 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
1007 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
1008 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
1009 (PAGE_SIZE): Don't define.
1010 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
1011 leaving just the differing OUTPUT_FORMAT.
1012
6feda627
AM
10132019-04-10 Alan Modra <amodra@gmail.com>
1014
1015 * po/BLD-POTFILES.in: Regenerate.
1016
c93c0e7f
L
10172019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1018
1019 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
1020 lynxos and nto targets.
1021
3ae61bb6
L
10222019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1023
1024 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
1025 (eelf_i386_chaos.c): Removed.
1026 * Makefile.in: Regenerated.
1027 * configure.tgt: Remove i[3-7]86-*-kaos*.
1028 * emulparams/elf_i386_chaos.sh: Removed.
1029
da9b5f7b
L
10302019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
1033 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
1034
d970ee2b
AM
10352019-04-08 Alan Modra <amodra@gmail.com>
1036
1037 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
1038 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
1039 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
1040
5b9c07b2
L
10412019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1042
1043 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
1044 (eelf_i386_sol2.c): Also depend on
1045 $(srcdir)/emultempl/solaris2-x86.em.
1046 (eelf_x86_64_sol2.c): Likewise.
1047 * Makefile.in: Regenerated.
1048 * emulparams/call_nop.sh: Set x86-specific linker options via
1049 params.
1050 * emulparams/cet.sh: Likewise.
1051 * emulparams/reloc_overflow.sh: Likewise.
1052 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
1053 "elf-x86".
1054 * emulparams/elf_i386.sh: Likewise.
1055 * emulparams/elf_i386_be.sh: Likewise.
1056 * emulparams/elf_i386_chaos.sh: Likewise.
1057 * emulparams/elf_i386_ldso.sh: Likewise.
1058 * emulparams/elf_i386_vxworks.sh: Likewise.
1059 * emulparams/elf_iamcu.sh: Likewise.
1060 * emulparams/elf_k1om.sh: Likewise.
1061 * emulparams/elf_l1om.sh: Likewise.
1062 * emulparams/elf_x86_64.sh: Likewise.
1063 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
1064 "solaris2-x86".
1065 * emulparams/elf_x86_64_sol2.sh: Likewise.
1066 * emultempl/elf-x86.em: New file.
1067 * emultempl/solaris2-x86.em: Likewise.
1068 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1069 set link_info.call_nop_byte.
1070
c2b1c275
AM
10712019-04-05 Alan Modra <amodra@gmail.com>
1072
1073 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
1074 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1075 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1076
1c6aafe8
AM
10772019-04-03 Alan Modra <amodra@gmail.com>
1078
1079 PR 24411
1080 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
1081 (<EXPRESSION>"/DISCARD/"): New.
1082
092da96a
AM
10832019-04-03 Alan Modra <amodra@gmail.com>
1084
1085 * ldlex.l: Formatting.
1086 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
1087 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
1088 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
1089 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
1090 (<INPUTLIST>"$SYSROOT"..): Delete rule.
1091
2487ef07
MF
10922019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1093
1094 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
1095 test definition.
1096 * testsuite/ld-xtensa/xtensa.exp
1097 (relax-undef-weak-pie-export-dynamic): Add new test.
1098
7ea79cb3 10992019-03-26 Martin Liska <mliska@suse.cz>
1100
1101 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
1102 lto_visibility_str and use then to inform about plugin-symbols.
1103 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
1104
796d6298
TC
11052019-03-25 Tamar Christina <tamar.christina@arm.com>
1106
1107 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
1108 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
1109
4e539114
SD
11102019-03-21 Sudakshina Das <sudi.das@arm.com>
1111
1112 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1113 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
1114 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
1115 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1116 * testsuite/ld-aarch64/bti-warn.d: New test.
1117
f84bd465
AM
11182019-03-21 Alan Modra <amodra@gmail.com>
1119
1120 * testsuite/ld-elf/fini2.s: Reduce alignment.
1121 * testsuite/ld-elf/fini3.s: Likewise.
1122 * testsuite/ld-elf/finin.s: Likewise.
1123 * testsuite/ld-elf/init2.s: Likewise.
1124 * testsuite/ld-elf/init3.s: Likewise.
1125 * testsuite/ld-elf/initn.s: Likewise.
1126 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
1127 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
1128
2d3181c7
AM
11292019-03-21 Alan Modra <amodra@gmail.com>
1130
1131 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
1132 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
1133 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
1134 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
1135 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
1136 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
1137 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
1138 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
1139 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
1140 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
1141 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
1142 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
1143 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
1144 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
1145 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
1146 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
1147 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
1148 SORT_NONE to .init and .fini wildcards.
1149 * scripttempl/elf32xc16x.sc,
1150 * scripttempl/elf32xc16xl.sc,
1151 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
1152 * scripttempl/elf_chaos.sc: Add .init output section.
1153 * scripttempl/elfd30v.sc: Remove duplicate .init.
1154 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
1155 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
1156 duplicate .init, and add .fini wildcard.
1157 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
1158 * ldlang.c (update_wild_statements): Special case .init and
1159 .fini in the wildcard, not the output section.
1160
980a2e42
AM
11612019-03-21 Alan Modra <amodra@gmail.com>
1162
1163 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
1164
3b6c1966
AM
11652019-03-21 Alan Modra <amodra@gmail.com>
1166
1167 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
1168 create_object_symbols_section.
1169 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
1170
28a66f07
AM
11712019-03-18 Alan Modra <amodra@gmail.com>
1172
1173 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
1174 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
1175 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
1176 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
1177
1c82ed74
NC
11782019-03-15 Nick Clifton <nickc@redhat.com>
1179
1180 PR 24262
1181 * ld.texi (-plugin): Correct the path used to locate linker
1182 plugins.
1183
1dbade74
SD
11842019-03-13 Sudakshina Das <sudi.das@arm.com>
1185
1186 * NEWS: Document --pac-plt.
1187 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
1188 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
1189 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
1190 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
1191 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
1192 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
1193 * testsuite/ld-aarch64/pac-plt-1.d: New test.
1194 * testsuite/ld-aarch64/pac-plt-2.d: New test.
1195 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
1196
37c18eed
SD
11972019-03-13 Sudakshina Das <sudi.das@arm.com>
1198 Szabolcs Nagy <szabolcs.nagy@arm.com>
1199
1200 * NEWS: Document --force-bti.
1201 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
1202 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
1203 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
1204 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
1205 * testsuite/ld-aarch64/bti-plt-1.d: New test.
1206 * testsuite/ld-aarch64/bti-plt-1.s: New test.
1207 * testsuite/ld-aarch64/bti-plt-2.d: New test.
1208 * testsuite/ld-aarch64/bti-plt-3.d: New test.
1209 * testsuite/ld-aarch64/bti-plt-4.d: New test.
1210 * testsuite/ld-aarch64/bti-plt-5.d: New test.
1211 * testsuite/ld-aarch64/bti-plt-6.d: New test.
1212 * testsuite/ld-aarch64/bti-plt-7.d: New test.
1213 * testsuite/ld-aarch64/bti-plt-so.s: New test.
1214 * testsuite/ld-aarch64/bti-plt.ld: New test.
1215
cd702818
SD
12162019-03-13 Sudakshina Das <sudi.das@arm.com>
1217
1218 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
1219 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
1220 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
1221 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
1222 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
1223 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
1224 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
1225 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
1226
44b27f95
L
12272019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1228
1229 PR ld/24322
1230 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
1231 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1232 * testsuite/ld-i386/pr24322a.d: New file.
1233 * testsuite/ld-i386/pr24322b.d: Likewise.
1234 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
1235 * testsuite/ld-x86-64/pr24322a.d: Likewise.
1236 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
1237 * testsuite/ld-x86-64/pr24322b.d: Likewise.
1238 * testsuite/ld-x86-64/pr24322a.s: Likewise.
1239 * testsuite/ld-x86-64/pr24322b.s: Likewise.
1240 * testsuite/ld-x86-64/pr24322c.s: Likewise.
1241
912ebfa0
NB
12422019-03-06 Nick Bowler <nbowler@draconx.ca>
1243
1244 PR 24289
1245 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
1246 attributes during the first phase.
1247
24801b15
AK
12482019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1249
1250 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1251 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1252
1253 PR 20113
1254 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1255 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1256 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1257 * testsuite/ld-s390/tlsbin.dd: Likewise.
1258 * testsuite/ld-s390/tlsbin.rd: Likewise.
1259 * testsuite/ld-s390/tlsbin.sd: Likewise.
1260 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1261 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1262 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1263 * testsuite/ld-s390/tlspic.dd: Likewise.
1264 * testsuite/ld-s390/tlspic.rd: Likewise.
1265 * testsuite/ld-s390/tlspic.sd: Likewise.
1266 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1267 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1268 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1269 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1270
5cfe428c
L
12712019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1272
1273 PR ld/24276
1274 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
1275 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1276 * testsuite/ld-i386/pr24276.dso: New file.
1277 * testsuite/ld-i386/pr24276.warn: Likewise.
1278 * testsuite/ld-x86-64/pr24276.dso: Likewise.
1279 * testsuite/ld-x86-64/pr24276.warn: Likewise.
1280
eed62915
MF
12812019-02-20 Eric Tsai <erictsai@cadence.com>
1282
1283 * testsuite/ld-xtensa/call_overflow.d: New test definition.
1284 * testsuite/ld-xtensa/call_overflow1.s: New test source.
1285 * testsuite/ld-xtensa/call_overflow2.s: New test source.
1286 * testsuite/ld-xtensa/call_overflow3.s: New test source.
1287 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
1288
abc163a4
TS
12892019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1290
1291 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
1292
e4865945
NC
12932019-02-12 Nick Clifton <nickc@redhat.com>
1294
1295 * po/fr.po: Updated French translation.
1296
a0e90a73
CZ
12972019-02-09 Vineet Gupta <vgupta@synopsys.com>
1298
1299 * emultempl/arclinux.em: Delete special INIT/FINI handling.
1300
5d3db3e2
NC
13012019-02-07 Nick Clifton <nickc@redhat.com>
1302
1303 PR 24175
1304 * ld.texi (Options): Add missing word to the description of the
1305 --start-group option.
1306
4249a53c
AM
13072019-02-06 Alan Modra <amodra@gmail.com>
1308
1309 PR ld/24008
1310 * testsuite/ld-scripts/pr24008.d: Pass with extra target
1311 defined symbols.
1312
83924b38
L
13132019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1314
1315 PR ld/24151
1316 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
1317 * testsuite/ld-x86-64/pr24151a.d: Likewise.
1318 * testsuite/ld-x86-64/pr24151a.s: Likewise.
1319 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
1320
4f4690cd
AM
13212019-01-31 Alan Modra <amodra@gmail.com>
1322
1323 * NEWS: Mention -t change.
1324 * ld.texi (--trace/-t): Expand documentation a little.
1325
ad0f979c
L
13262019-01-29 H.J. Lu <hongjiu.lu@intel.com>
1327
1328 PR ld/24008
1329 * testsuite/ld-scripts/defined.exp: Run pr24008.
1330 * testsuite/ld-scripts/pr24008.d: New file.
1331 * testsuite/ld-scripts/pr24008.map: Likewise.
1332 * testsuite/ld-scripts/pr24008.s: Likewise.
1333 * testsuite/ld-scripts/pr24008.t: Likewise.
1334
c49829c3
EB
13352019-01-29 Eric Botcazou <ebotcazou@adacore.com>
1336
1337 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
1338
6a846243
AM
13392019-01-28 Alan Modra <amodra@gmail.com>
1340
1341 PR 24008
1342 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
1343 * ldexp.c (fold_name): Move expld.assign_name check later to
1344 avoid an extra lookup.
1345 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
1346 values, and don't clear expld.assign_name.
1347 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
1348 (print_assignment): Resolve entire assignment expression.
1349 Don't access symbol u.def unless symbol is defined.
1350
9ed1348c
NC
13512019-01-25 Nick Clifton <nickc@redhat.com>
1352
1353 * po/bg.po: Updated Bulgarian translation.
1354
6406a270
SH
13552019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
1356
1357 * ld.texi (--wrap): Add warning that LTO may make this feature
1358 ineffective.
1359
375cd423
NC
13602019-01-21 Nick Clifton <nickc@redhat.com>
1361
1362 * po/uk.po: Updated Ukranian translation.
a6c9b404 1363 * po/pr_BR.po: Updated Brazilian Portuguese translation.
375cd423 1364
acef8081
YC
13652019-01-21 Nick Clifton <nickc@redhat.com>
1366
1367 PR 24108
1368 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
1369 expected error message.
1370
f48dfe41
NC
13712019-01-19 Nick Clifton <nickc@redhat.com>
1372
1373 * configure: Regenerate.
1374 * po/ld.pot: Regenerate.
1375
f974f26c
NC
13762018-06-24 Nick Clifton <nickc@redhat.com>
1377
1378 2.32 branch created.
1379
7d7a7d7c
JW
13802019-01-16 Kito Cheng <kito@andestech.com>
1381
1382 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
1383 section.
1384 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
1385 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
1386 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
1387 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
1388 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1389 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
1390 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
1391 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1392 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
1393 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
1394 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1395 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
1396 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
1397 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
1398 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
1399 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
1400 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
1401 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
1402 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
1403 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
1404 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
1405 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
1406 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
1407 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
1408 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
1409 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
1410 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
1411 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
1412 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
1413 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
1414 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
1415 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1416 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
1417 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
1418 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1419 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
1420 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
1421
5a12586d
MT
14222019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1423
f466c305 1424 PR 20113
5a12586d
MT
1425 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1426 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1427 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1428 * testsuite/ld-s390/tlsbin.dd: Likewise.
1429 * testsuite/ld-s390/tlsbin.rd: Likewise.
1430 * testsuite/ld-s390/tlsbin.sd: Likewise.
1431 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1432 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1433 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1434 * testsuite/ld-s390/tlspic.dd: Likewise.
1435 * testsuite/ld-s390/tlspic.rd: Likewise.
1436 * testsuite/ld-s390/tlspic.sd: Likewise.
1437 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1438 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1439 * testsuite/ld-s390/tlspic_64.sd: Likewise.
f466c305 1440 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
5a12586d 1441
4ea904ed
SH
14422019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1443
1444 * ld.texi (--wrap): Add example to emphasise that only undefined
1445 references are replaced by the linker.
1446
8379fac6
NC
14472019-01-09 Nick Clifton <nickc@redhat.com>
1448
1449 * po/es.po: Updated Spanish translation.
1450
3107326d
AP
14512019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1452
1453 * configure: Regenerate.
1454
171b8e19
AM
14552019-01-08 Alan Modra <amodra@gmail.com>
1456
1457 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
1458 generated source file names.
1459 * testsuite/ld-m68k/m68k-got.exp: Likewise.
1460
82704155
AM
14612019-01-01 Alan Modra <amodra@gmail.com>
1462
1463 Update year range in copyright notice of all files.
1464
d5c04e1b 1465For older changes see ChangeLog-2018
3499769a 1466\f
d5c04e1b 1467Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1468
1469Copying and distribution of this file, with or without modification,
1470are permitted in any medium without royalty provided the copyright
1471notice and this notice are preserved.
1472
1473Local Variables:
1474mode: change-log
1475left-margin: 8
1476fill-column: 74
1477version-control: never
1478End:
This page took 0.267153 seconds and 4 git commands to generate.