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