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