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