solaris2.em: Fold after_allocation into before_allocation
[binutils-gdb.git] / ld / ChangeLog
1 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/22728
4 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
5 into ...
6 (elf_solaris2_before_allocation): This.
7 (LDEMUL_AFTER_ALLOCATION): Removed.
8
9 2018-01-18 Alan Modra <amodra@gmail.com>
10
11 * emultempl/ppc32elf.em: Support optional --plt-align arg.
12 * emultempl/ppc64elf.em: Support negative --plt-align arg.
13
14 2018-01-17 Alan Modra <amodra@gmail.com>
15
16 * emultempl/ppc32elf.em (params): Init new field.
17 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
18 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
19 (PARSE_AND_LIST_LONGOPTS): Handle new options.
20 (PARSE_AND_LIST_ARGS_CASES): Likewise.
21 (PARSE_AND_LIST_OPTIONS): Likewise.
22 * emultempl/ppc64elf.em (params): Init new field.
23 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
24 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
25 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
26 (PARSE_AND_LIST_OPTIONS): Likewise.
27 (PARSE_AND_LIST_ARGS_CASES): Likewise.
28 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
29 (--speculate-indirect-jumps): Document.
30 * testsuite/ld-powerpc/elfv2exe.d,
31 * testsuite/ld-powerpc/elfv2so.d,
32 * testsuite/ld-powerpc/relbrlt.d,
33 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
34 speculation barriers on various tests.
35
36 2018-01-17 Alan Modra <amodra@gmail.com>
37
38 * emultempl/ppc32elf.em (params): Init new field.
39 (enum ppc32_opt): New enum to define OPTION_* values. Add
40 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
41 (PARSE_AND_LIST_LONGOPTS): Handle new options.
42 (PARSE_AND_LIST_ARGS_CASES): Likewise.
43 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
44 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
45 correctly for negative --plt-stub-align.
46 * testsuite/ld-powerpc/elfv2exe.d,
47 * testsuite/ld-powerpc/elfv2so.d,
48 * testsuite/ld-powerpc/relbrlt.d,
49 * testsuite/ld-powerpc/relbrlt.s,
50 * testsuite/ld-powerpc/tlsexe.d,
51 * testsuite/ld-powerpc/tlsexe.r,
52 * testsuite/ld-powerpc/tlsexe32.d,
53 * testsuite/ld-powerpc/tlsexe32.g,
54 * testsuite/ld-powerpc/tlsexe32.r,
55 * testsuite/ld-powerpc/tlsexetoc.d,
56 * testsuite/ld-powerpc/tlsexetoc.r,
57 * testsuite/ld-powerpc/tlsopt5_32.d,
58 * testsuite/ld-powerpc/tlsso.d,
59 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
60
61 2018-01-16 Nick Clifton <nickc@redhat.com>
62
63 * po/pt_BR.po: Updated Brazilian Portugese translation.
64
65 2018-01-15 Nick Clifton <nickc@redhat.com>
66
67 * po/uk.po: Updated Ukranian translation.
68
69 2018-01-13 Nick Clifton <nickc@redhat.com>
70
71 * po/ld.pot: Regenerated.
72
73 2018-01-13 Nick Clifton <nickc@redhat.com>
74
75 * configure: Regenerate.
76
77 2018-01-13 Nick Clifton <nickc@redhat.com>
78
79 2.30 branch created.
80 * NEWS: Add marker for 2.30.
81
82 2018-01-12 Alan Modra <amodra@gmail.com>
83
84 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
85 initialization" for currently failing targets.
86
87 2018-01-12 Alan Modra <amodra@gmail.com>
88
89 PR ld/22649
90 * testsuite/ld-elf/pr22649.msg: Allow other messages.
91 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
92 supported before running ld/22649 tests.
93
94 2018-01-12 Nick Clifton <nickc@redhat.com>
95
96 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
97 as the opposite of "-z defs".
98 * ld.texinfo: Document the new option. Update the description of
99 the -z defs option to make it clear that it does generate an error
100 if an undefined symbol reference is found in an object file whilst
101 creating a shared library.
102 * NEWS: Document this new feature.
103
104 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
105
106 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
107 "-z separate-code".
108 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
109 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
110 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
111
112 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
113
114 PR ld/22393
115 * testsuite/ld-x86-64/pr22393-3a.c: New file.
116 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
117 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
118 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
119 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
120 -z max-page-size=0x1000.
121
122 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
123
124 PR ld/22393
125 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
126 * testsuite/ld-elf/pr22393-1.s: New file.
127 * testsuite/ld-elf/pr22393-1a.d: Likewise.
128 * testsuite/ld-elf/pr22393-1b.d: Likewise.
129 * testsuite/ld-elf/pr22393-1c.d: Likewise.
130 * testsuite/ld-elf/pr22393-1d.d: Likewise.
131 * testsuite/ld-elf/pr22393-1e.d: Likewise.
132 * testsuite/ld-elf/pr22393-1f.d: Likewise.
133 * testsuite/ld-elf/pr22393-2a.c: Likewise.
134 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
135 * testsuite/ld-elf/pr22393-2b.c: Likewise.
136 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
137 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
138
139 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
140
141 PR ld/22393
142 * NEWS: Mention "-z separate-code".
143 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
144 builtin linker scripts and return linker scripts from disk for
145 "-z separate-code".
146 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
147 and "-z noseparate-code".
148 * genscripts.sh: Generate linker scripts for "-z separate-code".
149 (LD_FLAG): Set to *textonly for "-z separate-code".
150 * ld.texinfo: Document "-z separate-code".
151 * lexsup.c (elf_shlib_list_options): Add linker help messsages
152 for "-z separate-code" and "-z noseparate-code".
153 * scripttempl/elf.sc (SEPARATE_TEXT): New
154 (TEXT_SEGMENT_ALIGN): Likewise.
155 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
156 ${MAXPAGESIZE}.
157
158 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
159
160 PR ld/22649
161 * testsuite/ld-elf/pr22649-1.s: New file.
162 * testsuite/ld-elf/pr22649-2a.s: Likewise.
163 * testsuite/ld-elf/pr22649-2b.s: Likewise.
164 * testsuite/ld-elf/pr22649.msg: Likewise.
165 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
166
167 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
168
169 PR ld/22677
170 * scripttempl/elf.sc (PREINIT_ARRAY): New.
171 Don't add .preinit_array for ld -r.
172 * testsuite/ld-elf/pr22677.d: New file.
173 * testsuite/ld-elf/pr22677.s: Likewise.
174
175 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
176
177 * ldexp.h (union etree_union): Remove defsym field.
178 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
179 parameter.
180 (exp_assign): Remove passing of defsym parameter.
181 (exp_defsym): Likewise.
182 (exp_provide): Likewise.
183
184 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
187 nodes are ignored in the tree walk, and move the location at which
188 we change provide nodes into provided nodes.
189 (exp_init_os): Add etree_provided.
190 * testsuite/ld-scripts/provide-6.d: New file.
191 * testsuite/ld-scripts/provide-6.t: New file.
192 * testsuite/ld-scripts/provide-7.d: New file.
193 * testsuite/ld-scripts/provide-7.t: New file.
194 * testsuite/ld-scripts/provide-8.d: New file.
195 * testsuite/ld-scripts/provide-8.t: New file.
196
197 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
200 * testsuite/ld-scripts/provide-4.d: Use new map file name.
201 * testsuite/ld-scripts/provide-5.d: Use new map file name.
202 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
203 * testsuite/ld-scripts/provide-4.map: ...this.
204 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
205 * testsuite/ld-scripts/provide-5.map: ...this.
206 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
207 file, and run tests in a loop.
208
209 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
212 PROVIDE statements.
213 * testsuite/ld-scripts/provide-4.map: Update expected output.
214 * testsuite/ld-scripts/provide-5.map: Likewise.
215
216 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
217
218 PR ld/22696
219 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
220
221 2018-01-09 Jim Wilson <jimw@sifive.com>
222
223 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
224 (#alltargets): Renamed from #target. Add shared.
225 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
226 Document alltargets option. Add support for alltargets option.
227 (istarget): Add support for shared target.
228
229 2018-01-08 Jim Wilson <jimw@sifive.com>
230
231 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
232 instead of .text.
233 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
234 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
235 tests, add call to check_shared_lib_support.
236
237 2018-01-05 Jim Wilson <jimw@sifive.com>
238
239 * testsuite/ld-riscv-elf/disas-jalr.d: New.
240 * testsuite/ld-riscv-elf/disas-jalr.s: New.
241 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
242
243 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
244 case on $target, and don't set for riscv*-elf targets.
245 (GENERATE_PIE_SCRIPT): Likewise.
246
247 2018-01-03 Alan Modra <amodra@gmail.com>
248
249 Update year range in copyright notice of all files.
250
251 For older changes see ChangeLog-2017
252 \f
253 Copyright (C) 2018 Free Software Foundation, Inc.
254
255 Copying and distribution of this file, with or without modification,
256 are permitted in any medium without royalty provided the copyright
257 notice and this notice are preserved.
258
259 Local Variables:
260 mode: change-log
261 left-margin: 8
262 fill-column: 74
263 version-control: never
264 End: