Commit | Line | Data |
---|---|---|
5087d529 AM |
1 | 2014-04-30 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * elf-eh-frame.c (struct cie.personality): Replace val with sym. | |
4 | (find_merged_cie): Identify personality functions by (bfd_id,index) | |
5 | pair when a local sym is used. | |
6 | ||
230977a4 CS |
7 | 2014-04-29 Christian Svensson <blue@cmd.nu> |
8 | ||
9 | * elf32-or1k.c: Fix a bug where non-TLS relocations would be forced | |
10 | into .rela.got if it contained TLS relocations as well. | |
11 | ||
40af4a36 NC |
12 | 2014-04-28 Nick Clifton <nickc@redhat.com> |
13 | ||
14 | PR ld/16821 | |
15 | * peXXigen.c (_bfd_XXi_swap_sym_out): Rework fix to avoid compile | |
16 | time warning. | |
17 | ||
a9e18c6a AM |
18 | 2014-04-26 Alan Modra <amodra@gmail.com> |
19 | ||
20 | * po/SRC-POTFILES.in: Regenerate. | |
21 | * configure: Regenerate. | |
22 | ||
88667baf NC |
23 | 2014-04-25 Nick Clifton <nickc@redhat.com> |
24 | ||
25 | PR ld/16821 | |
26 | * peXXigen.c (_bfd_XXi_swap_sym_out): Another fix for building on | |
27 | a 342-bit host. This time for older versions of gcc. | |
28 | ||
08937d80 NC |
29 | 2014-04-24 Nick Clifton <nickc@redhat.com> |
30 | ||
31 | * peXXigen.c (rsrc_print_section): Fix compile time warning for | |
32 | 32-bit hosts. | |
33 | ||
93ee1e36 AM |
34 | 2014-04-24 Alan Modra <amodra@gmail.com> |
35 | ||
36 | PR 16867 | |
37 | * dwarf2.c: Formatting. | |
38 | (struct dwarf2_debug): Make adjusted_section_count signed. | |
39 | (unset_sections): Make i signed. | |
40 | (set_debug_vma): New function. | |
41 | (place_sections): Handle separate debug object file. Set VMA | |
42 | on debug sections, even if they have an output section. Also | |
43 | set VMA on zero size sections, and non-load but alloc sections. | |
44 | Set adjusted_section_count to -1 when no section adjustment. | |
45 | Malloc adjusted_sections. Don't double last_vma. Transfer | |
46 | alloc section VMAs to separate debug file. | |
47 | (_bfd_dwarf2_cleanup_debug_info): Free adjusted_sections. | |
48 | (_bfd_dwarf2_slurp_debug_info): Add do_place parameter. Drop | |
49 | test on symbols being the same before using old stash. Read | |
50 | and use separate debug file symbols. Call place_sections. | |
51 | (find_line): Don't call place_sections here. | |
52 | * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Update proto. | |
53 | * libbfd.h: Regenerate. | |
54 | * mach-o.c (bfd_mach_o_find_nearest_line): Adjust | |
55 | _bfd_dwarf2_slurp_debug_info call. | |
56 | * simple.c (simple_save_output_info): Clarify comment. | |
57 | ||
3714081c NC |
58 | 2014-04-24 Nick Clifton <nickc@redhat.com> |
59 | ||
60 | PR ld/16807 | |
61 | * peXXigen.c (struct rsrc_regions): New structure. | |
62 | (rsrc_print_resource_directory): Use new structure. Include | |
63 | offset of directory in listing. | |
64 | (rsrc_print_resource_entry): Likewise. | |
65 | (rsrc_print_section): Likewise. | |
66 | (rsrc_count_entries): Do not increment sizeof_strings or | |
67 | sizeof_leaves. | |
68 | (rsrc_count_directory): Do not increment sizeof_tables. | |
69 | (rsrc_compute_region_sizes): New function. | |
70 | (rsrc_write_leaf): Maintain 8-byte alignment for resource data. | |
71 | (rsrc_process_section): Compute size of regions after merging | |
72 | entries. | |
73 | ||
cd0449ab AM |
74 | 2014-04-23 Alan Modra <amodra@gmail.com> |
75 | ||
76 | PR ld/16787 | |
77 | * dwarf2.c (struct dwarf2_debug): Add sec_vma field. | |
78 | (place_sections): Do not modify VMA of sections when called from | |
79 | linker after sections have been placed in output sections. Short | |
80 | circuit single section case. | |
81 | (save_section_vma, section_vma_same): New functions. | |
82 | (_bfd_dwarf2_slurp_debug_info): Throw away stash if section VMAs | |
83 | change. | |
84 | * reloc.c (bfd_perform_relocation): Do not modify reloc addend | |
85 | when non-relocatable. | |
86 | ||
d5f59c10 NC |
87 | 2014-04-22 Nick Clifton <nickc@redhat.com> |
88 | ||
89 | PR ld/16821 | |
90 | * peXXigen.c (_bfd_XXi_swap_sym_out): Fix for 32-bit hosts. | |
91 | ||
73589c9d CS |
92 | 2014-04-22 Christian Svensson <blue@cmd.nu> |
93 | ||
94 | * Makefile.am: Remove openrisc and or32 support. Add support for or1k. | |
95 | * archures.c: Likewise. | |
96 | * coffcode.h: Likewise. | |
97 | * config.bfd: Likewise. | |
98 | * configure.in: Likewise. | |
99 | * reloc.c: Likewise. | |
100 | * targets.c: Likewise. | |
101 | * cpu-or1k.c: New file. | |
102 | * elf32-or1k.c: New file. | |
103 | * coff-or32.c: Delete. | |
104 | * cpu-openrisc.c: Delete. | |
105 | * cpu-or32.c: Delete. | |
106 | * elf32-openrisc.c: Delete. | |
107 | * elf32-or32.c: Delete. | |
108 | * Makefile.in: Regenerate. | |
109 | * bfd-in2.h: Regenerate. | |
110 | * configure: Regenerate. | |
111 | * libbfd.h: Regenerate. | |
112 | ||
285fc9d8 YZ |
113 | 2014-04-22 Yuanhui Zhang <asmwarrior@gmail.com> |
114 | ||
115 | PR ld/16821 | |
116 | * peXXigen.c (abs_finder): Fix for 32-bit host builds. | |
117 | ||
5d3b02f0 WN |
118 | 2014-04-22 Will Newton <will.newton@linaro.org> |
119 | ||
120 | * elfnn-aarch64.c (elfNN_aarch64_section_flags): Remove | |
121 | function. (elf_backend_section_flags): Remove define. | |
122 | ||
cc75d373 RH |
123 | 2014-04-21 Richard Henderson <rth@redhat.com> |
124 | ||
d1c109de RH |
125 | * elf64-alpha.c (elf64_alpha_size_got_sections): New may_merge |
126 | parameter; honor it and disable got merging when false. | |
127 | (elf64_alpha_relax_got_load): Do not relax to GPREL relocs during | |
128 | the first pass of relaxation. | |
129 | (elf64_alpha_relax_with_lituse): Likewise. Move relaxed relocs to | |
130 | the end of the LITERAL+LITUSE chain. | |
131 | (elf64_alpha_relax_section): Only process LITERAL relocs during the | |
132 | second pass of relaxation. | |
133 | ||
cc75d373 RH |
134 | * configure.ac (use_secureplt): Enable by default. |
135 | * configure: Rebuild. | |
136 | ||
c9ffd2ea TG |
137 | 2014-04-18 Tristan Gingold <gingold@adacore.com> |
138 | ||
139 | * mach-o.h (bfd_mach_o_dyld_info_command): Add rebase_content, | |
140 | bind_content, weak_bind_content, lazy_bind_content, | |
141 | export_content. | |
142 | (bfd_mach_o_load_command): Add comments, add next field. | |
143 | (mach_o_data_struct): Replace commands field by first_command | |
144 | and last_command. | |
145 | * mach-o.c (bfd_mach_o_append_command): New function. | |
146 | (bfd_mach_o_bfd_copy_private_symbol_data): Add blank lines. | |
147 | (bfd_mach_o_bfd_copy_private_section_data): Check flavour, | |
148 | copy fields. | |
149 | (bfd_mach_o_bfd_copy_private_header_data): Copy load commands. | |
150 | (bfd_mach_o_pad4, bfd_mach_o_pad_command): New functions. | |
151 | (bfd_mach_o_write_thread): Use macro instead of literal. | |
152 | (bfd_mach_o_write_dylinker, bfd_mach_o_write_dylib) | |
153 | (bfd_mach_o_write_main, bfd_mach_o_write_dyld_info): New | |
154 | functions. | |
155 | (bfd_mach_o_write_symtab_content): New function (extracted | |
156 | from bfd_mach_o_write_symtab). | |
157 | (bfd_mach_o_write_symtab): Split. | |
158 | (bfd_mach_o_count_indirect_symbols): Move | |
159 | (bfd_mach_o_build_dysymtab): Remove layout code. | |
160 | (bfd_mach_o_write_contents): Rewritten to build commands in order. | |
161 | (bfd_mach_o_count_sections_for_seg): Remove. | |
162 | (bfd_mach_o_build_obj_seg_command): New function (extracted from | |
163 | bfd_mach_o_build_seg_command). | |
164 | (bfd_mach_o_build_exec_seg_command): New function. | |
165 | (bfd_mach_o_build_dysymtab_command): Remove. | |
166 | (bfd_mach_o_layout_commands): New function. | |
167 | (bfd_mach_o_init_segment): New function. | |
168 | (bfd_mach_o_build_commands): Major rework to handle non-object | |
169 | files. | |
170 | (bfd_mach_o_alloc_and_read, bfd_mach_o_read_dyld_content): New | |
171 | function. | |
172 | (bfd_mach_o_read_dyld_info): Clear content fields. | |
173 | (bfd_mach_o_read_segment): Adjust call. | |
174 | (bfd_mach_o_flatten_sections): Adjust as now load commands are | |
175 | chained. | |
176 | (bfd_mach_o_scan_start_address, bfd_mach_o_scan) | |
177 | (bfd_mach_o_mkobject_init, bfd_mach_o_get_base_address) | |
178 | (bfd_mach_o_lookup_command, bfd_mach_o_core_fetch_environment): | |
179 | Likewise. | |
180 | ||
967b2c53 TG |
181 | 2014-04-18 Tristan Gingold <gingold@adacore.com> |
182 | ||
183 | * mach-o-target.c (bfd_mach_o_bfd_copy_private_header_data): | |
184 | Define instead of bfd_mach_o_bfd_copy_private_bfd_data. | |
185 | * mach-o.c (bfd_mach_o_bfd_copy_private_bfd_data): Rename. | |
186 | * mach-o.h (bfd_mach_o_bfd_copy_private_bfd_data): Likewise. | |
187 | ||
4525c51a TG |
188 | 2014-04-18 Tristan Gingold <gingold@adacore.com> |
189 | ||
190 | * mach-o.h (bfd_mach_o_dylinker_command) | |
191 | (bfd_mach_o_dylib_command, bfd_mach_o_fvmlib_command): Remove | |
192 | name_len field. | |
193 | * mach-o.c (bfd_mach_o_read_dylinker, bfd_mach_o_read_dylib) | |
194 | (bfd_mach_o_read_fvmlib): Adjust after name_len removal. | |
195 | ||
4384b284 TG |
196 | 2014-04-18 Tristan Gingold <gingold@adacore.com> |
197 | ||
198 | * mach-o.h (bfd_mach_o_backend_data): Add page_size field. | |
199 | * mach-o-target.c: Check TARGET_PAGESIZE is defined. | |
200 | (TARGET_NAME_BACKEND): Add TARGET_PAGESIZE. | |
201 | * mach-o.c (TARGET_PAGESIZE): Define and undefined for | |
202 | each targets declared. | |
203 | * mach-o-x86-64.c (TARGET_PAGESIZE): Define. | |
204 | * mach-o-i386.c (TARGET_PAGESIZE): Define. | |
205 | ||
452216ab TG |
206 | 2014-04-18 Tristan Gingold <gingold@adacore.com> |
207 | ||
208 | * mach-o.c (bfd_mach_o_write_thread) | |
209 | (bfd_mach_o_write_section_32, bfd_mach_o_write_section_64) | |
210 | (bfd_mach_o_write_segment_32, bfd_mach_o_write_segment_64) | |
211 | (bfd_mach_o_read_dylinker, bfd_mach_o_read_dylib) | |
212 | (bfd_mach_o_read_prebound_dylib, bfd_mach_o_read_prebind_cksum) | |
213 | (bfd_mach_o_read_twolevel_hints, bfd_mach_o_read_fvmlib) | |
214 | (bfd_mach_o_read_thread, bfd_mach_o_read_dysymtab) | |
215 | (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid) | |
216 | (bfd_mach_o_read_linkedit, bfd_mach_o_read_str) | |
217 | (bfd_mach_o_read_dyld_info, bfd_mach_o_read_segment) | |
218 | (bfd_mach_o_read_segment_32, bfd_mach_o_read_segment_64) | |
219 | (bfd_mach_o_read_command): Now return a boolean status. | |
220 | Adjust return statements. | |
221 | (bfd_mach_o_write_contents, bfd_mach_o_scan): Adjust tests. | |
222 | (bfd_mach_o_core_file_failing_command): Remove useless initialization. | |
223 | ||
cb22ccf4 KCY |
224 | 2014-04-17 Kwok Cheung Yeung <kcy@codesourcery.com> |
225 | ||
226 | * elfxx-mips.c (struct mips_got_info): Delete assigned_gotno | |
227 | field. Add assigned_low_gotno and assigned_high_gotno fields. | |
228 | (mips_elf_create_local_got_entry): Update out-of-space condition. | |
229 | Set index of new GOT entry to assigned_low_gotno if required by | |
230 | the current relocation, else set it to assigned_high_gotno. | |
231 | (mips_elf_set_global_gotidx): Replace uses of assigned_gotno | |
232 | with assigned_low_gotno. | |
233 | (mips_elf_multi_got): Initialize assigned_low_gotno and | |
234 | assigned_high_gotno in secondary GOTs. Use assigned_low_gotno | |
235 | in place of assigned_gotno when handling global GOT entries. | |
236 | (mips_elf_lay_out_got): Initialize assigned_low_gotno and | |
237 | assigned_high_gotno. | |
238 | (_bfd_mips_elf_finish_dynamic_sections): Account for a possible | |
239 | gap in the middle of local GOT space. | |
240 | ||
4c34aff8 AM |
241 | 2014-04-17 Alan Modra <amodra@gmail.com> |
242 | ||
243 | PR 16846 | |
244 | * elflink.c (_bfd_elf_merge_symbol): Ignore TLS mismatch when | |
245 | current bfd is a plugin. Don't always set type_change_ok | |
246 | when old bfd is a plugin. | |
247 | ||
12241a34 TG |
248 | 2014-04-16 Tristan Gingold <gingold@adacore.com> |
249 | ||
250 | * mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Adjust cpusubtype | |
251 | flag. | |
252 | ||
40fd06d1 AM |
253 | 2014-04-16 Alan Modra <amodra@gmail.com> |
254 | ||
255 | * elf32-ppc.c (ppc_elf_relocate_section): Fill 476 fixup area | |
256 | with "ba 0" rather than zeros. | |
257 | ||
fa85fb9a MS |
258 | 2014-04-15 Marcus Shawcroft <marcus.shawcroft@arm.com> |
259 | ||
260 | * (elfNN_aarch64_tls_relax): Fix instruction mask. | |
261 | ||
da3a2088 AM |
262 | 2014-04-14 Alan Modra <amodra@gmail.com> |
263 | ||
264 | * elf32-ppc.c (BA): Define | |
265 | (ppc_elf_link_hash_table_create): Correct default_params. | |
266 | (write_glink_stub): Pad small plt call stub with "ba 0" rather | |
267 | than "nop" for ppc476_workaround. | |
268 | (ppc_elf_finish_dynamic_sections): Likewise for branch table | |
269 | and __glink_PLTresolve. Ensure plt call stub at end of page | |
270 | doesn't allow fall-thru prefetch. | |
271 | ||
32ae0d80 NC |
272 | 2014-04-11 Nick Clifton <nickc@redhat.com> |
273 | ||
274 | PR ld/16821 | |
275 | * peXXigen.c (abs_finder): New function. | |
276 | (_bfd_XXi_swap_sym_out): For absolute symbols with values larger | |
277 | than 1^32 try to convert them into section relative values | |
278 | instead. | |
279 | ||
85cf705b NC |
280 | 2014-04-11 Nick Clifton <nickc@redhat.com> |
281 | ||
282 | * bfd-in2.h: Regenerate. | |
283 | * libbfd.h: Regenerate. | |
284 | ||
1511baec SL |
285 | 2014-04-10 Cesar Philippidis <cesar@codesourcery.com> |
286 | ||
287 | * elf32-nios2.c (nios2_elf32_build_stubs): Ignore dynobjs | |
288 | when building function stubs. | |
289 | ||
e4ef1b6c DC |
290 | 2014-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
291 | ||
292 | * elf32-avr.c: Add DIFF relocations for AVR. | |
293 | (avr_final_link_relocate): Handle the DIFF relocs. | |
294 | (bfd_elf_avr_diff_reloc): New. | |
295 | (elf32_avr_is_diff_reloc): New. | |
296 | (elf32_avr_adjust_diff_reloc_value): Reduce difference value. | |
297 | (elf32_avr_relax_delete_bytes): Recompute difference after deleting | |
298 | bytes. | |
299 | ||
300 | * reloc.c: Add BFD_RELOC_AVR_DIFF8/16/32 relocations | |
301 | ||
e30d16e9 AM |
302 | 2014-04-09 Alan Modra <amodra@gmail.com> |
303 | ||
304 | * libcoff.h: Regenerate. | |
305 | ||
b4ab4364 AM |
306 | 2014-04-09 Alan Modra <amodra@gmail.com> |
307 | ||
308 | * elf32-ppc.c (ppc_elf_relocate_section): Remove bctr from list | |
309 | of safe ppc476 insns at end of page. Also remove non-branch insns. | |
310 | Expand comments. | |
311 | ||
61e2488c JT |
312 | 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk> |
313 | ||
314 | * peXXigen.c (pe_print_debugdata): New function: Displays the | |
315 | contents of the debug directory and decodes codeview entries. | |
316 | (_bfd_XXi_swap_debugdir_in, _bfd_XXi_swap_debugdir_out) | |
317 | (_bfd_XXi_slurp_codeview_record, _bfd_XXi_write_codeview_record): | |
318 | Add functions for reading and writing debugdir and codeview | |
319 | records. | |
320 | * libpei.h (_bfd_XXi_swap_debugdir_in, _bfd_XXi_swap_debugdir_out) | |
321 | (_bfd_XXi_write_codeview_record): Add prototypes and macros. | |
322 | * libcoff-in.h (pe_tdata): Add build-id data. | |
323 | * libcoff.h: Regenerate. | |
324 | * coffcode.h (coff_write_object_contents): Run build_id | |
325 | after_write_object_contents hook. | |
326 | ||
115c6d5c AM |
327 | 2014-04-05 Alan Modra <amodra@gmail.com> |
328 | ||
329 | * elflink.c (_bfd_elf_add_default_symbol): Pass poldbfd when | |
330 | merging non-default sym. | |
331 | ||
26954155 TG |
332 | 2014-04-04 Tristan Gingold <gingold@adacore.com> |
333 | ||
334 | * mach-o.c (bfd_mach_o_header_p): Reject 64 bit target when not | |
335 | configured for. | |
336 | ||
ca148c5a TG |
337 | 2014-04-04 Tristan Gingold <gingold@adacore.com> |
338 | ||
339 | * mach-o.c (bfd_mach_o_convert_section_name_to_mach_o): Fix | |
340 | thinko on names length. | |
341 | ||
47c50932 TG |
342 | 2014-04-04 Tristan Gingold <gingold@adacore.com> |
343 | ||
344 | * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_out): Use target index | |
345 | of output_section. | |
346 | * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Ditto. | |
347 | ||
4ef27e04 TG |
348 | 2014-04-04 Tristan Gingold <gingold@adacore.com> |
349 | ||
350 | * bfd.c (bfd_get_arch_size): Default is taken from arch. | |
351 | ||
b69c8728 JT |
352 | 2014-04-03 Jon Turney <jon.turney@dronecode.org.uk> |
353 | ||
354 | * peXXigen.c (pe_print_edata): Verify edt.name lies inside | |
355 | section before dereferencing. | |
356 | (pe_print_idata, pe_print_edata, pe_print_reloc) | |
357 | (rsrc_print_section): Don't bother interpreting the contents | |
358 | of sections which have no contents. | |
359 | ||
1b6aeedb MG |
360 | 2014-04-03 Maria Guseva <m.guseva@samsung.com> |
361 | ||
362 | PR ld/16803 | |
363 | * elf.c (_bfd_elf_set_section_contents): Use correct type to hold | |
364 | file position. | |
365 | ||
707e555b TG |
366 | 2014-04-03 Tristan Gingold <gingold@adacore.com> |
367 | ||
368 | * mach-o.c (bfd_mach_o_mangle_symbols): Use index from | |
369 | output_section. | |
370 | (bfd_mach_o_build_seg_command): Add comment. Realign segment. | |
371 | Fix style. | |
372 | (bfd_mach_o_build_commands, bfd_mach_o_read_thread): Fix style. | |
373 | ||
c3fcb775 AM |
374 | 2014-04-03 Alan Modra <amodra@gmail.com> |
375 | ||
376 | * elf-bfd.h (struct elf_backend_data | |
377 | <elf_backend_bfd_from_remote_memory>): Replace "size_t size" | |
378 | with "bfd_size_type size". | |
379 | (_bfd_elf32_bfd_from_remote_memory): Likewise. | |
380 | (_bfd_elf64_bfd_from_remote_memory): Likewise. | |
381 | * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. | |
382 | * elfcode.h (bfd_from_remote_memory): Likewise. | |
2493504a AM |
383 | * bfd-in.h (bfd_elf_bfd_from_remote_memory): Likewise. |
384 | * bfd-in2.h: Regenerate. | |
c3fcb775 | 385 | |
7a79c514 TG |
386 | 2014-04-02 Tristan Gingold <gingold@adacore.com> |
387 | ||
388 | * mach-o.h (bfd_mach_o_twolevel_hints_command) | |
389 | (bfd_mach_o_prebind_cksum_command): New types. | |
390 | (bfd_mach_o_prebound_dylib_command): Rewrite. | |
391 | (bfd_mach_o_load_command): Add prebind_cksum and twolevel_hints | |
392 | fields. | |
393 | * mach-o.c (bfd_mach_o_read_prebound_dylib): Read and decode the | |
394 | command. | |
395 | (bfd_mach_o_read_prebind_cksum): New function. | |
396 | (bfd_mach_o_read_twolevel_hints): Ditto. | |
397 | (bfd_mach_o_read_command): Handle prebind cksum and twolevel hints | |
398 | commands. | |
399 | ||
5979d6b6 AM |
400 | 2014-04-02 Alan Modra <amodra@gmail.com> |
401 | ||
402 | * elfcode.h (bfd_from_remote_memory): Add "size" parameter. | |
403 | Consolidate code handling possible section headers past end of | |
404 | segment. Don't use p_align for page size guess, instead use | |
405 | minpagesize. Take note of ld.so clearing section headers when | |
406 | p_memsz > p_filesz. Handle file header specifying no section | |
407 | headers. Handle zero p_align throughout. Default loadbase to | |
408 | zero. Add comments. Rename contents_size to high_offset, and | |
409 | make it a bfd_vma. Delete unnecessary bfd_set_error calls. | |
410 | * bfd-in.h (bfd_elf_bfd_from_remote_memory): Update prototpe. | |
411 | * elf-bfd.h (struct elf_backend_data <elf_backend_from_remote_memory>): | |
412 | Likewise. | |
413 | (_bfd_elf32_bfd_from_remote_memory): Likewise. | |
414 | (_bfd_elf64_bfd_from_remote_memory): Likewise. | |
415 | * elf.c (bfd_elf_bfd_from_remote_memory): Adjust. | |
416 | * bfd-in2.h: Regnerate. | |
417 | ||
23d72939 TG |
418 | 2014-04-01 Tristan Gingold <gingold@adacore.com> |
419 | ||
420 | * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Avoid to crash | |
421 | when num == 0. | |
422 | ||
6a631e86 YG |
423 | 2014-03-27 Yury Gribov <y.gribov@samsung.com> |
424 | Pavel Fedin <p.fedin@samsung.com> | |
425 | ||
426 | * elf32-arm.c: Add support for limited pretty-printing of PLT | |
427 | entries on eabi and nacl targets. | |
428 | (elf32_arm_get_synthetic_symtab): Add new callback. | |
429 | (elf32_arm_nacl_plt_sym_val): Likewise. | |
430 | (elf32_arm_plt0_size): Add helper function. | |
431 | (elf32_arm_plt_size): Likewise. | |
432 | ||
10be66a4 TG |
433 | 2014-03-27 Tristan Gingold <gingold@adacore.com> |
434 | ||
435 | * mach-o.c (bfd_mach_o_read_dylinker): Remove assert. | |
436 | (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_DYLD_ENVIRONMENT. | |
437 | ||
3cc27770 TG |
438 | 2014-03-27 Tristan Gingold <gingold@adacore.com> |
439 | ||
440 | * mach-o.h (bfd_mach_o_get_base_address): New prototype. | |
441 | * mach-o.c (bfd_mach_o_write_symtab) | |
442 | (bfd_mach_o_write_contents) | |
443 | (bfd_mach_o_set_section_flags_from_bfd) | |
444 | (bfd_mach_o_build_seg_command): Fix indentation. | |
445 | (bfd_mach_o_get_base_address): New function. | |
446 | ||
55bfc9ac NC |
447 | 2014-03-26 Nick Clifton <nickc@redhat.com> |
448 | ||
449 | * cofflink.c (_bfd_coff_generic_relocate_section): Skip | |
450 | relocations in discarded sections. | |
451 | ||
d8028530 TG |
452 | 2014-03-26 Tristan Gingold <gingold@adacore.com> |
453 | ||
454 | * mach-o.c (bfd_mach_o_convert_architecture): Add | |
455 | BFD_MACH_O_CPU_TYPE_ARM64. | |
456 | ||
f6c7c3e8 AM |
457 | 2014-03-26 Alan Modra <amodra@gmail.com> |
458 | ||
459 | * elf64-ppc.c (ppc64_elf_check_relocs): Account for possibly | |
460 | needed plt entries when taking the address of functions for | |
461 | abiversion == 0 (ie. unknown) as well as abiversion == 2. | |
462 | Move opd setup and abiversion checks to.. | |
463 | (ppc64_elf_before_check_relocs): ..here. Renamed from | |
464 | ppc64_elf_process_dot_syms. Set output abiversion from input and | |
465 | input abiversion from output, if either is not set. | |
466 | (ppc64_elf_merge_private_bfd_data): Don't merge flags here. | |
467 | (elf_backend_check_directives): Update. | |
468 | ||
c955de36 WN |
469 | 2014-03-25 Will Newton <will.newton@linaro.org> |
470 | ||
471 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections): | |
472 | Set value of DT_PLTRELSZ and DT_RELASZ based on the size | |
473 | of input sections rather than output sections. | |
474 | ||
97323ad1 WN |
475 | 2014-03-20 Will Newton <will.newton@linaro.org> |
476 | ||
477 | PR ld/16715 | |
478 | * elf32-arm.c (elf32_arm_check_relocs): Set | |
479 | pointer_equality_needed for absolute references within | |
480 | executable links. | |
481 | (elf32_arm_finish_dynamic_symbol): Set st_value to zero | |
482 | unless pointer_equality_needed is set. | |
483 | ||
1d63324c NC |
484 | 2014-03-19 Nick Clifton <nickc@redhat.com> |
485 | ||
6caf7111 NC |
486 | * peXXigen.c (rsrc_process_section): Add code to scan input |
487 | sections and record their lengths. Use these lengths to find the | |
488 | start of each merged .rsrc section. | |
1d63324c | 489 | |
fbe383b9 TG |
490 | 2014-03-17 Tristan Gingold <gingold@adacore.com> |
491 | ||
492 | * mach-o.c (bfd_mach_o_read_dylib): Handle lazy load dylib. | |
493 | (bfd_mach_o_read_command): Ditto. | |
494 | ||
5a026fc9 NC |
495 | 2014-03-14 Meador Inge <meadori@codesourcery.com> |
496 | ||
497 | * configure.in: Add strnlen to AC_CHECK_DECLS. | |
498 | * config.in: Regenerate. | |
499 | * configure: Regenerate. | |
500 | * sysdep.h (strnlen): Add prototype. | |
501 | ||
c3301df1 AM |
502 | 2014-03-14 Alan Modra <amodra@gmail.com> |
503 | ||
504 | * elf32-ppc.c (ppc_elf_relocate_section): Correct overflow | |
505 | handling for VLE_SDA21 relocs. | |
506 | ||
167ad85b TG |
507 | 2014-03-13 Tristan Gingold <gingold@adacore.com> |
508 | ||
509 | * peicode.h (pe_ILF_object_p): Adjust, as the version number | |
510 | has been read. | |
511 | (pe_bfd_object_p): Also read version number to detect ILF. | |
512 | * pe-x86_64.c (COFF_WITH_PE_BIGOBJ): Define. | |
513 | (x86_64pe_bigobj_vec): Define | |
514 | * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_max_nscns field. | |
515 | (bfd_coff_max_nscns): New macro. | |
516 | (coff_compute_section_file_positions): Use unsigned int for | |
517 | target_index. Compare with bfd_coff_max_nscns. | |
518 | (bfd_coff_std_swap_table, ticoff0_swap_table, ticoff1_swap_table): | |
519 | Set a value for _bfd_coff_max_nscns. | |
520 | (header_bigobj_classid): New constant. | |
521 | (coff_bigobj_swap_filehdr_in, coff_bigobj_swap_filehdr_out) | |
522 | (coff_bigobj_swap_sym_in, coff_bigobj_swap_sym_out) | |
523 | (coff_bigobj_swap_aux_in, coff_bigobj_swap_aux_out): New | |
524 | functions. | |
525 | (bigobj_swap_table): New table. | |
526 | * libcoff.h: Regenerate. | |
527 | * coff-sh.c (bfd_coff_small_swap_table): Likewise. | |
528 | * coff-alpha.c (alpha_ecoff_backend_data): Add value for | |
529 | _bfd_coff_max_nscns. | |
530 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
531 | * coff-rs6000.c (bfd_xcoff_backend_data) | |
532 | (bfd_pmac_xcoff_backend_data): Likewise. | |
533 | * coff64-rs6000.c (bfd_xcoff_backend_data) | |
534 | (bfd_xcoff_aix5_backend_data): Likewise. | |
535 | * targets.c (x86_64pe_bigobj_vec): Declare. | |
536 | * configure.in (x86_64pe_bigobj_vec): New vector. | |
537 | * configure: Regenerate. | |
538 | * config.bfd: Add bigobj object format for Windows targets. | |
539 | ||
c792917c NC |
540 | 2014-03-12 Nick Clifton <nickc@redhat.com> |
541 | ||
542 | PR ld/16671 | |
543 | * elf32-arm.c (elf32_arm_add_symbol_hook): Check for ARM format | |
544 | before testing for vxworks. | |
545 | ||
fa47fa92 AM |
546 | 2014-03-12 Alan Modra <amodra@gmail.com> |
547 | ||
548 | * Makefile.in: Regenerate. | |
549 | ||
bbefd0a9 AM |
550 | 2014-03-12 Alan Modra <amodra@gmail.com> |
551 | ||
552 | PR 16690 | |
553 | * elf.c (copy_elf_program_header): Ignore first section lma if | |
554 | non-alloc. | |
555 | ||
3c865fca AM |
556 | 2014-03-11 Alan Modra <amodra@gmail.com> |
557 | ||
558 | PR 16686 | |
559 | * coff-rs6000.c: Include stdint.h. | |
560 | * coff64-rs6000.c: Likewise. | |
561 | ||
ce15efd8 TG |
562 | 2014-03-10 Tristan Gingold <gingold@adacore.com> |
563 | ||
564 | * ticoff.h: Removed. | |
565 | ||
86c95733 AM |
566 | 2014-03-08 Alan Modra <amodra@gmail.com> |
567 | ||
568 | * elf32-ppc.c (ppc_elf_howto_raw): Correct overflow check for | |
569 | many relocations. Correct bitsize and rightshift too for a number | |
570 | of VLE relocs. Describe R_PPC_VLE_SDA21 and R_PPC_VLE_SDA21_LO. | |
571 | Correct dst_mask on R_PPC_VLE_SDA21_LO. | |
572 | (ppc_elf_vle_split16): Tidy, delete unnecessary prototype. | |
573 | (ppc_elf_relocate_section): Modify overflow test for 16-bit | |
574 | fields in instructions to signed/unsigned according to whether | |
575 | the field takes a signed or unsigned value. Tidy vle split16 code. | |
576 | Correct R_PPC_VLE_SDA21 and R_PPC_VLE_SDA21_LO handling. | |
577 | ||
b80eed39 AM |
578 | 2014-03-08 Alan Modra <amodra@gmail.com> |
579 | ||
580 | * elf64-ppc.c (ppc64_elf_howto_raw): Use complain_overflow_signed | |
581 | for R_PPC64_ADDR14, R_PPC64_ADDR14_BRTAKEN, R_PPC64_ADDR14_BRNTAKEN, | |
582 | R_PPC64_SECTOFF, R_PPC64_ADDR16_DS, R_PPC64_SECTOFF_DS, | |
583 | R_PPC64_REL16 entries. Use complain_overflow_dont for R_PPC64_TOC. | |
584 | (ppc64_elf_relocate_section): Modify overflow test for 16-bit | |
585 | fields in instructions to signed/unsigned according to whether | |
586 | the field takes a signed or unsigned value. | |
587 | ||
c38e8559 PA |
588 | 2014-03-07 Pedro Alves <palves@redhat.com> |
589 | ||
5893c83a | 590 | PR gdb/16696 |
c38e8559 PA |
591 | * rs6000-core.c (rs6000coff_core_p): Cast pointers to bfd_vma |
592 | through ptr_to_uint instead of through long. | |
593 | ||
e9847026 NC |
594 | 2014-03-06 Nick Clifton <nickc@redhat.com> |
595 | ||
596 | PR 16664 | |
597 | * elf-attrs.c (_bfd_elf_parse_attributes): Add checks for corrupt | |
598 | attribute section names. | |
599 | ||
4b95cf5c AM |
600 | 2014-03-05 Alan Modra <amodra@gmail.com> |
601 | ||
602 | Update copyright years. | |
603 | ||
45965137 AM |
604 | 2014-03-05 Alan Modra <amodra@gmail.com> |
605 | ||
606 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_ADDR64_LOCAL entry. | |
607 | (ppc64_elf_reloc_type_lookup): Support R_PPC64_ADDR64_LOCAL. | |
608 | (ppc64_elf_check_relocs): Likewise. | |
609 | (ppc64_elf_relocate_section): Likewise. | |
610 | * Add BFD_RELOC_PPC64_ADDR64_LOCAL. | |
611 | * bfd-in2.h: Regenerate. | |
612 | * libbfd.h: Regenerate. | |
613 | ||
cd0c81e9 | 614 | 2014-03-04 Heiher <r@hev.cc> |
4ba154f5 RS |
615 | |
616 | * elfxx-mips.c (mips_set_isa_flags): Use E_MIPS_ARCH_64R2 for | |
617 | Loongson-3A. | |
618 | (mips_mach_extensions): Make bfd_mach_mips_loongson_3a an | |
619 | extension of bfd_mach_mipsisa64r2. | |
620 | ||
eed94f8f NC |
621 | 2014-03-04 Nick Clifton <nickc@redhat.com> |
622 | ||
623 | PR ld/16017 | |
624 | * elf32-arm.c (elf32_thumb2_plt0_entry): New array. | |
625 | (elf32_thumb2_plt_entry): New array. | |
626 | (elf32_arm_create_dynamic_sections): Set PLT entry sizes when | |
627 | using thumb2 based PLT. | |
628 | (elf32_arm_populate_plt_entry): Handle generating Thumb2 based PLT | |
629 | entries. | |
630 | (elf32_arm_final_link_relocate): Do not bias jumps to Thumb based | |
631 | PLT entries. | |
632 | (elf32_arm_finish_dynamic_sections): Handle creation of Thumb2 | |
633 | based PLT 0-entry. | |
634 | (elf32_arm_output_plt_map_1): Handle creation of local symbols for | |
635 | Thumb2 based PLT 0-entry. | |
636 | (elf32_arm_output_arch_local_syms): Handle creation of local | |
637 | symbols for Thumb2 based PLT entries. | |
638 | ||
9850436d AM |
639 | 2014-02-28 Alan Modra <amodra@gmail.com> |
640 | ||
641 | PR ld/16643 | |
642 | * elflink.c (elf_gc_sweep): Call gc_sweep_hook for exactly | |
643 | the same conditions we called check_relocs. | |
644 | ||
1db37fe6 YG |
645 | 2014-02-27 Yuri Gribov <y.gribov@samsung.com> |
646 | ||
647 | * bfd-in.h: Add export of bfd_elf32_arm_use_long_plt. | |
648 | * bfd-in2.h: Regenerate. | |
649 | * elf32-arm.c (elf32_arm_plt_entry_long): New array. | |
650 | (elf32_arm_link_hash_table_create): Set plt_entry_size to 16 if | |
651 | using long PLT entries. | |
652 | (bfd_elf32_arm_use_long_plt): New function. | |
653 | (elf32_arm_populate_plt_entry): Add support for long PLT entries. | |
654 | ||
db434ba0 AM |
655 | 2014-02-27 Alan Modra <amodra@gmail.com> |
656 | ||
657 | * elf32-ppc.c (ppc_elf_link_hash_table_create): Provide default | |
658 | params for targets that don't use ppc32elf.em. | |
659 | ||
d9972968 CLT |
660 | 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com> |
661 | ||
662 | * elf32-nios2.c (nios2_elf32_relocate_section): Fix calculation | |
663 | of GOTOFF relocations. | |
664 | ||
0ff2b86e L |
665 | 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com> |
666 | H.J. Lu <hongjiu.lu@intel.com> | |
667 | ||
668 | * elf64-x86-64.c (elf_x86_64_bnd_plt0_entry): New. | |
669 | (elf_x86_64_legacy_plt_entry): Likewise. | |
670 | (elf_x86_64_bnd_plt_entry): Likewise. | |
671 | (elf_x86_64_legacy_plt2_entry): Likewise. | |
672 | (elf_x86_64_bnd_plt2_entry): Likewise. | |
673 | (elf_x86_64_bnd_arch_bed): Likewise. | |
674 | (elf_x86_64_link_hash_entry): Add has_bnd_reloc and plt_bnd. | |
675 | (elf_x86_64_link_hash_table): Add plt_bnd. | |
676 | (elf_x86_64_link_hash_newfunc): Initialize has_bnd_reloc and | |
677 | plt_bnd. | |
678 | (elf_x86_64_copy_indirect_symbol): Also copy has_bnd_reloc. | |
679 | (elf_x86_64_check_relocs): Create the second PLT for Intel MPX | |
680 | in 64-bit mode. | |
681 | (elf_x86_64_allocate_dynrelocs): Handle the second PLT for IFUNC | |
682 | symbols. Resolve call to the second PLT if it is created. | |
683 | (elf_x86_64_size_dynamic_sections): Keep the second PLT section. | |
684 | (elf_x86_64_relocate_section): Resolve PLT references to the | |
685 | second PLT if it is created. | |
686 | (elf_x86_64_finish_dynamic_symbol): Use BND PLT0 and fill the | |
687 | second PLT entry for BND relocation. | |
688 | (elf_x86_64_finish_dynamic_sections): Use MPX backend data if | |
689 | the second PLT is created. | |
690 | (elf_x86_64_get_synthetic_symtab): New. | |
691 | (bfd_elf64_get_synthetic_symtab): Likewise. Undefine for NaCl. | |
692 | ||
7d4c687d AM |
693 | 2014-02-19 Alan Modra <amodra@gmail.com> |
694 | ||
695 | * elf64-ppc.h (struct ppc64_elf_params): Add save_restore_funcs. | |
696 | * elf64-ppc.c (ppc64_elf_func_desc_adjust): Use it to control | |
697 | provision of out-of-line register save/restore routines. | |
698 | ||
5db3e65d JC |
699 | 2014-02-18 Jack Carter <jack.carter@imgtec.com> |
700 | ||
701 | * elfxx-mips.c(_bfd_mips_elf_modify_segment_map): Deleted hard coding of | |
702 | PT_DYNAMIC segment flags. | |
703 | ||
024a2310 JK |
704 | 2014-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
705 | ||
706 | PR binutils/16595 | |
707 | * simple.c (struct saved_offsets): New. | |
708 | (simple_save_output_info): Use it for ptr. | |
709 | (simple_restore_output_info): Use it for ptr. Check section_count. | |
710 | (bfd_simple_get_relocated_section_contents): Use it for saved_offsets. | |
711 | ||
e7d1c40c AM |
712 | 2014-02-17 Alan Modra <amodra@gmail.com> |
713 | ||
714 | * elf64-ppc.h (struct ppc64_elf_params): Define. | |
715 | (ppc64_elf_init_stub_bfd, ppc64_elf_edit_opd, ppc64_elf_tls_setup, | |
716 | ppc64_elf_setup_section_lists, ppc64_elf_size_stubs, | |
717 | ppc64_elf_build_stubs): Update prototype. | |
718 | * elf64-ppp.c (struct ppc_link_hash_table): Add params, delete other | |
719 | fields now in params. Adjust code throughout file. | |
720 | (ppc64_elf_init_stub_bfd): Delete "abfd" parameter, add "params". | |
721 | Save params pointer in htab. | |
722 | (ppc64_elf_edit_opd, ppc64_elf_tls_setup, | |
723 | ppc64_elf_setup_section_lists, ppc64_elf_size_stubs, | |
724 | ppc64_elf_build_stubs): Remove parameters now in "params". | |
725 | ||
668e22e5 AM |
726 | 2014-02-17 Alan Modra <amodra@gmail.com> |
727 | ||
728 | * elf32-ppc.c (ppc_elf_relocate_section): Move relocs on insns | |
729 | patched for ppc476 workaround. Reapply branch taken/not taken | |
730 | relocs. | |
731 | ||
9f7552cf AM |
732 | 2014-02-12 Alan Modra <amodra@gmail.com> |
733 | ||
734 | * elf32-ppc.c (ppc_elf_relax_section): Don't build long-branch | |
735 | stubs for calls to __tls_get_addr that we know will later be | |
736 | optimised away. | |
737 | ||
795bc6b3 AM |
738 | 2014-02-12 Alan Modra <amodra@gmail.com> |
739 | ||
740 | * elf32-ppc.c (ppc_elf_relax_section): Enable ppc476 workaround | |
741 | for ld -r, when code sections are sufficiently aligned. | |
742 | * elf32-ppc.h (struct ppc_elf_params): Delete pagesize. Add | |
743 | pagesize_p2. | |
744 | ||
b407645f AM |
745 | 2014-02-12 Alan Modra <amodra@gmail.com> |
746 | ||
747 | PR gold/15530 | |
748 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
749 | --export-dynamic and --dynamic-list marking of symbols. | |
750 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Reorder | |
751 | cheap tests first. | |
752 | ||
d6f6f455 L |
753 | 2014-02-10 H.J. Lu <hongjiu.lu@intel.com> |
754 | ||
755 | PR gold/16530 | |
756 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark symbol in | |
757 | executables if it matches dynamic_list. | |
758 | ||
c1c69e83 AM |
759 | 2014-02-10 Alan Modra <amodra@gmail.com> |
760 | ||
761 | * po/SRC-POTFILES.in: Regenerate. | |
762 | * po/bfd.pot: Regenerate. | |
763 | ||
53291d1f AM |
764 | 2014-02-09 Alan Modra <amodra@gmail.com> |
765 | ||
766 | * elf-bfd.h (struct elf_backend_data): Add caches_rawsize. | |
767 | * elfxx-target.h (elf_backend_caches_rawsize): Define. | |
768 | (elfNN_bed): Init new field. | |
769 | * elflink.c (elf_link_input_bfd): Handle caches_rawsize. | |
770 | * elf32-ppc.c (shared_stub_entry): Zero addi offset. | |
771 | (ppc_elf_relax_section): Don't reallocate section here, write | |
772 | stubs, or write out relocs for ld -r here.. | |
773 | (ppc_elf_relocate_section): ..instead write stubs here, and use | |
774 | existing code to write out relocs for ld -r. Fix offset | |
775 | adjustment on reloc for little-endian. | |
776 | (elf_backend_caches_rawsize): Define. | |
777 | ||
d1eb5696 RO |
778 | 2014-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
779 | ||
85773039 | 780 | PR build/16550 |
d1eb5696 RO |
781 | * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t. |
782 | ||
2915c55b JK |
783 | 2014-02-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
784 | ||
785 | * coff-rs6000.c (xcoff_write_archive_contents_big): Free OFFSETS in | |
786 | return paths. Three times. | |
787 | * elf64-ppc.c (ppc64_elf_link_hash_table_create): Free HTAB in all | |
788 | return paths. | |
789 | (ppc64_elf_tls_optimize): Free TOC_REF in return path. | |
790 | (ppc64_elf_edit_toc): Free USED in return path. | |
791 | ||
1c2de463 SL |
792 | 2014-02-03 Sandra Loosemore <sandra@codesourcery.com> |
793 | ||
794 | * reloc.c (BFD_RELOC_NIOS2_GOT_LO, BFD_RELOC_NIOS2_GOT_HA): New. | |
795 | (BFD_RELOC_NIOS2_CALL_LO, BFD_RELOC_NIOS2_CALL_HA): New. | |
796 | * libbfd.h: Regenerated. | |
797 | * bfd-in2.h: Regenerated. | |
798 | * elf32-nios2.c (elf_nios2_howto_table_rel): Add new relocations. | |
799 | (nios2_reloc_map): Likewise. | |
800 | (GOT_USED, CALL_USED): Renamed from GOT16_USED and CALL16_USED. | |
801 | Fixed all references. | |
802 | (nios2_elf32_relocate_section): Add new relocations. | |
803 | (nios2_elf32_check_relocs): Likewise. | |
804 | (nios2_elf32_gc_sweep_hook): Likewise. | |
805 | ||
5446cbdf AM |
806 | 2014-02-03 Alan Modra <amodra@gmail.com> |
807 | ||
808 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add params. | |
809 | Delete emit_stub_syms, no_tls_get_addr_opt. Update all uses. | |
810 | (ppc_elf_link_params): New function. | |
811 | (ppc_elf_create_glink): Align .glink to 64 bytes for ppc476 | |
812 | workaround. | |
813 | (ppc_elf_select_plt_layout): Remove plt_style and emit_stub_syms | |
814 | parameters. Use htab->params instead. | |
815 | (ppc_elf_tls_setup): Remove no_tls_get_addr_opt parameter. | |
816 | (ppc_elf_size_dynamic_sections): Align __glink_PLTresolve to | |
817 | 64 bytes for ppc476 workaround. | |
818 | (struct ppc_elf_relax_info): New. | |
819 | (ppc_elf_relax_section): Exclude linker created sections and | |
820 | those too small to hold one instruction. Don't add another | |
821 | branch around trampolines on later relax passes. Don't | |
822 | generate trampolines for undefined symbols when !relocatable, | |
823 | nor for plugin symbols. Allocate space for ppc476 workaround | |
824 | patch area. Free fixups on error return path. | |
825 | (ppc_elf_relocate_section): Handle ppc476 workaround patching. | |
826 | * elf32-ppc.h (struct ppc_elf_params): New. | |
827 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Update prototype. | |
828 | (ppc_elf_link_params): Declare. | |
829 | * section.c (SEC_INFO_TYPE_TARGET): Define. | |
830 | * bfd-in2.h: Regenerate. | |
831 | ||
82e91538 SL |
832 | 2014-02-02 Sandra Loosemore <sandra@codesourcery.com> |
833 | ||
834 | * elf32-nios2.c (struct elf32_nios2_link_hash_table): Add | |
835 | h_gp_got field. | |
836 | (nios2_elf32_relocate_section): Use got_base to adjust | |
837 | GOT-pointer-relative relocations relative to _gp_got. | |
838 | (create_got_section): Create _gp_got symbol. | |
839 | (nios2_elf32_finish_dynamic_symbol): Make _gp_got absolute. | |
840 | (nios2_elf32_size_dynamic_sections): Set _gp_got offset. | |
841 | ||
78058a5e SL |
842 | 2014-01-30 Sandra Loosemore <sandra@codesourcery.com> |
843 | ||
844 | * bfd-in2.h: Update from reloc.c. | |
845 | * elf32-nios2.c: Include elf32-nios2.h. | |
846 | (elf_nios2_howto_table_rel): Add entry for R_NIOS2_CALL26_NOAT. | |
847 | (nios2_reloc_map): Likewise. | |
848 | (enum elf32_nios2_stub_type): Declare. | |
849 | (struct elf32_nios2_stub_hash_entry): Declare. | |
850 | (nios2_stub_hash_entry, nios2_stub_hash_lookup): New macros. | |
851 | (struct elf32_nios2_link_hash_entry): Add hsh_cache field. | |
852 | (struct elf32_nios2_link_hash_table): Add new fields bstab, | |
853 | stub_bfd, add_stub_section, layout_sections_again, stub_group, | |
854 | bfd_count, top_index, input_list, all_local_syms. | |
855 | (nios2_call26_stub_entry): New. | |
856 | (nios2_elf32_install_imm16): Move up in file. | |
857 | (nios2_elf32_install_data): Move up in file. | |
858 | (hiadj): Move up in file. | |
859 | (stub_hash_newfunc): New. | |
860 | (link_hash_newfunc): Initialize hsh_cache field. | |
861 | (STUB_SUFFIX): New. | |
862 | (nios2_stub_name): New. | |
863 | (nios2_get_stub_entry): New. | |
864 | (nios2_add_stub): New. | |
865 | (nios2_elf32_setup_section_lists): New. | |
866 | (nios2_elf32_next_input_section): New. | |
867 | (CALL26_SEGMENT): New. | |
868 | (MAX_STUB_SECTION_SIZE): New. | |
869 | (group_sections): New. | |
870 | (nios2_type_of_stub): New. | |
871 | (nios2_build_one_stub): New. | |
872 | (nios2_size_one_stub): New. | |
873 | (get_local_syms): New. | |
874 | (nios2_elf32_size_stubs): New. | |
875 | (nios2_elf32_build_stubs): New. | |
876 | (nios2_elf32_do_call26_relocate): Correct CALL26 overflow test. | |
877 | (nios2_elf32_relocate_section): Handle R_NIOS2_CALL26_NOAT. Add | |
878 | trampolines for R_NIOS2_CALL26 stubs. | |
879 | (nios2_elf32_check_relocs): Handle R_NIOS2_CALL26_NOAT. | |
880 | (nios2_elf32_gc_sweep_hook): Likewise. | |
881 | (nios2_elf32_link_hash_table_create): Initialize the stub hash table. | |
882 | (nios2_elf32_link_hash_table_free): New. | |
883 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
884 | * elf32-nios2.h: New file. | |
885 | * libbfd.h: Update from reloc.c. | |
886 | * reloc.c (BFD_RELOC_NIOS2_CALL26_NOAT): New. | |
887 | ||
df3ce959 NC |
888 | 2014-01-29 Nick Clifton <nickc@redhat.com> |
889 | ||
890 | PR binutils/16318 | |
891 | * elf32-metag.c (elf_metag_post_process_headers): Call | |
892 | _bfd_elf_post_process_headers. | |
893 | * elf32-sh64.c (sh64_elf_copy_private_data): Call | |
894 | _bfd_elf_copy_private_data. | |
895 | * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise. | |
896 | ||
27b829ee NC |
897 | 2014-01-29 Nick Clifton <nickc@redhat.com> |
898 | ||
899 | * bfd-in.h (bfd_set_section_vma): Delete. | |
900 | (bfd_set_section_alignment): Delete. | |
901 | (bfd_set_section_userdata): Delete. | |
902 | (bfd_set_cacheable): Delete. | |
903 | * bfd.c (bfd_set_cacheable): New static inline function. | |
904 | * section.c (bfd_set_section_userdata): Likewise. | |
905 | (bfd_set_section_vma): Likewise. | |
906 | (bfd_set_section_alignment): Likewise. | |
907 | * bfd-in2.h: Regenerate. | |
908 | ||
0a9c7b2b NC |
909 | 2014-01-28 Nick Clifton <nickc@redhat.com> |
910 | ||
911 | * dwarf2.c (find_abstract_instance_name): For DW_FORM_ref_addr | |
912 | attributes select the CU containing the abbreviation, which may not | |
913 | be the current CU. | |
914 | ||
3ba720c7 AM |
915 | 2014-01-24 Alan Modra <amodra@gmail.com> |
916 | ||
917 | * elf64-ppc.c (ppc_build_one_stub): Correct reloc count passed | |
918 | to get_relocs for ELFv2. | |
919 | ||
d923cae0 L |
920 | 2014-01-23 H.J. Lu <hongjiu.lu@intel.com> |
921 | ||
922 | PR ld/16498 | |
3ba720c7 | 923 | * elf.c (_bfd_elf_map_sections_to_segments): Issue a linker error |
d923cae0 L |
924 | if TLS sections are not adjacent. |
925 | ||
16e4ecc0 AM |
926 | 2014-01-22 Alan Modra <amodra@gmail.com> |
927 | ||
928 | * elflink.c (elf_link_add_object_symbols): Call minfo for --as-needed. | |
929 | ||
eb8d7fda AM |
930 | 2014-01-22 Alan Modra <amodra@gmail.com> |
931 | ||
932 | * elf64-ppc.c (STK_LINKER): Comment typo fix. | |
933 | ||
4584ec12 L |
934 | 2014-01-21 H.J. Lu <hongjiu.lu@intel.com> |
935 | ||
936 | PR ld/16467 | |
937 | * elflink.c (_bfd_elf_merge_symbol): When types of the existing | |
938 | regular default symbol definition and the versioned dynamic | |
939 | symbol definition mismatch, skip the default symbol definition | |
940 | if one of them is IFUNC. | |
941 | ||
22ef172a L |
942 | 2014-01-21 H.J. Lu <hongjiu.lu@intel.com> |
943 | ||
944 | PR ld/2404 | |
945 | * elflink.c (_bfd_elf_merge_symbol): Don't check info->shared, | |
946 | info->export_dynamic nor h->ref_dynamic for type mismatch when | |
947 | adding the default version. | |
948 | ||
b75d42bc AM |
949 | 2014-01-16 Alan Modra <amodra@gmail.com> |
950 | ||
951 | * elfxx-mips.c (mips_elf_record_got_page_entry): Pass in a | |
952 | mips_elf_traverse_got_arg* rather than mips_got_info*. | |
953 | Adjust caller. Alloc on output_bfd rather than symbol section | |
954 | owner. | |
955 | ||
c353e543 L |
956 | 2014-01-15 H.J. Lu <hongjiu.lu@intel.com> |
957 | ||
958 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last | |
959 | change. | |
960 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
961 | ||
818d220a L |
962 | 2014-01-14 H.J. Lu <hongjiu.lu@intel.com> |
963 | ||
964 | PR ld/16428 | |
965 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't discard relocs | |
966 | against __ehdr_start. | |
967 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
968 | ||
c3ce498c L |
969 | 2014-01-14 H.J. Lu <hongjiu.lu@intel.com> |
970 | ||
971 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last | |
972 | change. | |
973 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
974 | ||
d1ec1e40 L |
975 | 2014-01-14 H.J. Lu <hongjiu.lu@intel.com> |
976 | ||
977 | PR ld/16428 | |
978 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't update reloc | |
979 | count if there are any non pc-relative relocs. | |
980 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
981 | ||
f44a1f8e CL |
982 | 2014-01-14 Michael Hudson-Doyle <michael.hudson@linaro.org> |
983 | Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org> | |
984 | ||
985 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use correct | |
986 | offset while calculating relocation address. | |
987 | (elfNN_aarch64_create_small_pltn_entry): Likewise. | |
988 | (elfNN_aarch64_init_small_plt0_entry): Likewise. | |
989 | ||
fd0fd00c MJ |
990 | 2014-01-13 Ma Jiang <ma.jiang@zte.com.cn> |
991 | ||
992 | PR ld/16202 | |
993 | * elf32-arm.c (elf32_arm_final_link_relocate): Refetch addends for | |
994 | R_ARM_ABS8 and R_ARM_ABS16. | |
995 | ||
aa726b9e AM |
996 | 2014-01-13 Alan Modra <amodra@gmail.com> |
997 | ||
998 | * elf32-ppc.c (ppc_elf_check_relocs): For @local call to ifunc, | |
999 | error when shared and force a plt call otherwise. | |
1000 | (ppc_elf_size_dynamic_sections): Don't emit DT_PPC_GOT unless | |
1001 | plt_type == PLT_NEW. | |
1002 | (ppc_elf_relocate_section): Add missing test to resolve ifuncs to | |
1003 | the appropriate call stub. | |
1004 | ||
eec2f3ed AM |
1005 | 2014-01-10 Alan Modra <amodra@gmail.com> |
1006 | ||
1007 | PR ld/14207 | |
1008 | PR ld/16322 | |
1009 | PR binutils/16323 | |
1010 | * elf.c (assign_file_positions_for_load_sections): Revert last change. | |
1011 | (assign_file_positions_for_non_load_sections): When setting up | |
1012 | PT_GNU_RELRO header, don't require a corresponding PT_LOAD | |
1013 | header that completely covers the relro region. | |
1014 | ||
09bf66a8 TG |
1015 | 2014-01-09 Tristan Gingold <gingold@adacore.com> |
1016 | ||
1017 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): use jump | |
1018 | table macros and add macros to initializa the structure. | |
1019 | ||
43a8475c L |
1020 | 2014-01-08 H.J. Lu <hongjiu.lu@intel.com> |
1021 | ||
1022 | PR ld/14207 | |
1023 | PR ld/16322 | |
1024 | PR binutils/16323 | |
1025 | * elf.c (_bfd_elf_map_sections_to_segments): Don't check section | |
1026 | size for PT_GNU_RELRO segment. | |
1027 | (assign_file_positions_for_load_sections): If PT_LOAD segment | |
1028 | doesn't fit PT_GNU_RELRO segment, adjust its p_filesz and p_memsz. | |
1029 | ||
1651e569 TT |
1030 | 2014-01-07 Tom Tromey <tromey@redhat.com> |
1031 | ||
1032 | * elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility | |
1033 | wrappers. | |
1034 | ||
dc9155b2 NC |
1035 | 2014-01-03 Nick Clifton <nickc@redhat.com> |
1036 | ||
1037 | PR binutils/16199 | |
1038 | * elf.c (vma_page_aligned_bias): Handle a maxpagesize value of | |
1039 | zero. | |
1040 | ||
dd8dfa39 | 1041 | 2014-01-02 Yuanhui Zhang <asmwarrior@gmail.com> |
044387af A |
1042 | |
1043 | PR binutils/14289 | |
1044 | * pef.c (bfd_pef_xlib_read_header): Increase buffer size to 80. | |
1045 | ||
1be5090b NC |
1046 | 2014-01-02 Nick Clifton <nickc@redhat.com> |
1047 | ||
1048 | PR binutils/11983 | |
1049 | * archive.c (_bfd_get_elt_at_filepos): Store a copy of the | |
1050 | filename in the bfd's filename field. | |
1051 | * elfcode.h (bfd_from_remote_memory): Likewise. | |
1052 | * ieee.c (ieee_object_p): Likewise. | |
1053 | * mach-o.c (bfd_mach_o_fat_member_init): Likewise. | |
1054 | * oasys.c (oasys_openr_next_archived_file): Likewise. | |
1055 | * vms-lib.c (_bfd_vms_lib_get_module): Likewise. | |
1056 | * opncls.c (bfd_fopen): Likewise. | |
1057 | (bfd_openstreamr): Likewise. | |
1058 | (bfd_openr_iovec): Likewise. | |
1059 | (bfd_openw): Likewise. | |
1060 | (bfd_create): Likewise. | |
1061 | (_bfd_delete_bfd): Free filename. | |
1062 | ||
5fb776a6 | 1063 | For older changes see ChangeLog-2013 |
56882138 | 1064 | \f |
5fb776a6 | 1065 | Copyright (C) 2014 Free Software Foundation, Inc. |
752937aa NC |
1066 | |
1067 | Copying and distribution of this file, with or without modification, | |
1068 | are permitted in any medium without royalty provided the copyright | |
1069 | notice and this notice are preserved. | |
1070 | ||
56882138 AM |
1071 | Local Variables: |
1072 | mode: change-log | |
1073 | left-margin: 8 | |
1074 | fill-column: 74 | |
1075 | version-control: never | |
1076 | End: |