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