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