Commit | Line | Data |
---|---|---|
e4ef1b6c DC |
1 | 2014-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
2 | ||
3 | * elf32-avr.c: Add DIFF relocations for AVR. | |
4 | (avr_final_link_relocate): Handle the DIFF relocs. | |
5 | (bfd_elf_avr_diff_reloc): New. | |
6 | (elf32_avr_is_diff_reloc): New. | |
7 | (elf32_avr_adjust_diff_reloc_value): Reduce difference value. | |
8 | (elf32_avr_relax_delete_bytes): Recompute difference after deleting | |
9 | bytes. | |
10 | ||
11 | * reloc.c: Add BFD_RELOC_AVR_DIFF8/16/32 relocations | |
12 | ||
e30d16e9 AM |
13 | 2014-04-09 Alan Modra <amodra@gmail.com> |
14 | ||
15 | * libcoff.h: Regenerate. | |
16 | ||
b4ab4364 AM |
17 | 2014-04-09 Alan Modra <amodra@gmail.com> |
18 | ||
19 | * elf32-ppc.c (ppc_elf_relocate_section): Remove bctr from list | |
20 | of safe ppc476 insns at end of page. Also remove non-branch insns. | |
21 | Expand comments. | |
22 | ||
61e2488c JT |
23 | 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk> |
24 | ||
25 | * peXXigen.c (pe_print_debugdata): New function: Displays the | |
26 | contents of the debug directory and decodes codeview entries. | |
27 | (_bfd_XXi_swap_debugdir_in, _bfd_XXi_swap_debugdir_out) | |
28 | (_bfd_XXi_slurp_codeview_record, _bfd_XXi_write_codeview_record): | |
29 | Add functions for reading and writing debugdir and codeview | |
30 | records. | |
31 | * libpei.h (_bfd_XXi_swap_debugdir_in, _bfd_XXi_swap_debugdir_out) | |
32 | (_bfd_XXi_write_codeview_record): Add prototypes and macros. | |
33 | * libcoff-in.h (pe_tdata): Add build-id data. | |
34 | * libcoff.h: Regenerate. | |
35 | * coffcode.h (coff_write_object_contents): Run build_id | |
36 | after_write_object_contents hook. | |
37 | ||
115c6d5c AM |
38 | 2014-04-05 Alan Modra <amodra@gmail.com> |
39 | ||
40 | * elflink.c (_bfd_elf_add_default_symbol): Pass poldbfd when | |
41 | merging non-default sym. | |
42 | ||
26954155 TG |
43 | 2014-04-04 Tristan Gingold <gingold@adacore.com> |
44 | ||
45 | * mach-o.c (bfd_mach_o_header_p): Reject 64 bit target when not | |
46 | configured for. | |
47 | ||
ca148c5a TG |
48 | 2014-04-04 Tristan Gingold <gingold@adacore.com> |
49 | ||
50 | * mach-o.c (bfd_mach_o_convert_section_name_to_mach_o): Fix | |
51 | thinko on names length. | |
52 | ||
47c50932 TG |
53 | 2014-04-04 Tristan Gingold <gingold@adacore.com> |
54 | ||
55 | * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_out): Use target index | |
56 | of output_section. | |
57 | * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Ditto. | |
58 | ||
4ef27e04 TG |
59 | 2014-04-04 Tristan Gingold <gingold@adacore.com> |
60 | ||
61 | * bfd.c (bfd_get_arch_size): Default is taken from arch. | |
62 | ||
b69c8728 JT |
63 | 2014-04-03 Jon Turney <jon.turney@dronecode.org.uk> |
64 | ||
65 | * peXXigen.c (pe_print_edata): Verify edt.name lies inside | |
66 | section before dereferencing. | |
67 | (pe_print_idata, pe_print_edata, pe_print_reloc) | |
68 | (rsrc_print_section): Don't bother interpreting the contents | |
69 | of sections which have no contents. | |
70 | ||
1b6aeedb MG |
71 | 2014-04-03 Maria Guseva <m.guseva@samsung.com> |
72 | ||
73 | PR ld/16803 | |
74 | * elf.c (_bfd_elf_set_section_contents): Use correct type to hold | |
75 | file position. | |
76 | ||
707e555b TG |
77 | 2014-04-03 Tristan Gingold <gingold@adacore.com> |
78 | ||
79 | * mach-o.c (bfd_mach_o_mangle_symbols): Use index from | |
80 | output_section. | |
81 | (bfd_mach_o_build_seg_command): Add comment. Realign segment. | |
82 | Fix style. | |
83 | (bfd_mach_o_build_commands, bfd_mach_o_read_thread): Fix style. | |
84 | ||
c3fcb775 AM |
85 | 2014-04-03 Alan Modra <amodra@gmail.com> |
86 | ||
87 | * elf-bfd.h (struct elf_backend_data | |
88 | <elf_backend_bfd_from_remote_memory>): Replace "size_t size" | |
89 | with "bfd_size_type size". | |
90 | (_bfd_elf32_bfd_from_remote_memory): Likewise. | |
91 | (_bfd_elf64_bfd_from_remote_memory): Likewise. | |
92 | * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. | |
93 | * elfcode.h (bfd_from_remote_memory): Likewise. | |
2493504a AM |
94 | * bfd-in.h (bfd_elf_bfd_from_remote_memory): Likewise. |
95 | * bfd-in2.h: Regenerate. | |
c3fcb775 | 96 | |
7a79c514 TG |
97 | 2014-04-02 Tristan Gingold <gingold@adacore.com> |
98 | ||
99 | * mach-o.h (bfd_mach_o_twolevel_hints_command) | |
100 | (bfd_mach_o_prebind_cksum_command): New types. | |
101 | (bfd_mach_o_prebound_dylib_command): Rewrite. | |
102 | (bfd_mach_o_load_command): Add prebind_cksum and twolevel_hints | |
103 | fields. | |
104 | * mach-o.c (bfd_mach_o_read_prebound_dylib): Read and decode the | |
105 | command. | |
106 | (bfd_mach_o_read_prebind_cksum): New function. | |
107 | (bfd_mach_o_read_twolevel_hints): Ditto. | |
108 | (bfd_mach_o_read_command): Handle prebind cksum and twolevel hints | |
109 | commands. | |
110 | ||
5979d6b6 AM |
111 | 2014-04-02 Alan Modra <amodra@gmail.com> |
112 | ||
113 | * elfcode.h (bfd_from_remote_memory): Add "size" parameter. | |
114 | Consolidate code handling possible section headers past end of | |
115 | segment. Don't use p_align for page size guess, instead use | |
116 | minpagesize. Take note of ld.so clearing section headers when | |
117 | p_memsz > p_filesz. Handle file header specifying no section | |
118 | headers. Handle zero p_align throughout. Default loadbase to | |
119 | zero. Add comments. Rename contents_size to high_offset, and | |
120 | make it a bfd_vma. Delete unnecessary bfd_set_error calls. | |
121 | * bfd-in.h (bfd_elf_bfd_from_remote_memory): Update prototpe. | |
122 | * elf-bfd.h (struct elf_backend_data <elf_backend_from_remote_memory>): | |
123 | Likewise. | |
124 | (_bfd_elf32_bfd_from_remote_memory): Likewise. | |
125 | (_bfd_elf64_bfd_from_remote_memory): Likewise. | |
126 | * elf.c (bfd_elf_bfd_from_remote_memory): Adjust. | |
127 | * bfd-in2.h: Regnerate. | |
128 | ||
23d72939 TG |
129 | 2014-04-01 Tristan Gingold <gingold@adacore.com> |
130 | ||
131 | * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Avoid to crash | |
132 | when num == 0. | |
133 | ||
6a631e86 YG |
134 | 2014-03-27 Yury Gribov <y.gribov@samsung.com> |
135 | Pavel Fedin <p.fedin@samsung.com> | |
136 | ||
137 | * elf32-arm.c: Add support for limited pretty-printing of PLT | |
138 | entries on eabi and nacl targets. | |
139 | (elf32_arm_get_synthetic_symtab): Add new callback. | |
140 | (elf32_arm_nacl_plt_sym_val): Likewise. | |
141 | (elf32_arm_plt0_size): Add helper function. | |
142 | (elf32_arm_plt_size): Likewise. | |
143 | ||
10be66a4 TG |
144 | 2014-03-27 Tristan Gingold <gingold@adacore.com> |
145 | ||
146 | * mach-o.c (bfd_mach_o_read_dylinker): Remove assert. | |
147 | (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_DYLD_ENVIRONMENT. | |
148 | ||
3cc27770 TG |
149 | 2014-03-27 Tristan Gingold <gingold@adacore.com> |
150 | ||
151 | * mach-o.h (bfd_mach_o_get_base_address): New prototype. | |
152 | * mach-o.c (bfd_mach_o_write_symtab) | |
153 | (bfd_mach_o_write_contents) | |
154 | (bfd_mach_o_set_section_flags_from_bfd) | |
155 | (bfd_mach_o_build_seg_command): Fix indentation. | |
156 | (bfd_mach_o_get_base_address): New function. | |
157 | ||
55bfc9ac NC |
158 | 2014-03-26 Nick Clifton <nickc@redhat.com> |
159 | ||
160 | * cofflink.c (_bfd_coff_generic_relocate_section): Skip | |
161 | relocations in discarded sections. | |
162 | ||
d8028530 TG |
163 | 2014-03-26 Tristan Gingold <gingold@adacore.com> |
164 | ||
165 | * mach-o.c (bfd_mach_o_convert_architecture): Add | |
166 | BFD_MACH_O_CPU_TYPE_ARM64. | |
167 | ||
f6c7c3e8 AM |
168 | 2014-03-26 Alan Modra <amodra@gmail.com> |
169 | ||
170 | * elf64-ppc.c (ppc64_elf_check_relocs): Account for possibly | |
171 | needed plt entries when taking the address of functions for | |
172 | abiversion == 0 (ie. unknown) as well as abiversion == 2. | |
173 | Move opd setup and abiversion checks to.. | |
174 | (ppc64_elf_before_check_relocs): ..here. Renamed from | |
175 | ppc64_elf_process_dot_syms. Set output abiversion from input and | |
176 | input abiversion from output, if either is not set. | |
177 | (ppc64_elf_merge_private_bfd_data): Don't merge flags here. | |
178 | (elf_backend_check_directives): Update. | |
179 | ||
c955de36 WN |
180 | 2014-03-25 Will Newton <will.newton@linaro.org> |
181 | ||
182 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections): | |
183 | Set value of DT_PLTRELSZ and DT_RELASZ based on the size | |
184 | of input sections rather than output sections. | |
185 | ||
97323ad1 WN |
186 | 2014-03-20 Will Newton <will.newton@linaro.org> |
187 | ||
188 | PR ld/16715 | |
189 | * elf32-arm.c (elf32_arm_check_relocs): Set | |
190 | pointer_equality_needed for absolute references within | |
191 | executable links. | |
192 | (elf32_arm_finish_dynamic_symbol): Set st_value to zero | |
193 | unless pointer_equality_needed is set. | |
194 | ||
1d63324c NC |
195 | 2014-03-19 Nick Clifton <nickc@redhat.com> |
196 | ||
6caf7111 NC |
197 | * peXXigen.c (rsrc_process_section): Add code to scan input |
198 | sections and record their lengths. Use these lengths to find the | |
199 | start of each merged .rsrc section. | |
1d63324c | 200 | |
fbe383b9 TG |
201 | 2014-03-17 Tristan Gingold <gingold@adacore.com> |
202 | ||
203 | * mach-o.c (bfd_mach_o_read_dylib): Handle lazy load dylib. | |
204 | (bfd_mach_o_read_command): Ditto. | |
205 | ||
5a026fc9 NC |
206 | 2014-03-14 Meador Inge <meadori@codesourcery.com> |
207 | ||
208 | * configure.in: Add strnlen to AC_CHECK_DECLS. | |
209 | * config.in: Regenerate. | |
210 | * configure: Regenerate. | |
211 | * sysdep.h (strnlen): Add prototype. | |
212 | ||
c3301df1 AM |
213 | 2014-03-14 Alan Modra <amodra@gmail.com> |
214 | ||
215 | * elf32-ppc.c (ppc_elf_relocate_section): Correct overflow | |
216 | handling for VLE_SDA21 relocs. | |
217 | ||
167ad85b TG |
218 | 2014-03-13 Tristan Gingold <gingold@adacore.com> |
219 | ||
220 | * peicode.h (pe_ILF_object_p): Adjust, as the version number | |
221 | has been read. | |
222 | (pe_bfd_object_p): Also read version number to detect ILF. | |
223 | * pe-x86_64.c (COFF_WITH_PE_BIGOBJ): Define. | |
224 | (x86_64pe_bigobj_vec): Define | |
225 | * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_max_nscns field. | |
226 | (bfd_coff_max_nscns): New macro. | |
227 | (coff_compute_section_file_positions): Use unsigned int for | |
228 | target_index. Compare with bfd_coff_max_nscns. | |
229 | (bfd_coff_std_swap_table, ticoff0_swap_table, ticoff1_swap_table): | |
230 | Set a value for _bfd_coff_max_nscns. | |
231 | (header_bigobj_classid): New constant. | |
232 | (coff_bigobj_swap_filehdr_in, coff_bigobj_swap_filehdr_out) | |
233 | (coff_bigobj_swap_sym_in, coff_bigobj_swap_sym_out) | |
234 | (coff_bigobj_swap_aux_in, coff_bigobj_swap_aux_out): New | |
235 | functions. | |
236 | (bigobj_swap_table): New table. | |
237 | * libcoff.h: Regenerate. | |
238 | * coff-sh.c (bfd_coff_small_swap_table): Likewise. | |
239 | * coff-alpha.c (alpha_ecoff_backend_data): Add value for | |
240 | _bfd_coff_max_nscns. | |
241 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
242 | * coff-rs6000.c (bfd_xcoff_backend_data) | |
243 | (bfd_pmac_xcoff_backend_data): Likewise. | |
244 | * coff64-rs6000.c (bfd_xcoff_backend_data) | |
245 | (bfd_xcoff_aix5_backend_data): Likewise. | |
246 | * targets.c (x86_64pe_bigobj_vec): Declare. | |
247 | * configure.in (x86_64pe_bigobj_vec): New vector. | |
248 | * configure: Regenerate. | |
249 | * config.bfd: Add bigobj object format for Windows targets. | |
250 | ||
c792917c NC |
251 | 2014-03-12 Nick Clifton <nickc@redhat.com> |
252 | ||
253 | PR ld/16671 | |
254 | * elf32-arm.c (elf32_arm_add_symbol_hook): Check for ARM format | |
255 | before testing for vxworks. | |
256 | ||
fa47fa92 AM |
257 | 2014-03-12 Alan Modra <amodra@gmail.com> |
258 | ||
259 | * Makefile.in: Regenerate. | |
260 | ||
bbefd0a9 AM |
261 | 2014-03-12 Alan Modra <amodra@gmail.com> |
262 | ||
263 | PR 16690 | |
264 | * elf.c (copy_elf_program_header): Ignore first section lma if | |
265 | non-alloc. | |
266 | ||
3c865fca AM |
267 | 2014-03-11 Alan Modra <amodra@gmail.com> |
268 | ||
269 | PR 16686 | |
270 | * coff-rs6000.c: Include stdint.h. | |
271 | * coff64-rs6000.c: Likewise. | |
272 | ||
ce15efd8 TG |
273 | 2014-03-10 Tristan Gingold <gingold@adacore.com> |
274 | ||
275 | * ticoff.h: Removed. | |
276 | ||
86c95733 AM |
277 | 2014-03-08 Alan Modra <amodra@gmail.com> |
278 | ||
279 | * elf32-ppc.c (ppc_elf_howto_raw): Correct overflow check for | |
280 | many relocations. Correct bitsize and rightshift too for a number | |
281 | of VLE relocs. Describe R_PPC_VLE_SDA21 and R_PPC_VLE_SDA21_LO. | |
282 | Correct dst_mask on R_PPC_VLE_SDA21_LO. | |
283 | (ppc_elf_vle_split16): Tidy, delete unnecessary prototype. | |
284 | (ppc_elf_relocate_section): Modify overflow test for 16-bit | |
285 | fields in instructions to signed/unsigned according to whether | |
286 | the field takes a signed or unsigned value. Tidy vle split16 code. | |
287 | Correct R_PPC_VLE_SDA21 and R_PPC_VLE_SDA21_LO handling. | |
288 | ||
b80eed39 AM |
289 | 2014-03-08 Alan Modra <amodra@gmail.com> |
290 | ||
291 | * elf64-ppc.c (ppc64_elf_howto_raw): Use complain_overflow_signed | |
292 | for R_PPC64_ADDR14, R_PPC64_ADDR14_BRTAKEN, R_PPC64_ADDR14_BRNTAKEN, | |
293 | R_PPC64_SECTOFF, R_PPC64_ADDR16_DS, R_PPC64_SECTOFF_DS, | |
294 | R_PPC64_REL16 entries. Use complain_overflow_dont for R_PPC64_TOC. | |
295 | (ppc64_elf_relocate_section): Modify overflow test for 16-bit | |
296 | fields in instructions to signed/unsigned according to whether | |
297 | the field takes a signed or unsigned value. | |
298 | ||
c38e8559 PA |
299 | 2014-03-07 Pedro Alves <palves@redhat.com> |
300 | ||
5893c83a | 301 | PR gdb/16696 |
c38e8559 PA |
302 | * rs6000-core.c (rs6000coff_core_p): Cast pointers to bfd_vma |
303 | through ptr_to_uint instead of through long. | |
304 | ||
e9847026 NC |
305 | 2014-03-06 Nick Clifton <nickc@redhat.com> |
306 | ||
307 | PR 16664 | |
308 | * elf-attrs.c (_bfd_elf_parse_attributes): Add checks for corrupt | |
309 | attribute section names. | |
310 | ||
4b95cf5c AM |
311 | 2014-03-05 Alan Modra <amodra@gmail.com> |
312 | ||
313 | Update copyright years. | |
314 | ||
45965137 AM |
315 | 2014-03-05 Alan Modra <amodra@gmail.com> |
316 | ||
317 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_ADDR64_LOCAL entry. | |
318 | (ppc64_elf_reloc_type_lookup): Support R_PPC64_ADDR64_LOCAL. | |
319 | (ppc64_elf_check_relocs): Likewise. | |
320 | (ppc64_elf_relocate_section): Likewise. | |
321 | * Add BFD_RELOC_PPC64_ADDR64_LOCAL. | |
322 | * bfd-in2.h: Regenerate. | |
323 | * libbfd.h: Regenerate. | |
324 | ||
cd0c81e9 | 325 | 2014-03-04 Heiher <r@hev.cc> |
4ba154f5 RS |
326 | |
327 | * elfxx-mips.c (mips_set_isa_flags): Use E_MIPS_ARCH_64R2 for | |
328 | Loongson-3A. | |
329 | (mips_mach_extensions): Make bfd_mach_mips_loongson_3a an | |
330 | extension of bfd_mach_mipsisa64r2. | |
331 | ||
eed94f8f NC |
332 | 2014-03-04 Nick Clifton <nickc@redhat.com> |
333 | ||
334 | PR ld/16017 | |
335 | * elf32-arm.c (elf32_thumb2_plt0_entry): New array. | |
336 | (elf32_thumb2_plt_entry): New array. | |
337 | (elf32_arm_create_dynamic_sections): Set PLT entry sizes when | |
338 | using thumb2 based PLT. | |
339 | (elf32_arm_populate_plt_entry): Handle generating Thumb2 based PLT | |
340 | entries. | |
341 | (elf32_arm_final_link_relocate): Do not bias jumps to Thumb based | |
342 | PLT entries. | |
343 | (elf32_arm_finish_dynamic_sections): Handle creation of Thumb2 | |
344 | based PLT 0-entry. | |
345 | (elf32_arm_output_plt_map_1): Handle creation of local symbols for | |
346 | Thumb2 based PLT 0-entry. | |
347 | (elf32_arm_output_arch_local_syms): Handle creation of local | |
348 | symbols for Thumb2 based PLT entries. | |
349 | ||
9850436d AM |
350 | 2014-02-28 Alan Modra <amodra@gmail.com> |
351 | ||
352 | PR ld/16643 | |
353 | * elflink.c (elf_gc_sweep): Call gc_sweep_hook for exactly | |
354 | the same conditions we called check_relocs. | |
355 | ||
1db37fe6 YG |
356 | 2014-02-27 Yuri Gribov <y.gribov@samsung.com> |
357 | ||
358 | * bfd-in.h: Add export of bfd_elf32_arm_use_long_plt. | |
359 | * bfd-in2.h: Regenerate. | |
360 | * elf32-arm.c (elf32_arm_plt_entry_long): New array. | |
361 | (elf32_arm_link_hash_table_create): Set plt_entry_size to 16 if | |
362 | using long PLT entries. | |
363 | (bfd_elf32_arm_use_long_plt): New function. | |
364 | (elf32_arm_populate_plt_entry): Add support for long PLT entries. | |
365 | ||
db434ba0 AM |
366 | 2014-02-27 Alan Modra <amodra@gmail.com> |
367 | ||
368 | * elf32-ppc.c (ppc_elf_link_hash_table_create): Provide default | |
369 | params for targets that don't use ppc32elf.em. | |
370 | ||
d9972968 CLT |
371 | 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com> |
372 | ||
373 | * elf32-nios2.c (nios2_elf32_relocate_section): Fix calculation | |
374 | of GOTOFF relocations. | |
375 | ||
0ff2b86e L |
376 | 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com> |
377 | H.J. Lu <hongjiu.lu@intel.com> | |
378 | ||
379 | * elf64-x86-64.c (elf_x86_64_bnd_plt0_entry): New. | |
380 | (elf_x86_64_legacy_plt_entry): Likewise. | |
381 | (elf_x86_64_bnd_plt_entry): Likewise. | |
382 | (elf_x86_64_legacy_plt2_entry): Likewise. | |
383 | (elf_x86_64_bnd_plt2_entry): Likewise. | |
384 | (elf_x86_64_bnd_arch_bed): Likewise. | |
385 | (elf_x86_64_link_hash_entry): Add has_bnd_reloc and plt_bnd. | |
386 | (elf_x86_64_link_hash_table): Add plt_bnd. | |
387 | (elf_x86_64_link_hash_newfunc): Initialize has_bnd_reloc and | |
388 | plt_bnd. | |
389 | (elf_x86_64_copy_indirect_symbol): Also copy has_bnd_reloc. | |
390 | (elf_x86_64_check_relocs): Create the second PLT for Intel MPX | |
391 | in 64-bit mode. | |
392 | (elf_x86_64_allocate_dynrelocs): Handle the second PLT for IFUNC | |
393 | symbols. Resolve call to the second PLT if it is created. | |
394 | (elf_x86_64_size_dynamic_sections): Keep the second PLT section. | |
395 | (elf_x86_64_relocate_section): Resolve PLT references to the | |
396 | second PLT if it is created. | |
397 | (elf_x86_64_finish_dynamic_symbol): Use BND PLT0 and fill the | |
398 | second PLT entry for BND relocation. | |
399 | (elf_x86_64_finish_dynamic_sections): Use MPX backend data if | |
400 | the second PLT is created. | |
401 | (elf_x86_64_get_synthetic_symtab): New. | |
402 | (bfd_elf64_get_synthetic_symtab): Likewise. Undefine for NaCl. | |
403 | ||
7d4c687d AM |
404 | 2014-02-19 Alan Modra <amodra@gmail.com> |
405 | ||
406 | * elf64-ppc.h (struct ppc64_elf_params): Add save_restore_funcs. | |
407 | * elf64-ppc.c (ppc64_elf_func_desc_adjust): Use it to control | |
408 | provision of out-of-line register save/restore routines. | |
409 | ||
5db3e65d JC |
410 | 2014-02-18 Jack Carter <jack.carter@imgtec.com> |
411 | ||
412 | * elfxx-mips.c(_bfd_mips_elf_modify_segment_map): Deleted hard coding of | |
413 | PT_DYNAMIC segment flags. | |
414 | ||
024a2310 JK |
415 | 2014-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
416 | ||
417 | PR binutils/16595 | |
418 | * simple.c (struct saved_offsets): New. | |
419 | (simple_save_output_info): Use it for ptr. | |
420 | (simple_restore_output_info): Use it for ptr. Check section_count. | |
421 | (bfd_simple_get_relocated_section_contents): Use it for saved_offsets. | |
422 | ||
e7d1c40c AM |
423 | 2014-02-17 Alan Modra <amodra@gmail.com> |
424 | ||
425 | * elf64-ppc.h (struct ppc64_elf_params): Define. | |
426 | (ppc64_elf_init_stub_bfd, ppc64_elf_edit_opd, ppc64_elf_tls_setup, | |
427 | ppc64_elf_setup_section_lists, ppc64_elf_size_stubs, | |
428 | ppc64_elf_build_stubs): Update prototype. | |
429 | * elf64-ppp.c (struct ppc_link_hash_table): Add params, delete other | |
430 | fields now in params. Adjust code throughout file. | |
431 | (ppc64_elf_init_stub_bfd): Delete "abfd" parameter, add "params". | |
432 | Save params pointer in htab. | |
433 | (ppc64_elf_edit_opd, ppc64_elf_tls_setup, | |
434 | ppc64_elf_setup_section_lists, ppc64_elf_size_stubs, | |
435 | ppc64_elf_build_stubs): Remove parameters now in "params". | |
436 | ||
668e22e5 AM |
437 | 2014-02-17 Alan Modra <amodra@gmail.com> |
438 | ||
439 | * elf32-ppc.c (ppc_elf_relocate_section): Move relocs on insns | |
440 | patched for ppc476 workaround. Reapply branch taken/not taken | |
441 | relocs. | |
442 | ||
9f7552cf AM |
443 | 2014-02-12 Alan Modra <amodra@gmail.com> |
444 | ||
445 | * elf32-ppc.c (ppc_elf_relax_section): Don't build long-branch | |
446 | stubs for calls to __tls_get_addr that we know will later be | |
447 | optimised away. | |
448 | ||
795bc6b3 AM |
449 | 2014-02-12 Alan Modra <amodra@gmail.com> |
450 | ||
451 | * elf32-ppc.c (ppc_elf_relax_section): Enable ppc476 workaround | |
452 | for ld -r, when code sections are sufficiently aligned. | |
453 | * elf32-ppc.h (struct ppc_elf_params): Delete pagesize. Add | |
454 | pagesize_p2. | |
455 | ||
b407645f AM |
456 | 2014-02-12 Alan Modra <amodra@gmail.com> |
457 | ||
458 | PR gold/15530 | |
459 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
460 | --export-dynamic and --dynamic-list marking of symbols. | |
461 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Reorder | |
462 | cheap tests first. | |
463 | ||
d6f6f455 L |
464 | 2014-02-10 H.J. Lu <hongjiu.lu@intel.com> |
465 | ||
466 | PR gold/16530 | |
467 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark symbol in | |
468 | executables if it matches dynamic_list. | |
469 | ||
c1c69e83 AM |
470 | 2014-02-10 Alan Modra <amodra@gmail.com> |
471 | ||
472 | * po/SRC-POTFILES.in: Regenerate. | |
473 | * po/bfd.pot: Regenerate. | |
474 | ||
53291d1f AM |
475 | 2014-02-09 Alan Modra <amodra@gmail.com> |
476 | ||
477 | * elf-bfd.h (struct elf_backend_data): Add caches_rawsize. | |
478 | * elfxx-target.h (elf_backend_caches_rawsize): Define. | |
479 | (elfNN_bed): Init new field. | |
480 | * elflink.c (elf_link_input_bfd): Handle caches_rawsize. | |
481 | * elf32-ppc.c (shared_stub_entry): Zero addi offset. | |
482 | (ppc_elf_relax_section): Don't reallocate section here, write | |
483 | stubs, or write out relocs for ld -r here.. | |
484 | (ppc_elf_relocate_section): ..instead write stubs here, and use | |
485 | existing code to write out relocs for ld -r. Fix offset | |
486 | adjustment on reloc for little-endian. | |
487 | (elf_backend_caches_rawsize): Define. | |
488 | ||
d1eb5696 RO |
489 | 2014-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
490 | ||
85773039 | 491 | PR build/16550 |
d1eb5696 RO |
492 | * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t. |
493 | ||
2915c55b JK |
494 | 2014-02-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
495 | ||
496 | * coff-rs6000.c (xcoff_write_archive_contents_big): Free OFFSETS in | |
497 | return paths. Three times. | |
498 | * elf64-ppc.c (ppc64_elf_link_hash_table_create): Free HTAB in all | |
499 | return paths. | |
500 | (ppc64_elf_tls_optimize): Free TOC_REF in return path. | |
501 | (ppc64_elf_edit_toc): Free USED in return path. | |
502 | ||
1c2de463 SL |
503 | 2014-02-03 Sandra Loosemore <sandra@codesourcery.com> |
504 | ||
505 | * reloc.c (BFD_RELOC_NIOS2_GOT_LO, BFD_RELOC_NIOS2_GOT_HA): New. | |
506 | (BFD_RELOC_NIOS2_CALL_LO, BFD_RELOC_NIOS2_CALL_HA): New. | |
507 | * libbfd.h: Regenerated. | |
508 | * bfd-in2.h: Regenerated. | |
509 | * elf32-nios2.c (elf_nios2_howto_table_rel): Add new relocations. | |
510 | (nios2_reloc_map): Likewise. | |
511 | (GOT_USED, CALL_USED): Renamed from GOT16_USED and CALL16_USED. | |
512 | Fixed all references. | |
513 | (nios2_elf32_relocate_section): Add new relocations. | |
514 | (nios2_elf32_check_relocs): Likewise. | |
515 | (nios2_elf32_gc_sweep_hook): Likewise. | |
516 | ||
5446cbdf AM |
517 | 2014-02-03 Alan Modra <amodra@gmail.com> |
518 | ||
519 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add params. | |
520 | Delete emit_stub_syms, no_tls_get_addr_opt. Update all uses. | |
521 | (ppc_elf_link_params): New function. | |
522 | (ppc_elf_create_glink): Align .glink to 64 bytes for ppc476 | |
523 | workaround. | |
524 | (ppc_elf_select_plt_layout): Remove plt_style and emit_stub_syms | |
525 | parameters. Use htab->params instead. | |
526 | (ppc_elf_tls_setup): Remove no_tls_get_addr_opt parameter. | |
527 | (ppc_elf_size_dynamic_sections): Align __glink_PLTresolve to | |
528 | 64 bytes for ppc476 workaround. | |
529 | (struct ppc_elf_relax_info): New. | |
530 | (ppc_elf_relax_section): Exclude linker created sections and | |
531 | those too small to hold one instruction. Don't add another | |
532 | branch around trampolines on later relax passes. Don't | |
533 | generate trampolines for undefined symbols when !relocatable, | |
534 | nor for plugin symbols. Allocate space for ppc476 workaround | |
535 | patch area. Free fixups on error return path. | |
536 | (ppc_elf_relocate_section): Handle ppc476 workaround patching. | |
537 | * elf32-ppc.h (struct ppc_elf_params): New. | |
538 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Update prototype. | |
539 | (ppc_elf_link_params): Declare. | |
540 | * section.c (SEC_INFO_TYPE_TARGET): Define. | |
541 | * bfd-in2.h: Regenerate. | |
542 | ||
82e91538 SL |
543 | 2014-02-02 Sandra Loosemore <sandra@codesourcery.com> |
544 | ||
545 | * elf32-nios2.c (struct elf32_nios2_link_hash_table): Add | |
546 | h_gp_got field. | |
547 | (nios2_elf32_relocate_section): Use got_base to adjust | |
548 | GOT-pointer-relative relocations relative to _gp_got. | |
549 | (create_got_section): Create _gp_got symbol. | |
550 | (nios2_elf32_finish_dynamic_symbol): Make _gp_got absolute. | |
551 | (nios2_elf32_size_dynamic_sections): Set _gp_got offset. | |
552 | ||
78058a5e SL |
553 | 2014-01-30 Sandra Loosemore <sandra@codesourcery.com> |
554 | ||
555 | * bfd-in2.h: Update from reloc.c. | |
556 | * elf32-nios2.c: Include elf32-nios2.h. | |
557 | (elf_nios2_howto_table_rel): Add entry for R_NIOS2_CALL26_NOAT. | |
558 | (nios2_reloc_map): Likewise. | |
559 | (enum elf32_nios2_stub_type): Declare. | |
560 | (struct elf32_nios2_stub_hash_entry): Declare. | |
561 | (nios2_stub_hash_entry, nios2_stub_hash_lookup): New macros. | |
562 | (struct elf32_nios2_link_hash_entry): Add hsh_cache field. | |
563 | (struct elf32_nios2_link_hash_table): Add new fields bstab, | |
564 | stub_bfd, add_stub_section, layout_sections_again, stub_group, | |
565 | bfd_count, top_index, input_list, all_local_syms. | |
566 | (nios2_call26_stub_entry): New. | |
567 | (nios2_elf32_install_imm16): Move up in file. | |
568 | (nios2_elf32_install_data): Move up in file. | |
569 | (hiadj): Move up in file. | |
570 | (stub_hash_newfunc): New. | |
571 | (link_hash_newfunc): Initialize hsh_cache field. | |
572 | (STUB_SUFFIX): New. | |
573 | (nios2_stub_name): New. | |
574 | (nios2_get_stub_entry): New. | |
575 | (nios2_add_stub): New. | |
576 | (nios2_elf32_setup_section_lists): New. | |
577 | (nios2_elf32_next_input_section): New. | |
578 | (CALL26_SEGMENT): New. | |
579 | (MAX_STUB_SECTION_SIZE): New. | |
580 | (group_sections): New. | |
581 | (nios2_type_of_stub): New. | |
582 | (nios2_build_one_stub): New. | |
583 | (nios2_size_one_stub): New. | |
584 | (get_local_syms): New. | |
585 | (nios2_elf32_size_stubs): New. | |
586 | (nios2_elf32_build_stubs): New. | |
587 | (nios2_elf32_do_call26_relocate): Correct CALL26 overflow test. | |
588 | (nios2_elf32_relocate_section): Handle R_NIOS2_CALL26_NOAT. Add | |
589 | trampolines for R_NIOS2_CALL26 stubs. | |
590 | (nios2_elf32_check_relocs): Handle R_NIOS2_CALL26_NOAT. | |
591 | (nios2_elf32_gc_sweep_hook): Likewise. | |
592 | (nios2_elf32_link_hash_table_create): Initialize the stub hash table. | |
593 | (nios2_elf32_link_hash_table_free): New. | |
594 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
595 | * elf32-nios2.h: New file. | |
596 | * libbfd.h: Update from reloc.c. | |
597 | * reloc.c (BFD_RELOC_NIOS2_CALL26_NOAT): New. | |
598 | ||
df3ce959 NC |
599 | 2014-01-29 Nick Clifton <nickc@redhat.com> |
600 | ||
601 | PR binutils/16318 | |
602 | * elf32-metag.c (elf_metag_post_process_headers): Call | |
603 | _bfd_elf_post_process_headers. | |
604 | * elf32-sh64.c (sh64_elf_copy_private_data): Call | |
605 | _bfd_elf_copy_private_data. | |
606 | * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise. | |
607 | ||
27b829ee NC |
608 | 2014-01-29 Nick Clifton <nickc@redhat.com> |
609 | ||
610 | * bfd-in.h (bfd_set_section_vma): Delete. | |
611 | (bfd_set_section_alignment): Delete. | |
612 | (bfd_set_section_userdata): Delete. | |
613 | (bfd_set_cacheable): Delete. | |
614 | * bfd.c (bfd_set_cacheable): New static inline function. | |
615 | * section.c (bfd_set_section_userdata): Likewise. | |
616 | (bfd_set_section_vma): Likewise. | |
617 | (bfd_set_section_alignment): Likewise. | |
618 | * bfd-in2.h: Regenerate. | |
619 | ||
0a9c7b2b NC |
620 | 2014-01-28 Nick Clifton <nickc@redhat.com> |
621 | ||
622 | * dwarf2.c (find_abstract_instance_name): For DW_FORM_ref_addr | |
623 | attributes select the CU containing the abbreviation, which may not | |
624 | be the current CU. | |
625 | ||
3ba720c7 AM |
626 | 2014-01-24 Alan Modra <amodra@gmail.com> |
627 | ||
628 | * elf64-ppc.c (ppc_build_one_stub): Correct reloc count passed | |
629 | to get_relocs for ELFv2. | |
630 | ||
d923cae0 L |
631 | 2014-01-23 H.J. Lu <hongjiu.lu@intel.com> |
632 | ||
633 | PR ld/16498 | |
3ba720c7 | 634 | * elf.c (_bfd_elf_map_sections_to_segments): Issue a linker error |
d923cae0 L |
635 | if TLS sections are not adjacent. |
636 | ||
16e4ecc0 AM |
637 | 2014-01-22 Alan Modra <amodra@gmail.com> |
638 | ||
639 | * elflink.c (elf_link_add_object_symbols): Call minfo for --as-needed. | |
640 | ||
eb8d7fda AM |
641 | 2014-01-22 Alan Modra <amodra@gmail.com> |
642 | ||
643 | * elf64-ppc.c (STK_LINKER): Comment typo fix. | |
644 | ||
4584ec12 L |
645 | 2014-01-21 H.J. Lu <hongjiu.lu@intel.com> |
646 | ||
647 | PR ld/16467 | |
648 | * elflink.c (_bfd_elf_merge_symbol): When types of the existing | |
649 | regular default symbol definition and the versioned dynamic | |
650 | symbol definition mismatch, skip the default symbol definition | |
651 | if one of them is IFUNC. | |
652 | ||
22ef172a L |
653 | 2014-01-21 H.J. Lu <hongjiu.lu@intel.com> |
654 | ||
655 | PR ld/2404 | |
656 | * elflink.c (_bfd_elf_merge_symbol): Don't check info->shared, | |
657 | info->export_dynamic nor h->ref_dynamic for type mismatch when | |
658 | adding the default version. | |
659 | ||
b75d42bc AM |
660 | 2014-01-16 Alan Modra <amodra@gmail.com> |
661 | ||
662 | * elfxx-mips.c (mips_elf_record_got_page_entry): Pass in a | |
663 | mips_elf_traverse_got_arg* rather than mips_got_info*. | |
664 | Adjust caller. Alloc on output_bfd rather than symbol section | |
665 | owner. | |
666 | ||
c353e543 L |
667 | 2014-01-15 H.J. Lu <hongjiu.lu@intel.com> |
668 | ||
669 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last | |
670 | change. | |
671 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
672 | ||
818d220a L |
673 | 2014-01-14 H.J. Lu <hongjiu.lu@intel.com> |
674 | ||
675 | PR ld/16428 | |
676 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't discard relocs | |
677 | against __ehdr_start. | |
678 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
679 | ||
c3ce498c L |
680 | 2014-01-14 H.J. Lu <hongjiu.lu@intel.com> |
681 | ||
682 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last | |
683 | change. | |
684 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
685 | ||
d1ec1e40 L |
686 | 2014-01-14 H.J. Lu <hongjiu.lu@intel.com> |
687 | ||
688 | PR ld/16428 | |
689 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't update reloc | |
690 | count if there are any non pc-relative relocs. | |
691 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
692 | ||
f44a1f8e CL |
693 | 2014-01-14 Michael Hudson-Doyle <michael.hudson@linaro.org> |
694 | Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org> | |
695 | ||
696 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use correct | |
697 | offset while calculating relocation address. | |
698 | (elfNN_aarch64_create_small_pltn_entry): Likewise. | |
699 | (elfNN_aarch64_init_small_plt0_entry): Likewise. | |
700 | ||
fd0fd00c MJ |
701 | 2014-01-13 Ma Jiang <ma.jiang@zte.com.cn> |
702 | ||
703 | PR ld/16202 | |
704 | * elf32-arm.c (elf32_arm_final_link_relocate): Refetch addends for | |
705 | R_ARM_ABS8 and R_ARM_ABS16. | |
706 | ||
aa726b9e AM |
707 | 2014-01-13 Alan Modra <amodra@gmail.com> |
708 | ||
709 | * elf32-ppc.c (ppc_elf_check_relocs): For @local call to ifunc, | |
710 | error when shared and force a plt call otherwise. | |
711 | (ppc_elf_size_dynamic_sections): Don't emit DT_PPC_GOT unless | |
712 | plt_type == PLT_NEW. | |
713 | (ppc_elf_relocate_section): Add missing test to resolve ifuncs to | |
714 | the appropriate call stub. | |
715 | ||
eec2f3ed AM |
716 | 2014-01-10 Alan Modra <amodra@gmail.com> |
717 | ||
718 | PR ld/14207 | |
719 | PR ld/16322 | |
720 | PR binutils/16323 | |
721 | * elf.c (assign_file_positions_for_load_sections): Revert last change. | |
722 | (assign_file_positions_for_non_load_sections): When setting up | |
723 | PT_GNU_RELRO header, don't require a corresponding PT_LOAD | |
724 | header that completely covers the relro region. | |
725 | ||
09bf66a8 TG |
726 | 2014-01-09 Tristan Gingold <gingold@adacore.com> |
727 | ||
728 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): use jump | |
729 | table macros and add macros to initializa the structure. | |
730 | ||
43a8475c L |
731 | 2014-01-08 H.J. Lu <hongjiu.lu@intel.com> |
732 | ||
733 | PR ld/14207 | |
734 | PR ld/16322 | |
735 | PR binutils/16323 | |
736 | * elf.c (_bfd_elf_map_sections_to_segments): Don't check section | |
737 | size for PT_GNU_RELRO segment. | |
738 | (assign_file_positions_for_load_sections): If PT_LOAD segment | |
739 | doesn't fit PT_GNU_RELRO segment, adjust its p_filesz and p_memsz. | |
740 | ||
1651e569 TT |
741 | 2014-01-07 Tom Tromey <tromey@redhat.com> |
742 | ||
743 | * elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility | |
744 | wrappers. | |
745 | ||
dc9155b2 NC |
746 | 2014-01-03 Nick Clifton <nickc@redhat.com> |
747 | ||
748 | PR binutils/16199 | |
749 | * elf.c (vma_page_aligned_bias): Handle a maxpagesize value of | |
750 | zero. | |
751 | ||
dd8dfa39 | 752 | 2014-01-02 Yuanhui Zhang <asmwarrior@gmail.com> |
044387af A |
753 | |
754 | PR binutils/14289 | |
755 | * pef.c (bfd_pef_xlib_read_header): Increase buffer size to 80. | |
756 | ||
1be5090b NC |
757 | 2014-01-02 Nick Clifton <nickc@redhat.com> |
758 | ||
759 | PR binutils/11983 | |
760 | * archive.c (_bfd_get_elt_at_filepos): Store a copy of the | |
761 | filename in the bfd's filename field. | |
762 | * elfcode.h (bfd_from_remote_memory): Likewise. | |
763 | * ieee.c (ieee_object_p): Likewise. | |
764 | * mach-o.c (bfd_mach_o_fat_member_init): Likewise. | |
765 | * oasys.c (oasys_openr_next_archived_file): Likewise. | |
766 | * vms-lib.c (_bfd_vms_lib_get_module): Likewise. | |
767 | * opncls.c (bfd_fopen): Likewise. | |
768 | (bfd_openstreamr): Likewise. | |
769 | (bfd_openr_iovec): Likewise. | |
770 | (bfd_openw): Likewise. | |
771 | (bfd_create): Likewise. | |
772 | (_bfd_delete_bfd): Free filename. | |
773 | ||
5fb776a6 | 774 | For older changes see ChangeLog-2013 |
56882138 | 775 | \f |
5fb776a6 | 776 | Copyright (C) 2014 Free Software Foundation, Inc. |
752937aa NC |
777 | |
778 | Copying and distribution of this file, with or without modification, | |
779 | are permitted in any medium without royalty provided the copyright | |
780 | notice and this notice are preserved. | |
781 | ||
56882138 AM |
782 | Local Variables: |
783 | mode: change-log | |
784 | left-margin: 8 | |
785 | fill-column: 74 | |
786 | version-control: never | |
787 | End: |