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