LD: Support fixed-size sections some psABIs may require
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
8772de11
MR
12018-02-19 Maciej W. Rozycki <macro@mips.com>
2
3 * ldlang.c (insert_pad): Do not change output section's size if
4 SEC_FIXED_SIZE is set in the flags.
5 (size_input_section): Likewise.
6 (lang_size_sections_1): Likewise.
7 (lang_reset_memory_regions): Likewise.
8
c1c8c1ef
AM
92018-02-19 Alan Modra <amodra@gmail.com>
10
11 * ldmisc.c (vfinfo) Handle %pI, %pR, %pS and %pT in place of
12 %I, %R, %S and %T.
13 * ldcref.c, * ldctor.c, * ldemul.c, * ldexp.c, * ldgram.y,
14 * ldlang.c, * ldlex.l, * ldmain.c, * ldmisc.c, * pe-dll.c,
15 * emultempl/sh64elf.em: Replace use of of %I, %R, %S and %T in
16 format strings passed to einfo and friends by %pI, %pR, %pS and %pT.
17
871b3ab2
AM
182018-02-19 Alan Modra <amodra@gmail.com>
19
20 * ldmisc.c (vfinfo): Handle %pA and %pB in place of %A and %B.
21 * ldcref.c: Update all messages using %A and %B.
22 * ldexp.c: Likewise.
23 * ldlang.c: Likewise.
24 * ldmain.c: Likewise.
25 * ldmisc.c: Likewise.
26 * pe-dll.c: Likewise.
27 * plugin.c: Likewise.
28 * emultempl/beos.em: Likewise.
29 * emultempl/cr16elf.em: Likewise.
30 * emultempl/elf32.em: Likewise.
31 * emultempl/m68kcoff.em: Likewise.
32 * emultempl/m68kelf.em: Likewise.
33 * emultempl/mmo.em: Likewise.
34 * emultempl/nds32elf.em: Likewise.
35 * emultempl/pe.em: Likewise.
36 * emultempl/pep.em: Likewise.
37 * emultempl/spuelf.em: Likewise.
38 * emultempl/sunos.em: Likewise.
39 * emultempl/xtensaelf.em: Likewise.
40
f61f94ec
L
412018-02-19 H.J. Lu <hongjiu.lu@intel.com>
42
43 PR ld/22845
44 * testsuite/ld-elf/frame.exp: Skip if -shared isn't supported.
45 Add tests for "-z noseparate-code" and "-z separate-code".
46 Remove unsupported -shared check.
47
d85502cf
L
482018-02-17 H.J. Lu <hongjiu.lu@intel.com>
49
50 PR ld/22845
51 * testsuite/ld-elf/ehdr_start.d: Pass --build-id to ld.
52
34b00afa
L
532018-02-17 H.J. Lu <hongjiu.lu@intel.com>
54
55 PR ld/22845
56 * testsuite/ld-elf/binutils.exp (tls_opts): Add tests for
57 "-z noseparate-code" and "-z separate-code".
58
92d9e363
L
592018-02-17 H.J. Lu <hongjiu.lu@intel.com>
60
61 PR ld/22845
62 * ld-elf/eh4.d: Pass -z max-page-size=0x200000 -z noseparate-code
63 to ld.
64
c2596c4a
L
652018-02-16 H.J. Lu <hongjiu.lu@intel.com>
66
67 * testsuite/ld-x86-64/bnd-branch-1-now.d: Add -z
68 max-page-size=0x200000 -z noseparate-code.
69 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
70 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
71 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
72 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
73 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
74 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
75 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
76 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
77 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
78 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
79 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
80 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
81 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
82 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
83 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
84 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
85 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
86 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
87 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
88 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
89 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
90 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
91 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
92 * testsuite/ld-x86-64/load1a.d: Likewise.
93 * testsuite/ld-x86-64/load1b.d: Likewise.
94 * testsuite/ld-x86-64/load1c.d: Likewise.
95 * testsuite/ld-x86-64/load1d.d: Likewise.
96 * testsuite/ld-x86-64/pie3.d: Likewise.
97 * testsuite/ld-x86-64/pr14207.d: Likewise.
98 * testsuite/ld-x86-64/pr17618.d: Likewise.
99 * testsuite/ld-x86-64/pr19162.d: Likewise.
100 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
101 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
102 * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
103 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
104 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
105 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
106 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
107 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
108 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
109 * testsuite/ld-x86-64/pr20830a.d: Likewise.
110 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
111 * testsuite/ld-x86-64/pr20830b.d: Likewise.
112 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
113 * testsuite/ld-x86-64/pr21038a.d: Likewise.
114 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
115 * testsuite/ld-x86-64/pr21038b.d: Likewise.
116 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
117 * testsuite/ld-x86-64/pr21038c.d: Likewise.
118
c441b623
L
1192018-02-16 H.J. Lu <hongjiu.lu@intel.com>
120
121 * testsuite/ld-x86-64/bnd-ifunc-1.d: Updated.
122 * testsuite/ld-x86-64/ilp32-4.d: Likewise.
123
197741f1
L
1242018-02-16 H.J. Lu <hongjiu.lu@intel.com>
125
126 * testsuite/ld-x86-64/mpx.exp: Add -z max-page-size=0x200000
127 -z noseparate-code.
128
7c9f387a
L
1292018-02-16 H.J. Lu <hongjiu.lu@intel.com>
130
131 * testsuite/ld-x86-64/x86-64.exp: Add -z noseparate-code
132 -z max-page-size=0x200000, excluding NaCl target.
133
c9d3eb5f
L
1342018-02-16 H.J. Lu <hongjiu.lu@intel.com>
135
136 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
137 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
138 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
139 * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
140 * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
141 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
142 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
143
679a5bc8
L
1442018-02-16 H.J. Lu <hongjiu.lu@intel.com>
145
146 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Add
147 -z max-page-size=0x200000 -z noseparate-code.
148 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
149 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
150 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
151 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
152 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
153 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
154
62e2b91b
L
1552018-02-16 H.J. Lu <hongjiu.lu@intel.com>
156
157 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated for i386.
158 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
159 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
160
9f4aec8d
L
1612018-02-16 H.J. Lu <hongjiu.lu@intel.com>
162
163 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
164 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
165 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
166
410a69a0
L
1672018-02-16 H.J. Lu <hongjiu.lu@intel.com>
168
169 * testsuite/ld-i386/ibt-plt-1.d: Add -z noseparate-code.
170 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
171 * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
172 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
173 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
174 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
175 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
176 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
177 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
178 * testsuite/ld-i386/load1.d: Likewise.
179 * testsuite/ld-i386/pie1.d: Likewise.
180 * testsuite/ld-i386/pr20244-1a.d: Likewise.
181 * testsuite/ld-i386/pr20244-1b.d: Likewise.
182 * testsuite/ld-i386/pr20244-2a.d: Likewise.
183 * testsuite/ld-i386/pr20244-2b.d: Likewise.
184 * testsuite/ld-i386/pr20244-2c.d: Likewise.
185 * testsuite/ld-i386/pr20244-4a.d: Likewise.
186 * testsuite/ld-i386/pr20244-4b.d: Likewise.
187 * testsuite/ld-i386/pr20830.d: Likewise.
188
75bd00e8
L
1892018-02-16 H.J. Lu <hongjiu.lu@intel.com>
190
191 * testsuite/ld-i386/pr19636-1a.d: Updated.
192 * testsuite/ld-i386/pr19636-1b.d: Likewise.
193 * testsuite/ld-i386/pr19636-1j.d: Likewise.
194 * testsuite/ld-i386/pr19636-1k.d: Likewise.
195 * testsuite/ld-i386/pr19636-2a.d: Likewise.
196 * testsuite/ld-i386/pr19636-2b.d: Likewise.
197
760b2893
L
1982018-02-16 H.J. Lu <hongjiu.lu@intel.com>
199
200 * testsuite/ld-i386/i386.exp: Add -z noseparate-code.
201
75cdede0
L
2022018-02-16 H.J. Lu <hongjiu.lu@intel.com>
203
204 * testsuite/ld-elf/pr19162.d: Add -z noseparate-code.
205 * testsuite/ld-elf/textaddr1.d: Likewise.
206 * testsuite/ld-elf/textaddr2.d: Likewise.
207 * testsuite/ld-elf/textaddr4.d: Likewise.
208 * testsuite/ld-elf/textaddr6.d: Likewise.
209
2a0d9853
JW
2102018-02-15 Jim Wilson <jimw@sifive.com>
211
212 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run pcrel-lo-addend test.
213 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: New.
214 * testsuite/ld-riscv-elf/pcrel-lo-addend.s: New.
215
451875b4
L
2162018-02-14 H.J. Lu <hongjiu.lu@intel.com>
217
218 PR ld/22842
219 * testsuite/ld-i386/i386.exp: Run PR ld/22842 tests.
220 * testsuite/ld-x86-64/x86-64.exp: Likewise.
221 * testsuite/ld-i386/pr22842a.c: New file.
222 * testsuite/ld-i386/pr22842b.S: Likewise.
223 * testsuite/ld-x86-64/pr22842a.c: Likewise.
224 * testsuite/ld-x86-64/pr22842a.rd: Likewise.
225 * testsuite/ld-x86-64/pr22842b.S: Likewise.
226 * testsuite/ld-x86-64/pr22842b.rd: Likewise.
227
d4dd94f8
MR
2282018-02-14 Maciej W. Rozycki <macro@mips.com>
229
230 * ldlex.h (ldlex_command): Remove prototype.
231
85f2093d
L
2322018-02-13 H.J. Lu <hongjiu.lu@intel.com>
233
234 * testsuite/ld-x86-64/x86-64.exp: Replace pr22393-2a.so and
235 pr22393-2a-now.so with pr22393-3a.so and pr22393-3a-now.so.
236
60f763ee
AM
2372018-02-14 H.J. Lu <hongjiu.lu@intel.com>
238
239 PR 22836
240 * testsuite/ld-elf/pr22836-1.s: New file.
241 * testsuite/ld-elf/pr22836-1a.d: Likewise.
242 * testsuite/ld-elf/pr22836-1b.d: Likewise.
243
bd7ab16b
L
2442018-02-13 H.J. Lu <hongjiu.lu@intel.com>
245
246 PR gas/22791
247 * testsuite/ld-x86-64/mpx1c.rd: Updated.
248 * testsuite/ld-x86-64/pr22791-1.err: New file.
249 * testsuite/ld-x86-64/pr22791-1a.c: Likewise.
250 * testsuite/ld-x86-64/pr22791-1b.s: Likewise.
251 * testsuite/ld-x86-64/pr22791-2.rd: Likewise.
252 * testsuite/ld-x86-64/pr22791-2a.s: Likewise.
253 * testsuite/ld-x86-64/pr22791-2b.c: Likewise.
254 * testsuite/ld-x86-64/pr22791-2c.s: Likewise.
255 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22791 tests.
256
6e5e9d58
AM
2572018-02-13 Alan Modra <amodra@gmail.com>
258
259 PR 22836
260 * testsuite/ld-elf/pr22836-2.d,
261 * testsuite/ld-elf/pr22836-2.s: New test.
262
f2731e0c
AM
2632018-02-13 Alan Modra <amodra@gmail.com>
264
265 * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
266
407aa07c
AM
2672018-02-07 Alan Modra <amodra@gmail.com>
268
269 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
270 * emultempl/ppc32elf.em: Remove --speculate-indirect-jumps support.
271 * emultempl/ppc64elf.em: Likesize
272 * ld.texinfo: Likewise
273 * testsuite/ld-powerpc/elfv2exe.d,
274 * testsuite/ld-powerpc/elfv2so.d,
275 * testsuite/ld-powerpc/relbrlt.d,
276 * testsuite/ld-powerpc/powerpc.exp: Likewise.
277
c20c30f6
EB
2782018-02-06 Eric Botcazou <ebotcazou@adacore.com>
279
280 * testsuite/ld-elf/tls.exp (AFLAGS_PIC): Define on SPARC.
281 (pr22263-1): Pass AFLAGS_PIC to the assembler.
282 * testsuite/ld-sparc/tlspie32.s: Add test for other 3 transitions.
283 * testsuite/ld-sparc/tlspie32.dd: Adjust to above.
284 * testsuite/ld-sparc/tlspie64.s: Add test for other 3 transitions.
285 * testsuite/ld-sparc/tlspie64.dd: Adjust to above.
286
279b2f94
RL
2872018-02-05 Renlin Li <renlin.li@arm.com>
288
289 PR ld/22764
290 * testsuite/ld-aarch64/emit-relocs-258.s: Define symbol as an address.
291 * testsuite/ld-aarch64/emit-relocs-259.s: Likewise.
292 * testsuite/ld-aarch64/pr22764.s: New.
293 * testsuite/ld-aarch64/pr22764.d: New.
294
cd048363
L
2952018-02-05 H.J. Lu <hongjiu.lu@intel.com>
296
297 PR ld/22782
298 * testsuite/ld-i386/discarded1.s: Replace mov with div.
299 * testsuite/ld-x86-64/discarded1.s: Likewise.
300 * testsuite/ld-i386/i386.exp: Run pr22782.
301 * testsuite/ld-i386/load1-nacl.d: Updated for removing
302 _GLOBAL_OFFSET_TABLE_ from output.
303 * testsuite/ld-i386/load1.d: Likewise.
304 * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
305 * testsuite/ld-x86-64/load1a.d: Likewise.
306 * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
307 * testsuite/ld-x86-64/load1b.d: Likewise.
308 * testsuite/ld-i386/pr22782.d: New file.
309 * testsuite/ld-i386/pr22782.s: Likewise.
310 * testsuite/ld-x86-64/pr22782.s: Likewise.
311 * testsuite/ld-x86-64/pr22782a.d: Likewise.
312 * testsuite/ld-x86-64/pr22782b.d: Likewise.
313 * testsuite/ld-x86-64/x86-64.exp: Run pr22782a and pr22782b.
314
f174ef9f
NC
3152018-02-05 Nick Clifton <nickc@redhat.com>
316
317 * po/pt_BR.po: Updated Brazilian Portuguese translation.
318
9f7393d8
L
3192018-02-04 H.J. Lu <hongjiu.lu@intel.com>
320
321 * testsuite/ld-i386/lea1d.d: Replace -Sw with -SW.
322 * testsuite/ld-i386/lea1e.d: Likewise.
323 * testsuite/ld-i386/lea1f.d: Likewise.
324 * testsuite/ld-x86-64/lea1g.d: Likewise.
325 * testsuite/ld-x86-64/lea1h.d: Likewise.
326 * testsuite/ld-x86-64/lea1i.d: Likewise.
327 * testsuite/ld-x86-64/lea1j.d: Likewise.
328 * testsuite/ld-x86-64/lea1k.d: Likewise.
329 * testsuite/ld-x86-64/lea1l.d: Likewise.
330
b0daac83
NC
3312018-02-03 Nick Clifton <nickc@redhat.com>
332
333 PR 22762
334 * scripttempl/pe.sc: Remove PROVIDE()s from __CTOR_LIST__ and
335 __DTOR_LIST__ symbols. Add a comment explaining why this is
336 necessary.
337 * scripttemp/pep.sc: Likewise.
338 * ld.texinfo (PROVIDE): Add a note about the effect of common
339 symbols.
340
138a158f
SL
3412018-02-03 Sandra Loosemore <sandra@codesourcery.com>
342
343 * emulparams/nios2elf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
344
e54d3c94
MR
3452018-02-02 Maciej W. Rozycki <macro@mips.com>
346
347 * testsuite/ld-elf/shared.exp: Add $AFLAGS_PIC throughout to PIC
348 assembly builds where missing and remove `tic6x-*-*' XFAIL
349 markings accordingly.
350
e99955cd
SM
3512018-02-01 Simon Marchi <simon.marchi@ericsson.com>
352
353 * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
354 on NULL pointer.
355
f000c2b9
L
3562018-01-31 H.J. Lu <hongjiu.lu@intel.com>
357
358 * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
359
450b6317
MR
3602018-01-31 Maciej W. Rozycki <macro@mips.com>
361
362 * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
363
8988502d
MR
3642018-01-31 Maciej W. Rozycki <macro@mips.com>
365
366 * testsuite/ld-elf/comm-data.exp: Pass `-call_shared' to links
367 involving a shared library for `mips*vr4100*-*-elf*',
368 `mips*vr4300*-*-elf*' and `mips*vr5000*-*-elf*' targets.
369 * testsuite/ld-elf/provide-hidden.exp: Likewise.
370 * testsuite/ld-elf/shared.exp: Likewise.
371 * testsuite/ld-gc/gc.exp: Likewise.
372 * testsuite/ld-mips-elf/comm-data.exp: Likewise.
373
f3a9baf1
MR
3742018-01-31 Maciej W. Rozycki <macro@mips.com>
375
376 * testsuite/ld-elf/elf.exp: Move shared library tests over to...
377 * testsuite/ld-elf/shared.exp: ... here.
378
bf3077a6
MM
3792018-01-31 Michael Matz <matz@suse.de>
380
381 * testsuite/ld-elf/pr21964-5.c: New test.
382 * testsuite/ld-elf/shared.exp: Run it.
383
823143c6
L
3842018-01-31 H.J. Lu <hongjiu.lu@intel.com>
385
386 PR ld/21964
387 * testsuite/ld-elf/pr21964-4.c: New file.
388 * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
389
040b4a9e
AM
3902018-01-30 Alan Modra <amodra@gmail.com>
391
392 * testsuite/ld-gc/stop.d,
393 * testsuite/ld-gc/stop.s: New test.
394 * testsuite/ld-gc/gc.exp: Run it.
395
af667f22
MR
3962018-01-30 Maciej W. Rozycki <macro@mips.com>
397
398 PR ld/22649
399 * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
400 * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
401 * testsuite/ld-elf/shared.exp: Use the new outputs with
402 `mips*-*-*' targets.
403
82252033
MR
4042018-01-30 Maciej W. Rozycki <macro@mips.com>
405
406 * testsuite/ld-elf/comm-data1.sd: Alternatively accept
407 `PRC[0xff02]' in place of a regular section index.
408 * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
409
36b8fda5
AM
4102018-01-29 Alan Modra <amodra@gmail.com>
411
412 * testsuite/ld-elf/pr21964-3a.c: New file.
413 * testsuite/ld-elf/pr21964-3c.c: New file.
414 * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
415
185cdb8c
EB
4162018-01-29 Eric Botcazou <ebotcazou@adacore.com>
417
418 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
419 (pr22269-1): Pass AFLAGS_PIC to the assembler.
420
d85815e2
EB
4212018-01-29 Eric Botcazou <ebotcazou@adacore.com>
422
423 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
424
86b24e15
MR
4252018-01-29 Maciej W. Rozycki <macro@mips.com>
426
427 * testsuite/ld-mips-elf/comm-data.exp: Correct support for
428 targets using non-traditional MIPS emulation or having a limited
429 selection of ABIs available. Don't force big endianness, use
430 defaults.
431
98d72909
L
4322018-01-29 H.J. Lu <hongjiu.lu@intel.com>
433
434 PR ld/22732
435 * testsuite/config/default.exp (STATIC_LDFLAGS): New. Set to
436 "-static" if target compiler supports it.
437 * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
438 tests if target compiler doesn't support it.
439 * testsuite/ld-ifunc/ifunc.exp: Likewise.
440 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
441 (run_cc_link_tests): Likewise.
442
fef75122
L
4432018-01-27 H.J. Lu <hongjiu.lu@intel.com>
444
445 PR ld/22751
446 * testsuite/config/default.exp (INT128_CFLAGS): New.
447 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
448 Run ld/22751 tests.
449 * testsuite/ld-plugin/pr22751.c: New file.
450 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
451 ld trailing options.
452
d580dcc7
AM
4532018-01-28 Alan Modra <amodra@gmail.com>
454
455 PR 22751
456 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
457 set.
458
2ebd05b8
MR
4592018-01-26 Maciej W. Rozycki <macro@mips.com>
460
461 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
462 `mipself'.
463
bb363086
EB
4642018-01-25 Eric Botcazou <ebotcazou@adacore.com>
465
466 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
467 Link with a version script.
468 (32-bit: TLS -fpie): New test.
469 (64-bit: Helper shared library): Link with a version script.
470 (64-bit: TLS -fpie): New test.
471 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
472 * testsuite/ld-sparc/tlslib.ver: New file.
473 * testsuite/ld-sparc/tlspie32.dd: Likewise.
474 * testsuite/ld-sparc/tlspie32.s: Likewise.
475 * testsuite/ld-sparc/tlspie64.dd: Likewise.
476 * testsuite/ld-sparc/tlspie64.s: Likewise.
477 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
478 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
479 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
480 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
481 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
482 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
483
1daf502a
RL
4842018-01-24 Renlin Li <renlin.li@arm.com>
485
486 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
487 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
488 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
489 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
490 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
491 * testsuite/ld-aarch64/emit-relocs-288.d: New.
492 * testsuite/ld-aarch64/emit-relocs-288.s: New.
493 * testsuite/ld-aarch64/emit-relocs-289.d: New.
494 * testsuite/ld-aarch64/emit-relocs-289.s: New.
495 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
496 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
497 * testsuite/ld-aarch64/emit-relocs-290.d: New.
498 * testsuite/ld-aarch64/emit-relocs-290.s: New.
499 * testsuite/ld-aarch64/emit-relocs-291.d: New.
500 * testsuite/ld-aarch64/emit-relocs-291.s: New.
501 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
502 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
503 * testsuite/ld-aarch64/emit-relocs-292.d: New.
504 * testsuite/ld-aarch64/emit-relocs-292.s: New.
505 * testsuite/ld-aarch64/emit-relocs-293.d: New.
506 * testsuite/ld-aarch64/emit-relocs-293.s: New.
507
8a1b824a
L
5082018-01-20 H.J. Lu <hongjiu.lu@intel.com>
509
510 PR ld/22721
511 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
512 * testsuite/ld-plugin/pr22721.t: New file.
513 * testsuite/ld-plugin/pr22721a.s: Likewise.
514 * testsuite/ld-plugin/pr22721b.c: Likewise.
515
1ebfa86a
L
5162018-01-18 H.J. Lu <hongjiu.lu@intel.com>
517
518 * testsuite/ld-elf/group1.d: Also xfail Solaris.
519
f7968f08
L
5202018-01-18 H.J. Lu <hongjiu.lu@intel.com>
521
522 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
523 PLT/GOT order/layout for Solaris/x86 targets.
524 * testsuite/ld-elf/linkinfo1b.d: Likewise.
525
c5bdb022
L
5262018-01-18 H.J. Lu <hongjiu.lu@intel.com>
527
528 PR ld/22728
529 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
530 into ...
531 (elf_solaris2_before_allocation): This.
532 (LDEMUL_AFTER_ALLOCATION): Removed.
533
691d2e9a
AM
5342018-01-18 Alan Modra <amodra@gmail.com>
535
536 * emultempl/ppc32elf.em: Support optional --plt-align arg.
537 * emultempl/ppc64elf.em: Support negative --plt-align arg.
538
1be5d8d3
AM
5392018-01-17 Alan Modra <amodra@gmail.com>
540
541 * emultempl/ppc32elf.em (params): Init new field.
542 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
543 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
544 (PARSE_AND_LIST_LONGOPTS): Handle new options.
545 (PARSE_AND_LIST_ARGS_CASES): Likewise.
546 (PARSE_AND_LIST_OPTIONS): Likewise.
547 * emultempl/ppc64elf.em (params): Init new field.
548 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
549 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
550 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
551 (PARSE_AND_LIST_OPTIONS): Likewise.
552 (PARSE_AND_LIST_ARGS_CASES): Likewise.
553 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
554 (--speculate-indirect-jumps): Document.
555 * testsuite/ld-powerpc/elfv2exe.d,
556 * testsuite/ld-powerpc/elfv2so.d,
557 * testsuite/ld-powerpc/relbrlt.d,
558 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
559 speculation barriers on various tests.
560
9e390558
AM
5612018-01-17 Alan Modra <amodra@gmail.com>
562
563 * emultempl/ppc32elf.em (params): Init new field.
564 (enum ppc32_opt): New enum to define OPTION_* values. Add
565 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
566 (PARSE_AND_LIST_LONGOPTS): Handle new options.
567 (PARSE_AND_LIST_ARGS_CASES): Likewise.
568 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
569 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
570 correctly for negative --plt-stub-align.
571 * testsuite/ld-powerpc/elfv2exe.d,
572 * testsuite/ld-powerpc/elfv2so.d,
573 * testsuite/ld-powerpc/relbrlt.d,
574 * testsuite/ld-powerpc/relbrlt.s,
575 * testsuite/ld-powerpc/tlsexe.d,
576 * testsuite/ld-powerpc/tlsexe.r,
577 * testsuite/ld-powerpc/tlsexe32.d,
578 * testsuite/ld-powerpc/tlsexe32.g,
579 * testsuite/ld-powerpc/tlsexe32.r,
580 * testsuite/ld-powerpc/tlsexetoc.d,
581 * testsuite/ld-powerpc/tlsexetoc.r,
582 * testsuite/ld-powerpc/tlsopt5_32.d,
583 * testsuite/ld-powerpc/tlsso.d,
584 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
585
f6efed01
NC
5862018-01-16 Nick Clifton <nickc@redhat.com>
587
f174ef9f 588 * po/pt_BR.po: Updated Brazilian Portuguese translation.
f6efed01 589
616dcb87
NC
5902018-01-15 Nick Clifton <nickc@redhat.com>
591
592 * po/uk.po: Updated Ukranian translation.
593
3957a496
NC
5942018-01-13 Nick Clifton <nickc@redhat.com>
595
596 * po/ld.pot: Regenerated.
597
769c7ea5
NC
5982018-01-13 Nick Clifton <nickc@redhat.com>
599
600 * configure: Regenerate.
601
9176ac5b
NC
6022018-01-13 Nick Clifton <nickc@redhat.com>
603
faf766e3 604 2.30 branch created.
9176ac5b
NC
605 * NEWS: Add marker for 2.30.
606
5ae5d3fd
AM
6072018-01-12 Alan Modra <amodra@gmail.com>
608
609 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
610 initialization" for currently failing targets.
611
87e79a65
AM
6122018-01-12 Alan Modra <amodra@gmail.com>
613
614 PR ld/22649
615 * testsuite/ld-elf/pr22649.msg: Allow other messages.
616 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
617 supported before running ld/22649 tests.
618
97a232d7
NC
6192018-01-12 Nick Clifton <nickc@redhat.com>
620
621 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
622 as the opposite of "-z defs".
623 * ld.texinfo: Document the new option. Update the description of
624 the -z defs option to make it clear that it does generate an error
625 if an undefined symbol reference is found in an object file whilst
626 creating a shared library.
627 * NEWS: Document this new feature.
628
33eff4ce
L
6292018-01-11 H.J. Lu <hongjiu.lu@intel.com>
630
631 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
632 "-z separate-code".
633 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
634 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
635 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
636
cf9e7f1f
L
6372018-01-11 H.J. Lu <hongjiu.lu@intel.com>
638
639 PR ld/22393
640 * testsuite/ld-x86-64/pr22393-3a.c: New file.
641 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
642 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
643 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
644 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
645 -z max-page-size=0x1000.
646
d346bb27
L
6472018-01-11 H.J. Lu <hongjiu.lu@intel.com>
648
649 PR ld/22393
650 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
651 * testsuite/ld-elf/pr22393-1.s: New file.
652 * testsuite/ld-elf/pr22393-1a.d: Likewise.
653 * testsuite/ld-elf/pr22393-1b.d: Likewise.
654 * testsuite/ld-elf/pr22393-1c.d: Likewise.
655 * testsuite/ld-elf/pr22393-1d.d: Likewise.
656 * testsuite/ld-elf/pr22393-1e.d: Likewise.
657 * testsuite/ld-elf/pr22393-1f.d: Likewise.
658 * testsuite/ld-elf/pr22393-2a.c: Likewise.
659 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
660 * testsuite/ld-elf/pr22393-2b.c: Likewise.
661 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
662 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
663
47acac12
L
6642018-01-11 H.J. Lu <hongjiu.lu@intel.com>
665
666 PR ld/22393
667 * NEWS: Mention "-z separate-code".
668 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
669 builtin linker scripts and return linker scripts from disk for
670 "-z separate-code".
671 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
672 and "-z noseparate-code".
673 * genscripts.sh: Generate linker scripts for "-z separate-code".
674 (LD_FLAG): Set to *textonly for "-z separate-code".
675 * ld.texinfo: Document "-z separate-code".
676 * lexsup.c (elf_shlib_list_options): Add linker help messsages
677 for "-z separate-code" and "-z noseparate-code".
678 * scripttempl/elf.sc (SEPARATE_TEXT): New
679 (TEXT_SEGMENT_ALIGN): Likewise.
680 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
681 ${MAXPAGESIZE}.
682
d664fd41
L
6832018-01-11 H.J. Lu <hongjiu.lu@intel.com>
684
685 PR ld/22649
686 * testsuite/ld-elf/pr22649-1.s: New file.
687 * testsuite/ld-elf/pr22649-2a.s: Likewise.
688 * testsuite/ld-elf/pr22649-2b.s: Likewise.
689 * testsuite/ld-elf/pr22649.msg: Likewise.
690 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
691
8b6f4cd3
L
6922018-01-11 H.J. Lu <hongjiu.lu@intel.com>
693
694 PR ld/22677
695 * scripttempl/elf.sc (PREINIT_ARRAY): New.
696 Don't add .preinit_array for ld -r.
697 * testsuite/ld-elf/pr22677.d: New file.
698 * testsuite/ld-elf/pr22677.s: Likewise.
699
65f14869
AB
7002018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 * ldexp.h (union etree_union): Remove defsym field.
703 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
704 parameter.
705 (exp_assign): Remove passing of defsym parameter.
706 (exp_defsym): Likewise.
707 (exp_provide): Likewise.
708
eab62f2f
AB
7092018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
710
711 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
712 nodes are ignored in the tree walk, and move the location at which
713 we change provide nodes into provided nodes.
714 (exp_init_os): Add etree_provided.
715 * testsuite/ld-scripts/provide-6.d: New file.
716 * testsuite/ld-scripts/provide-6.t: New file.
717 * testsuite/ld-scripts/provide-7.d: New file.
718 * testsuite/ld-scripts/provide-7.t: New file.
719 * testsuite/ld-scripts/provide-8.d: New file.
720 * testsuite/ld-scripts/provide-8.t: New file.
721
8be965c5
AB
7222018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
725 * testsuite/ld-scripts/provide-4.d: Use new map file name.
726 * testsuite/ld-scripts/provide-5.d: Use new map file name.
727 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
728 * testsuite/ld-scripts/provide-4.map: ...this.
729 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
730 * testsuite/ld-scripts/provide-5.map: ...this.
731 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
732 file, and run tests in a loop.
733
b3b9f8d3
AB
7342018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
737 PROVIDE statements.
738 * testsuite/ld-scripts/provide-4.map: Update expected output.
739 * testsuite/ld-scripts/provide-5.map: Likewise.
740
6bd0a312
L
7412018-01-11 H.J. Lu <hongjiu.lu@intel.com>
742
743 PR ld/22696
744 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
745
74ccf6db
JW
7462018-01-09 Jim Wilson <jimw@sifive.com>
747
748 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
749 (#alltargets): Renamed from #target. Add shared.
750 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
751 Document alltargets option. Add support for alltargets option.
752 (istarget): Add support for shared target.
753
7615ca1d
JW
7542018-01-08 Jim Wilson <jimw@sifive.com>
755
756 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
757 instead of .text.
758 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
759 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
760 tests, add call to check_shared_lib_support.
761
be1dce26
JW
7622018-01-05 Jim Wilson <jimw@sifive.com>
763
35eeb78f
JW
764 * testsuite/ld-riscv-elf/disas-jalr.d: New.
765 * testsuite/ld-riscv-elf/disas-jalr.s: New.
766 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
767
be1dce26
JW
768 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
769 case on $target, and don't set for riscv*-elf targets.
770 (GENERATE_PIE_SCRIPT): Likewise.
771
219d1afa
AM
7722018-01-03 Alan Modra <amodra@gmail.com>
773
774 Update year range in copyright notice of all files.
775
1e563868 776For older changes see ChangeLog-2017
3499769a 777\f
1e563868 778Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
779
780Copying and distribution of this file, with or without modification,
781are permitted in any medium without royalty provided the copyright
782notice and this notice are preserved.
783
784Local Variables:
785mode: change-log
786left-margin: 8
787fill-column: 74
788version-control: never
789End:
This page took 0.199832 seconds and 4 git commands to generate.