Check if __start/__stop symbols are referenced by shared objects
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
823143c6
L
12018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/21964
4 * testsuite/ld-elf/pr21964-4.c: New file.
5 * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
6
040b4a9e
AM
72018-01-30 Alan Modra <amodra@gmail.com>
8
9 * testsuite/ld-gc/stop.d,
10 * testsuite/ld-gc/stop.s: New test.
11 * testsuite/ld-gc/gc.exp: Run it.
12
af667f22
MR
132018-01-30 Maciej W. Rozycki <macro@mips.com>
14
15 PR ld/22649
16 * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
17 * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
18 * testsuite/ld-elf/shared.exp: Use the new outputs with
19 `mips*-*-*' targets.
20
82252033
MR
212018-01-30 Maciej W. Rozycki <macro@mips.com>
22
23 * testsuite/ld-elf/comm-data1.sd: Alternatively accept
24 `PRC[0xff02]' in place of a regular section index.
25 * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
26
36b8fda5
AM
272018-01-29 Alan Modra <amodra@gmail.com>
28
29 * testsuite/ld-elf/pr21964-3a.c: New file.
30 * testsuite/ld-elf/pr21964-3c.c: New file.
31 * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
32
185cdb8c
EB
332018-01-29 Eric Botcazou <ebotcazou@adacore.com>
34
35 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
36 (pr22269-1): Pass AFLAGS_PIC to the assembler.
37
d85815e2
EB
382018-01-29 Eric Botcazou <ebotcazou@adacore.com>
39
40 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
41
86b24e15
MR
422018-01-29 Maciej W. Rozycki <macro@mips.com>
43
44 * testsuite/ld-mips-elf/comm-data.exp: Correct support for
45 targets using non-traditional MIPS emulation or having a limited
46 selection of ABIs available. Don't force big endianness, use
47 defaults.
48
98d72909
L
492018-01-29 H.J. Lu <hongjiu.lu@intel.com>
50
51 PR ld/22732
52 * testsuite/config/default.exp (STATIC_LDFLAGS): New. Set to
53 "-static" if target compiler supports it.
54 * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
55 tests if target compiler doesn't support it.
56 * testsuite/ld-ifunc/ifunc.exp: Likewise.
57 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
58 (run_cc_link_tests): Likewise.
59
fef75122
L
602018-01-27 H.J. Lu <hongjiu.lu@intel.com>
61
62 PR ld/22751
63 * testsuite/config/default.exp (INT128_CFLAGS): New.
64 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
65 Run ld/22751 tests.
66 * testsuite/ld-plugin/pr22751.c: New file.
67 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
68 ld trailing options.
69
d580dcc7
AM
702018-01-28 Alan Modra <amodra@gmail.com>
71
72 PR 22751
73 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
74 set.
75
2ebd05b8
MR
762018-01-26 Maciej W. Rozycki <macro@mips.com>
77
78 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
79 `mipself'.
80
bb363086
EB
812018-01-25 Eric Botcazou <ebotcazou@adacore.com>
82
83 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
84 Link with a version script.
85 (32-bit: TLS -fpie): New test.
86 (64-bit: Helper shared library): Link with a version script.
87 (64-bit: TLS -fpie): New test.
88 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
89 * testsuite/ld-sparc/tlslib.ver: New file.
90 * testsuite/ld-sparc/tlspie32.dd: Likewise.
91 * testsuite/ld-sparc/tlspie32.s: Likewise.
92 * testsuite/ld-sparc/tlspie64.dd: Likewise.
93 * testsuite/ld-sparc/tlspie64.s: Likewise.
94 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
95 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
96 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
97 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
98 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
99 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
100
1daf502a
RL
1012018-01-24 Renlin Li <renlin.li@arm.com>
102
103 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
104 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
105 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
106 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
107 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
108 * testsuite/ld-aarch64/emit-relocs-288.d: New.
109 * testsuite/ld-aarch64/emit-relocs-288.s: New.
110 * testsuite/ld-aarch64/emit-relocs-289.d: New.
111 * testsuite/ld-aarch64/emit-relocs-289.s: New.
112 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
113 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
114 * testsuite/ld-aarch64/emit-relocs-290.d: New.
115 * testsuite/ld-aarch64/emit-relocs-290.s: New.
116 * testsuite/ld-aarch64/emit-relocs-291.d: New.
117 * testsuite/ld-aarch64/emit-relocs-291.s: New.
118 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
119 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
120 * testsuite/ld-aarch64/emit-relocs-292.d: New.
121 * testsuite/ld-aarch64/emit-relocs-292.s: New.
122 * testsuite/ld-aarch64/emit-relocs-293.d: New.
123 * testsuite/ld-aarch64/emit-relocs-293.s: New.
124
8a1b824a
L
1252018-01-20 H.J. Lu <hongjiu.lu@intel.com>
126
127 PR ld/22721
128 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
129 * testsuite/ld-plugin/pr22721.t: New file.
130 * testsuite/ld-plugin/pr22721a.s: Likewise.
131 * testsuite/ld-plugin/pr22721b.c: Likewise.
132
1ebfa86a
L
1332018-01-18 H.J. Lu <hongjiu.lu@intel.com>
134
135 * testsuite/ld-elf/group1.d: Also xfail Solaris.
136
f7968f08
L
1372018-01-18 H.J. Lu <hongjiu.lu@intel.com>
138
139 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
140 PLT/GOT order/layout for Solaris/x86 targets.
141 * testsuite/ld-elf/linkinfo1b.d: Likewise.
142
c5bdb022
L
1432018-01-18 H.J. Lu <hongjiu.lu@intel.com>
144
145 PR ld/22728
146 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
147 into ...
148 (elf_solaris2_before_allocation): This.
149 (LDEMUL_AFTER_ALLOCATION): Removed.
150
691d2e9a
AM
1512018-01-18 Alan Modra <amodra@gmail.com>
152
153 * emultempl/ppc32elf.em: Support optional --plt-align arg.
154 * emultempl/ppc64elf.em: Support negative --plt-align arg.
155
1be5d8d3
AM
1562018-01-17 Alan Modra <amodra@gmail.com>
157
158 * emultempl/ppc32elf.em (params): Init new field.
159 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
160 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
161 (PARSE_AND_LIST_LONGOPTS): Handle new options.
162 (PARSE_AND_LIST_ARGS_CASES): Likewise.
163 (PARSE_AND_LIST_OPTIONS): Likewise.
164 * emultempl/ppc64elf.em (params): Init new field.
165 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
166 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
167 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
168 (PARSE_AND_LIST_OPTIONS): Likewise.
169 (PARSE_AND_LIST_ARGS_CASES): Likewise.
170 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
171 (--speculate-indirect-jumps): Document.
172 * testsuite/ld-powerpc/elfv2exe.d,
173 * testsuite/ld-powerpc/elfv2so.d,
174 * testsuite/ld-powerpc/relbrlt.d,
175 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
176 speculation barriers on various tests.
177
9e390558
AM
1782018-01-17 Alan Modra <amodra@gmail.com>
179
180 * emultempl/ppc32elf.em (params): Init new field.
181 (enum ppc32_opt): New enum to define OPTION_* values. Add
182 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
183 (PARSE_AND_LIST_LONGOPTS): Handle new options.
184 (PARSE_AND_LIST_ARGS_CASES): Likewise.
185 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
186 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
187 correctly for negative --plt-stub-align.
188 * testsuite/ld-powerpc/elfv2exe.d,
189 * testsuite/ld-powerpc/elfv2so.d,
190 * testsuite/ld-powerpc/relbrlt.d,
191 * testsuite/ld-powerpc/relbrlt.s,
192 * testsuite/ld-powerpc/tlsexe.d,
193 * testsuite/ld-powerpc/tlsexe.r,
194 * testsuite/ld-powerpc/tlsexe32.d,
195 * testsuite/ld-powerpc/tlsexe32.g,
196 * testsuite/ld-powerpc/tlsexe32.r,
197 * testsuite/ld-powerpc/tlsexetoc.d,
198 * testsuite/ld-powerpc/tlsexetoc.r,
199 * testsuite/ld-powerpc/tlsopt5_32.d,
200 * testsuite/ld-powerpc/tlsso.d,
201 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
202
f6efed01
NC
2032018-01-16 Nick Clifton <nickc@redhat.com>
204
205 * po/pt_BR.po: Updated Brazilian Portugese translation.
206
616dcb87
NC
2072018-01-15 Nick Clifton <nickc@redhat.com>
208
209 * po/uk.po: Updated Ukranian translation.
210
3957a496
NC
2112018-01-13 Nick Clifton <nickc@redhat.com>
212
213 * po/ld.pot: Regenerated.
214
769c7ea5
NC
2152018-01-13 Nick Clifton <nickc@redhat.com>
216
217 * configure: Regenerate.
218
9176ac5b
NC
2192018-01-13 Nick Clifton <nickc@redhat.com>
220
faf766e3 221 2.30 branch created.
9176ac5b
NC
222 * NEWS: Add marker for 2.30.
223
5ae5d3fd
AM
2242018-01-12 Alan Modra <amodra@gmail.com>
225
226 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
227 initialization" for currently failing targets.
228
87e79a65
AM
2292018-01-12 Alan Modra <amodra@gmail.com>
230
231 PR ld/22649
232 * testsuite/ld-elf/pr22649.msg: Allow other messages.
233 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
234 supported before running ld/22649 tests.
235
97a232d7
NC
2362018-01-12 Nick Clifton <nickc@redhat.com>
237
238 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
239 as the opposite of "-z defs".
240 * ld.texinfo: Document the new option. Update the description of
241 the -z defs option to make it clear that it does generate an error
242 if an undefined symbol reference is found in an object file whilst
243 creating a shared library.
244 * NEWS: Document this new feature.
245
33eff4ce
L
2462018-01-11 H.J. Lu <hongjiu.lu@intel.com>
247
248 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
249 "-z separate-code".
250 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
251 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
252 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
253
cf9e7f1f
L
2542018-01-11 H.J. Lu <hongjiu.lu@intel.com>
255
256 PR ld/22393
257 * testsuite/ld-x86-64/pr22393-3a.c: New file.
258 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
259 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
260 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
261 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
262 -z max-page-size=0x1000.
263
d346bb27
L
2642018-01-11 H.J. Lu <hongjiu.lu@intel.com>
265
266 PR ld/22393
267 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
268 * testsuite/ld-elf/pr22393-1.s: New file.
269 * testsuite/ld-elf/pr22393-1a.d: Likewise.
270 * testsuite/ld-elf/pr22393-1b.d: Likewise.
271 * testsuite/ld-elf/pr22393-1c.d: Likewise.
272 * testsuite/ld-elf/pr22393-1d.d: Likewise.
273 * testsuite/ld-elf/pr22393-1e.d: Likewise.
274 * testsuite/ld-elf/pr22393-1f.d: Likewise.
275 * testsuite/ld-elf/pr22393-2a.c: Likewise.
276 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
277 * testsuite/ld-elf/pr22393-2b.c: Likewise.
278 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
279 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
280
47acac12
L
2812018-01-11 H.J. Lu <hongjiu.lu@intel.com>
282
283 PR ld/22393
284 * NEWS: Mention "-z separate-code".
285 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
286 builtin linker scripts and return linker scripts from disk for
287 "-z separate-code".
288 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
289 and "-z noseparate-code".
290 * genscripts.sh: Generate linker scripts for "-z separate-code".
291 (LD_FLAG): Set to *textonly for "-z separate-code".
292 * ld.texinfo: Document "-z separate-code".
293 * lexsup.c (elf_shlib_list_options): Add linker help messsages
294 for "-z separate-code" and "-z noseparate-code".
295 * scripttempl/elf.sc (SEPARATE_TEXT): New
296 (TEXT_SEGMENT_ALIGN): Likewise.
297 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
298 ${MAXPAGESIZE}.
299
d664fd41
L
3002018-01-11 H.J. Lu <hongjiu.lu@intel.com>
301
302 PR ld/22649
303 * testsuite/ld-elf/pr22649-1.s: New file.
304 * testsuite/ld-elf/pr22649-2a.s: Likewise.
305 * testsuite/ld-elf/pr22649-2b.s: Likewise.
306 * testsuite/ld-elf/pr22649.msg: Likewise.
307 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
308
8b6f4cd3
L
3092018-01-11 H.J. Lu <hongjiu.lu@intel.com>
310
311 PR ld/22677
312 * scripttempl/elf.sc (PREINIT_ARRAY): New.
313 Don't add .preinit_array for ld -r.
314 * testsuite/ld-elf/pr22677.d: New file.
315 * testsuite/ld-elf/pr22677.s: Likewise.
316
65f14869
AB
3172018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
318
319 * ldexp.h (union etree_union): Remove defsym field.
320 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
321 parameter.
322 (exp_assign): Remove passing of defsym parameter.
323 (exp_defsym): Likewise.
324 (exp_provide): Likewise.
325
eab62f2f
AB
3262018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
327
328 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
329 nodes are ignored in the tree walk, and move the location at which
330 we change provide nodes into provided nodes.
331 (exp_init_os): Add etree_provided.
332 * testsuite/ld-scripts/provide-6.d: New file.
333 * testsuite/ld-scripts/provide-6.t: New file.
334 * testsuite/ld-scripts/provide-7.d: New file.
335 * testsuite/ld-scripts/provide-7.t: New file.
336 * testsuite/ld-scripts/provide-8.d: New file.
337 * testsuite/ld-scripts/provide-8.t: New file.
338
8be965c5
AB
3392018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
342 * testsuite/ld-scripts/provide-4.d: Use new map file name.
343 * testsuite/ld-scripts/provide-5.d: Use new map file name.
344 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
345 * testsuite/ld-scripts/provide-4.map: ...this.
346 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
347 * testsuite/ld-scripts/provide-5.map: ...this.
348 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
349 file, and run tests in a loop.
350
b3b9f8d3
AB
3512018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
354 PROVIDE statements.
355 * testsuite/ld-scripts/provide-4.map: Update expected output.
356 * testsuite/ld-scripts/provide-5.map: Likewise.
357
6bd0a312
L
3582018-01-11 H.J. Lu <hongjiu.lu@intel.com>
359
360 PR ld/22696
361 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
362
74ccf6db
JW
3632018-01-09 Jim Wilson <jimw@sifive.com>
364
365 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
366 (#alltargets): Renamed from #target. Add shared.
367 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
368 Document alltargets option. Add support for alltargets option.
369 (istarget): Add support for shared target.
370
7615ca1d
JW
3712018-01-08 Jim Wilson <jimw@sifive.com>
372
373 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
374 instead of .text.
375 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
376 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
377 tests, add call to check_shared_lib_support.
378
be1dce26
JW
3792018-01-05 Jim Wilson <jimw@sifive.com>
380
35eeb78f
JW
381 * testsuite/ld-riscv-elf/disas-jalr.d: New.
382 * testsuite/ld-riscv-elf/disas-jalr.s: New.
383 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
384
be1dce26
JW
385 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
386 case on $target, and don't set for riscv*-elf targets.
387 (GENERATE_PIE_SCRIPT): Likewise.
388
219d1afa
AM
3892018-01-03 Alan Modra <amodra@gmail.com>
390
391 Update year range in copyright notice of all files.
392
1e563868 393For older changes see ChangeLog-2017
3499769a 394\f
1e563868 395Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
396
397Copying and distribution of this file, with or without modification,
398are permitted in any medium without royalty provided the copyright
399notice and this notice are preserved.
400
401Local Variables:
402mode: change-log
403left-margin: 8
404fill-column: 74
405version-control: never
406End:
This page took 0.156423 seconds and 4 git commands to generate.