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