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