Commit | Line | Data |
---|---|---|
a921b5bd JW |
1 | 2015-06-01 Jiong Wang <jiong.wang@arm.com> |
2 | ||
3 | * reloc.c (BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15): New entry. | |
4 | * bfd-in2.h: Regenerate. | |
5 | * libbfd.h: Regenerate. | |
6 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
7 | BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15. | |
8 | ||
2f0c68f2 CM |
9 | 2015-05-28 Catherine Moore <clm@codesourcery.com> |
10 | Bernd Schmidt <bernds@codesourcery.com> | |
11 | Paul Brook <paul@codesourcery.com> | |
12 | ||
13 | bfd/ | |
14 | * bfd-in2.h: Regenerated. | |
15 | * elf-bfd.h (DWARF2_EH_HDR, COMPACT_EH_HDR): Define. | |
16 | (COMPACT_EH_CANT_UNWIND_OPCODE): Define. | |
17 | (dwarf_eh_frame_hdr_info): Move dwarf-specific fields from | |
18 | eh_frame_hdr_info. | |
19 | (compact_eh_frame_hdr_info): Declare. | |
20 | (eh_frame_hdr_info): Redeclare with union for dwarf-specific | |
21 | fields and compact-eh fields. | |
22 | (elf_backend_data): Add cant_unwind_opcode and compact_eh_encoding. | |
23 | (bfd_elf_section_data): Add eh_frame_entry_field. | |
24 | (elf_section_eh_frame_entry): Define. | |
25 | (bfd_elf_parse_eh_frame_entries): Declare. | |
26 | (_bfd_elf_parse_eh_frame_entry): Declare. | |
27 | (_bfd_elf_end_eh_frame_parsing): Declare. | |
28 | (_bfd_elf_write_section_eh_frame_entry): Declare. | |
29 | (_bfd_elf_eh_frame_entry_present): Declare. | |
30 | (_bfd_elf_section_for_symbol): Declare. | |
31 | * elf-eh-frame.c (bfd_elf_discard_eh_frame_entry): New function. | |
32 | (bfd_elf_record_eh_frame_entry): New function. | |
33 | (_bfd_elf_parse_eh_frame_entry): New function. | |
34 | (_bfd_elf_parse_eh_frame): Update hdr_info field references. | |
35 | (cmp_eh_frame_hdr): New function. | |
36 | (add_eh_frame_hdr_terminator): New function. | |
37 | (_bfd_elf_end_eh_frame_parsing): New function. | |
38 | (find_merged_cie): Update hdr_info field references. | |
39 | (_bfd_elf_discard_section_eh_frame): Likewise. | |
40 | (_bfd_elf_discard_section_eh_frame_hdr): Add Compact EH support. | |
41 | (_bfd_elf_eh_frame_entry_present): New function. | |
42 | (_bfd_elf_maybe_strip_eh_frame_hdr): Add Compact EH support. | |
43 | (_bfd_elf_write_section_eh_frame_entry): New function. | |
44 | (_bfd_elf_write_section_eh_frame): Update hdr_info field references. | |
45 | (_bfd_elf_fixup_eh_frame_hdr): New function. | |
46 | (write_compact_eh_frame_hdr): New function. | |
47 | (write_dwarf_eh_frame_hdr): New function. | |
48 | (_bfd_elf_write_section_eh_frame_hdr): Add Compact EH support. | |
49 | * elflink.c (_bfd_elf_section_for_symbol): New function. | |
50 | (elf_section_ignore_discarded_relocs): Add Compact EH support. | |
51 | (elf_link_input_bfd): Likewise. | |
52 | (bfd_elf_final_link): Likewise. | |
53 | (_bfd_elf_gc_mark): Likewise. | |
54 | (bfd_elf_parse_eh_frame_entries): New function. | |
55 | (bfd_elf_gc_sections): Add Compact EH support. | |
56 | (bfd_elf_discard_info): Likewise. | |
57 | * elfxx-mips.c: Include dwarf2.h. | |
58 | (_bfd_mips_elf_compact_eh_encoding): New function. | |
59 | (_bfd_mips_elf_cant_unwind_opcode): New function. | |
60 | * elfxx-mips.h (_bfd_mips_elf_compact_eh_encoding): Declare. | |
61 | (_bfd_mips_elf_cant_unwind_opcode): Declare. | |
62 | (elf_backend_compact_eh_encoding): Define. | |
63 | (elf_backend_cant_unwind_opcode): Define. | |
64 | * elfxx-target.h (elf_backend_compact_eh_encoding): Provide default. | |
65 | (elf_backend_cant_unwind_opcode): Provide default. | |
66 | (elf_backend_data elfNN_bed): Add elf_backend_compact_eh_encoding and | |
67 | elf_backend_cant_unwind_opcode. | |
68 | * section.c (SEC_INFO_TYPE_EH_FRAME_ENTRY): Add definition. | |
69 | ||
8ded2ddc L |
70 | 2015-05-27 H.J. Lu <hongjiu.lu@intel.com> |
71 | ||
72 | PR binutils/18458 | |
73 | * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section | |
74 | for now binding only if pointer equality isn't needed. | |
75 | (elf_i386_allocate_dynrelocs): Use .plt.got section for now | |
76 | binding only if pointer equality isn't needed. | |
77 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got | |
78 | section for now binding only if pointer equality isn't needed. | |
79 | (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now | |
80 | binding only if pointer equality isn't needed. | |
81 | ||
fca6ae69 L |
82 | 2015-05-26 H.J. Lu <hongjiu.lu@intel.com> |
83 | ||
84 | PR binutils/18437 | |
85 | * elf32-i386.c (elf_i386_get_plt_sym_val): Skip extra relocations | |
86 | in .rel.plt/.rela.plt. | |
87 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise. | |
88 | ||
ce336788 JW |
89 | 2015-05-19 Jiong Wang <jiong.wang@arm.com> |
90 | ||
91 | * elfnn-aarch64.c (aarch64_tls_transition_without_check): Sort | |
92 | relocation case labels alphabetically. | |
93 | (elfNN_aarch64_final_link_relocate): Ditto. | |
94 | (elfNN_aarch64_tls_relax): Ditto. | |
95 | (elfNN_aarch64_relocate_section): Ditto. | |
96 | (elfNN_aarch64_gc_sweep_hook): Ditto. | |
97 | (elfNN_aarch64_check_relocs): Ditto. | |
98 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto. | |
99 | (_bfd_aarch64_elf_resolve_relocation): Ditto. | |
100 | ||
80de0c6d JW |
101 | 2015-05-18 Jiong Wang <jiong.wang@arm.com> |
102 | ||
103 | * elfnn-aarch64.c (elfNN_aarch64_adjust_dynamic_symbol): Rewrite | |
104 | comments. | |
105 | ||
25070364 L |
106 | 2015-05-16 H.J. Lu <hongjiu.lu@intel.com> |
107 | ||
108 | * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section | |
109 | for now binding. | |
110 | (elf_i386_allocate_dynrelocs): Use .plt.got section for now | |
111 | binding. | |
112 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got | |
113 | section for now binding. | |
114 | (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now | |
115 | binding. | |
116 | ||
dab394de L |
117 | 2015-05-14 H.J. Lu <hongjiu.lu@intel.com> |
118 | ||
119 | * bfd.c (bfd_update_compression_header): Also write the zlib | |
120 | header if the SHF_COMPRESSED bit cleared.. | |
121 | (bfd_check_compression_header): Return the uncompressed size. | |
122 | * compress.c (decompress_contents): Don't skip the zlib header. | |
123 | (bfd_compress_section_contents): Properly handle ELFCOMPRESS_ZLIB, | |
124 | which doesn't have the zlib header. | |
125 | (bfd_init_section_decompress_status): Likewise. | |
126 | (bfd_get_full_section_contents): Updated. | |
127 | (bfd_is_section_compressed): Likewise. | |
128 | (bfd_is_section_compressed_with_header): Return the uncompressed | |
129 | size. | |
130 | * elf.c (_bfd_elf_make_section_from_shdr): Updated. | |
131 | * bfd-in2.h: Regenerated. | |
132 | ||
fdc3b1b1 JW |
133 | 2015-05-14 Jiong Wang <jiong.wang@arm.com> |
134 | ||
135 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow | |
136 | check restrictions. | |
137 | ||
e6c9a083 MF |
138 | 2015-05-14 Max Filippov <jcmvbkbc@gmail.com> |
139 | ||
140 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Treat PLT reference | |
141 | as GOT reference when plt.refcount is not positive. | |
142 | ||
a3747075 L |
143 | 2015-05-12 H.J. Lu <hongjiu.lu@intel.com> |
144 | ||
145 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate space | |
146 | for the first .plt entry only if needed. | |
147 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
148 | ||
bf64a951 L |
149 | 2015-05-11 H.J. Lu <hongjiu.lu@intel.com> |
150 | ||
151 | * Makefile.am (ALL_MACHINES): Add cpu-iamcu.lo. | |
152 | (ALL_MACHINES_CFILES): Likewise. | |
153 | * archures.c (bfd_mach_iamcu): New. | |
154 | (bfd_mach_i386_iamcu): Likewise. | |
155 | (bfd_mach_i386_iamcu_intel_syntax): Likewise. | |
156 | (bfd_iamcu_arch): Likewise. | |
157 | (bfd_archures_list): Add &bfd_iamcu_arch. | |
158 | * config.bfd (targ_selvecs): Add iamcu_elf32_vec to | |
159 | i386_elf32_vec. | |
160 | (targ_archs): Add bfd_iamcu_arch if needed. | |
161 | * configure.ac: Support iamcu_elf32_vec. | |
162 | * cpu-iamcu.c: New file. | |
163 | * elf32-i386.c (elf32_iamcu_elf_object_p): New function. | |
164 | Add support for iamcu_elf32_vec and elf32_iamcu_bed. | |
165 | * targets.c (iamcu_elf32_vec): New. | |
166 | (_bfd_target_vector): Add iamcu_elf32_vec. | |
167 | * Makefile.in: Regenerated. | |
168 | * bfd-in2.h: Likewise. | |
169 | * configure: Likewise. | |
170 | ||
22abe556 L |
171 | 2015-05-11 H.J. Lu <hongjiu.lu@intel.com> |
172 | ||
173 | * elfcode.h (elf_object_p): Replace EM_486 with EM_IAMCU. | |
174 | ||
4b71eec6 L |
175 | 2015-05-10 H.J. Lu <hongjiu.lu@intel.com> |
176 | ||
177 | * elf32-i386.c (elf_i386_convert_mov_to_lea): Replace input_bfd | |
178 | and output_bfd with abfd. | |
179 | * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise. | |
180 | ||
9ac47a43 TS |
181 | 2015-05-06 Toni Spets <toni.spets@iki.fi> |
182 | ||
183 | PR ld/18372 | |
184 | * peXXigen.c (rsrc_process_section): Skip discarded resource | |
185 | sections. | |
186 | ||
b633b725 L |
187 | 2015-05-01 H.J. Lu <hongjiu.lu@intel.com> |
188 | ||
189 | * config.bfd: Support i[3-7]86-*-elf*. | |
190 | ||
914082d1 L |
191 | 2015-04-30 H.J. Lu <hongjiu.lu@intel.com> |
192 | ||
193 | * elf32-i386.c (elf_backend_post_process_headers): Undef for | |
194 | Solaris 2. | |
195 | ||
153a2776 NC |
196 | 2015-04-30 Nick Clifton <nickc@redhat.com> |
197 | ||
198 | PR 18317 | |
199 | * elf32-mep.c (MEPREL): Use bfd_elf_generic_reloc instead of | |
200 | mep_reloc. | |
201 | (mep_reloc): Delete unused function. | |
202 | ||
a93d5cb1 NC |
203 | 2015-04-29 Nick Clifton <nickc@redhat.com> |
204 | ||
205 | PR 17099 | |
206 | * coff-i386.c (coff_i386_rtype_to_howto): Allow absolute PCRLONG | |
207 | relocs. | |
208 | ||
643f7afb AK |
209 | 2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
210 | ||
211 | * elf-s390-common.c (elf_s390_merge_obj_attributes): New function. | |
212 | * elf32-s390.c (elf32_s390_merge_private_bfd_data): Call | |
213 | elf_s390_merge_obj_attributes. | |
214 | * elf64-s390.c (elf64_s390_merge_private_bfd_data): New function. | |
215 | ||
b53b1bed JW |
216 | 2015-04-24 Jiong Wang <jiong.wang@arm.com> |
217 | ||
218 | PR ld/18270 | |
219 | * elfnn-aarch64.c (elfNN_aarch64_size_dynamic): Count local symbol for | |
220 | GOT_NORMAL for both sgot/srelgot section. | |
221 | (elfNN_aarch64_final_link_relocate): Relocate against GOT entry address | |
222 | and generate necessary runtime relocation for GOT entry. | |
223 | ||
69b52ab8 L |
224 | 2015-04-24 H.J. Lu <hongjiu.lu@intel.com> |
225 | ||
226 | PR binutils/18209 | |
227 | * archive.c (_bfd_get_elt_at_filepos): Copy is_linker_input. | |
228 | ||
dcbd20eb JW |
229 | 2015-04-24 Jiong Wang <jiong.wang@arm.com> |
230 | ||
231 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reject | |
232 | PC-relative relocation for external symbol. | |
233 | ||
de13ef81 NC |
234 | 2015-04-24 Nick Clifton <nickc@redhat.com> |
235 | ||
236 | PR 18313 | |
237 | * compress.c (decompress_contents): Zero initialse the z_stream | |
238 | structure. | |
239 | ||
b1fa9dd6 NC |
240 | 2015-04-24 Nick Clifton <nickc@redhat.com> |
241 | ||
242 | * elf.c (_bfd_elf_is_local_label_name): Extend test for assembler | |
243 | local labels to include local labels with a numeric suffix and | |
244 | fake symbols. | |
245 | ||
9361e630 L |
246 | 2015-04-24 H.J. Lu <hongjiu.lu@intel.com> |
247 | ||
248 | PR binutils/18316 | |
249 | * section.c (SEC_MEP_VLIW): New. | |
250 | * bfd-in2.h: Regenerated. | |
251 | ||
3e19fb8f L |
252 | 2015-04-23 H.J. Lu <hongjiu.lu@intel.com> |
253 | ||
254 | PR ld/18277 | |
255 | * compress.c (bfd_compress_section_contents): Remove the | |
256 | write_compress argument. | |
257 | (bfd_init_section_compress_status): Updated. | |
258 | (bfd_compress_section): Likewise. | |
259 | * elf.c (_bfd_elf_set_reloc_sh_name): New. | |
260 | (_bfd_elf_init_reloc_shdr): Add delay_st_name_p. Set sh_name | |
261 | to (unsigned int) -1 if delay_st_name_p is TRUE. Use | |
262 | _bfd_elf_set_reloc_sh_name. | |
263 | (elf_fake_sections): Don't rename DWARF debug section for | |
264 | linker output if it will be compressed. Instead, set | |
265 | delay_st_name_p to TRUE and pass it to _bfd_elf_init_reloc_shdr. | |
266 | (assign_section_numbers): Call _bfd_elf_strtab_addref only if | |
267 | sh_name != (unsigned int) -1. Don't finalize nor assign | |
268 | shstrtab section here. Delay setting output section names to | |
269 | _bfd_elf_write_object_contents. | |
270 | (_bfd_elf_compute_section_file_positions): Update comments on | |
271 | sh_offset for shstrtab section. | |
272 | (assign_file_positions_for_non_load_sections): Set sh_offset to | |
273 | -1 for shstrtab section. | |
274 | (assign_file_positions_except_relocs): Likewise. | |
275 | (_bfd_elf_assign_file_positions_for_non_load): Set up sh_name | |
276 | when compressing DWARF debug sections. Place shstrtab section | |
277 | after DWARF debug sections have been compressed. | |
278 | (_bfd_elf_write_object_contents): Setting sh_name for output | |
279 | sections. | |
280 | ||
f6fe1ccd L |
281 | 2015-04-23 H.J. Lu <hongjiu.lu@intel.com> |
282 | ||
283 | PR binutils/18209 | |
284 | * bfd.c (bfd): Add is_linker_input. | |
285 | * elf.c (convert_debug_to_zdebug): New. | |
286 | (convert_zdebug_to_debug): Likewise. | |
287 | (_bfd_elf_make_section_from_shdr): Don't convert .debug_* to | |
288 | .zdebug_* here. Use convert_zdebug_to_debug. Set SEC_ELF_RENAME. | |
289 | (_bfd_elf_init_reloc_shdr): Pass a pointer to section name | |
290 | instead of a pointer to section. | |
291 | (elf_fake_sections): Rename the section name if SEC_ELF_RENAME | |
292 | is set. | |
293 | * section.c (SEC_ELF_RENAME): New. | |
294 | * bfd-in2.h: Regenerated. | |
295 | ||
a27e685f AM |
296 | 2015-04-23 Alan Modra <amodra@gmail.com> |
297 | ||
298 | * elf64-ppc.c (TOC_BASE_ALIGN): Define. | |
299 | (ppc64_elf_next_toc_section): Align multi-got toc base. | |
300 | (ppc64_elf_set_toc): Likewise initial toc base and .TOC. symbol. | |
2f0c68f2 CM |
301 | ======= |
302 | 2015-05-04 Catherine Moore <clm@codesourcery.com> | |
303 | ||
304 | * elfxx-target.h: Add missing #endif. | |
305 | ||
306 | 2015-04-22 Catherine Moore <clm@codesourcery.com> | |
307 | ||
308 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_entry): Don't write | |
309 | the .eh_frame_entry section if the corresponding text section is marked | |
310 | with SEC_EXCLUDE. | |
311 | ||
312 | 2015-04-22 Catherine Moore <clm@codesourcery.com> | |
313 | Bernd Schmidt <bernds@codesourcery.com> | |
314 | Paul Brook <paul@codesourcery.com> | |
315 | ||
316 | * bfd-in2.h (SEC_INFO_TYPE_EH_FRAME_ENTRY): Define. | |
317 | * elf-bfd.h (DWARF2_EH_HDR, COMPACT_EH_HDR): Define. | |
318 | (COMPACT_EH_CANT_UNWIND_OPCODE): Define. | |
319 | (dwarf_eh_frame_hdr_info): New struct. | |
320 | (compact_eh_frame_hdr_info): New struct. | |
321 | (eh_frame_hdr_info): Separate dwarf and compact fields. | |
322 | (elf_backend_data): Add compact_eh_encoding and cant_unwind_opcode | |
323 | fields. | |
324 | (bfd_elf_section_data): Add eh_frame_entry field. | |
325 | (elf_section_eh_frame_entry): Define. | |
326 | (bfd_elf_parse_eh_frame_entries): Declare. | |
327 | (_bfd_elf_parse_eh_frame_entry): Declare. | |
328 | (_bfd_elf_end_eh_frame_parsing): Declare. | |
329 | (_bfd_elf_write_section_eh_frame_entry): Declare. | |
330 | (_bfd_elf_fixup_eh_frame_hdr): Declare. | |
331 | (_bfd_elf_eh_frame_entry_present): Declare. | |
332 | (_bfd_elf_section_for_symbol): Declare. | |
333 | * elf-eh-frame.c (bfd_elf_discard_eh_frame_entry): New function. | |
334 | (bfd_elf_record_eh_frame_entry): New function. | |
335 | (_bfd_elf_parse_eh_frame_entry): New function. | |
336 | (_bfd_elf_parse_eh_frame): Update hdr_info field references. | |
337 | (cmp_eh_frame_hdr): New function. | |
338 | (add_eh_frame_hdr_terminator): New function. | |
339 | (_bfd_elf_end_eh_frame_parsing): New function. | |
340 | (find_merged_cie): Update hdr_info field references. | |
341 | (_bfd_elf_discard_section_eh_frame): Likewise. | |
342 | (_bfd_elf_discard_section_eh_frame_hdr): Likewise. | |
343 | Add Compact EH support. | |
344 | (_bfd_elf_eh_frame_entry_present): New function. | |
345 | (_bfd_elf_maybe_strip_eh_frame_hdr): Add Compact EH support. | |
346 | (_bfd_elf_write_section_eh_frame_entry): New function. | |
347 | (_bfd_elf_write_section_eh_frame): Update hdr_info field references. | |
348 | (_bfd_elf_write_section_eh_frame): Likewise. | |
349 | (_bfd_elf_fixup_eh_frame_hdr): New function. | |
350 | (write_compact_eh_frame_hdr): New function. | |
351 | (_bfd_elf_write_section_eh_frame_hdr): Compact EH support. Update | |
352 | hdr_info field references. | |
353 | * elflink.c (_bfd_elf_section_for_symbol): New function. | |
354 | (elf_section_ignore_discarded_relocs, elf_link_input_bfd): | |
355 | Handle SEC_INFO_TYPE_EH_FRAME_ENTRY. | |
356 | (bfd_elf_final_link): Call _bfd_elf_fixup_eh_frame_hdr. | |
357 | (_bfd_elf_gc_mark): Support Compact EH. | |
358 | (bfd_elf_parse_eh_frame_entries): New function. | |
359 | (bfd_elf_gc_sections): Support Compact EH. | |
360 | (bfd_elf_discard_info): Likewise. | |
361 | * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding): New function. | |
362 | (_bfd_mips_elf_cant_unwind_opcode): New function. | |
363 | * elfxx-mips.h (_bfd_mips_elf_compact_eh_encoding): Declare. | |
364 | (_bfd_mips_elf_cant_unwind_opcode): Declare. | |
365 | (elf_backend_compact_eh_encoding): Define. | |
366 | (elf_backend_cant_unwind_opcode): Define. | |
367 | * elfxx-target.h (elf_backend_compact_eh_encoding): | |
368 | Provide default definition. | |
369 | (elf_backend_cant_unwind_opcode): Provide default definition. | |
370 | * section.c (SEC_INFO_TYPE_EH_FRAME_ENTRY): Define. | |
371 | >>>>>>> 2015-05-04 Catherine Moore <clm@codesourcery.com> | |
a27e685f | 372 | |
d5597ebc L |
373 | 2015-04-22 H.J. Lu <hongjiu.lu@intel.com> |
374 | ||
375 | PR ld/18289 | |
376 | * elf32-i386.c (elf_i386_link_hash_entry): Add gotoff_ref. | |
377 | (elf_i386_link_hash_newfunc): Initialize gotoff_ref to 0. | |
378 | (elf_i386_create_dynamic_sections): Always allow copy relocs for | |
379 | building executables. | |
380 | (elf_i386_copy_indirect_symbol): Also copy gotoff_ref. | |
381 | (elf_i386_check_relocs): Set gotoff_ref for R_386_GOTOFF. | |
382 | (elf_i386_adjust_dynamic_symbol): Also allocate copy relocs for | |
383 | PIE and R_386_GOTOFF. | |
384 | (elf_i386_relocate_section): Allow R_386_GOTOFF in executable. | |
385 | ||
e9702963 L |
386 | 2015-04-20 H.J. Lu <hongjiu.lu@intel.com> |
387 | ||
388 | * elf.c (assign_section_numbers): Always set up sh_name. | |
389 | ||
e06efbf1 L |
390 | 2015-04-20 H.J. Lu <hongjiu.lu@intel.com> |
391 | ||
392 | * elf.c (assign_file_positions_for_non_load_sections): Iterate | |
393 | sections by pointer. | |
394 | (_bfd_elf_assign_file_positions_for_non_load): Likewise. | |
395 | ||
0ce398f1 L |
396 | 2015-04-14 H.J. Lu <hongjiu.lu@intel.com> |
397 | ||
398 | * bfd-in.h (compressed_debug_section_type): New. | |
399 | * compress.c (bfd_compress_section_contents): Add an argument | |
400 | for linker write compression and always generate .zdebug_* | |
401 | section when linking. | |
402 | (bfd_init_section_compress_status): Pass FALSE to | |
403 | bfd_compress_section_contents. | |
404 | (bfd_compress_section): New function. | |
405 | * elf.c (elf_fake_sections): For linking, set SEC_ELF_COMPRESS | |
406 | on DWARF debug sections if COMPRESS_DEBUG is set and rename | |
407 | section if COMPRESS_DEBUG_GABI_ZLIB isn't set. | |
408 | (assign_file_positions_for_non_load_sections): Set sh_offset | |
409 | to -1 if SEC_ELF_COMPRESS is set. | |
410 | (assign_file_positions_except_relocs): Likwise. | |
411 | (_bfd_elf_assign_file_positions_for_relocs): Renamed to ... | |
412 | (_bfd_elf_assign_file_positions_for_non_load): This. Change | |
413 | return time to bfd_boolean. Compress the section if | |
414 | SEC_ELF_COMPRESS is set. | |
415 | (_bfd_elf_write_object_contents): Updated. | |
416 | (_bfd_elf_set_section_contents): Write section contents to | |
417 | the buffer if SEC_ELF_COMPRESS is set. | |
418 | * merge.c: Include "elf-bfd.h". | |
419 | (sec_merge_emit): Add arguments for contents and offset. Write | |
420 | to contents with offset if contents isn't NULL. | |
421 | (_bfd_write_merged_section): Write section contents to the | |
422 | buffer if SEC_ELF_COMPRESS is set. Pass contents and | |
423 | output_offset to sec_merge_emit. | |
424 | * elflink.c (bfd_elf_final_link): Allocate the buffer for | |
425 | output section contents if SEC_ELF_COMPRESS is set. | |
426 | * section.c (SEC_ELF_COMPRESS): New. | |
427 | * bfd-in2.h: Regenerated. | |
428 | ||
95b57ade AM |
429 | 2015-04-15 Alan Modra <amodra@gmail.com> |
430 | ||
431 | * elf32-rl78.c (rl78_elf_relocate_section): Typo fix. | |
432 | ||
6ff71e76 NC |
433 | 2015-04-14 Nick Clifton <nickc@redhat.com> |
434 | ||
435 | * elf32-rl78.c (RL78_OP_REL): New macro. | |
436 | (rl78_elf_howto_table): Use it for complex relocs. | |
437 | (get_symbol_value): Handle the cases when the info or status | |
438 | arguments are NULL. | |
439 | (get_romstart): Cache the status returned by get_symbol_value. | |
440 | (get_ramstart): Likewise. | |
441 | (RL78_STACK_PUSH): Generate an error message if the stack | |
442 | overflows. | |
443 | (RL78_STACK_POP): Likewise for underflows. | |
444 | (rl78_compute_complex_reloc): New function. Contains the basic | |
445 | processing code for all RL78 complex relocs. | |
446 | (rl78_special_reloc): New function. Provides special reloc | |
447 | handling for complex relocs. | |
448 | (rl78_elf_relocate_section): Use rl78_compute_complex_reloc. | |
449 | (rl78_offset_for_reloc): Likewise. | |
450 | ||
889c2a67 L |
451 | 2015-04-14 H.J. Lu <hongjiu.lu@intel.com> |
452 | ||
453 | PR ld/pr17709 | |
454 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Check | |
455 | info->extern_protected_data when warning copy relocs against | |
456 | protected symbols. | |
457 | (_bfd_elf_symbol_refs_local_p): Check info->extern_protected_data | |
458 | when checking protected non-function symbols. | |
459 | ||
97de3545 JB |
460 | 2015-04-13 John Baldwin <jhb@FreeBSD.org> |
461 | ||
462 | * elf.c (elfcore_grok_note): Recognize NT_X86_XSTATE on | |
463 | FreeBSD. | |
464 | (elfcore_write_xstatereg): Use correct note name on FreeBSD. | |
465 | ||
f0bf6bfd L |
466 | 2015-04-13 H.J. Lu <hongjiu.lu@intel.com> |
467 | ||
468 | PR ld/18250 | |
469 | * elflink.c (elf_link_is_defined_archive_symbol): Return FALSE | |
470 | if the object has been claimed by plugin. | |
471 | ||
e3c0e327 L |
472 | 2015-04-11 H.J. Lu <hongjiu.lu@intel.com> |
473 | ||
474 | * elf32-i386.c (elf_i386_relocate_section): Replace SYMBOLIC_BIND | |
475 | with SYMBOL_REFERENCES_LOCAL when checking R_386_GOTOFF against | |
476 | protected data symbol when building shared library. | |
477 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check | |
478 | R_X86_64_GOTOFF64 against undefined symbol and replace | |
479 | SYMBOLIC_BIND with SYMBOL_REFERENCES_LOCAL when checking | |
480 | R_X86_64_GOTOFF64 against protected data symbol when building | |
481 | shared library. | |
482 | ||
3d949995 L |
483 | 2015-04-10 H.J. Lu <hongjiu.lu@intel.com> |
484 | ||
485 | PR ld/pr17709 | |
486 | * elf32-i386.c (elf_i386_relocate_section): Also check R_386_GOTOFF | |
487 | against protected data symbol when building shared library. | |
488 | * elf64-x86-64.c (elf_x86_64_relocate_section): Also check | |
489 | R_X86_64_GOTOFF64 against protected data symbol when building | |
490 | shared library. | |
491 | ||
f7483970 L |
492 | 2015-04-10 H.J. Lu <hongjiu.lu@intel.com> |
493 | ||
494 | PR ld/pr15228 | |
495 | PR ld/pr17709 | |
496 | * elf-bfd.h (elf_backend_data): Add extern_protected_data. | |
497 | * elf32-i386.c (elf_backend_extern_protected_data): New. | |
498 | Defined to 1. | |
499 | * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise. | |
500 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on | |
501 | copy relocs against protected symbols if extern_protected_data | |
502 | is true. | |
503 | (_bfd_elf_symbol_refs_local_p): Don't return true on protected | |
504 | non-function symbols if extern_protected_data is true. | |
505 | * elfxx-target.h (elf_backend_extern_protected_data): New. | |
506 | Default to 0. | |
507 | (elfNN_bed): Initialize extern_protected_data with | |
508 | elf_backend_extern_protected_data. | |
509 | ||
030aeb75 L |
510 | 2015-04-10 H.J. Lu <hongjiu.lu@intel.com> |
511 | ||
512 | * compress.c (bfd_compress_section_contents): Replace bfd_malloc | |
513 | and free with bfd_alloc and bfd_release on compressed buffer. | |
514 | Release buffer if compressed section isn't smaller. | |
515 | ||
d07a1b05 AM |
516 | 2015-04-10 Alan Modra <amodra@gmail.com> |
517 | ||
518 | PR ld/18222 | |
519 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't report an error | |
520 | on adding a protected visibility variable to .dynbss. | |
521 | ||
8d2ea2a8 AM |
522 | 2015-04-10 Alan Modra <amodra@gmail.com> |
523 | ||
524 | Revert 2015-03-05 H.J. Lu <hongjiu.lu@intel.com> | |
525 | PR ld/pr15228 | |
526 | PR ld/pr17709 | |
527 | * elf-bfd.h (elf_backend_data): Delete extern_protected_data. | |
528 | * elf32-i386.c (elf_backend_extern_protected_data): Delete. | |
529 | * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise. | |
530 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Remove | |
531 | extern_protected_data test. | |
532 | (_bfd_elf_symbol_refs_local_p): Likewise. | |
533 | * elfxx-target.h (elf_backend_extern_protected_data): Delete. | |
534 | (elfNN_bed): Delete elf_backend_extern_protected_data init. | |
535 | ||
18ece1de L |
536 | 2015-04-09 H.J. Lu <hongjiu.lu@intel.com> |
537 | ||
538 | * compress.c (bfd_compress_section_contents): Update comments. | |
539 | (bfd_init_section_decompress_status): Likewise. | |
540 | (bfd_init_section_compress_status): Likewise. | |
541 | ||
cd6faa73 L |
542 | 2015-04-09 H.J. Lu <hongjiu.lu@intel.com> |
543 | ||
544 | * elfxx-target.h (TARGET_BIG_SYM): Add BFD_COMPRESS_GABI to | |
545 | object_flags. | |
546 | (TARGET_LITTLE_SYM): Likewise. | |
547 | ||
19424843 MF |
548 | 2015-04-09 Max Filippov <jcmvbkbc@gmail.com> |
549 | ||
550 | * elf32-xtensa.c (splay-tree.h): include header. | |
551 | (text_action_struct): drop next pointer. | |
552 | (text_action_list_struct): drop head pointer, add count and | |
553 | tree fields. | |
554 | (find_fill_action): instead of linear search in text_action_list | |
555 | search in the tree. | |
556 | (text_action_compare, action_first, action_next): new functions. | |
557 | (text_action_add, text_action_add_literal): instead of linear | |
558 | search and insertion insert new node into the tree. | |
559 | (removed_by_actions): pass additional parameter: action_list, | |
560 | use it to traverse the tree. | |
561 | (offset_with_removed_text): pass additional action_list parameter | |
562 | to removed_by_actions. | |
563 | (map_action_fn_context): new typedef. | |
564 | (map_action_fn_context_struct): new structure. | |
565 | (map_action_fn): new function. | |
566 | (map_removal_by_action): use splay_tree_foreach to build map. | |
567 | (find_insn_action): replace linear search in text_action_list | |
568 | with series of splay_tree_lookups. | |
569 | (print_action, print_action_list_fn): new functions. | |
570 | (print_action_list): use splay_tree_foreach. | |
571 | (init_xtensa_relax_info): drop action_list.head initialization. | |
572 | Initialize the tree. | |
573 | (compute_text_actions): use non-zero action_list_count instead of | |
574 | non-NULL action list. | |
575 | (xlate_map_context): new typedef. | |
576 | (xlate_map_context_struct): new structure. | |
577 | (xlate_map_fn): new function. | |
578 | (build_xlate_map): use splay_tree_foreach to build map. | |
579 | (action_remove_bytes_fn): new function. | |
580 | (relax_section): use zero action_list_count instead of NULL | |
581 | action list. Use splay_tree_foreach to count final section size. | |
582 | Drop unused variable 'removed'. | |
583 | ||
584 | 2015-04-09 Max Filippov <jcmvbkbc@gmail.com> | |
585 | ||
586 | * elf32-xtensa.c (removed_literal_map_entry): new typedef. | |
587 | (removed_literal_map_entry_struct): new structure. | |
588 | (removed_literal_list_struct): add new fields: n_map and map. | |
589 | (map_removed_literal, removed_literal_compare): new functions. | |
590 | (find_removed_literal): build index array for literals ordered | |
591 | by VMA, use binary search to find removed literal. | |
592 | ||
593 | 2015-04-09 Max Filippov <jcmvbkbc@gmail.com> | |
594 | ||
595 | * elf32-xtensa.c (removal_by_action_entry_struct, | |
596 | removal_by_action_map_struct): new structures. | |
597 | (removal_by_action_entry, removal_by_action_map): new typedefs. | |
598 | (text_action_list_struct): add new field: map. | |
599 | (map_removal_by_action, removed_by_actions_map, | |
600 | offset_with_removed_text_map): new functions. | |
601 | (relax_section): replace offset_with_removed_text with | |
602 | offset_with_removed_text_map. | |
603 | (translate_reloc, relax_property_section, relax_section_symbols): | |
604 | replace removed_by_actions with removed_by_actions_map. | |
605 | ||
606 | 2015-04-09 Max Filippov <jcmvbkbc@gmail.com> | |
607 | ||
608 | * elf32-xtensa.c (reloc_range_list, reloc_range_list_entry, | |
609 | reloc_range): new typedef. | |
610 | (reloc_range_list_struct, reloc_range_list_entry_struct, | |
611 | reloc_range_struct): new structures. | |
612 | (reloc_range_compare, build_reloc_ranges, | |
613 | reloc_range_list_append, reloc_range_list_remove, | |
614 | reloc_range_list_update_range, free_reloc_range_list): new | |
615 | functions. | |
616 | (compute_text_actions): precompute relocation opcodes before the | |
617 | loop. Add relevant_relocs variable, initialize it before the | |
618 | loop, pass it to the check_section_ebb_pcrels_fit. | |
619 | (check_section_ebb_pcrels_fit): add new parameter: | |
620 | relevant_relocs. Update address range in the relevant_relocs if | |
621 | it's non-NULL and iterate only over relevant relocations. | |
622 | ||
3525236c NC |
623 | 2015-04-09 Nick Clifton <nickc@redhat.com> |
624 | ||
625 | * elf32-rx.c (describe_flags): Report the settings of the string | |
626 | insn using bits. | |
627 | (rx_elf_merge_private_bfd_data): Handle merging of the string insn | |
628 | using bits. | |
629 | ||
51509926 L |
630 | 2015-04-08 H.J. Lu <hongjiu.lu@intel.com> |
631 | ||
632 | * compress.c (bfd_compress_section_contents): Work around a GCC | |
633 | uninitialized warning bug fixed in GCC 4.7. | |
634 | ||
151411f8 L |
635 | 2015-04-08 H.J. Lu <hongjiu.lu@intel.com> |
636 | ||
637 | * archive.c (_bfd_get_elt_at_filepos): Also copy BFD_COMPRESS_GABI | |
638 | bit. | |
639 | * bfd.c (bfd::flags): Increase size to 18 bits. | |
640 | (BFD_COMPRESS_GABI): New. | |
641 | (BFD_FLAGS_SAVED): Add BFD_COMPRESS_GABI. | |
642 | (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise. | |
643 | (bfd_update_compression_header): New fuction. | |
644 | (bfd_check_compression_header): Likewise. | |
645 | (bfd_get_compression_header_size): Likewise. | |
646 | (bfd_is_section_compressed_with_header): Likewise. | |
647 | * compress.c (MAX_COMPRESSION_HEADER_SIZE): New. | |
648 | (bfd_compress_section_contents): Return the uncompressed size if | |
649 | the full section contents is compressed successfully. Support | |
650 | converting from/to .zdebug* sections. | |
651 | (bfd_get_full_section_contents): Call | |
652 | bfd_get_compression_header_size to get compression header size. | |
653 | (bfd_is_section_compressed): Renamed to ... | |
654 | (bfd_is_section_compressed_with_header): This. Add a pointer | |
655 | argument to return compression header size. | |
656 | (bfd_is_section_compressed): Use it. | |
657 | (bfd_init_section_decompress_status): Call | |
658 | bfd_get_compression_header_size to get compression header size. | |
659 | Return FALSE if uncompressed section size is 0. | |
660 | * elf.c (_bfd_elf_make_section_from_shdr): Support converting | |
661 | from/to .zdebug* sections. | |
662 | * bfd-in2.h: Regenerated. | |
663 | ||
87070c08 AM |
664 | 2015-04-07 Alan Modra <amodra@gmail.com> |
665 | ||
666 | * elf.c (_bfd_elf_get_reloc_section): Allow for .got.plt being | |
667 | mapped to output .got section. | |
668 | ||
d3e454b9 AM |
669 | 2015-04-07 Alan Modra <amodra@gmail.com> |
670 | ||
671 | * elf32-ppc.c (struct ppc_elf_link_hash_entry): Add has_addr16_ha | |
672 | and has_addr16_lo. Make has_sda_refs a bitfield. | |
673 | (ppc_elf_check_relocs): Set new flags. | |
674 | (ppc_elf_link_hash_table_create): Update default_params. | |
675 | (ppc_elf_adjust_dynamic_symbol): Clear protected_def in cases | |
676 | where we won't be making .dynbss entries or editing code. Set | |
677 | params->pic_fixup when we'll edit code for protected var access. | |
678 | (allocate_dynrelocs): Allocate got entry for edited code and | |
679 | discard dyn_relocs. | |
680 | (struct ppc_elf_relax_info): Add picfixup_size. | |
681 | (ppc_elf_relax_section): Rename struct one_fixup to struct | |
682 | one_branch_fixup. Rename fixups to branch_fixups. Size space for | |
683 | pic fixups. | |
684 | (ppc_elf_relocate_section): Edit non-PIC accessing protected | |
685 | visibility variables to PIC. Don't emit dyn_relocs for code | |
686 | we've edited. | |
687 | * elf32-ppc.h (struct ppc_elf_params): Add pic_fixup. | |
688 | ||
ffa54770 NC |
689 | 2015-04-07 Nick Clifton <nickc@redhat.com> |
690 | ||
691 | * elf.c (_bfd_elf_is_local_label_name): Treat assembler generated | |
692 | local labels as local. | |
693 | ||
4aa90cc0 L |
694 | 2015-04-06 H.J. Lu <hongjiu.lu@intel.com> |
695 | ||
696 | * compress.c (get_uncompressed_size): Removed. | |
697 | (bfd_compress_section_contents): Use bfd_putb64 to write | |
698 | uncompressed section size. | |
699 | (bfd_init_section_decompress_status): Replace | |
700 | get_uncompressed_size with bfd_getb64. | |
701 | ||
68f5ff89 L |
702 | 2015-04-04 H.J. Lu <hongjiu.lu@intel.com> |
703 | ||
704 | * elf.c (_bfd_elf_init_private_section_data): Also preserve the | |
705 | SHF_COMPRESSED bit if not decompress. | |
706 | ||
8bed4e0f L |
707 | 2015-04-04 H.J. Lu <hongjiu.lu@intel.com> |
708 | ||
709 | * compress.c (get_uncompressed_size): New. Extracted from ... | |
710 | (bfd_init_section_decompress_status): This. Use it. | |
711 | ||
15c7659f AT |
712 | 2015-04-02 Andrew Turner <andrew@freebsd.org> |
713 | ||
714 | * config.bfd: Add aarch64-*-freebsd* target triple. | |
715 | ||
39f3de7c L |
716 | 2015-04-02 H.J. Lu <hongjiu.lu@intel.com> |
717 | ||
718 | * configure: Regenerated. | |
719 | ||
4106101c MS |
720 | 2015-04-01 Tejas Belagod <tejas.belagod@arm.com> |
721 | Marcus Shawcroft <marcus.shawcroft@arm.com> | |
722 | Jiong Wang <jiong.wang@arm.com> | |
723 | ||
724 | * bfd-in.h (bfd_elf64_aarch64_set_options) | |
725 | (bfd_elf32_aarch64_set_options): Add parameter. | |
726 | * bfd-in2.h: Regenerated. | |
727 | * elfnn-aarch64.c (aarch64_erratum_843419_stub) | |
728 | (_bfd_aarch64_adrp_p, _bfd_aarch64_erratum_843419_sequence_p) | |
729 | (_bfd_aarch64_erratum_843419_stub_name) | |
730 | (_bfd_aarch64_erratum_843419_fixup) | |
731 | (_bfd_aarch64_erratum_843419_scan) | |
732 | (_bfd_aarch64_erratum_843419_branch_to_stub) | |
733 | (_bfd_aarch64_erratum_843419_p): Define. | |
734 | (enum elf_aarch64_stub_type): Define | |
735 | aarch64_stub_erratum_843419_veneer. | |
736 | (struct elf_aarch64_stub_hash_entry): Define adrp_offset. | |
737 | (struct elf_aarch64_link_hash_table): Define fix_erratum_843419 | |
738 | and fix_erratum_843419_adr. | |
739 | (stub_hash_newfunc): Initialize adrp_offset; | |
740 | (_bfd_aarch64_add_stub_entry_after): Define. | |
741 | (aarch64_map_one_stub, aarch64_build_one_stub) | |
742 | (aarch64_size_one_stub): Handle | |
743 | aarch64_stub_erratum_843419_veneer. | |
744 | (_bfd_aarch64_resize_stubs): Round stub section size. | |
745 | (elfNN_aarch64_size_stubs): Add scan for 843419. | |
746 | (bfd_elfNN_aarch64_set_options): Add parameter. Initialize | |
747 | fix_erratum_843419 and fix_erratum_843419_adr. | |
748 | (struct erratum_835769_branch_to_stub_data): Add info. | |
749 | (elfNN_aarch64_write_section): Initialise info. Handle 843419. | |
750 | (elfNN_aarch64_size_dynamic_sections): Handle 843419. | |
751 | * elfxx-aarch64.c (_bfd_aarch64_decode_adrp_imm) | |
752 | (_bfd_aarch64_sign_extend): Define. | |
753 | (reencode_adr_imm): Remove static. Rename to: | |
754 | (_bfd_aarch64_reencode_adr_imm): Define. | |
755 | (_bfd_aarch64_elf_put_addend): Call _bfd_aarch64_reencode_adr_imm. | |
756 | * elfxx-aarch64.h (AARCH64_ADR_OP, AARCH64_ADRP_OP) | |
757 | (AARCH64_ADRP_OP_MASK, _bfd_aarch64_sign_extend) | |
758 | (_bfd_aarch64_decode_adrp_imm, _bfd_aarch64_reencode_adr_imm): | |
759 | Define. | |
760 | ||
afa59b79 L |
761 | 2015-04-01 H.J. Lu <hongjiu.lu@intel.com> |
762 | ||
763 | * configure: Regenerated. | |
764 | ||
6036f486 ES |
765 | 2015-03-31 Ed Schouten <ed@nuxi.nl> |
766 | ||
767 | * config.bfd (targ_defvec): Set to x86_64_elf64_cloudabi_vec | |
768 | for x86_64-*-cloudabi*. | |
769 | * configure.ac: Handle x86_64_elf64_cloudabi_vec. | |
770 | * configure: Regenerated. | |
771 | * elf64-x86-64.c (TARGET_LITTLE_SYM): Support x86_64-*-cloudabi*. | |
772 | (TARGET_LITTLE_NAME): Likewise. | |
773 | (ELF_OSABI): Likewise. | |
774 | (elf64_bed): Likewise. | |
775 | * targets.c (x86_64_elf64_cloudabi_vec): New. | |
776 | (_bfd_target_vector): Add x86_64_elf64_cloudabi_vec. | |
777 | ||
9ae46699 L |
778 | 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> |
779 | ||
780 | * configure.ac: Revert the AM_ZLIB change. | |
781 | * Makefile.in: Regenerated. | |
782 | * aclocal.m4: Likewise. | |
783 | * configure: Likewise. | |
784 | * doc/Makefile.in: Likewise. | |
785 | ||
bd53a53a L |
786 | 2015-03-30 H.J. Lu <hongjiu.lu@intel.com> |
787 | ||
788 | PR ld/18169 | |
789 | * elf-bfd.h (elf_backend_data): Add get_reloc_section. | |
790 | (_bfd_elf_get_reloc_section): New. | |
791 | * elf.c (_bfd_elf_get_reloc_section): Likewise. | |
792 | (assign_section_numbers): Call get_reloc_section to look up the | |
793 | section the relocs apply. | |
794 | * elfxx-target.h (elf_backend_get_reloc_section): Likewise. | |
795 | (elfNN_bed): Initialize get_reloc_section with | |
796 | elf_backend_get_reloc_section. | |
797 | ||
243340ad L |
798 | 2015-03-29 H.J. Lu <hongjiu.lu@intel.com> |
799 | ||
800 | * Makefile.am (ZLIB): New. | |
801 | (ZLIBINC): Likewise. | |
802 | (AM_CFLAGS): Add $(ZLIBINC). | |
803 | (libbfd_la_LIBADD): Add $(ZLIB). | |
804 | * compress.c: Don't check HAVE_ZLIB_H to include <zlib.h>. | |
805 | (decompress_contents): Don't check HAVE_ZLIB_H. | |
243340ad L |
806 | (bfd_compress_section_contents): Likewise. |
807 | (bfd_get_full_section_contents): Likewise. | |
808 | (bfd_init_section_decompress_status): Likewise. | |
809 | (bfd_init_section_compress_status): Likewise. | |
b51724e8 | 810 | * configure.ac (AM_ZLIB): Removed. |
243340ad L |
811 | (zlibdir): New. AC_SUBST. |
812 | (zlibinc): Likewise. | |
813 | Add --with-system-zlib. | |
814 | * Makefile.in: Regenerated. | |
815 | * acinclude.m4: Likewise. | |
816 | * config.in: Likewise. | |
817 | * configure: Likewise. | |
818 | * doc/Makefile.in: Likewise. | |
819 | ||
b8417128 AM |
820 | 2015-03-27 Alan Modra <amodra@gmail.com> |
821 | ||
822 | PR ld/15228 | |
823 | PR ld/18167 | |
824 | * elflink.c (elf_merge_st_other): Add "sec" parameter. Don't set | |
825 | protected_def when symbol section is read-only. Adjust all calls. | |
826 | * elf-bfd.h (struct elf_link_hash_entry): Update protected_def comment. | |
827 | ||
93ca8569 TB |
828 | 2015-03-26 Tejas Belagod <tejas.belagod@arm.com> |
829 | ||
830 | * elfnn-aarch64.c (aarch64_build_one_stub): Replace the call to generic | |
831 | _bfd_final_link_relocate with aarch64_relocate. | |
832 | ||
b19a8f85 L |
833 | 2015-03-26 H.J. Lu <hongjiu.lu@intel.com> |
834 | ||
835 | PR ld/18160 | |
836 | * elflink.c (elf_gc_sweep): Skip if relocation is incompatible. | |
837 | (bfd_elf_gc_sections): Likewise. | |
838 | ||
61865519 MS |
839 | 2015-03-25 Marcus Shawcroft <marcus.shawcroft@arm.com> |
840 | ||
841 | * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Adjust stub section | |
842 | size for initial branch. | |
843 | (elfNN_aarch64_build_stubs): Write initial branch. | |
844 | _bfd_aarch64_decode_(elfNN_aarch64_output_arch_local_syms): Write | |
845 | mapping symbol on initial branch. | |
846 | ||
d9ced15d | 847 | 2015-03-25 Marcus Shawcroft <marcus.shawcroft@arm.com> |
357d1523 MS |
848 | |
849 | * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_scan): | |
850 | Update erratum count. | |
851 | ||
d422d1c4 SKS |
852 | 2015-03-25 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
853 | ||
854 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't break on | |
855 | first matching debug section. | |
856 | ||
8d001214 L |
857 | 2015-03-24 H.J. Lu <hongjiu.lu@intel.com> |
858 | ||
859 | PR gas/18087 | |
860 | * compress.c (bfd_compress_section_contents): Don't write the | |
861 | zlib header and set contents as well as compress_status if | |
862 | compression didn't make the section smaller. | |
863 | (bfd_init_section_compress_status): Don't check compression | |
864 | size here. | |
865 | ||
fc42baf3 NC |
866 | 2015-03-24 Nick Clifton <nickc@redhat.com> |
867 | ||
868 | PR binutils/17512 | |
869 | * coffgen.c (coff_get_normalized_symtab): Fix test for out of | |
870 | range auxillary sections. | |
871 | ||
fc6d53be MS |
872 | 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com> |
873 | ||
874 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor | |
875 | code into: | |
876 | (_bfd_aarch64_get_stub_for_link_section): Define. | |
877 | ||
30068a6d MS |
878 | 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com> |
879 | ||
880 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Adjust | |
881 | update of section_group[].stub_sec. | |
882 | ||
5421cc6e MS |
883 | 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com> |
884 | ||
885 | * elfnn-aarch64.c (struct aarch64_erratum_835769_fix) Remove. | |
886 | (erratum_835769_scan) Drop fix_table_size_p and fixes_p arguments. | |
887 | Delete fixes, fix_table_size and associated code. Call | |
888 | _bfd_aarch64_add_stub_entry_in_group. Rename to... | |
889 | (bfd_aarch64_erratum_835769_scan): Define. | |
890 | (elfNN_aarch64_size_stubs): Delete erratum_835769_fixes, | |
891 | erratum_835769_fix_table_size, i and associated code. Relocate | |
892 | call to _bfd_aarch64_erratum_835769_scan. Delete adhoc stub size | |
893 | correction. Delete construction of stub entry from | |
894 | erratum_835769_fixes array. | |
895 | ||
e572930b MS |
896 | 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com> |
897 | ||
898 | * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Use | |
899 | _bfd_aarch64_add_stub_entry_in_group. | |
900 | ||
8131c122 AM |
901 | 2015-03-24 Alan Modra <amodra@gmail.com> |
902 | ||
903 | * elf64-ppc.c (ppc64_elf_relocate_section): Report overflow to | |
904 | stubs, even those for undefined weak symbols. Otherwise, don't | |
905 | report relocation overflow on branches to undefined strong | |
906 | symbols. Fix memory leak. | |
907 | * elf32-ppc.c (ppc_elf_relocate_section): Don't report relocation | |
908 | overflow on branches to undefined strong symbols. | |
909 | ||
c53ed7cf KS |
910 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
911 | ||
912 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Add | |
913 | missing ';'. | |
914 | ||
94a75bde MS |
915 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
916 | ||
917 | * elfnn-aarch64.c (erratum_835769_scan): Factor stub name | |
918 | construction into... | |
919 | (_bfd_aarch64_erratum_835769_stub_name): Define. | |
920 | ||
13f622ec MS |
921 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
922 | ||
923 | * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Factor out | |
924 | stub resize code into... | |
925 | (bfd_aarch64_resize_stubs): Define. | |
926 | ||
66585675 MS |
927 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
928 | ||
929 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor stub | |
930 | creation code into... | |
931 | (bfd_aarch64_create_stub_section): Define. | |
932 | ||
ef857521 MS |
933 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
934 | ||
935 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Rename | |
936 | from elf_aarch64_create_or_find_stub_sec. | |
937 | (_bfd_aarch64_add_stub_entry_in_group): Rename from | |
938 | elfNN_aarch64_add_stub. Call | |
939 | _bfd_aarch64_create_or_find_stub_sec. | |
940 | (elfNN_aarch64_size_stubs, elfNN_aarch64_size_stubs): Call | |
941 | _bfd_aarch64_add_stub_entry_in_group. | |
942 | ||
2144188d MS |
943 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
944 | ||
945 | * elfnn-aarch64.c (erratum_835769_scan) Add comment. Reverse | |
946 | sense of boolean return. | |
947 | (elfNN_aarch64_size_stubs): Adjust for above. | |
948 | ||
4c77202d MS |
949 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
950 | ||
951 | * elfnn-aarch64.c (elf_aarch64_create_or_find_stub_sec): | |
952 | Remove unused parameter. | |
953 | (elfNN_aarch64_size_stubs): Adjust for above. | |
954 | ||
9b9971aa MS |
955 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
956 | ||
957 | * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Remove bfd_indx. | |
958 | ||
e2cdef47 MS |
959 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
960 | ||
961 | * elfnn-aarch64.c (aarch64_erratum_835769_fixes) | |
962 | (num_aarch64_erratum_835769_fixes): Remove. | |
963 | (elfNN_aarch64_size_stubs): Remove assignments to above. | |
964 | ||
3d14faea MS |
965 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
966 | ||
23956543 MS |
967 | * elfnn-aarch64.c (aarch64_mem_op_p): Update comment. Rename rtn |
968 | to rt2. | |
3d14faea MS |
969 | (aarch64_erratum_seqeunce): Rename rtn to rt2. |
970 | ||
f872121a MS |
971 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
972 | ||
973 | * elfnn-aarch64.c (elfNN_aarch64_write_section): Adjust layout. | |
974 | ||
1740ba0c NC |
975 | 2015-03-19 Nick Clifton <nickc@redhat.com> |
976 | ||
977 | * elf32-rl78.c (rl78_cpu_name): New function. Prints the name of | |
978 | the RL78 core based upon the flags. | |
979 | (rl78_elf_merge_private_bfd_data): Handle merging of G13 and G14 | |
980 | flags. | |
981 | (rl78_elf_print_private_bfd_data): Use rl78_cpu_name. | |
982 | (elf32_rl78_machine): Always return bfd_mach_rl78. | |
983 | ||
e2575e05 NC |
984 | 2015-03-19 Nick Clifton <nickc@redhat.com> |
985 | ||
986 | PR 18078 | |
987 | * compress.c (bfd_compress_section_contents): Do not define this | |
988 | function if it is not used. | |
989 | ||
0b0732e1 L |
990 | 2015-03-18 H.J. Lu <hongjiu.lu@intel.com> |
991 | ||
992 | * compress.c (bfd_compress_section_contents): Make it static. | |
993 | * bfd/bfd-in2.h: Regenerated. | |
994 | ||
27aaeda0 NC |
995 | 2015-03-18 Eric Youngdale <eyoungdale@ptc.com> |
996 | ||
997 | PR ld/16598 | |
998 | * peicode.h (pe_ILF_build_a_bfd): Add support for creating relocs | |
999 | suitable for the AMD64. | |
1000 | ||
273a4985 JT |
1001 | 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk> |
1002 | Nick Clifton <nickc@redhat.com> | |
1003 | ||
1004 | PR binutils/18087 | |
1005 | * coffgen.c (make_a_section_from_file): Only prepend a z to a | |
1006 | debug section's name if the section was actually compressed. | |
1007 | * elf.c (_bfd_elf_make_section_from_shdr): Likewise. | |
1008 | * compress.c (bfd_init_section_compress_status): Do not compress | |
1009 | the section if doing so would make it bigger. In such cases leave | |
1010 | the section alone and return COMPRESS_SECTION_NONE. | |
1011 | ||
c4b0b099 AM |
1012 | 2015-03-17 Alan Modra <amodra@gmail.com> |
1013 | ||
1014 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return count of 0 | |
1015 | on nothing to do, before malloc of returned symbol array. | |
1016 | ||
9c761a55 NC |
1017 | 2015-03-16 Nick Clifton <nickc@redhat.com> |
1018 | ||
1019 | * elf32-rx.c (elf32_rx_relax_delete_bytes): If the relocs are not | |
1020 | stored in the elf_section_data structure then load them as | |
1021 | necessary. | |
1022 | ||
b9005ba7 AK |
1023 | 2015-03-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
1024 | ||
1025 | * elf-s390-common.c (elf_s390_elf_sort_relocs_p): Don't sort | |
1026 | relocs against code sections. | |
1027 | * elf32-s390.c: Define elf_backend_sort_relocs_p. | |
1028 | * elf64-s390.c: Likewise. | |
1029 | ||
1079403c AM |
1030 | 2015-03-11 Alan Modra <amodra@gmail.com> |
1031 | ||
1032 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Examine stubs in | |
1033 | reverse order. Account for larger size of __tls_get_addr_opt stub. | |
1034 | ||
a5721edd JW |
1035 | 2015-03-10 Yuri Gribov <y.gribov@samsung.arm> |
1036 | ||
1037 | PR ld/16572 | |
1038 | * elf32-arm.c (elf32_arm_final_link_relocate): Remove support for | |
1039 | ELF_ARM_HASENTRY. | |
1040 | (elf32_arm_print_private_bfd_data): Likewise. | |
1041 | ||
65164438 NC |
1042 | 2015-03-06 Nick Clifton <nickc@redhat.com> |
1043 | ||
1044 | PR binutils/17765 | |
1045 | * elflink.c (put_value): Like previous delta, but for the 32-bit | |
1046 | case. | |
1047 | ||
41cd1ad1 NC |
1048 | 2015-03-05 Nick Clifton <nickc@redhat.com> |
1049 | ||
1050 | PR binutils/17765 | |
1051 | * elflink.c (put_value): Avoid using an undefined shift | |
1052 | operation. | |
1053 | ||
ca3fe95e L |
1054 | 2015-03-05 H.J. Lu <hongjiu.lu@intel.com> |
1055 | ||
1056 | PR ld/pr15228 | |
1057 | PR ld/pr17709 | |
1058 | * elf-bfd.h (elf_backend_data): Add extern_protected_data. | |
1059 | * elf32-i386.c (elf_backend_extern_protected_data): New. | |
1060 | Defined to 1. | |
1061 | * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise. | |
1062 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on | |
1063 | copy relocs against protected symbols if extern_protected_data | |
1064 | is true. | |
1065 | (_bfd_elf_symbol_refs_local_p): Don't return true on protected | |
1066 | non-function symbols if extern_protected_data is true. | |
1067 | * elfxx-target.h (elf_backend_extern_protected_data): New. | |
1068 | Default to 0. | |
1069 | (elfNN_bed): Initialize extern_protected_data with | |
1070 | elf_backend_extern_protected_data. | |
1071 | ||
425bd9e1 NC |
1072 | 2015-03-05 Nick Clifton <nickc@redhat.com> |
1073 | ||
1074 | PR binutils/18025 | |
1075 | * coffgen.c (coff_find_nearest_line_with_names): If the dwarf2 | |
1076 | lookup fails, check for an address bias in the dwarf info, and if | |
1077 | one exists, retry the lookup with the biased value. | |
1078 | * dwarf2.c (_bfd_dwarf2_find_symbol_bias): New function. | |
1079 | Determines if a bias exists bewteen the addresses of functions | |
1080 | based on DWARF information vs symbol table information. | |
1081 | * libbfd-in.h (_bfd_dwarf2_find_symbol_bias): Prototype. | |
1082 | * libbfd.h: Regenerate. | |
1083 | ||
8ef229f3 MS |
1084 | 2015-03-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1085 | ||
1086 | * elfxx-aarch64.c (decode_add_imm, decode_movw_imm) | |
1087 | (decode_tst_branch_ofs_14, decode_ld_lit_ofs_19) | |
1088 | (decode_cond_branch_ofs_19, decode_branch_ofs_26): Remove. | |
1089 | ||
8e2fe09f MS |
1090 | 2015-03-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1091 | ||
1092 | * elfnn-aarch64.c (aarch64_build_one_stub): Call abort. | |
1093 | (aarch64_size_one_stub): Likewise. | |
1094 | (aarch64_map_one_stub): Likewise. | |
1095 | ||
df88b702 AA |
1096 | 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1097 | ||
1098 | * cpu-s390.c (N): New macro. | |
1099 | (bfd_s390_31_arch): New. Define only if default target word size | |
1100 | is 64 bits. Otherwise define... | |
1101 | (bfd_390_64_arch): ...this. Make static. | |
1102 | (bfd_s390_arch): Define according to the default target word size. | |
1103 | Let the 'next' field point to the alternate arch. | |
1104 | ||
e09ab7ac RS |
1105 | 2015-03-04 Richard Sandiford <richard.sandiford@arm.com> |
1106 | ||
1107 | PR gas/17843 | |
1108 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Expect | |
1109 | R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC | |
1110 | to be used with MOVK rather than MOVZ. | |
1111 | ||
71eef2bd DD |
1112 | 2015-03-03 DJ Delorie <dj@redhat.com> |
1113 | ||
1114 | * elf32-rl78.c (rl78_elf_relax_section): Only relax ADDR16's if | |
1115 | there's a symbol. | |
1116 | ||
f01f1741 AM |
1117 | 2015-02-28 Alan Modra <amodra@gmail.com> |
1118 | ||
1119 | * elf32-ppc.c (ppc_elf_tls_setup): Set no_tls_get_addr_opt if | |
1120 | not PLT_NEW. | |
1121 | ||
c1d11331 L |
1122 | 2015-02-27 H.J. Lu <hongjiu.lu@intel.com> |
1123 | ||
1124 | * elf32-i386.c (need_convert_mov_to_lea): New. | |
1125 | (elf_i386_check_relocs): Set need_convert_mov_to_lea if needed. | |
1126 | (elf_i386_convert_mov_to_lea): Return TRUE if | |
1127 | need_convert_mov_to_lea is unset. | |
1128 | * elf64-x86-64.c (need_convert_mov_to_lea): New. | |
1129 | (elf_x86_64_check_relocs): Set need_convert_mov_to_lea if needed. | |
1130 | (elf_x86_64_convert_mov_to_lea): Return TRUE if | |
1131 | need_convert_mov_to_lea is unset. | |
1132 | ||
cdb602b1 NC |
1133 | 2015-02-27 Nick Clifton <nickc@redhat.com> |
1134 | ||
1135 | PR binutils/17910 | |
1136 | * coffgen.c (_bfd_coff_internal_syment_name): Only check for | |
1137 | string length overflow when the string table length is actually | |
1138 | set. | |
1139 | ||
96c20bc1 MS |
1140 | 2015-02-27 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1141 | ||
1142 | * bfd/bfd-in2.h: Regenerate. | |
1143 | * bfd/libbfd.h: Regenerate. | |
1144 | ||
1ada945d MS |
1145 | 2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1146 | ||
1147 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix | |
1148 | TLSDESC_LD_PREL19 field width and masks. | |
1149 | (aarch64_tls_transition_without_check) | |
1150 | (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate) | |
1151 | (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section) | |
1152 | (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle | |
1153 | BFD_RELOC_AARCH64_TLSDESC_LD_PREL19. | |
1154 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend) | |
1155 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1156 | ||
389b8029 MS |
1157 | 2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1158 | ||
73920eed MS |
1159 | * elfnn-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Reorder R_TYPE |
1160 | tests. | |
389b8029 MS |
1161 | (aarch64_tls_transition_without_check) |
1162 | (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate) | |
1163 | (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section) | |
1164 | (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle | |
1165 | BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21. | |
1166 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend) | |
1167 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1168 | * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define. | |
1169 | ||
3c12b054 MS |
1170 | 2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1171 | ||
1172 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC) | |
1173 | (elfNN_aarch64_howto_table, aarch64_tls_transition_without_check) | |
1174 | (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate) | |
1175 | (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section) | |
1176 | (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle | |
1177 | BFD_RELOC_AARCH64_TLSGD_ADR_PREL21. | |
1178 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend) | |
1179 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1180 | * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define. | |
1181 | ||
043bf05a MS |
1182 | 2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1183 | ||
1184 | * elfnn-aarch64.c: (TLSIE_LD_GOTTREL_PREL19): Fix HOWTO bit field width. | |
1185 | (aarch64_tls_transition_without_check, aarch64_reloc_got_type) | |
1186 | (elfNN_aarch64_final_link_relocate, elfNN_aarch64_tls_relax) | |
1187 | (elfNN_aarch64_relocate_section, elfNN_aarch64_gc_sweep_hook) | |
1188 | (elfNN_aarch64_check_relocs): Handle | |
1189 | BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19. | |
1190 | ||
1191 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend) | |
1192 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1193 | ||
7366006f MS |
1194 | 2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1195 | ||
1196 | * elfnn-aarch64.c: (TLSDESC_CALL): Fix HOWTO bit field width. | |
1197 | ||
07875fbc MS |
1198 | 2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1199 | ||
1200 | * elfnn-aarch64.c (TLSLE_MOVW_TPREL_G2) | |
1201 | (TLSLE_MOVW_TPREL_G1, TLSLE_MOVW_TPREL_G1_NC) | |
1202 | (TLSLE_MOVW_TPREL_G0, TLSLE_MOVW_TPREL_G0_NC): Fix bit field | |
1203 | width. | |
1204 | ||
49d8f92c MS |
1205 | 2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com> |
1206 | ||
1207 | * elfnn-aarch64.c: (TLSIE_MOVW_GOTTPREL_G0_NC): Fix HOWTO bit | |
1208 | field width. | |
1209 | ||
c86934ce NC |
1210 | 2015-02-26 Nick Clifton <nickc@redhat.com> |
1211 | ||
1212 | PR binutils/17512 | |
1213 | * coffcode.h (coff_compute_section_file_positions): Report | |
1214 | negative page sizes. | |
1215 | * elf.c (elf_fake_sections): Handle excessive alignmment powers. | |
1216 | (assign_file_positions_for_non_load_sections): Replace assertion | |
1217 | with an error message. | |
1218 | (rewrite_elf_program_header): Handle excessive segment | |
1219 | alignments. | |
1220 | * mach-o.c (bfd_mach_o_read_section_32): Likewise. | |
1221 | (bfd_mach_o_read_section_64): Likewise. | |
1222 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Use %B to | |
1223 | print a bfd name, not %A. | |
1224 | ||
bd4d2eaa AM |
1225 | 2015-02-26 Alan Modra <amodra@gmail.com> |
1226 | ||
1227 | * elf64-ppc.c (plt_stub_size, build_plt_stub): Don't build | |
1228 | thread-safe stubs for iplt. | |
1229 | (build_tls_get_addr_stub): Restore r2 immediately after call. | |
1230 | ||
99654aaf TG |
1231 | 2015-02-26 Terry Guo <terry.guo@arm.com> |
1232 | ||
1233 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Update how we | |
1234 | merge Tag_ABI_HardFP_use. | |
1235 | ||
a127494f AM |
1236 | 2015-02-26 Alan Modra <amodra@gmail.com> |
1237 | ||
1238 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Heed -z nocopyreloc. | |
1239 | Use text relocs rather than giving an error on trying to use | |
1240 | .dynbss for protected shared lib vars. | |
1241 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
1242 | ||
bac13f5a AB |
1243 | 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1244 | ||
1245 | * elf32-avr.c (struct elf_avr_section_data): New structure. | |
1246 | (struct avr_relax_info): New structure. | |
1247 | (elf_avr_new_section_hook): New function. | |
1248 | (struct elf_avr_section_data): Add relax_info. | |
1249 | (get_avr_relax_info): New function. | |
1250 | (init_avr_relax_info): New function. | |
1251 | (elf32_avr_relax_delete_bytes): Find next property record before | |
1252 | deleting bytes. When deleting don't move bytes beyond the next | |
1253 | property record. | |
1254 | (avr_elf32_assign_records_to_section): New function. | |
1255 | (avr_property_record_compare): New function. | |
1256 | (avr_load_all_property_sections): New function. | |
1257 | (elf32_avr_relax_section): Load property data. After relaxing the | |
1258 | section, move any .align directives that have enough deleted bytes | |
1259 | before them. | |
1260 | (bfd_elf32_new_section_hook): Define. | |
1261 | ||
137c83d6 AB |
1262 | 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1263 | ||
1264 | * elf32-avr.h (struct avr_property_header): New strucure. | |
1265 | (avr_elf32_load_property_records): Declare. | |
1266 | (avr_elf32_property_record_name): Declare. | |
1267 | * elf32-avr.c: Add bfd_stdint.h include. | |
1268 | (retrieve_local_syms): New function. | |
1269 | (get_elf_r_symndx_section): New function. | |
1270 | (get_elf_r_symndx_offset): New function. | |
1271 | (internal_reloc_compare): New function. | |
1272 | (struct avr_find_section_data): New structure. | |
1273 | (avr_is_section_for_address): New function. | |
1274 | (avr_find_section_for_address): New function. | |
1275 | (avr_elf32_load_records_from_section): New function. | |
1276 | (avr_elf32_load_property_records): New function. | |
1277 | (avr_elf32_property_record_name): New function. | |
1278 | ||
fdd410ac AB |
1279 | 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1280 | ||
1281 | * elf32-avr.h (AVR_PROPERTY_RECORD_SECTION_NAME): Define. | |
1282 | (AVR_PROPERTY_RECORDS_VERSION): Define. | |
1283 | (AVR_PROPERTY_SECTION_HEADER_SIZE): Define. | |
1284 | (struct avr_property_record): New structure. | |
1285 | ||
685080f2 NC |
1286 | 2015-02-24 Nick Clifton <nickc@redhat.com> |
1287 | ||
1288 | * elf32-v850.c (v850_set_note): New function. Creates a Renesas | |
1289 | style note entry. | |
1290 | (v850_elf_make_note_section): New function. Creates a note | |
1291 | section. | |
1292 | (v850_elf_create_sections): New function. Create a note section | |
1293 | if one is not already present. | |
1294 | (v850_elf_set_note): New function. Adds a note to a bfd. | |
1295 | (v850_elf_copy_private_bfd_data): New function. Copies V850 | |
1296 | notes. | |
1297 | (v850_elf_merge_notes): New function. Merges V850 notes. | |
1298 | (print_v850_note): New function. Displays a V850 note. | |
1299 | (v850_elf_print_notes): New function. Displays all notes attached | |
1300 | to a bfd. | |
1301 | (v850_elf_merge_private_bfd_data): Call v850_elf_merge_notes. | |
1302 | (v850_elf_print_private_bfd_data): Call v850_elf_print_notes. | |
1303 | (v850_elf_fake_sections): Set the type of the V850 note section. | |
1304 | * bfd-in.h (v850_elf_create_sections): Add prototype. | |
1305 | (v850_elf_set_note): Add prototype. | |
1306 | * bfd-in2.h: Regenerate. | |
1307 | ||
31593e1b NC |
1308 | 2015-02-24 Nick Clifton <nickc@redhat.com> |
1309 | ||
1310 | * configure.ac (AC_CHECK_HEADERS): Add wctype.h. | |
1311 | * configure: Regenerate. | |
1312 | * config.in: Regenerate. | |
1313 | * peXXigen.c: Include wctype.h if HAVE_WCTYPE_H is defined. | |
1314 | (u16_mbtowc): Use wint_t types if HAVE_WCTYPE_H is defined. | |
1315 | (rsrc_cmp): Use towlower instead of wcsncasecmp if HAVE_WCTYPE_H | |
1316 | is defined. | |
1317 | ||
3ad797fd NC |
1318 | 2015-02-24 Nick Clifton <nickc@redhat.com> |
1319 | ||
1320 | * pdp11.c (set_section_contents): Pad the .text and .data sections | |
1321 | to their aligned sizes. | |
1322 | ||
5518c738 YS |
1323 | 2015-02-23 Yoshinori Sato <ysato@users.sourceforge.jp> |
1324 | ||
1325 | * config.bfd: Add h8300-*-linux. | |
1326 | * configure.ac: Add h8300_elf32_linux_vec. | |
1327 | * configure: Regenerate. | |
1328 | * elf32-h8300.c: Likewise. | |
1329 | * targets.c(_bfd_target_vector): Likewise. | |
1330 | ||
cb967f0d NC |
1331 | 2015-02-23 Nick Clifton <nickc@redhat.com> |
1332 | ||
1333 | PR 17914 | |
1334 | * cpu-w65.c: Correct typos in license notice. | |
1335 | ||
0f8f0c57 NC |
1336 | PR 17940 |
1337 | * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust debug | |
1338 | symbols at end of sections. Adjust function sizes. | |
1339 | ||
4ef9f41a AA |
1340 | 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1341 | ||
1342 | * elf-bfd.h (elfcore_write_s390_vxrs_low): Add prototype. | |
1343 | (elfcore_write_s390_vxrs_high): Likewise. | |
1344 | * elf.c (elfcore_grok_s390_vxrs_low): New function. | |
1345 | (elfcore_grok_s390_vxrs_high): New function. | |
1346 | (elfcore_grok_note): Call them. | |
1347 | (elfcore_write_s390_vxrs_low): New function. | |
1348 | (elfcore_write_s390_vxrs_high): New function. | |
1349 | (elfcore_write_register_note): Call them. | |
1350 | ||
837914ee BD |
1351 | 2015-02-19 Branko Drevensek <branko.drevensek@gmail.com> |
1352 | ||
1353 | PR 17995 | |
1354 | * verilog.c (verilog_write_record): Correct buffer size. | |
1355 | ||
cf18fda4 AM |
1356 | 2015-02-19 Alan Modra <amodra@gmail.com> |
1357 | ||
1358 | * elflink.c (_bfd_elf_define_linkage_sym): Set 'bed' earlier. | |
1359 | ||
d983c8c5 AM |
1360 | 2015-02-19 Alan Modra <amodra@gmail.com> |
1361 | ||
1362 | PR ld/4317 | |
1363 | * elflink.c (elf_link_input_bfd): Drop undefined local syms. | |
1364 | (elf_link_output_extsym): Drop local and global undefined syms. | |
1365 | Tidy. Expand comment. | |
1366 | ||
2ec55de3 AM |
1367 | 2015-02-17 Alan Modra <amodra@gmail.com> |
1368 | ||
1369 | PR ld/17975 | |
1370 | * elflink.c (struct elf_outext_info): Remove need_second_pass | |
1371 | and second_pass. | |
1372 | (elf_link_output_extsym): Delete code handling second forced | |
1373 | local pass. Move code emitting NULL STT_FILE symbol later, so | |
1374 | that it can be omitted if forced local is stripped. Don't | |
1375 | emit the NULL STT_FILE if no file symbols have been output. | |
1376 | (bfd_elf_final_link): Remove second forced local pass. | |
1377 | * elf32-ppc.c (add_stub_sym): Set linker_def on linker syms. | |
1378 | (ppc_elf_size_dynamic_sections): Likewise. | |
1379 | * elf64-ppc.c (ppc_build_one_stub): Likewise. | |
1380 | (build_global_entry_stubs): Likewise. | |
1381 | (ppc64_elf_build_stubs): Likewise. | |
1382 | ||
6dfb72b9 L |
1383 | 2015-02-16 H.J. Lu <hongjiu.lu@intel.com> |
1384 | ||
1385 | PR ld/17975 | |
1386 | * elflink.c (elf_link_output_extsym): Only check filesym_count | |
1387 | when outputting a NULL FILE symbol. Set second_pass_sym to | |
1388 | h->forced_local && !h->root.linker_def. | |
1389 | ||
576fa883 L |
1390 | 2015-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1391 | ||
1392 | * elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def | |
1393 | on _TLS_MODULE_BASE_. | |
1394 | * elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise. | |
1395 | ||
62f8d217 AM |
1396 | 2015-02-15 Alan Modra <amodra@gmail.com> |
1397 | ||
1398 | * dwarf2.c (read_rangelist): Correct buffer overflow check | |
1399 | Whitespace throughout file. | |
1400 | ||
ce875075 AM |
1401 | 2015-02-14 Alan Modra <amodra@gmail.com> |
1402 | ||
1403 | PR ld/17973 | |
1404 | * bfd.c (struct bfd): Add lto_output. | |
1405 | * linker.c (_bfd_handle_already_linked): Explicitly test for | |
1406 | objects added by the lto plugin. | |
1407 | * opncls.c (_bfd_new_bfd_contained_in): Copy lto_output and | |
1408 | no_export flags from archive. | |
1409 | * archive.c (open_nested_file): New function, setting lto_output | |
1410 | and no_export, extracted from.. | |
1411 | (find_nested_archive): ..here. Flip params. Rename from | |
1412 | _bfd_find_nested_archive. | |
1413 | (_bfd_get_elt_at_filepos): Correct var typo. Use open_nested_file. | |
1414 | (_bfd_look_for_bfd_in_cache): Copy no_export. | |
1415 | * elflink.c (elf_link_add_object_symbols): Remove now unnecessary | |
1416 | my_archive->no_export test. | |
1417 | (elf_link_input_bfd): Drop existing lto_output STT_FILE syms. | |
1418 | Don't use the file name when adding lto_output STT_FILE sym. | |
1419 | * bfd-in2.h: Regenerate. | |
1420 | ||
451dfd38 AM |
1421 | 2015-02-13 Alan Modra <amodra@gmail.com> |
1422 | ||
1423 | PR binutils/17512 | |
1424 | * elf64-ppc.c (opd_entry_value): Tighten offset check. Remove | |
1425 | now redundant assert. | |
1426 | ||
dbb3fbbb NC |
1427 | 2015-02-12 Nick Clifton <nickc@redhat.com> |
1428 | ||
1429 | PR binutils/17512 | |
1430 | * dwarf.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
1431 | (read_4_bytes, read_8_bytes, read_n_bytes, read_string) | |
1432 | (read_indirect_string, read_alt_indirect_string) | |
1433 | (read_alt_indirect_ref, read_address, read_abbrevs) | |
1434 | (read_attribute_value, read_attribute, decode_line_info) | |
1435 | (find_abstract_instance_name, read_rangelist) | |
1436 | (scan_unit_for_symbols, parse_comp_unit) | |
1437 | (_bfd_dwarf2_find_nearest_line): Harden DWARF reading code. Pass | |
1438 | end pointers to reading functions and check for offsets taking | |
1439 | pointers out of range. Replace calls to read_*_leb128 with calls | |
1440 | to safe_read_leb128. | |
1441 | ||
1442 | (* elf64-ppc.c (opd_entry_value): Add a check for an overlarge | |
1443 | offset. | |
1444 | * syms.c (_bfd_stab_section_find_nearest_line): Add checks for | |
1445 | computed file_name address being before the start of the string | |
1446 | table. | |
1447 | ||
b9dc5a87 L |
1448 | 2015-02-11 H.J. Lu <hongjiu.lu@intel.com> |
1449 | ||
1450 | PR ld/17878 | |
1451 | * bfd.c (bfd_plugin_format): New. | |
1452 | (bfd): Add plugin_format and plugin_dummy_bfd. | |
1453 | * plugin.c (try_load_plugin): Take a pointer to bfd_boolean | |
1454 | argument to return TRUE if any plugin is found. Set plugin_format. | |
1455 | (has_plugin): New. | |
1456 | (bfd_plugin_target_p): New. | |
1457 | (bfd_plugin_specified_p): Likewise. | |
1458 | (bfd_plugin_target_p): Likewise. | |
1459 | (register_ld_plugin_object_p): Likewise. | |
1460 | (bfd_plugin_set_plugin): Set has_plugin. | |
1461 | (load_plugin): Cache try_load_plugin result. | |
1462 | (bfd_plugin_object_p): Try ld_plugin_object_p first. Check | |
1463 | plugin_format. | |
1464 | * plugin.h (bfd_plugin_target_p): New. | |
1465 | (bfd_plugin_specified_p): Likewise. | |
1466 | (register_ld_plugin_object_p): Likewise. | |
1467 | * bfd-in2.h: Regenerated. | |
1468 | ||
55172d69 PA |
1469 | 2015-02-11 Pedro Alves <palves@redhat.com> |
1470 | ||
1471 | * libbfd-in.h [__cplusplus]: Open extern "C" scope. | |
1472 | * libcoff-in.h [__cplusplus]: Open extern "C" scope. | |
1473 | * libbfd.h: Regenerate. | |
1474 | * libcoff.h: Regenerate. | |
1475 | ||
1476 | * elf-bfd.h [__cplusplus]: Wrap in extern "C". | |
1477 | * mach-o.h [__cplusplus]: Wrap in extern "C". | |
1478 | * som.h [__cplusplus]: Wrap in extern "C". | |
1479 | ||
77ef8654 NC |
1480 | 2015-02-10 Nick Clifton <nickc@redhat.com> |
1481 | ||
1482 | PR binutils/17512 | |
1483 | * coffcode.h (styp_to_sec_flags): Use an unsigned long type to | |
1484 | hold the flag bits. | |
1485 | * peXXigen.c (pe_print_reloc): Use unsigned types to hold the | |
1486 | size and number of relocs. | |
1487 | (pe_print_debugdata): Use a 32-bit aligned buffer to store the | |
1488 | codeview record. | |
1489 | * versados.c (process_otr): Check the esdid value before using it | |
1490 | to access the EDATA. | |
1491 | ||
35181b3e EM |
1492 | 2015-02-09 Ed Maste <emaste@freebsd.org> |
1493 | ||
1494 | * elf32-i386.c (elf_i386_get_plt_sym_val): Avoid incrementing | |
1495 | uninitialized and unused variable. | |
1496 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise. | |
1497 | ||
989f9879 AM |
1498 | 2015-02-09 Alan Modra <amodra@gmail.com> |
1499 | ||
1500 | * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault on NULL | |
1501 | tls_sec. | |
1502 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
1503 | * elflink.c (elf_link_output_extsym): Don't assert on NULL tls_sec. | |
1504 | ||
ca4be51c AM |
1505 | 2015-02-09 Alan Modra <amodra@gmail.com> |
1506 | ||
1507 | * elflink.c: Whitespace, formatting fixes. | |
1508 | (elf_link_input_bfd): Clarify comment. | |
1509 | (elf_link_output_extsym): Exclude symbols in linker created | |
1510 | sections when testing for plugin symbols. | |
1511 | ||
1952c5cd L |
1512 | 2015-02-07 H.J. Lu <hongjiu.lu@intel.com> |
1513 | ||
1514 | PR ld/17935 | |
1515 | * elf32-i386.c (elf_i386_readonly_dynrelocs): Also issue a | |
1516 | warning for relocation in readonly section for -z text. | |
1517 | (elf_i386_size_dynamic_sections): Likewise. | |
1518 | * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise. | |
1519 | (elf_x86_64_size_dynamic_sections): Likewise. | |
1520 | ||
9e2dec47 L |
1521 | 2015-02-06 H.J. Lu <hongjiu.lu@intel.com> |
1522 | ||
1523 | PR ld/12365 | |
1524 | PR ld/14272 | |
1525 | * elflink.c (_bfd_elf_fix_symbol_flags): Revert the last change. | |
1526 | (elf_link_input_bfd): Mark the plugin symbol undefined if it is | |
1527 | referenced from a non-IR file. | |
1528 | ||
5929c344 NC |
1529 | 2015-02-06 Nick Clifton <nickc@redhat.com> |
1530 | ||
1531 | PR binutils/17512 | |
1532 | * peXXigen.c (rsrc_print_resource_entries): Add range check for | |
1533 | addresses that wrap around the address space. | |
1534 | (rsrc_parse_entry): Likewise. | |
1535 | ||
60f79275 L |
1536 | 2015-02-03 H.J. Lu <hongjiu.lu@intel.com> |
1537 | ||
1538 | PR ld/12365 | |
1539 | PR ld/14272 | |
1540 | * elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol | |
1541 | undefined if it is referenced from a non-IR file. | |
1542 | ||
64d29018 NC |
1543 | 2015-02-03 Nick Clifton <nickc@redhat.com> |
1544 | ||
1545 | PR binutils/17512 | |
1546 | * ecoff.c: Use bfd_alloc2 to allocate space for structure arrays. | |
1547 | (_bfd_ecoff_slurp_symbol_table): Check for a negative symbol | |
1548 | index or an out of range fdr index. | |
1549 | * elf-m10300.c (mn10300_info_to_howto): Fix typo in error message. | |
1550 | * elf32-arc.c (arc_info_to_howto_rel): Likewise. | |
1551 | * elf32-avr.c (avr_info_to_howto_rela): Likewise. | |
1552 | * elf32-cr16.c (elf_cr16_info_to_howto): Likewise. | |
1553 | * elf32-cr16c.c (elf_cr16c_info_to_howto_rel): Likewise. | |
1554 | * elf32-cris.c (cris_info_to_howto_rela): Likewise. | |
1555 | * elf32-crx.c (elf_crx_info_to_howto): Likewise. | |
1556 | * elf32-d10v.c (d10v_info_to_howto_rel): Likewise. | |
1557 | * elf32-d30v.c (d30v_info_to_howto_rel): Likewise. | |
1558 | * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise. | |
1559 | * elf32-fr30.c (fr30_info_to_howto_rela): Likewise. | |
1560 | * elf32-frv.c (frv_info_to_howto_rela): Likewise. | |
1561 | * elf32-i370.c (i370_elf_info_to_howto): Likewise. | |
1562 | * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise. | |
1563 | * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise. | |
1564 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise. | |
1565 | * elf32-lm32.c (lm32_info_to_howto_rela): Likewise. | |
1566 | * elf32-m32c.c (m32c_info_to_howto_rela): Likewise. | |
1567 | * elf32-m32r.c (m32r_info_to_howto_rel): Likewise. | |
1568 | * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise. | |
1569 | * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise. | |
1570 | * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. | |
1571 | * elf32-mep.c (mep_info_to_howto_rela): Likewise. | |
1572 | * elf32-metag.c (metag_info_to_howto_rela): Likewise. | |
1573 | * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. | |
1574 | * elf32-moxie.c (moxie_info_to_howto_rela): Likewise. | |
1575 | * elf32-msp430.c (msp430_info_to_howto_rela): Likewise. | |
1576 | * elf32-mt.c (mt_info_to_howto_rela): Likewise. | |
1577 | * elf32-nds32.c (nds32_info_to_howto_rel): Likewise. | |
1578 | * elf32-or1k.c (or1k_info_to_howto_rela): Likewise. | |
1579 | * elf32-pj.c (pj_elf_info_to_howto): Likewise. | |
1580 | * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. | |
1581 | * elf32-rl78.c (rl78_info_to_howto_rela): Likewise. | |
1582 | * elf32-rx.c (rx_info_to_howto_rela): Likewise. | |
1583 | * elf32-sh.c (sh_elf_info_to_howto): Likewise. | |
1584 | * elf32-spu.c (spu_elf_info_to_howto): Likewise. | |
1585 | * elf32-v850.c (v850_elf_perform_relocation): Likewise. | |
1586 | * elf32-vax.c (rtype_to_howto): Likewise. | |
1587 | * elf32-visium.c (visium_info_to_howto_rela): Likewise. | |
1588 | * elf32-xgate.c (xgate_info_to_howto_rel): Likewise. | |
1589 | * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise. | |
1590 | * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. | |
1591 | * elf64-mmix.c (mmix_info_to_howto_rela): Likewise. | |
1592 | * mach-o.c: Use bfd_alloc2 to allocate space for structure arrays. | |
1593 | (bfd_mach_o_canonicalize_one_reloc): Fix check on out | |
1594 | of range symbol indicies. | |
1595 | (bfd_mach_o_canonicalize_relocs): Check for out of range alloc. | |
1596 | (bfd_mach_o_canonicalize_dynamic_reloc): Likewise. | |
1597 | (bfd_mach_o_build_dysymtab): Likewise. | |
1598 | (bfd_mach_o_write_symtab_content): Set the string table size to | |
1599 | zero upon error. | |
1600 | (bfd_mach_o_read_symtab_symbols): Reset the nsyms value if the | |
1601 | read fails. | |
1602 | * peXXigen.c (pe_print_edata): Check for numeric overflow in edt | |
1603 | fields. | |
1604 | * tekhex.c (first_phase): Check for src pointer reaching end of | |
1605 | buffer. | |
1606 | ||
3a635617 WN |
1607 | 2015-02-03 Will Newton <will.newton@linaro.org> |
1608 | ||
46b87d49 WN |
1609 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): |
1610 | Set st_value to zero for undefined symbols if the reference | |
1611 | is weak or pointer_equality_needed is FALSE. | |
1612 | ||
3a635617 WN |
1613 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Improve |
1614 | comment discussing why we clear st_value for some symbols. | |
1615 | ||
0c4bd9d9 KLC |
1616 | 2015-02-02 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
1617 | ||
1618 | * elf32-nds32.c (nds32_get_section_contents): Add one more argument. | |
1619 | (nds32_elf_relocate_section): Do not relocate R_NDS32_LONGJUMP7. | |
1620 | ||
b86ac8e3 AM |
1621 | 2015-01-29 Alan Modra <amodra@gmail.com> |
1622 | ||
1623 | * elf64-ppc.c (ppc64_elf_relocate_section): Correct GOT_TLSLD | |
1624 | optimization. Tidy mask for GOT_TLSGD optimization. | |
1625 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. Correct | |
1626 | location of nop zapping high insn too. | |
1627 | ||
dbd1e97e AM |
1628 | 2015-01-28 Alan Modra <amodra@gmail.com> |
1629 | ||
1630 | * elf64-ppc.h (struct ppc64_elf_params): Add "object_in_toc". | |
1631 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Assume that global symbols | |
1632 | in .toc indicate xlc compiled code that might require a rw .toc. | |
1633 | ||
3f8107ab AM |
1634 | 2015-01-28 James Bowman <james.bowman@ftdichip.com> |
1635 | ||
1636 | * Makefile.am: Add FT32 files. | |
1637 | * archures.c (enum bfd_architecture): Add bfd_arch_ft32. | |
1638 | (bfd_mach_ft32): Define. | |
1639 | (bfd_ft32_arch): Declare. | |
1640 | (bfd_archures_list): Add bfd_ft32_arch. | |
1641 | * config.bfd: Handle FT32. | |
1642 | * configure.ac: Likewise. | |
1643 | * cpu-ft32.c: New file. | |
1644 | * elf32-ft32.c: New file. | |
1645 | * reloc.c (BFD_RELOC_FT32_10, BFD_RELOC_FT32_20, BFD_RELOC_FT32_17, | |
1646 | BFD_RELOC_FT32_18): Define. | |
1647 | * targets.c (_bfd_target_vector): Add ft32_elf32_vec. | |
1648 | * bfd-in2.h: Regenerate. | |
1649 | * libbfd.h: Regenerate. | |
1650 | * Makefile.in: Regenerate. | |
1651 | * configure: Regenerate. | |
1652 | * po/SRC-POTFILES.in: Regenerate. | |
1653 | ||
37e3922e NC |
1654 | 2015-01-27 Nick Clifton <nickc@redhat.com> |
1655 | ||
1656 | PR binutils/17512 | |
1657 | * pdp11.c (aout_get_external_symbols): Return false if there are | |
1658 | no symbols. | |
1659 | ||
877a8638 NC |
1660 | * dwarf2.c (concat_filename): Check for an empty directory table. |
1661 | (scan_unit_for_symbols): Check for reading off the end of the | |
1662 | unit. | |
1663 | (parse_comp_unit): Check for a DW_AT_comp_dir attribute with a | |
1664 | non-string form. | |
1665 | * elf64-ppc.c (opd_entry_value): Fail if there are no relocs | |
1666 | available. | |
1667 | ||
18393a2e KLC |
1668 | 2015-01-26 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
1669 | ||
1670 | * elf32-nds32.c (nds32_elf_pick_relax): Fix again setting. | |
1671 | ||
055173ca DD |
1672 | 2015-01-22 DJ Delorie <dj@redhat.com> |
1673 | ||
1674 | * elf32-m32c.c (m32c_apply_reloc_24): New. | |
1675 | (m32c_elf_howto_table): Use it for R_M32C_24. | |
1676 | (m32c_elf_relocate_section): Handle R_M32C_24 specially. | |
1677 | ||
4e5cb37e NC |
1678 | 2015-01-22 Nick Clifton <nickc@redhat.com> |
1679 | ||
1680 | PR binutils/17512 | |
1681 | * coffcode.h (handle_COMDAT): When searching for the section | |
1682 | symbol, make sure that there is space left in the symbol table. | |
1683 | * vms-alpha.c (_bfd_vms_slurp_ehdr): Add range checks. | |
1684 | ||
86eafac0 NC |
1685 | 2015-01-21 Nick Clifton <nickc@redhat.com> |
1686 | ||
1687 | PR binutils/17512 | |
1688 | * coffcode.h (coff_set_arch_mach_hook): Check return value from | |
1689 | bfd_malloc. | |
1690 | (coff_slurp_line_table): Return FALSE if the line number | |
1691 | information was corrupt. | |
1692 | (coff_slurp_symbol_table): Return FALSE if the symbol information | |
1693 | was corrupt. | |
1694 | * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Always | |
1695 | initialise the fields of the dyld_info structure. | |
1696 | (bfd_mach_o_build_exec_seg_command): Replace assertion with an | |
1697 | error message and a return value. | |
1698 | (bfd_mach_o_layout_commands): Change the function to boolean. | |
1699 | Return FALSE if the function fails. | |
1700 | (bfd_mach_o_build_commands): Fail if bfd_mach_o_layout_commands | |
1701 | fails. | |
1702 | (bfd_mach_o_read_command): Fail if an unrecognised command is | |
1703 | encountered. | |
1704 | * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Set bfd_error if the | |
1705 | read fails. | |
1706 | (slurp_symtab): Check the return from bfd_malloc. | |
1707 | (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if the copy | |
1708 | encountered an error. | |
1709 | (_bfd_XXi_final_link_postscript): Fail if a section could not be | |
1710 | copied. | |
1711 | * peicode.h (pe_bfd_object_p): Fail if the header could not be | |
1712 | swapped in. | |
1713 | * tekhex.c (first_phase): Fail if the section is too big. | |
1714 | * versados.c (struct esdid): Add content_size field. | |
1715 | (process_otr): Use and check the new field. | |
1716 | (versados_get_section_contents): Check that the section exists and | |
1717 | that the requested data is available. | |
1718 | ||
03d5b773 CLT |
1719 | 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com> |
1720 | ||
1721 | * elf32-nios2.c (elf_backend_default_execstack): Define as 0. | |
1722 | ||
1c9177d9 AM |
1723 | 2015-01-20 Alan Modra <amodra@gmail.com> |
1724 | ||
1725 | PR ld/17615 | |
1726 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Don't drop | |
1727 | ELF_COMMON_DEF syms. | |
1728 | ||
c4621b33 AM |
1729 | 2015-01-19 Alan Modra <amodra@gmail.com> |
1730 | ||
3e2aa5bb | 1731 | PR ld/17615 |
c4621b33 AM |
1732 | * elf-bfd.h (ELF_COMMON_DEF_P): Note that this might be true for |
1733 | linker script assignments too. | |
1734 | * elflink.c (elf_gc_sweep_symbol): Don't drop ELF_COMMON_DEF syms. | |
1735 | (bfd_elf_gc_mark_dynamic_ref_symbol): Similarly. | |
1736 | ||
0ba38529 AM |
1737 | 2015-01-19 Alan Modra <amodra@gmail.com> |
1738 | ||
1739 | * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Correct loop iteration | |
1740 | to allow return of first howto. | |
1741 | * elf32-fr30.c (fr30_reloc_type_lookup): Likewise. | |
1742 | * elf32-m32c.c (m32c_reloc_type_lookup): Likewise. | |
1743 | * elf32-moxie.c (moxie_reloc_type_lookup): Likewise. | |
1744 | * elf32-or1k.c (or1k_reloc_type_lookup): Likewise. | |
1745 | * elf32-rl78.c (rl78_reloc_type_lookup): Likewise. | |
1746 | * elf32-rx.c (rx_reloc_type_lookup): Likewise. | |
1747 | * elf32-tilepro.c (tilepro_reloc_type_lookup): Likewise. | |
1748 | * elf32-xstormy16.c (xstormy16_reloc_type_lookup): Likewise. | |
1749 | * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise. | |
1750 | * elf32-nios2.c (nios2_reloc_map): Add mapping for R_NIOS2_NONE. | |
1751 | * elf32-spu.c (spu_elf_bfd_to_reloc_type): Allow return of R_SPU_NONE. | |
1752 | (spu_elf_reloc_type_lookup): Adjust to suit. | |
1753 | ||
6346d5ca AM |
1754 | 2015-01-19 Alan Modra <amodra@gmail.com> |
1755 | ||
1756 | * bfd-in.h (bfd_get_section_limit_octets): New define, extracted from.. | |
1757 | (bfd_get_section_limit): ..here. | |
1758 | * reloc.c (bfd_perform_relocation): Correct bfd_reloc_outofrange check. | |
1759 | (bfd_install_relocation, _bfd_final_link_relocate): Add same check here. | |
1760 | * elf32-sh.c (sh_elf_reloc): Correct bfd_reloc_outofrange check. | |
1761 | * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Remove duplicated | |
1762 | bfd_reloc_outofrange check. | |
1763 | * bfd-in2.h: Regenerate. | |
1764 | ||
1765 | * cpu-ns32k.c (_bfd_do_ns32k_reloc_contents): Return bfd_reloc_ok | |
1766 | on zero size relocs. | |
1767 | * ecoff.c (ecoff_reloc_link_order): Likewise. | |
1768 | * elf32-nds32.c (nds32_relocate_contents): Likewise. | |
1769 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
1770 | ||
1771 | * reloc.c (_bfd_relocate_contents): Don't bomb on zero size relocs. | |
1772 | (_bfd_clear_contents): Likewise. | |
1773 | * elfxx-mips.c (mips_elf_obtain_contents): Likewise. | |
1774 | (mips_elf_perform_relocation): Likewise. | |
1775 | ||
1776 | * aoutx.h (aout_link_reloc_link_order): Allow for NULL return | |
1777 | from malloc on zero size alloc. | |
1778 | * cofflink.c (_bfd_coff_reloc_link_order): Likewise. | |
1779 | * elflink.c (elf_reloc_link_order): Likewise. | |
1780 | * linker.c (_bfd_generic_reloc_link_order): Likewise. | |
1781 | * pdp11.c (aout_link_reloc_link_order): Likewise. | |
1782 | * xcofflink.c (xcoff_reloc_link_order): Likewise. | |
1783 | ||
1784 | * aoutx.h (howto_table_ext): Ensure NONE relocs have size 3, | |
1785 | bitsize 0, and complain_overflow_dont. | |
1786 | * coff-sparc.c (coff_sparc_howto_table): Likewise. | |
1787 | * elf-hppa.h (elf_hppa_howto_table): Likewise. | |
1788 | * elf-m10200.c (elf_mn10200_howto_table): Likewise. | |
1789 | * elf-m10300.c (elf_mn10300_howto_table): Likewise. | |
1790 | * elf32-arc.c (elf_arc_howto_table): Likewise. | |
1791 | * elf32-arm.c (elf32_arm_howto_table_1): Likewise. | |
1792 | * elf32-avr.c (elf_avr_howto_table): Likewise. | |
1793 | * elf32-bfin.c (bfin_howto_table): Likewise. | |
1794 | * elf32-cr16.c (cr16_elf_howto_table): Likewise. | |
1795 | * elf32-cris.c (cris_elf_howto_table): Likewise. | |
1796 | * elf32-crx.c (crx_elf_howto_table): Likewise. | |
1797 | * elf32-d10v.c (elf_d10v_howto_table): Likewise. | |
1798 | * elf32-d30v.c (elf_d30v_howto_table): Likewise. | |
1799 | * elf32-dlx.c (dlx_elf_howto_table): Likewise. | |
1800 | * elf32-epiphany.c (epiphany_elf_howto_table): Likewise. | |
1801 | * elf32-fr30.c (fr30_elf_howto_table): Likewise. | |
1802 | * elf32-frv.c (elf32_frv_howto_table): Likewise. | |
1803 | * elf32-h8300.c (h8_elf_howto_table): Likewise. | |
1804 | * elf32-i370.c (i370_elf_howto_raw): Likewise. | |
1805 | * elf32-i386.c (elf_howto_table): Likewise. | |
1806 | * elf32-i860.c (elf32_i860_howto_table): Likewise. | |
1807 | * elf32-i960.c (elf32_i960_relocate): Likewise. | |
1808 | * elf32-ip2k.c (ip2k_elf_howto_table): Likewise. | |
1809 | * elf32-iq2000.c (iq2000_elf_howto_table): Likewise. | |
1810 | * elf32-lm32.c (lm32_elf_howto_table): Likewise. | |
1811 | * elf32-m32c.c (m32c_elf_howto_table): Likewise. | |
1812 | * elf32-m32r.c (m32r_elf_howto_table): Likewise. | |
1813 | * elf32-m68hc11.c (elf_m68hc11_howto_table): Likewise. | |
1814 | * elf32-m68hc12.c (elf_m68hc11_howto_table): Likewise. | |
1815 | * elf32-m68k.c (howto_table): Likewise. | |
1816 | * elf32-mcore.c (mcore_elf_howto_raw): Likewise. | |
1817 | * elf32-mep.c (mep_elf_howto_table): Likewise. | |
1818 | * elf32-metag.c (elf_metag_howto_table): Likewise. | |
1819 | * elf32-microblaze.c (microblaze_elf_howto_raw): Likewise. | |
1820 | * elf32-mips.c (elf_mips_howto_table_rel): Likewise. | |
1821 | * elf32-moxie.c (moxie_elf_howto_table): Likewise. | |
1822 | * elf32-msp430.c (elf_msp430_howto_table): Likewise. | |
1823 | * elf32-mt.c (mt_elf_howto_table): Likewise. | |
1824 | * elf32-nds32.c (nds32_elf_howto_table): Likewise. | |
1825 | * elf32-nios2.c (elf_nios2_howto_table_rel): Likewise. | |
1826 | * elf32-or1k.c (or1k_elf_howto_table): Likewise. | |
1827 | * elf32-pj.c (pj_elf_howto_table): Likewise. | |
1828 | * elf32-ppc.c (ppc_elf_howto_raw): Likewise. | |
1829 | * elf32-rl78.c (rl78_elf_howto_table): Likewise. | |
1830 | * elf32-rx.c (rx_elf_howto_table): Likewise. | |
1831 | * elf32-s390.c (elf_howto_table): Likewise. | |
1832 | * elf32-score.c (elf32_score_howto_table): Likewise. | |
1833 | * elf32-score7.c (elf32_score_howto_table): Likewise. | |
1834 | * elf32-sh-relocs.h (R_SH_NONE): Likewise. | |
1835 | * elf32-spu.c (elf_howto_table): Likewise. | |
1836 | * elf32-tic6x.c (elf32_tic6x_howto_table): Likewise. | |
1837 | * elf32-tilepro.c (tilepro_elf_howto_table): Likewise. | |
1838 | * elf32-v850.c (v850_elf_howto_table): Likewise. | |
1839 | * elf32-vax.c (howto_table): Likewise. | |
1840 | * elf32-visium.c (visium_elf_howto_table): Likewise. | |
1841 | * elf32-xc16x.c (xc16x_elf_howto_table): Likewise. | |
1842 | * elf32-xgate.c (elf_xgate_howto_table): Likewise. | |
1843 | * elf32-xstormy16.c (xstormy16_elf_howto_table): Likewise. | |
1844 | * elf32-xtensa.c (elf_howto_table): Likewise. | |
1845 | * elf64-alpha.c (elf64_alpha_howto_table): Likewise. | |
1846 | * elf64-mips.c (mips_elf64_howto_table_rel): Likewise. | |
1847 | * elf64-mmix.c (elf_mmix_howto_table): Likewise. | |
1848 | * elf64-ppc.c (ppc64_elf_howto_raw): Likewise. | |
1849 | * elf64-s390.c (elf_howto_table): Likewise. | |
1850 | * elf64-sh64.c (sh_elf64_howto_table): Likewise. | |
1851 | * elf64-x86-64.c (x86_64_elf_howto_table): Likewise. | |
1852 | * elfn32-mips.c (elf_mips_howto_table_rel): Likewise. | |
1853 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise. | |
1854 | (elfNN_aarch64_howto_none): Likewise. | |
1855 | * elfxx-ia64.c (ia64_howto_table): Likewise. | |
1856 | * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Likewise. | |
1857 | * elfxx-tilegx.c (tilegx_elf_howto_table): Likewise. | |
1858 | * nlm32-sparc.c (nlm32_sparc_howto_table): Likewise. | |
1859 | ||
6333bc0d L |
1860 | 2015-01-15 H.J. Lu <hongjiu.lu@intel.com> |
1861 | ||
1862 | PR ld/17847 | |
1863 | * elf64-x86-64.c (elf_x86_64_relocate_section): Don't complain | |
1864 | about -fPIC if the symbol is undefined when building executable. | |
1865 | ||
cd21f5da NC |
1866 | 2015-01-15 Nick Clifton <nickc@redhat.com> |
1867 | ||
1868 | PR binutils/17512 | |
1869 | * elf-m10300.c (mn10300_info_to_howto): Replace assertion with an | |
1870 | error message. Never return an invalid howto pointer. | |
1871 | * elf32-cr16.c (cr16_info_to_howto): Likewise. | |
1872 | * elf32-crx.c (elf_crx_info_to_howto): Likewise. | |
1873 | * elf32-i370.c (i370_elf_info_to_howto): Likewise. | |
1874 | * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. | |
1875 | * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. | |
1876 | * elf32-mips.c (mips_elf32_rtype_to_howto): Likewise. | |
1877 | * elf32-pj.c (pj_elf_info_to_howto): Likewise. | |
1878 | * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. | |
1879 | * elf32-spu.c (spu_elf_info_to_howto): Likewise. | |
1880 | * elf32-v850.c (v850_elf_info_to_howto_rela): Likewise. | |
1881 | * elf32-vax.c (rtype_to_howto): Likewise. | |
1882 | * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. | |
1883 | * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise. | |
1884 | * elfn32-mips.c (sh_elf_info_to_howto): Likewise. | |
1885 | * elf32-sh.c (sh_elf_info_to_howto): Likewise. | |
1886 | (sh_elf_reloc): Check that the reloc is in range. | |
1887 | * reloc.c (bfd_perform_relocation): Check that the section is big | |
1888 | enough for the entire reloc. | |
1889 | (bfd_generic_get_relocated_section_contents): Report unexpected | |
1890 | return values from perform_reloc. | |
1891 | ||
2d071cfc NC |
1892 | 2015-01-15 Nick Clifton <nickc@redhat.com> |
1893 | ||
1894 | * elf32-msp430.c (msp430_elf_relax_section): Skip unhandled | |
1895 | relocs. Include PC-relative adjustment for R_MSP430X_ABS16 | |
1896 | relaxation. | |
1897 | ||
ca55926c AM |
1898 | 2015-01-15 Alan Modra <amodra@gmail.com> |
1899 | ||
1900 | * elflink.c (_bfd_elf_link_omit_section_dynsym): Return true for | |
1901 | any output section matching a linker created dynobj section. | |
1902 | ||
8539e4e8 AM |
1903 | 2015-01-15 Alan Modra <amodra@gmail.com> |
1904 | ||
1905 | PR 17842 | |
1906 | * elflink.c (elf_link_output_sym): Assert elf_onesymtab set. | |
1907 | (bfd_elf_final_link): Always create a symbol table when emit_relocs. | |
1908 | Don't assign symtab file position unless symbols will be output. | |
1909 | Merge blocks with condition in common. Don't call | |
1910 | elf_backend_output_arch_local_syms or elf_backend_output_arch_syms | |
1911 | unless other symbols are output. Move assignment of symtab_shndx | |
1912 | file position. Localize variable. | |
1913 | ||
52db4ec2 JW |
1914 | 2015-01-14 Jiong Wang <jiong.wang@arm.com> |
1915 | ||
1916 | * elf32-arm.c (elf32_arm_final_link_relocate): Reject R_ARM_32/_NOI when | |
1917 | trying to defer them to runtime. | |
1918 | ||
0941db69 JW |
1919 | 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1920 | ||
1921 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND | |
1922 | to check if a symbol should be bound symbolically. | |
1923 | ||
0172429c JW |
1924 | 2015-01-13 Jiong Wang <jiong.wang@arm.com> |
1925 | ||
1926 | * elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check | |
1927 | for TLSLE_MOVW_TPREL_G2. | |
1928 | ||
bab91cce JW |
1929 | 2015-01-13 Jiong Wang <jiong.wang@arm.com> |
1930 | ||
1931 | PR ld/17415 | |
1932 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark | |
1933 | R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned. | |
1934 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Correct the | |
1935 | bit mask. | |
1936 | ||
3c758495 TG |
1937 | 2015-01-12 Terry Guo <terry.guo@arm.com> |
1938 | ||
1939 | * elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New | |
1940 | function. | |
1941 | (_bfd_elf_gc_mark_extra_sections): Use it. | |
1942 | ||
9d1d54d5 L |
1943 | 2015-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1944 | ||
1945 | PR ld/17827 | |
1946 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE, | |
1947 | only discard space for pc-relative relocs symbols which turn | |
1948 | out to need copy relocs. | |
1949 | ||
c6e8e93a NC |
1950 | 2015-01-09 Nick Clifton <nickc@redhat.com> |
1951 | ||
1952 | * tekhex.c (getvalue): Fix thinko in test for correct extraction | |
1953 | of value. | |
1954 | (getsym): Return false if there was not enough data to extract the | |
1955 | symbol. | |
1956 | ||
400cf8cb AG |
1957 | 2015-01-09 Anthony Green <green@moxielogic.com> |
1958 | ||
1959 | * elf32-moxie.c (ELF_MACHINE_ALT1): Define. | |
1960 | ||
23d4663e NC |
1961 | 2015-01-08 Nick Clifton <nickc@redhat.com> |
1962 | ||
1963 | * elf32-msp430.c (msp430_elf_relax_section): Add relaxation of | |
1964 | 16-bit absolute BR instructions to 10-bit pc-relative JMP | |
1965 | instructions. | |
1966 | ||
063bb025 NC |
1967 | 2015-01-08 Nick Clifton <nickc@redhat.com> |
1968 | ||
1969 | PR binutils/17512 | |
1970 | * coffcode.h (coff_slurp_symbol_table): Return false if we failed | |
1971 | to load the line table. | |
1972 | * elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum | |
1973 | maxpagesize of 1. | |
1974 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if | |
1975 | the Data Directory Size is too large. | |
1976 | ||
6f25f223 L |
1977 | 2015-01-06 H.J. Lu <hongjiu.lu@intel.com> |
1978 | ||
1979 | PR binutils/17512 | |
1980 | * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation. | |
1981 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise. | |
1982 | ||
85880250 NC |
1983 | 2015-01-06 Nick Clifton <nickc@redhat.com> |
1984 | ||
1985 | PR binutils/17512 | |
e7287c7f NC |
1986 | * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the |
1987 | string table. | |
1988 | ||
ec93045b NC |
1989 | * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1. |
1990 | (bfd_perform_relocation): Include the size of the reloc in the | |
1991 | test for an out of range relocation. | |
1992 | (bfd_generic_get_relocated_section_contents): Remove reloc range | |
1993 | test. | |
1994 | ||
85880250 NC |
1995 | * coff-i860.c (CALC_ADDEND): Always set an addend value. |
1996 | * tekhex.c (getvalue): Add an end pointer parameter. Use it to | |
1997 | avoid reading off the end of the buffer. | |
1998 | (getsym): Likewise. | |
1999 | (first_phase): Likewise. | |
2000 | (pass_over): Pass an end pointer to the invoked function. | |
2001 | ||
533d0af0 L |
2002 | 2015-01-05 H.J. Lu <hongjiu.lu@intel.com> |
2003 | ||
2004 | PR binutils/17512 | |
2005 | * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt | |
2006 | input. | |
2007 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise. | |
2008 | ||
896ca098 NC |
2009 | 2015-01-05 Nick Clifton <nickc@redhat.com> |
2010 | ||
2011 | PR binutils/17512 | |
2012 | * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized | |
2013 | is at least big enough for the header to be read. | |
2014 | * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs. | |
2015 | * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks. | |
2016 | (bfd_mach_o_read_command): Prevetn duplicate error messages about | |
2017 | unrecognized commands. | |
2018 | * syms.c (_bfd_stab_section_find_nearest_line): Add range checks | |
2019 | when indexing into the string table. | |
2020 | ||
b90efa5b | 2021 | 2015-01-01 Alan Modra <amodra@gmail.com> |
ee3b52e9 | 2022 | |
b90efa5b | 2023 | Update year range in copyright notice of all files. |
ee3b52e9 | 2024 | |
b90efa5b | 2025 | For older changes see ChangeLog-2014 |
56882138 | 2026 | \f |
b90efa5b | 2027 | Copyright (C) 2015 Free Software Foundation, Inc. |
752937aa NC |
2028 | |
2029 | Copying and distribution of this file, with or without modification, | |
2030 | are permitted in any medium without royalty provided the copyright | |
2031 | notice and this notice are preserved. | |
2032 | ||
56882138 AM |
2033 | Local Variables: |
2034 | mode: change-log | |
2035 | left-margin: 8 | |
2036 | fill-column: 74 | |
2037 | version-control: never | |
2038 | End: |