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