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