]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
PR ld/17973 LTO file syms
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
ce875075
AM
12015-02-14 Alan Modra <amodra@gmail.com>
2
3 PR ld/17973
4 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
5 * ldlang.c (lang_process): Don't set loading_lto_outputs.
6 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
7 to bfd.
8 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
9
b0619670
L
102015-02-13 H.J. Lu <hongjiu.lu@intel.com>
11
12 * NEWS: Mention support for LLVM plugin.
13
66bc8739
AM
142015-02-13 Alan Modra <amodra@gmail.com>
15
16 * ld.texinfo (Options <--defsym>): Correct cross reference.
17
88b9e2eb
L
182015-02-11 H.J. Lu <hongjiu.lu@intel.com>
19
20 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
21 option compatibility.
22
45e81354
L
232015-02-11 H.J. Lu <hongjiu.lu@intel.com>
24
25 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
26 "error:" for LDPL_FATAL and LDPL_ERROR.
27 * testplug2.c (parse_option): Handle fatal, error and warning.
28
e3001fd9
L
292015-02-11 H.J. Lu <hongjiu.lu@intel.com>
30
31 * testplug2.c (dump_tv_tag): Removed.
32 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
33 closed.
34 * testplug3.c (dump_tv_tag): Removed.
35 (onclaim_file): Fix typo.
36
7275e869
L
372015-02-11 H.J. Lu <hongjiu.lu@intel.com>
38
39 PR ld/17878
40 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
41 libldtestplug3.la.
42 (libldtestplug2_la_SOURCES): New.
43 (libldtestplug2_la_CFLAGS): Likewise.
44 (libldtestplug2_la_LDFLAGS): Likewise.
45 (libldtestplug3_la_SOURCES): New.
46 (libldtestplug3_la_CFLAGS): Likewise.
47 (libldtestplug3_la_LDFLAGS): Likewise.
48 * Makefile.in: Regenerated.
49 * testplug2.c: New file.
50 * testplug3.c: Likewise.
51
b9dc5a87
L
522015-02-11 H.J. Lu <hongjiu.lu@intel.com>
53
54 PR ld/17878
55 * plugin.c: Include ../bfd/plugin.h.
56 (plugin_get_ir_dummy_bfd): Call bfd_create with
57 link_info.output_bfd instead of srctemplate. Copy BFD info
58 from srctemplate only if it doesn't use BFD plugin target
59 vector.
60 (plugin_load_plugins): Call register_ld_plugin_object_p with
61 (plugin_object_p)
62 (plugin_maybe_claim): Renamed to ...
63 (plugin_object_p): This. Return dummy BFD target vector if
64 input is calimed by plugin library, otherwise return NULL.
65 Update plugin_format and plugin_dummy_bfd.
66 (plugin_maybe_claim): New. Use plugin_object_p.
67
d319a098
L
682015-02-10 H.J. Lu <hongjiu.lu@intel.com>
69
70 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
71
38604796
L
722015-02-10 H.J. Lu <hongjiu.lu@intel.com>
73
74 * plugin.c (plugin_input_file_t): Add use_mmap.
75 (plugin_pagesize): New.
76 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
77 (plugin_load_plugins): Initialize plugin_pagesize.
78 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
79 file.
80
fe905789
L
812015-02-10 H.J. Lu <hongjiu.lu@intel.com>
82
83 * plugin.c (get_view): Align offset passed to mmap.
84
1d5b29cf
L
852015-02-08 H.J. Lu <hongjiu.lu@intel.com>
86
87 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
88 if plugin isn't active or there is no thing more to claim.
89
e13419c4
L
902015-02-08 H.J. Lu <hongjiu.lu@intel.com>
91
92 * plugin.c (plugin_maybe_claim): Check format against bfd_object
93 directly.
94
93843894
L
952015-02-07 H.J. Lu <hongjiu.lu@intel.com>
96
97 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
98 ibfd.
99
35a1e5f3
L
1002015-02-07 H.J. Lu <hongjiu.lu@intel.com>
101
102 * plugin.c: Include "libbfd.h".
103 (plugin_strdup): New.
104 (plugin_maybe_claim): Remove the argument of pointer to struct
105 ld_plugin_input_file. Open and handle input entry.
106 * plugin.h (plugin_maybe_claim): Updated.
107 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
108 without passing a pointer to struct ld_plugin_input_file.
109 * ldmain.c: Don't include "libbfd.h".
110 (add_archive_element): Call plugin_maybe_claim directly without
111 passing a pointer to struct ld_plugin_input_file.
112
8dfef1bd
L
1132015-02-06 H.J. Lu <hongjiu.lu@intel.com>
114
115 * ld.texinfo: Document -z text, -z notext and -z textoff.
116 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
117 -z text, -z notext and -z textoff.
118
2aec968d
L
1192015-02-06 H.J. Lu <hongjiu.lu@intel.com>
120
121 * configure.ac: Add AC_FUNC_MMAP.
122 * config.in: Regenerated.
123 * configure: Likewise.
124 * plugin.c: Include <sys/mman.h>.
125 (MAP_FAILED): New. Defined if not defined.
126 (PROT_READ): Likewise.
127 (MAP_PRIVATE): Likewise.
128 (view_buffer_t): New.
129 (plugin_input_file_t): Add view_buffer.
130 (get_view): Try mmap and cache the view buffer.
131 (plugin_maybe_claim): Initialize view_buffer.
132
119d62ff
L
1332015-02-05 H.J. Lu <hongjiu.lu@intel.com>
134
135 * plugin.c (release_input_file): Set fd to -1 after closing it.
136 (plugin_maybe_claim): Close fd only if fd != -1.
137
f4b78d18
L
1382015-02-05 H.J. Lu <hongjiu.lu@intel.com>
139
140 PR ld/17878
141 * plugin.c: Include <errno.h>.
142 (errno): New. Declare if needed.
143 (plugin_input_file_t): New.
144 (get_input_file): Implemented.
145 (get_view): Likewise.
146 (release_input_file): Likewise.
147 (add_symbols): Updated.
148 (get_symbols): Likewise.
149 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
150 only for a bfd_object input.
151
6c2573b7
AM
1522015-02-02 Alan Modra <amodra@gmail.com>
153
154 * emultempl/ppc64elf.em (toc_section_name): New var.
155 (ppc_after_open): Set it.
156 (ppc_before_allocation): Use it.
157 (gld${EMULATION_NAME}_after_allocation): Here too.
158
716db898
L
1592015-01-29 H.J. Lu <hongjiu.lu@intel.com>
160
161 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
162 with link_info.lto_plugin_active.
163 * ldlang.c (lang_process): Likewise.
164 * ldmain.c (add_archive_element): Likewise.
165 * plugin.c (plugin_active_plugins_p): Removed.
166 * plugin.h (plugin_active_plugins_p): Likewise.
167
37a3056a
L
1682015-01-28 H.J. Lu <hongjiu.lu@intel.com>
169
170 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
171 ...
172 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
173
15f7a26b
L
1742015-01-28 H.J. Lu <hongjiu.lu@intel.com>
175
176 PR ld/17878
177 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
178 (get_view): New function.
179 (set_tv_header): Handle LDPT_GET_VIEW.
180 * testplug.c (tag_names): Add LDPT_GET_VIEW.
181 (tv_get_view): New.
182 (dump_tv_tag): Handle LDPT_GET_VIEW.
183 (parse_tv_tag): Likewise.
184
dbd1e97e
AM
1852015-01-28 Alan Modra <amodra@gmail.com>
186
187 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
188 * emultempl/ppc64elf.em (params): Init new field.
189 (ppc_after_open): New function.
190 (LDEMUL_AFTER_OPEN): Define.
191 * ldlang.c (lang_final): Whitespace fix.
192
3f8107ab
AM
1932015-01-28 James Bowman <james.bowman@ftdichip.com>
194
195 * Makefile.am: Add FT32 files.
196 * configure.tgt: Handle FT32 target.
197 * emulparams/elf32ft32.sh: New file.
198 * scripttempl/ft32.sc: New file.
199 * Makefile.in: Regenerate.
200
cc9ad334
SKS
2012015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
202
203 PR 4643
204 * ldexp.c (fold_name): Fold LENGTH only after
205 lang_first_phase_enum.
206 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
207 rightaway.
208 * ldlang.h (struct memory_region_struct): Add origin_exp and
209 length_exp fields.
210 * ldlang.c (lang_do_memory_regions): New.
211 (lang_memory_region_lookup): Initialize origin_exp and
212 length_exp fields.
213 (lang_process): Call lang_do_memory_regions.
214
c05b575a
AB
2152015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * ldlang.c (print_assignment): Only evaluate the expression for a
218 PROVIDE'd assignment when the destination is being defined.
219 Display a special message for PROVIDE'd symbols that are not being
220 provided.
221
5ad18f16
AM
2222015-01-20 Alan Modra <amodra@gmail.com>
223
224 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
225 (OTHER_BSS_SYMBOLS): ..this.
226 (OTHER_PLT_RELOC_SECTIONS): Don't define.
227 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
228 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
229 (OTHER_RELRO_SECTIONS_2): ..here.
230 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
231
23283c1b
AM
2322015-01-20 Alan Modra <amodra@gmail.com>
233
234 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
235 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
236 (OTHER_RELRO_SECTIONS_2): ..here.
237 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
238 PLT_BEFORE_GOT): Define.
239 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
240 PLT_BEFORE_GOT combination.
241 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
242
3e2b0f31
AM
2432015-01-20 Alan Modra <amodra@gmail.com>
244
245 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
246 (OTHER_RELRO_SECTIONS_2): ..here, new define.
247 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
248
c4621b33
AM
2492015-01-19 Alan Modra <amodra@gmail.com>
250
3e2aa5bb 251 PR ld/17615
c4621b33
AM
252 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
253
52db4ec2
JW
2542015-01-14 Jiong Wang <jiong.wang@arm.com>
255
256 * ld-arm/elf32-reject.s: New testcase.
257 * ld-arm/elf32-reject.d: Likewise.
258 * ld-arm/elf32-reject-pie.s: Likewise.
259 * ld-arm/elf32-reject-pie.d: Likewise.
260 * ld-arm/arm-elf.exp: Run new testcases.
261 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
262 * ld-arm/ifunc-7.rd: Likewise.
263 * ld-arm/ifunc-7.gd: Likewise.
264 * ld-arm/ifunc-7.dd: Likewise.
265 * ld-arm/ifunc-8.s: Likewise.
266 * ld-arm/ifunc-8.rd: Likewise.
267 * ld-arm/ifunc-8.gd: Likewise.
268 * ld-arm/ifunc-8.dd: Likewise.
269
efd321f9
AM
2702015-01-01 Alan Modra <amodra@gmail.com>
271
272 * ldver.c (ldversion): Just print current year.
273
b90efa5b 2742015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 275
b90efa5b 276 Update year range in copyright notice of all files.
ca0694ad 277
b90efa5b 278For older changes see ChangeLog-2014
252b5132 279\f
b90efa5b 280Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
281
282Copying and distribution of this file, with or without modification,
283are permitted in any medium without royalty provided the copyright
284notice and this notice are preserved.
285
252b5132
RH
286Local Variables:
287mode: change-log
288left-margin: 8
289fill-column: 74
290version-control: never
291End: