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