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