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