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