]>
Commit | Line | Data |
---|---|---|
fc579192 NC |
1 | 2009-05-28 Nick Clifton <[email protected]> |
2 | ||
3 | * targets.c (_bfd_target_vector): Only include plugin target in | |
4 | all-targets build if BFD_SUPPORTS_PLUGINS is non-zero. | |
5 | ||
5ebe2858 UW |
6 | 2009-05-28 Ulrich Weigand <[email protected]> |
7 | ||
8 | * elf32-spu.c (struct call_info): New member broken_cycle. | |
9 | (remove_cycle): Instead of physically removing call_info structures | |
10 | to break call graph cycles, mark them using the broken_cycle flag. | |
11 | (mark_overlay_section): Respect broken_cycle flag. | |
12 | (unmark_overlay_section): Likewise. | |
13 | (collect_lib_sections): Likewise. | |
14 | (collect_overlays): Likewise. | |
15 | (sum_stack): Likewise. | |
16 | ||
34ad4cb0 UW |
17 | 2009-05-28 Ulrich Weigand <[email protected]> |
18 | ||
19 | * elf32-spu.c (insert_callee): Accumulate incoming callee->count. | |
20 | (mark_functions_via_relocs): Initialize callee->count to 1. | |
21 | (pasted_function): Likewise. | |
22 | (spu_elf_auto_overlay): Honor call counts when determining number | |
23 | of stubs required in software i-cache mode. | |
24 | ||
fc579192 NC |
25 | 2009-05-27 Rafael Avila de Espindola <[email protected]> |
26 | ||
27 | * plugin.c (program_name): Remove. | |
28 | (plugin_program_name): New. | |
29 | (bfd_plugin_set_program_name): New. | |
30 | (try_load_plugin): Use plugin_program_name. | |
31 | * plugin.h (bfd_plugin_set_program_name): New. | |
32 | ||
33 | 2009-05-27 Rafael Avila de Espindola <[email protected]> | |
5691d22d NC |
34 | |
35 | * aclocal.m4: Include ../config/plugins.m4. | |
36 | * configure.in: Use AC_PLUGINS. | |
37 | * configure: Regenerate. | |
38 | * Makefile.in: Regenerate. | |
39 | * doc/Makefile.in: Regenerate. | |
40 | ||
c8a1f254 NS |
41 | 2009-05-27 Nathan Sidwell <[email protected]> |
42 | ||
43 | * elf32-ppc.c (ppc_elf_relax_section): Work with a partial | |
44 | link. | |
45 | * bout.c (b_out_bfd_relax_section): Reject relocatable links. | |
46 | * elf32-m10300.c (mn10300_elf_relax_section): Likewise. | |
47 | * elf32-avr.c (elf32_avr_relax_section): Likewise. | |
48 | * elf32-frv.c (elf32_avr_relax_section): Likewise. | |
49 | * elf32-xtensa.c (elf_xtensa_relax_section): Likewise. | |
50 | * elf64-mmix.c (mmix_elf_relax_section): Likewise. | |
51 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
52 | * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise. | |
53 | * reloc.c (bfd_generic_relax_section): Likewise. | |
54 | * reloc16.c (bfd_coff_reloc16_relax_section): Likewise. | |
55 | * vms.c (vms_bfd_relax_section): Likewise. | |
56 | ||
68d7e96a L |
57 | 2009-05-26 H.J. Lu <[email protected]> |
58 | ||
59 | * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New. | |
60 | ||
61 | * elf32-i386.c (is_indirect_symbol): Renamed to ... | |
62 | * elflink.c (_bfd_elf_is_ifunc_symbol): This. | |
63 | ||
64 | * elf32-i386.c (allocate_dynrelocs): Updated. | |
65 | (elf_i386_relocate_section): Likewise. | |
66 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
67 | (elf64_x86_64_relocate_section): Likewise. | |
68 | ||
69 | * elf64-x86-64.c (is_indirect_symbol): Removed. | |
70 | ||
f12e7348 NC |
71 | 2009-05-26 Nick Clifton <[email protected]> |
72 | ||
73 | * po/id.po: Updated Indonesian translation. | |
74 | ||
ce3c775b NC |
75 | 2009-05-26 Rafael Avila de Espindola <[email protected]> |
76 | ||
77 | * Makefile.am: Run "make dep-am". | |
78 | (AM_CPPFLAGS): New. | |
79 | (LIBDL): New. | |
80 | (ALL_MACHINES): Add cpu-plugin.lo. | |
81 | (ALL_MACHINES_CFILES): Add cpu-plugin.c. | |
82 | (BFD32_BACKENDS): Add plugin.lo. | |
83 | (BFD32_BACKENDS_CFILES): Add plugin.c. | |
84 | (libbfd_la_LIBADD): Add LIBDL | |
85 | * archures.c (bfd_architecture): Add bfd_arch_plugin. | |
86 | (bfd_plugin_arch): Declare. | |
87 | * bfd-in.h (BFD_SUPPORTS_PLUGINS): New. | |
88 | * bfd.c (bfd): Add plugin_data. | |
89 | * config.bfd: Handle the plugin target. | |
90 | * configure.in: Check for --enable-plugins. | |
91 | (LT_INIT): Use the dlopen option. | |
92 | * cpu-plugin.c: New. | |
93 | * plugin.c: New. | |
94 | * plugin.h: New. | |
95 | * targets.c (plugin_vec): Declare. | |
96 | (_bfd_target_vector): Add plugin_vec. | |
97 | * Makefile.in: Regenerate. | |
98 | * bfd-in2.h: Regenerate. | |
99 | * configure: Regenerate. | |
100 | ||
9e097a72 AM |
101 | 2009-05-26 Alan Modra <[email protected]> |
102 | ||
103 | * dep-in.sed: Don't modify .o to .lo here. Output one filename | |
104 | per line with all lines having continuation backslash. Prefix | |
105 | first line with "A", following lines with "B". | |
106 | * Makefile.am (DEP): Don't use dep.sed here. | |
107 | (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use | |
108 | dep.sed here on dependencies, sort and uniq. | |
109 | * Makefile.in: Regenerate. | |
110 | ||
d5acff2f TG |
111 | 2009-05-25 Tristan Gingold <[email protected]> |
112 | ||
113 | * makefile.vms: Add verilog.obj to object list OBJS. | |
114 | ||
5c93f09b AM |
115 | 2009-05-24 Alan Modra <[email protected]> |
116 | ||
117 | * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory | |
118 | for BFD_IN_MEMORY is cleared. | |
119 | (bfd_bwrite): Zero excess memory allocated. | |
120 | ||
48229727 JB |
121 | 2009-05-22 Julian Brown <[email protected]> |
122 | ||
123 | * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New | |
124 | macros. | |
125 | (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b) | |
126 | (elf32_arm_stub_a8_veneer_blx): New stub sequences. | |
127 | (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond, | |
128 | arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx. | |
129 | (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields. | |
130 | (a8_erratum_fix, a8_erratum_reloc): New structs. | |
131 | (elf32_arm_link_hash_table): Add a8_erratum_fixes, | |
132 | num_a8_erratum_fixes, fix_cortex_a8 fields. | |
133 | (elf32_arm_link_hash_table_create): Zero fix_cortex_a8. | |
134 | (elf32_arm_add_stub): Split into two parts, creating... | |
135 | (elf32_arm_create_or_find_stub_sec): New function. | |
136 | (elf32_arm_final_link_relocate): Add forward declaration. | |
137 | (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2 | |
138 | relocations, multiple relocations per stub. | |
139 | (find_stub_size_and_template): New (using parts of arm_size_one_stub). | |
140 | (arm_size_one_stub): Use find_stub_size_and_template. | |
141 | (a8_reloc_compare): New. | |
142 | (find_thumb_glue): Add forward declaration. | |
143 | (cortex_a8_erratum_scan): New. | |
144 | (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support. | |
145 | (bfd_elf32_arm_set_cortex_a8_fix): New. | |
146 | (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument. | |
147 | (arm_map_one_stub): Add THUMB32_TYPE support. | |
148 | (a8_branch_to_stub_data): New. | |
149 | (make_branch_to_a8_stub): New. | |
150 | (elf32_arm_write_section): Add Cortex-A8 erratum workaround support. | |
151 | * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New. | |
152 | (bfd_elf32_arm_set_target_relocs): Add argument for controlling | |
153 | Cortex-A8 erratum workaround. | |
154 | * bfd-in2.h: Regenerate. | |
155 | ||
2b3decb5 AM |
156 | 2009-05-22 Alan Modra <[email protected]> |
157 | ||
158 | * Makefile.am: Run "make dep-am". | |
159 | * Makefile.in: Regenerate. | |
160 | * po/SRC-POTFILES.in: Regenerate. | |
161 | ||
930e005c AM |
162 | 2009-05-21 Alan Modra <[email protected]> |
163 | ||
164 | * elflink.c (elf_link_input_bfd): Correct *pindex change in last | |
165 | commit. | |
166 | ||
6e0b88f1 AM |
167 | 2009-05-21 Alan Modra <[email protected]> |
168 | ||
169 | * elf-bfd.h (struct elf_backend_data | |
170 | <elf_backend_link_output_symbol_hook>): Return an int. | |
171 | * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop | |
172 | symbols on deleted .opd entries. | |
173 | * elflink.c (elf_link_output_sym): Return without outputting sym | |
174 | if output_symbol_hook returns 2. | |
175 | (elf_link_output_extsym): Don't assign h->indx when symbol discarded. | |
176 | Abort if we must not discard sym. | |
177 | (elf_link_input_bfd): Similarly, don't set finfo->indices for | |
178 | local syms. | |
179 | (bfd_elf_final_link): Adjust elf_link_output_sym calls. | |
180 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for | |
181 | elf_backend_link_output_symbol_hook return type change. | |
182 | * elf32-arm.c (output_arch_syminfo): Likewise. | |
183 | (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise. | |
184 | (elf32_arm_output_arch_local_syms): Likewise. | |
185 | * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise. | |
186 | * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise. | |
187 | (bfd_score_elf_link_output_symbol_hook): Likewise. | |
188 | * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise. | |
189 | * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise. | |
190 | * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise. | |
191 | * elf32-spu.c (spu_elf_output_symbol_hook): Likewise. | |
192 | * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise. | |
193 | * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise. | |
194 | * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise. | |
195 | * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise. | |
196 | * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise. | |
197 | * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise. | |
198 | * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise. | |
199 | ||
5ef11c02 AM |
200 | 2009-05-21 Alan Modra <[email protected]> |
201 | ||
202 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on | |
203 | out of range .opd symbols. | |
204 | ||
ebf12fbe DK |
205 | 2009-05-21 Dave Korn <[email protected]> |
206 | ||
207 | * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not | |
208 | fprintf_vma directly. | |
209 | * peXXigen.c (pe_print_edata): Likewise. | |
210 | (pe_print_pdata): Likewise. | |
211 | (_bfd_XX_print_ce_compressed_pdata): Likewise. | |
212 | (_bfd_XX_print_private_bfd_data_common): Likewise. | |
213 | ||
c1711530 DK |
214 | 2009-05-19 Dave Korn <[email protected]> |
215 | ||
216 | * cofflink.c (process_embedded_commands): Ignore "-aligncomm". | |
217 | ||
22a8f80e | 218 | 2009-05-15 Andrew Stubbs <[email protected]> |
164e7efc | 219 | Paul Brook <[email protected]> |
22a8f80e PB |
220 | |
221 | * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to | |
222 | fix discarded sections. | |
223 | ||
335bd8f2 UW |
224 | 2009-05-14 Ulrich Weigand <[email protected]> |
225 | ||
226 | * elf32-spu.c (mark_overlay_section): Move .init and .fini | |
227 | sections into the software icache. | |
228 | ||
cdc83fba UW |
229 | 2009-05-14 Ulrich Weigand <[email protected]> |
230 | ||
231 | * elf32-spu.c (build_stub): Always build "compact" sofware | |
232 | i-cache stubs. | |
233 | ||
97fc8d84 UW |
234 | 2009-05-14 Ulrich Weigand <[email protected]> |
235 | ||
236 | * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2. | |
237 | (spu_elf_setup): Initialize it. | |
238 | (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache. | |
239 | Update to new-sytle cache manager data structures. | |
240 | (spu_elf_build_stubs): Generate new-style cache manager data | |
241 | structures and symbols. | |
242 | (spu_elf_auto_overlay): Update size computation. | |
243 | ||
452de53c UW |
244 | 2009-05-14 Ulrich Weigand <[email protected]> |
245 | ||
246 | * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY | |
247 | segments first amongst the program headers. | |
248 | ||
d342a8b1 UW |
249 | 2009-05-14 Ulrich Weigand <[email protected]> |
250 | ||
251 | * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index | |
252 | into addresses for relocation types that look at high bits. Remove | |
253 | special handling of relocation overflow warnings. | |
254 | ||
cc210763 UW |
255 | 2009-05-14 Ulrich Weigand <[email protected]> |
256 | ||
257 | * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the | |
258 | control flow graph between fragments of a function. | |
259 | ||
c1ea05bb UW |
260 | 2009-05-14 Ulrich Weigand <[email protected]> |
261 | ||
262 | * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode, | |
263 | generate only a 16-byte .toe section. | |
264 | (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise. | |
265 | ||
bbb0fc04 AM |
266 | 2009-05-14 Alan Modra <[email protected]> |
267 | ||
268 | * elf32-spu.c (spu_elf_size_stubs): Split out section placement to.. | |
269 | (spu_elf_place_overlay_data): ..here. New function. | |
270 | * elf32-spu.h (spu_elf_place_overlay_data): Declare. | |
271 | ||
6e6718a3 AJ |
272 | 2009-05-13 Andrew Jenner <[email protected]> |
273 | ||
274 | * elf32-arm.c: Move sysdep.h to start of file. | |
275 | ||
77ae44b0 AM |
276 | 2009-05-11 Ulrich Weigand <[email protected]> |
277 | ||
278 | * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as | |
279 | start of overlays. | |
280 | (spu_elf_build_stubs): Don't define __icache_tagbase. Define | |
281 | __icache_tag_array and __icache_tag_array_size. | |
282 | ||
51408ec2 AM |
283 | 2009-05-11 Masaki Muranaka <[email protected]> |
284 | ||
285 | * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary | |
286 | ATTRIBUTE_UNUSED. | |
287 | (bfinfdpic_link_omit_section_dynsym): Likewise. | |
288 | (elf32_bfinfdpic_finish_dynamic_sections): Likewise. | |
289 | ||
2468f9c9 PB |
290 | 2009-05-05 Paul Brook <[email protected]> |
291 | ||
292 | * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype. | |
293 | * bfd-in2.h: Regenerate. | |
294 | * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define. | |
295 | (_arm_elf_section_data): Add text and exidx fields. | |
296 | (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size, | |
297 | insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31, | |
298 | copy_exidx_entry): New functions. | |
299 | (elf32_arm_write_section): Fixup .ARM.exidx contents. | |
300 | ||
738a79f6 CL |
301 | 2009-05-05 Christophe lyon <[email protected]> |
302 | ||
303 | * elf32-arm.c (DEF_STUBS): New helper define. | |
304 | (DEF_STUB): Likewise. | |
305 | (stub_def): New type. | |
306 | (stub_definitions): New array, containing stub template pointers | |
307 | and sizes. | |
308 | (arm_size_one_stub): Make use of stub_definitions. | |
309 | ||
09e2aba4 DK |
310 | 2009-05-04 Dave Korn <[email protected]> |
311 | ||
312 | * elflink.c (find_version_for_sym): Remove from here, ... | |
313 | * linker.c (bfd_find_version_for_sym): ... rename, replace | |
314 | here, make public and update all callers. | |
315 | * bfd-in2.h: Regenerate. | |
316 | ||
d8045f23 NC |
317 | 2009-04-30 Nick Clifton <[email protected]> |
318 | ||
319 | * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs | |
320 | section pointer. | |
321 | (struct elf_obj_data): Add has_ifunc_symbols boolean. | |
322 | * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags | |
323 | into a STT_GNU_IFUNC symbol type. | |
324 | (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function | |
325 | type. | |
326 | (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if | |
327 | the binary contains ifunc symbols. | |
328 | * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC | |
329 | symbol type into a BSF_GNU_INDIRECT_FUNCTION flag. | |
330 | * elf32-i386.c (is_indirect_function): New function. | |
331 | (elf_i386_check_relocs): Create an ifunc output section. | |
332 | (allocate_dynrelocs): Create dynamic relocs in the ifunc output | |
333 | section if necessary. | |
334 | (elf_i386_relocate_section): Emit a reloc against an ifunc symbol | |
335 | if necessary. | |
336 | (elf_i386_add_symbol_hook): New function. Set the | |
337 | has_ifunc_symbols field of the elf_obj_data structure if an ifunc | |
338 | symbol is encountered. | |
339 | (elf_backend_post_process_headers): Define. | |
340 | (elf_backend_add_symbol_hook): Define. | |
341 | (elf_i386_post_process_headers): Rename to | |
342 | elf_i388_fbsd_post_process_headers. | |
343 | * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro. | |
344 | (is_indirect_function): New function. | |
345 | (elf64_x86_64_check_relocs): Create an ifunc output section. | |
346 | (allocate_dynrelocs): Create dynamic relocs in the ifunc output | |
347 | section if necessary. | |
348 | (elf64_x86_64_relocate_section): Emit a reloc against an ifunc | |
349 | symbol if necessary. | |
350 | (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the | |
351 | elf_obj_data structure if an ifunc symbol is encountered. | |
352 | (elf_backend_post_process_headers): Define. | |
353 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT | |
354 | if we have ifunc symbols to handle. | |
355 | (get_ifunc_reloc_section_name): New function. Computes the name | |
356 | for an ifunc section. | |
357 | (_bfd_elf_make_ifunc_reloc_section): New function. Creates a | |
358 | section to hold ifunc relocs. | |
359 | * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define. | |
360 | (bfd_print_symbol_vandf): Handle ifunc symbols. | |
361 | (bfd_decode_symclass): Likewise. | |
362 | * bfd-in2.h: Regenerate. | |
363 | ||
96c23d59 JM |
364 | 2009-04-30 Joseph Myers <[email protected]> |
365 | ||
366 | * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute | |
367 | MOVW and MOVT relocations in a shared library link. | |
368 | ||
c067354b NC |
369 | 2009-04-27 Anthony Green <[email protected]> |
370 | ||
371 | * verilog.c: New file. | |
372 | * Makefile.am (BFD32_LIBS): Add verilog.c. | |
373 | (BFD32_LIBS_CFILES): Add verilog.c. | |
374 | (verilog.lo): New build rule. | |
375 | * Makefile.in: Rebuilt. | |
376 | * targets.c: Add verilog support. | |
377 | * bfd.c (tdata union): Add Verilog private data field. | |
378 | * bfd-in2.h: Regenerate. | |
379 | ||
325c681d L |
380 | 2009-04-27 H.J. Lu <[email protected]> |
381 | ||
382 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't | |
383 | copy pe_opthdr. | |
384 | ||
ba775898 DK |
385 | 2009-04-23 Matthias Klose <[email protected]> |
386 | ||
2e28a5fc | 387 | * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'. |
ba775898 | 388 | |
155d87d7 CL |
389 | 2009-04-22 Christophe Lyon <[email protected]> |
390 | ||
391 | PR9743 | |
392 | * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24, | |
393 | R_ARM_JUMP24 and R_ARM_PLT32 relocations. | |
394 | (elf32_arm_size_stubs): Likewise. | |
395 | (record_thumb_to_arm_glue): Deleted unused function. | |
396 | (bfd_elf32_arm_process_before_allocation): No longer handle | |
397 | R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here. | |
398 | (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24, | |
399 | R_ARM_JUMP24 and R_ARM_PLT32 relocations. | |
400 | ||
3e6b1042 DJ |
401 | 2009-04-21 Daniel Jacobowitz <[email protected]> |
402 | ||
403 | * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED. | |
404 | (elf32_arm_write_section): Declare early. | |
405 | (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD. | |
406 | (arm_allocate_glue_section_space): Exclude empty sections. | |
407 | (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED. | |
408 | (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub | |
409 | BFD. | |
410 | (elf32_arm_output_glue_section, elf32_arm_final_link): New. | |
411 | (elf32_arm_merge_eabi_attributes): Skip the stub BFD. | |
412 | (elf32_arm_size_dynamic_sections): Allocate interworking | |
413 | sections here. | |
414 | (bfd_elf32_bfd_final_link): Define. | |
415 | ||
4f360784 L |
416 | 2009-04-21 H.J. Lu <[email protected]> |
417 | ||
418 | * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K. | |
419 | ||
420 | * coffcode.h (coff_compute_section_file_positions): Clear | |
421 | D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE. | |
422 | ||
423 | * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and | |
424 | force_minimum_alignment. | |
425 | ||
426 | * libcoff.h: Regenerated. | |
427 | ||
428 | * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed. | |
429 | (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise. | |
430 | ||
431 | * peicode.h (pe_mkobject): Don't set force_minimum_alignment | |
432 | nor target_subsystem. | |
433 | ||
434 | * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check | |
435 | force_minimum_alignment nor target_subsystem. | |
436 | ||
e48570bb DK |
437 | 2009-04-21 Kai Tietz <[email protected]> |
438 | ||
439 | * coff-x86_64.c (PEI_HEADERS): Protect includes. | |
440 | (bfd_pe_print_pdata): Remove #ifdef PE variation. | |
441 | * pei-x86_64.c (PEI_HEADERS): Define to prevent double | |
442 | include in coff-x86_64.c of headers. | |
443 | (PDATA_ROW_SIZE): New define. | |
444 | (pex_regs[]): New static array. | |
445 | (pex64_get_runtime_function): New static function. | |
446 | (pex64_get_unwind_info): Likewise. | |
447 | (pex64_get_scope_entry): Likewise. | |
448 | (pex64_xdata_print_uwd_codes): Likewise. | |
449 | (pex64_get_section_by_rva): Likewise. | |
450 | (pex64_dump_xdata): Likewise. | |
451 | (pex64_bfd_print_pdata): Likewise. | |
452 | (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata. | |
453 | * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation. | |
454 | * libpei.h (_bfd_pex64_print_pdata): Removed declaration. | |
455 | ||
383c383f | 456 | 2009-04-19 Peter O'Gorman <[email protected]> |
4f360784 L |
457 | Alan Modra <[email protected]> |
458 | Dave Korn <[email protected]> | |
383c383f AM |
459 | |
460 | * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t | |
461 | long names and non-NUL-terminated strings. | |
462 | ||
b6b450f1 L |
463 | 2009-04-17 H.J. Lu <[email protected]> |
464 | ||
465 | * bfd-in2.h: Regenerated. | |
466 | ||
d9118602 L |
467 | 2009-04-17 H.J. Lu <[email protected]> |
468 | ||
469 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace | |
470 | IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER. | |
471 | ||
92dd4511 L |
472 | 2009-04-17 H.J. Lu <[email protected]> |
473 | ||
474 | PR binutils/10074 | |
475 | * coffcode.h (bfd_pei_p): New. | |
476 | ||
477 | * config.bfd: Remove bfd_efi_bsdrv_ia32_vec, | |
478 | bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec, | |
479 | bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and | |
480 | bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec, | |
481 | bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with | |
482 | i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively. | |
483 | ||
484 | * configure.in: Remove bfd_efi_bsdrv_ia32_vec, | |
485 | bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec, | |
486 | bfd_efi_rtdrv_x86_64_vec, | |
487 | bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace | |
488 | bfd_efi_ia64_vec with bfd_pei_ia64_vec. | |
489 | * targets.c: Likewise. | |
490 | ||
491 | * configure: Regenerated. | |
492 | * libcoff.h: Likewise. | |
493 | * Makefile.in: Likewise. | |
494 | ||
495 | * efi-app-ia32.c: Removed. | |
496 | * efi-app-x86_64.c: Likewise. | |
497 | * efi-bsdrv-ia32.c: Likewise. | |
498 | * efi-bsdrv-ia64.c: Likewise. | |
499 | * efi-bsdrv-x86_64.c: Likewise. | |
500 | * efi-rtdrv-ia32.c: Likewise. | |
501 | * efi-rtdrv-ia64.c: Likewise. | |
502 | * efi-rtdrv-x86_64.c: Likewise. | |
503 | * efi-rtdrv-ia32.c: Likewise. | |
504 | ||
505 | * efi-app-ia64.c: Moved to ... | |
506 | * pei-ia64.c: This. | |
507 | (TARGET_SYM): Set to bfd_pei_ia64_vec. | |
508 | (TARGET_NAME): Set to pei-ia64. | |
509 | ||
510 | * libpei.h (bfd_target_pei_p): Removed. | |
511 | (bfd_target_pei_arch): Likewise. | |
512 | (bfd_target_efi_app_p): Likewise. | |
513 | (bfd_target_efi_app_arch): Likewise. | |
514 | (bfd_target_efi_bsdrv_p): Likewise. | |
515 | (bfd_target_efi_bsdrv_arch): Likewise. | |
516 | (bfd_target_efi_rtdrv_p): Likewise. | |
517 | (bfd_target_efi_rtdrv_arch): Likewise. | |
518 | (bfd_pe_executable_p): Likewise. | |
519 | ||
520 | * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo, | |
521 | efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo. | |
522 | (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c | |
523 | and efi-rtdrv-ia32.c. | |
524 | (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo, | |
525 | efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and | |
526 | efi-rtdrv-x86_64.lo. Add pei-ia64.lo. | |
527 | (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c, | |
528 | efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and | |
529 | efi-rtdrv-x86_64.c. Add pei-ia64.c. | |
530 | (efi-app-ia64.lo): Removed. | |
531 | (efi-bsdrv-ia32.lo): Likewise. | |
532 | (efi-rtdrv-ia32.lo): Likewise. | |
533 | (efi-app-ia64.lo): Likewise. | |
534 | (efi-bsdrv-ia64.lo): Likewise. | |
535 | (efi-rtdrv-ia64.lo): Likewise. | |
536 | (efi-app-x86_64.lo): Likewise. | |
537 | (efi-bsdrv-x86_64.lo): Likewise. | |
538 | (efi-rtdrv-x86_64.lo): Likewise. | |
539 | (pei-ia64.lo): New. | |
540 | ||
541 | * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p | |
542 | with bfd_pei_p. | |
543 | (arch_type): Removed. | |
544 | (pe_arch): Likewise. | |
545 | (pe_bfd_object_p): Just return coff_object_p. | |
546 | ||
547 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace | |
548 | bfd_pe_executable_p with bfd_pei_p. | |
549 | ||
69c5861e CL |
550 | 2009-04-17 Christophe Lyon <[email protected]> |
551 | ||
552 | * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through | |
553 | PLT entries to an undefined symbol when generating a shared | |
554 | library. | |
555 | ||
e9cd0660 NC |
556 | 2009-04-17 Nick Clifton <[email protected]> |
557 | ||
558 | PR 9909 | |
559 | * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols. | |
560 | ||
3023e3f6 RS |
561 | 2009-04-16 Richard Sandiford <[email protected]> |
562 | ||
563 | * aout-adobe.c (aout_32_bfd_define_common_symbol): Define. | |
564 | * aout-target.h (MY_bfd_define_common_symbol): Likewise. | |
565 | * aout-tic30.c (MY_bfd_define_common_symbol): Likewise. | |
566 | * binary.c (binary_bfd_define_common_symbol): Likewise. | |
567 | * bout.c (b_out_bfd_define_common_symbol): Likewise. | |
568 | * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise. | |
569 | * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise. | |
570 | * coffcode.h (coff_bfd_define_common_symbol): Likewise. | |
571 | * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise. | |
572 | * i386msdos.c (msdos_bfd_define_common_symbol): Likewise. | |
573 | * i386os9k.c (os9k_bfd_define_common_symbol): Likewise. | |
574 | * ieee.c (ieee_bfd_define_common_symbol): Likewise. | |
575 | * ihex.c (ihex_bfd_define_common_symbol): Likewise. | |
576 | * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
577 | * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise. | |
578 | * mmo.c (mmo_bfd_define_common_symbol): Likewise. | |
579 | * nlm-target.h (nlm_bfd_define_common_symbol): Likewise. | |
580 | * oasys.c (oasys_bfd_define_common_symbol): Likewise. | |
581 | * pef.c (bfd_pef_bfd_define_common_symbol): Likewise. | |
582 | * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise. | |
583 | * som.c (som_bfd_define_common_symbol): Likewise. | |
584 | * srec.c (srec_bfd_define_common_symbol): Likewise. | |
585 | * tekhex.c (tekhex_bfd_define_common_symbol): Likewise. | |
586 | * versados.c (versados_bfd_define_common_symbol): Likewise. | |
587 | * vms.c (vms_bfd_define_common_symbol): Likewise. | |
588 | * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise. | |
589 | * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise. | |
590 | * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol. | |
591 | (pmac_xcoff_vec): Likewise. | |
592 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
593 | (aix5coff64_vec): Likewise. | |
594 | * linker.c (bfd_generic_define_common_symbol): New function. | |
595 | * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol. | |
596 | (_bfd_define_common_symbol): New field. | |
597 | * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare. | |
598 | * xcofflink.c (_bfd_xcoff_define_common_symbol): New function. | |
599 | (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common | |
600 | symbols here. | |
601 | * bfd-in2.h: Regenerate. | |
602 | * libbfd.h: Likewise. | |
603 | * libcoff.h: Likewise. | |
604 | ||
20135e4c NC |
605 | 2009-04-15 Anthony Green <[email protected]> |
606 | ||
607 | * targets.c: Add moxie support. | |
608 | * Makefile.am: Ditto. | |
609 | * Makefile.in: Rebuilt. | |
610 | * cpu-moxie.c, elf32-moxie.c: New files. | |
611 | * archures.c: Add moxie support. | |
612 | * configure.in: Add moxie support. | |
613 | * configure: Rebuilt. | |
614 | * config.bfd, archures.c: Add moxie support. | |
615 | * bfd-in2.h: Rebuilt. | |
616 | ||
82b5c97a CL |
617 | 2009-04-15 Christophe Lyon <[email protected]> |
618 | ||
619 | * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM | |
620 | branch to an undef weak symbol into a jump to next instruction if | |
621 | a PLT entry will be created. | |
622 | ||
0408dee6 DK |
623 | 2009-04-14 Dave Korn <[email protected]> |
624 | ||
625 | * coffgen.c (make_a_section_from_file): Set the backend long | |
626 | section names enable if long section names found on input. | |
627 | * coffcode.h: Extend long section names documentation to match. | |
628 | ||
a0c402a5 L |
629 | 2009-04-08 H.J. Lu <[email protected]> |
630 | ||
631 | * elflink.c (elf_link_add_object_symbols): Warn alternate ELF | |
632 | machine code. | |
633 | ||
4d28413b DD |
634 | 2009-04-07 DJ Delorie <[email protected]> |
635 | ||
636 | * archures.c: Add bfd_mach_mep_c5. | |
637 | * bfd-in2.h: Likewise. | |
638 | * cpu-mep.c: Add bfd_c5_arch. | |
639 | * elf32-mep.c: Support it. | |
640 | ||
bb6198d2 L |
641 | 2009-04-07 H.J. Lu <[email protected]> |
642 | ||
643 | * elflink.c (_bfd_elf_section_already_linked): Add `\n' for | |
644 | info->callbacks->einfo. | |
645 | * linker.c (_bfd_generic_section_already_linked): Likewise. | |
646 | ||
bcb012d3 DD |
647 | 2009-04-06 DJ Delorie <[email protected]> |
648 | ||
649 | * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes. | |
650 | ||
db1fe6e9 L |
651 | 2009-04-06 H.J. Lu <[email protected]> |
652 | ||
653 | * coff-x86_64.c (bfd_pe_print_pdata): Defined to | |
654 | _bfd_pex64_print_pdata only if PE is defined. | |
655 | ||
656 | * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ... | |
657 | (_bfd_pex64_print_pdata): This. | |
658 | ||
659 | * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ... | |
660 | (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64 | |
661 | is defined. | |
662 | ||
c7c7219d KT |
663 | 2009-04-05 Kai Tietz <[email protected]> |
664 | ||
665 | * coff-x86_64.c (bfd_pe_print_pdata): Define as | |
666 | _bfd_pep_print_x64_pdata. | |
667 | * libpei.h (_bfd_pep_print_x64_pdata): Add prototype. | |
668 | * peXXigen.c (_bfd_pep_print_x64_pdata): New. | |
669 | ||
3df502ae SA |
670 | 2009-04-02 Sterling Augustine <[email protected]> |
671 | ||
672 | * elf32-xtensa.c (relax_property_section): Always set r_offset | |
673 | to zero. | |
674 | ||
d3626fb0 CL |
675 | 2009-04-02 Christophe Lyon <[email protected]> |
676 | ||
677 | * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb, | |
678 | elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long | |
679 | branch stubs. | |
680 | (elf32_arm_stub_type): New enum values for the two new stubs. | |
681 | (arm_type_of_stub): Make use of the two new stubs. | |
682 | (arm_size_one_stub): Handle the two new stubs. | |
683 | ||
fe723c87 MT |
684 | 2009-04-01 Matt Thomas <[email protected]> |
685 | ||
686 | * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against | |
687 | hidden symbols into the GOT or PLT.GOT. | |
688 | (elf_vax_relocate_section): Do not emit a PCREL reloc | |
689 | into a shared object if it is against a hidden symbol. | |
690 | ||
ee698300 RS |
691 | 2009-04-01 Richard Sandiford <[email protected]> |
692 | ||
693 | * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p | |
694 | and know_contains_shared_object_p. | |
695 | (xcoff_archive_contains_shared_object_p): Add an "info" parameter. | |
696 | Cache the result in the archive_info table. | |
697 | (xcoff_auto_export_p): Add an "info" parameter and update the | |
698 | call to xcoff_archive_contains_shared_object_p. | |
699 | (xcoff_mark_auto_exports): Update accordingly. | |
700 | (xcoff_post_gc_symbol): Likewise. | |
701 | ||
54e2dbe0 RS |
702 | 2009-04-01 Richard Sandiford <[email protected]> |
703 | ||
704 | * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT | |
705 | rather than C_EXT. | |
706 | ||
2e470849 RS |
707 | 2009-04-01 Richard Sandiford <[email protected]> |
708 | ||
709 | * coff-rs6000.c (member_layout): New structure. | |
710 | (archive_iterator): Likewise. | |
711 | (member_layout_init): New function. | |
712 | (archive_iterator_begin): Likewise. | |
713 | (archive_iterator_next): Likewise. | |
714 | (xcoff_write_armap_old): Use the new iterator functions. | |
715 | (do_shared_object_padding): Delete. | |
716 | (xcoff_write_armap_big): Use the new iterator functions. Simplify | |
717 | handling of arch_info. | |
718 | (xcoff_write_archive_contents_old): Allocate arelt_data in the | |
719 | first loop rather than the second. Allocate a member header if | |
720 | there isn't one, then work out the stat information and length | |
721 | in the first loop too. Use the new iterators for the second loop. | |
722 | (xcoff_write_archive_contents_big): Likewise. | |
723 | ||
24c611d1 RS |
724 | 2009-04-01 Richard Sandiford <[email protected]> |
725 | ||
726 | * bfd-in.h (bfd_xcoff_split_import_path): Declare. | |
727 | (bfd_xcoff_set_archive_import_path): Likewise. | |
728 | * bfd-in2.h: Regenerate. | |
729 | * xcofflink.c: Include libiberty.h. | |
730 | (xcoff_archive_info): New structure. | |
731 | (xcoff_archive_info_hash): New function. | |
732 | (xcoff_archive_info_eq): Likewise. | |
733 | (xcoff_get_archive_info): Likewise. | |
734 | (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info. | |
735 | (bfd_xcoff_split_import_path): New function. | |
736 | (bfd_xcoff_set_archive_import_path): Likewise. | |
737 | (xcoff_set_import_path): Move earlier in file. | |
738 | (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive | |
739 | object to the the directory part of the bfd's filename. Get the | |
740 | import path and filename of an archive object from the archive's | |
741 | xcoff_tdata, initializing it if necessary. Update use of | |
742 | import_file_id. | |
743 | (bfd_link_input_bfd): Update use of import_file_id. | |
744 | (xcoff_write_global_symbol): Likewise. | |
745 | ||
d286971a RS |
746 | 2009-04-01 Richard Sandiford <[email protected]> |
747 | ||
748 | * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h. | |
749 | ||
750 | 2009-04-01 Richard Sandiford <[email protected]> | |
751 | ||
752 | * xcofflink.c (xcoff_link_create_extra_sections): Don't create | |
753 | a .loader section for relocatable links. | |
754 | (xcoff_need_ldrel_p): New function. | |
755 | (xcoff_mark): Use it. | |
756 | (bfd_xcoff_link_count_reloc): Only count loader relocs if there's | |
757 | a loader section. | |
758 | (xcoff_build_ldsym): New function, split out from... | |
759 | (xcoff_build_ldsyms): ...here. Rename to... | |
760 | (xcoff_post_gc_symbol): ...this. Only export symbols, and only | |
761 | call xcoff_build_ldsym, if there's a loader section. | |
762 | (xcoff_build_loader_section): New function, extracted verbatim from... | |
763 | (bfd_xcoff_size_dynamic_sections): ...here. Only call it if | |
764 | there's a loader section. Only add an __rtinit loader symbol | |
765 | if there's a loader section. Update after above name change. | |
766 | (xcoff_symbol_section, xcoff_create_ldrel): New functions. | |
767 | (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section | |
768 | and xcoff_create_ldrel. | |
769 | (xcoff_write_global_symbol): Use xcoff_create_ldrel. | |
770 | (xcoff_reloc_link_order): Likewise, but only call it if there's | |
771 | a loader section. Use xcoff_symbol_section. | |
772 | (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym | |
773 | if there's a loader section. | |
774 | ||
8707bb87 RS |
775 | 2009-04-01 Richard Sandiford <[email protected]> |
776 | ||
777 | * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun. | |
778 | ||
e780aef2 CL |
779 | 2009-04-01 Christophe Lyon <[email protected]> |
780 | ||
781 | * elf32-arm.c (group_sections): Rewrite loops for better | |
782 | readability. | |
783 | ||
c301e700 DD |
784 | 2009-03-30 DJ Delorie <[email protected]> |
785 | ||
786 | * elflink.c (elf_link_input_bfd): Don't try to resolve complex | |
787 | relocs when doing a relocatable link. | |
788 | ||
3895f852 MM |
789 | 2009-03-28 Mark Mitchell <[email protected]> |
790 | ||
791 | * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not | |
792 | "ERROR:", in error messages. | |
793 | * cpu-arm.c (bfd_arm_merge_machines): Likewise. | |
794 | * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise. | |
795 | * elf32-arm.c (tag_cpu_arch_combine): Likewise. | |
796 | (elf32_arm_merge_eabi_attributes): Likewise. | |
797 | (elf32_arm_merge_private_bfd_data): Likewise. | |
798 | ||
ea882e87 NC |
799 | 2009-03-27 Nick Clifton <[email protected]> |
800 | ||
801 | * section.c (bfd_get_section_contents): Detect and handle the case | |
802 | where a section has the SEC_IN_MEMORY flag set but no actual | |
803 | contents allocated. | |
804 | ||
9433b9b1 AM |
805 | 2009-03-26 Alan Modra <[email protected]> |
806 | ||
807 | PR 6494 | |
808 | * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO | |
809 | p_filesz and p_memsz are equal. Use p_memsz as the segment size. | |
810 | (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO | |
811 | if we don't find matching PT_LOAD when copying. | |
812 | ||
dc1aa734 SR |
813 | 2009-03-25 M R Swami Reddy <[email protected]> |
814 | ||
815 | * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of | |
816 | the reloc descriptions. | |
817 | ||
34d3d6b9 HPN |
818 | 2009-03-25 Hans-Peter Nilsson <[email protected]> |
819 | ||
820 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> | |
821 | <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols. | |
822 | <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto. | |
823 | ||
34274ccc L |
824 | 2009-03-24 H.J. Lu <[email protected]> |
825 | ||
826 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static. | |
827 | (bfd_i386_arch_intel_syntax): Likewise. | |
828 | (i8086_arch): Likewise. | |
829 | (bfd_x86_64_arch): Likewise. | |
830 | ||
019c5a2e HPN |
831 | 2009-03-24 Hans-Peter Nilsson <[email protected]> |
832 | ||
6718f446 HPN |
833 | * elf32-cris.c (cris_elf_relocate_section): <case |
834 | R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local | |
835 | symbols for non-allocated sections. Don't check whether to | |
836 | generate R_CRIS_DTPMOD for non-allocated sections. | |
837 | (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't | |
838 | handle relocation GC:ing if applied to non-allocated section. | |
839 | (cris_elf_check_relocs): Similar. | |
840 | ||
019c5a2e HPN |
841 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> |
842 | <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size | |
843 | when emitting a known TP offset in the GOT. | |
844 | ||
ffcfec52 AM |
845 | 2009-03-23 Alan Modra <[email protected]> |
846 | ||
847 | * elf64-ppc.c (synthetic_opd): Delete. | |
848 | (compare_symbols): Look for .opd name rather than section match. | |
849 | (ppc64_elf_get_synthetic_symtab): Likewise. | |
850 | ||
c6dd29ce AM |
851 | 2009-03-21 Alan Modra <[email protected]> |
852 | ||
853 | * elf32-ppc.c (is_pic_glink_stub): Delete. | |
854 | (is_nonpic_glink_stub): New function. | |
855 | (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather | |
856 | than first pic one. | |
857 | (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix. | |
858 | ||
8c21ca21 AK |
859 | 2009-03-20 Martin Schwidefsky <[email protected]> |
860 | Andreas Krebbel <[email protected]> | |
861 | ||
862 | * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_* | |
4f360784 | 863 | macros for visibilty and locality checks. |
8c21ca21 AK |
864 | (elf_s390_adjust_dynamic_symbol): Likewise. |
865 | (allocate_dynrelocs): Likewise. | |
866 | (elf_s390_relocate_section): Likewise. | |
867 | (elf_s390_finish_dynamic_symbol): Likewise. | |
868 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
869 | (elf_s390_adjust_dynamic_symbol): Likewise. | |
870 | (allocate_dynrelocs): Likewise. | |
871 | (elf_s390_relocate_section): Likewise. | |
872 | (elf_s390_finish_dynamic_symbol): Likewise. | |
873 | ||
156621f3 KT |
874 | 2009-03-19 Kai Tietz <[email protected]> |
875 | ||
876 | * bfd-in2.h: Regenerated. | |
877 | * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY | |
878 | for debugging sections and map memory read/write dependent on | |
879 | SEC_COFF_NOREAD. | |
880 | (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections | |
881 | without memory read flags set. | |
882 | * section.c: Add SEC_COFF_NOREAD to section flags. | |
883 | ||
d1fa68d3 AS |
884 | 2009-03-19 Andreas Schwab <[email protected]> |
885 | ||
886 | * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long | |
887 | for format string. | |
888 | ||
ad2adbc8 AM |
889 | 2009-03-19 Alan Modra <[email protected]> |
890 | ||
891 | * elf32-spu.c (spu_elf_find_overlays): Separate error return from | |
892 | "no overlays" return. If there are overlays, create overlay | |
893 | manager entry symbols here, so that.. | |
894 | (spu_elf_build_stubs): ..we don't need to set them up here. | |
895 | Simplify entry symbol tests. | |
896 | * elf32-spu.h (spu_elf_find_overlays): Update prototype. | |
897 | ||
67cc5033 MK |
898 | 2009-03-18 Mark Kettenis <[email protected]> |
899 | ||
d1fa68d3 | 900 | * elf.c (elfcore_grok_openbsd_procinfo) |
67cc5033 MK |
901 | (elfcore_grok_openbsd_note): New functions. |
902 | (elf_parse_notes): Handle notes from OpenBSD ELF core files. | |
903 | ||
8d25cc3d AM |
904 | 2009-03-18 Alan Modra <[email protected]> |
905 | ||
3889c459 | 906 | * vms-hdr.c: Don't include alloca.h. |
8d25cc3d AM |
907 | * elf32-m68hc1x.c: Include alloca-conf.h. |
908 | * xsym.c: Likewise. | |
909 | * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. | |
910 | * som.c: Likewise. | |
911 | * Makefile.am: Run "make dep-am". | |
912 | * Makefile.in: Regenerate. | |
913 | ||
a89e6478 DJ |
914 | 2009-03-17 Daniel Jacobowitz <[email protected]> |
915 | ||
916 | * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test. | |
917 | ||
a7e11ee1 AM |
918 | 2009-03-17 Alan Modra <[email protected]> |
919 | ||
920 | * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit. | |
921 | Add compact_stub. | |
922 | (emum _ovly_flavour): Delete ovly_compact, ovly_none. | |
923 | * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and | |
924 | ovly_return fields with ovly_entry[2]. Adjust all users. | |
925 | (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler | |
926 | when soft-icache. | |
927 | (spu_elf_build_stubs): Likewise. | |
928 | (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for | |
929 | ovly_flavour changes. Update all callers. | |
930 | (ovl_stub_size_log2): New function. | |
931 | (build_stub): Handle compact icache stubs. Use different manager | |
932 | entry point for stubs in non-icache area. | |
933 | (spu_elf_size_stubs): Don't allocate space for indirect branch | |
934 | descriptors. | |
935 | (spu_elf_build_stubs): And don't built them. | |
936 | ||
607a83c9 AS |
937 | 2009-03-16 Andrew Stubbs <[email protected]> |
938 | ||
939 | * dwarf2.c (read_section): Always use rawsize, if available. | |
940 | ||
588f62fc AM |
941 | 2009-03-16 Alan Modra <[email protected]> |
942 | ||
943 | * simple.c (bfd_simple_get_relocated_section_contents): Use larger | |
944 | of rawsize and size for buffer. | |
945 | ||
a14c90c1 UW |
946 | 2009-03-15 Ulrich Weigand <[email protected]> |
947 | ||
948 | * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay | |
949 | parameter just because fixed sections fit into local store. | |
950 | (spu_elf_auto_overlay): Do not declare as "noreturn". Skip | |
951 | generating overlays if fixed sections plus reserved stack | |
952 | and heap space fit into local store. | |
953 | ||
30c665df AM |
954 | 2009-03-15 Alan Modra <[email protected]> |
955 | ||
956 | * elf32-spu.c (build_stub): Correct icache set_id. | |
957 | (spu_elf_relocate_section): Likewise. | |
958 | ||
f95942a3 RS |
959 | 2009-03-14 Richard Sandiford <[email protected]> |
960 | ||
961 | * xcofflink.c (xcoff_link_check_archive_element): Only free the | |
962 | symbol table if it was created by the current call. | |
963 | ||
670562e9 RS |
964 | 2009-03-14 Richard Sandiford <[email protected]> |
965 | ||
966 | * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors | |
967 | class XMC_DS rather than XMC_UA. | |
968 | ||
b64232cc RS |
969 | 2009-03-14 Richard Sandiford <[email protected]> |
970 | ||
971 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the | |
972 | bfd_boolean export_defineds parameter with an unsigned int | |
973 | auto_export_flags parameter. | |
974 | * bfd-in2.h: Regenerate. | |
975 | * xcofflink.c (xcoff_archive_contains_shared_object_p): New function, | |
976 | split out from xcoff_build_ldsyms. | |
977 | (xcoff_covered_by_expall_p): New function. | |
978 | (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms | |
979 | but with extra code to handle -bexpfull and -bexpall. | |
980 | (xcoff_mark_auto_exports): New function. | |
981 | (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether | |
982 | a function should be automatically exported. | |
983 | (bfd_xcoff_size_dynamic_sections): Replace the export_defineds | |
984 | parameter with an auto_export_flags parameter. Update ldinfo | |
985 | accordingly. Use xcoff_mark_auto_exports to mark all automatically- | |
986 | exported symbols. | |
987 | ||
7d504122 RS |
988 | 2009-03-14 Richard Sandiford <[email protected]> |
989 | ||
990 | * xcofflink.c (xcoff_mark_symbol_by_name): New function. | |
991 | (bfd_xcoff_size_dynamic_sections): Use it to mark the entry, | |
992 | init and fini functions. Do garbage collection for objects | |
993 | without an entry point too. | |
994 | ||
8602d4fe RS |
995 | 2009-03-14 Richard Sandiford <[email protected]> |
996 | ||
997 | * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to | |
998 | check whether a symbol has csect information. | |
999 | (coff_print_aux): Likewise. | |
1000 | * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect | |
1001 | information for C_AIX_WEAKEXT too. | |
1002 | (_bfd_xcoff_swap_aux_out): Likewise. | |
1003 | (xcoff_reloc_type_br): Handle defweak symbols too. | |
1004 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect | |
1005 | information for C_AIX_WEAKEXT too. | |
1006 | (_bfd_xcoff64_swap_aux_out): Likewise. | |
1007 | (xcoff64_reloc_type_br): Handle defweak symbols too. | |
1008 | * coffgen.c (coff_print_symbol): Handle auxillary function | |
1009 | information for C_AIX_WEAKEXT too. | |
1010 | * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK | |
1011 | instead of BSF_GLOBAL if the L_WEAK flag is set. | |
1012 | (xcoff_dynamic_definition_p): New function. | |
1013 | (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym | |
1014 | defines h. Don't change h if ldsym isn't the definition. Otherwise, | |
1015 | always take the symbol class from the ldsym. Use weak bfd symbol | |
1016 | types for weak ldsyms. | |
1017 | (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P. | |
1018 | Fix the check for whether a definition is from a shared object. | |
1019 | Allow redefinitions of weak symbols. | |
1020 | (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P. | |
1021 | (xcoff_keep_symbol_p): Likewise. | |
1022 | (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P. | |
1023 | (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P. | |
1024 | Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols, | |
1025 | but mark them as L_WEAK. | |
1026 | (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT | |
1027 | instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT. | |
1028 | ||
5b49f6dc RS |
1029 | 2009-03-14 Richard Sandiford <[email protected]> |
1030 | ||
1031 | * xcofflink.c (xcoff_mark): When walking the relocations, | |
1032 | only mark the target symbol or the target section, not both. | |
1033 | (xcoff_final_definition_p): New function. | |
1034 | (xcoff_keep_symbol_p): Use it to check whether an external XCOFF | |
1035 | symbol is a valid definition of the associated output symbol. | |
1036 | Use XCOFF_ALLOCATED to stop the same hash table entry having | |
1037 | two output symbols. | |
1038 | (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when | |
1039 | keeping a symbol. | |
1040 | (xcoff_link_input_bfd): Use xcoff_final_definition_p. | |
1041 | ||
c4037431 RS |
1042 | 2009-03-14 Richard Sandiford <[email protected]> |
1043 | ||
1044 | * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute | |
1045 | symbols as XMC_XO. | |
1046 | ||
3df13c4a RS |
1047 | 2009-03-14 Richard Sandiford <[email protected]> |
1048 | ||
1049 | * libcoff-in.h (xcoff_tdata): Add a lineno_counts field. | |
1050 | * libcoff.h: Regenerate. | |
1051 | * xcofflink.c (xcoff_link_add_symbols): Record per-symbol | |
1052 | line-number counts in the bfd's lineno_counts field. | |
1053 | Don't keep per-csect line-number counts. | |
1054 | (xcoff_sweep): Don't update per-csect line-number counts. | |
1055 | (bfd_xcoff_size_dynamic_sections): Count the number of line-number | |
1056 | entries in each output section. | |
1057 | (xcoff_link_input_bfd): Get the number of line numbers from | |
1058 | the bfd's lineno_counts field, rather than recalculating it | |
1059 | from scratch. Fix the range check when updating C_BINCL and | |
1060 | C_EINCL symbols. | |
1061 | (_bfd_xcoff_bfd_final_link): Don't count the output line numbers | |
1062 | here. Don't expect csects to have line-number counts. | |
1063 | ||
e450936a RS |
1064 | 2009-03-14 Richard Sandiford <[email protected]> |
1065 | ||
1066 | * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long. | |
1067 | * libcoff.h: Regenerate. | |
1068 | * xcofflink.c (xcoff_keep_symbol_p): New function, using the | |
1069 | "skip" logic from xcoff_link_input_bfd. | |
1070 | (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic | |
1071 | objects in a dynamic link, rather than checking whether csectpp | |
1072 | is null. Always allocate debug_index for other objects, | |
1073 | and always go through the loop. Update the type of debug_index | |
1074 | after the change above. Read the auxillary csect information | |
1075 | and use xcoff_keep_symbol_p to decide whether a symbol should | |
1076 | be kept. Set its debug_index to -2 if not. | |
1077 | (xcoff_link_input_bfd): Update the type of debug_index after | |
1078 | the change above and always expect it to be nonnull. Use it to | |
1079 | test whether a symbol should be stripped, rather than making the | |
1080 | decision here. Postpone all symbol creation to the second pass. | |
1081 | ||
47dfb2ca RS |
1082 | 2009-03-14 Richard Sandiford <[email protected]> |
1083 | ||
1084 | * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when | |
1085 | creating a descriptor. | |
1086 | (xcoff_sweep): Don't mark toc_section unless it's needed. | |
1087 | (bfd_xcoff_size_dynamic_sections): Skip the toc_section | |
1088 | when marking every bfd. | |
1089 | (xcoff_link_input_bfd): Skip all TOC anchors. | |
1090 | (xcoff_toc_section_p, xcoff_find_tc0): New functions. | |
1091 | (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor | |
1092 | to -1; call xcoff_find_tc0 instead. | |
1093 | ||
4cc02a02 RS |
1094 | 2009-03-14 Richard Sandiford <[email protected]> |
1095 | ||
1096 | * libcoff-in.h (xcoff_section_tdata): Update commentary. | |
1097 | * libcoff.h: Regenerate. | |
1098 | * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER | |
1099 | symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than | |
1100 | the previous symbol's csect. Treat last_symndx as an inclusive value | |
1101 | and simplify its handling. | |
1102 | (xcoff_mark): Treat last_symndx as an inclusive value. Only mark | |
1103 | symbols with the right csect. Don't mark rsec when processing | |
d1fa68d3 | 1104 | relocations against undefined or absolute sections. |
4cc02a02 RS |
1105 | (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag |
1106 | of bfd_und_section_ptr. | |
1107 | (xcoff_link_input_bfd): Likewise. | |
1108 | ||
858ef0ce RS |
1109 | 2009-03-14 Richard Sandiford <[email protected]> |
1110 | ||
1111 | * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations | |
1112 | against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED | |
1113 | flag is set. Assert that all undefined symbols are either | |
1114 | imported or defined by a dynamic object. | |
1115 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise. | |
1116 | * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol | |
1117 | handling to all relocations. Only set XCOFF_CALLED for function | |
1118 | symbols. | |
1119 | (xcoff_find_function): New function, split out from... | |
1120 | (bfd_xcoff_export_symbol) ...here. | |
1121 | (xcoff_set_import_path): New function, split out from... | |
1122 | (bfd_xcoff_import_symbol): ...here. Remove assertion for old | |
1123 | meaning of XCOFF_CALLED. | |
1124 | (xcoff_mark_symbol): If we mark an undefined and unimported | |
1125 | symbol, find some way of defining it. If the symbol is a function | |
1126 | descriptor, fill in its definition automatically. If the symbol | |
1127 | is a function, mark its descriptor and allocate room for global | |
1128 | linkage code. Otherwise mark the symbol as implicitly imported. | |
1129 | Move the code for creating function descriptors from... | |
d1fa68d3 | 1130 | (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to |
858ef0ce RS |
1131 | check for symbols that were implicitly defined. |
1132 | (xcoff_mark): Don't count any dynamic relocations against | |
1133 | function symbols. | |
1134 | (bfd_xcoff_size_dynamic_sections): Save the rtld parameter | |
1135 | in the xcoff link info. | |
1136 | (xcoff_link_input_bfd): Remove handling of undefined and | |
1137 | unexported symbols. | |
1138 | ||
12b2cce9 RS |
1139 | 2009-03-14 Richard Sandiford <[email protected]> |
1140 | ||
1141 | * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute | |
1142 | if the target is absolute. Fix comment typo. | |
1143 | (xcoff_ppc_relocate_section): Remove FIXME. | |
1144 | * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute | |
1145 | if the target is absolute. | |
1146 | ||
0e3212ad RS |
1147 | 2009-03-14 Richard Sandiford <[email protected]> |
1148 | ||
1149 | * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy | |
1150 | R_POS and R_NEG relocations against absolute symbols to the | |
1151 | .loader section. | |
1152 | ||
d19d97e9 RS |
1153 | 2009-03-14 Richard Sandiford <[email protected]> |
1154 | ||
1155 | * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype | |
1156 | to 2 for bfd_mach_ppc_620. | |
1157 | ||
e5231592 RS |
1158 | 2009-03-14 Richard Sandiford <[email protected]> |
1159 | ||
1160 | * config.bfd: Treat AIX 6+ in the same way as AIX 5. | |
1161 | * configure.in: Likewise. | |
1162 | * configure: Regenerate. | |
1163 | ||
3516e984 L |
1164 | 2009-03-13 H.J. Lu <[email protected]> |
1165 | ||
1166 | PR binutils/9945 | |
1167 | * elf.c (assign_section_numbers): Generate symbol table if there | |
1168 | is any relocation in output. | |
1169 | (_bfd_elf_compute_section_file_positions): Likewise. | |
1170 | ||
ce98a316 NC |
1171 | 2009-03-13 Nick Clifton <[email protected]> |
1172 | ||
1173 | PR 9934 | |
1174 | * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section. | |
1175 | * elflink.c (elf_link_read_relocs_from_section): Use | |
1176 | NUM_SHDR_ENTRIES. Gracefully handle the case where there are | |
1177 | relocs but no symbol table. | |
1178 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. | |
1179 | ||
c4fb387b L |
1180 | 2009-03-12 H.J. Lu <[email protected]> |
1181 | ||
1182 | PR ld/9938 | |
1183 | * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp | |
1184 | to check ___tls_get_addr. | |
1185 | ||
1186 | * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use | |
1187 | strncmp to check __tls_get_addr. | |
1188 | ||
53638231 AS |
1189 | 2009-03-12 Andrew Stubbs <[email protected]> |
1190 | ||
1191 | * dwarf2.c (read_section): Always check the offset, even when the | |
1192 | section has been read before. | |
1193 | ||
09e8c3bf L |
1194 | 2009-03-11 H.J. Lu <[email protected]> |
1195 | ||
1196 | * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in | |
1197 | comments. | |
1198 | ||
36e4dce6 CD |
1199 | 2009-03-11 Chris Demetriou <[email protected]> |
1200 | ||
1201 | * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. | |
1202 | * bfd-in2.h: Regenerate. | |
1203 | * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT | |
1204 | flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file | |
1205 | mode. | |
1206 | (bsd_write_armap): Likewise. | |
1207 | (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT | |
1208 | flag is set, do nothing. | |
1209 | (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 | |
1210 | for timestamp. | |
1211 | ||
9b175a76 UW |
1212 | 2009-03-11 Ulrich Weigand <[email protected]> |
1213 | ||
1214 | * elf32-spu.c (find_function_stack_adjust): Handle sf instruction | |
1215 | used to update stack pointer. | |
1216 | ||
f501de17 DA |
1217 | 2009-03-07 John David Anglin <[email protected]> |
1218 | ||
1219 | PR binutils/9921 | |
1220 | * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE | |
1221 | for unknown symbols in absolute section. | |
1222 | ||
d11fd249 NC |
1223 | 2009-03-06 Nick Clifton <[email protected]> |
1224 | ||
1225 | * po/es.po: Updated Spanish translation. | |
1226 | ||
8cd931b7 CL |
1227 | 2009-03-05 Christophe Lyon <[email protected]> |
1228 | ||
1229 | * elf32-arm.c (group_sections): Take next section size into | |
1230 | account before accepting to group it. | |
1231 | ||
5fa9e92f CL |
1232 | 2009-03-05 Christophe Lyon <[email protected]> |
1233 | ||
1234 | * elf32-arm.c (arm_type_of_stub): Handle long branches targetting | |
1235 | PLT entries. | |
1236 | (elf32_arm_final_link_relocate): Likewise. | |
1237 | ||
b92997d6 AM |
1238 | 2009-03-05 Moritz Kroll <[email protected]> |
1239 | ||
1240 | PR 9923 | |
1241 | * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type. | |
1242 | ||
727fc41e AM |
1243 | 2009-03-04 Alan Modra <[email protected]> |
1244 | ||
1245 | * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. | |
1246 | * section.c (struct bfd_section): Add has_tls_get_addr_call. | |
1247 | (BFD_FAKE_SECTION): Init new flag. | |
1248 | * ecoff.c (bfd_debug_section): Likewise. | |
1249 | * bfd-in2.h: Regenerate. | |
1250 | * libbfd.h: Regenerate. | |
1251 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. | |
1252 | (ppc_elf_reloc_type_lookup): Handle new relocs. | |
1253 | (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
1254 | without marker relocs. | |
1255 | (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
1256 | if section has no old-style calls. | |
1257 | (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
1258 | Don't try to optimize new-style __tls_get_addr call when handling | |
1259 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
1260 | relocs. | |
1261 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. | |
1262 | (ppc64_elf_reloc_type_lookup): Handle new relocs. | |
1263 | (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
1264 | without marker relocs. | |
1265 | (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
1266 | if section has no old-style calls. Set toc_ref for new relocs as | |
1267 | appropriate. | |
1268 | (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
1269 | Don't try to optimize new-style __tls_get_addr call when handling | |
1270 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
1271 | relocs. | |
1272 | ||
51dec227 AM |
1273 | 2009-03-04 Alan Modra <[email protected]> |
1274 | ||
1275 | PR 6768 | |
1276 | * configure.in: Test for ld --as-needed support. Link shared | |
1277 | libbfd against libm. | |
1278 | * configure: Regenerate. | |
1279 | ||
a1f7ca36 AM |
1280 | 2009-03-03 Alan Modra <[email protected]> |
1281 | ||
1282 | * Makefile.am: Run "make dep-am". | |
1283 | * Makefile.in: Regenerate. | |
1284 | ||
c3b7224a NC |
1285 | 2009-03-02 Qinwei <[email protected]> |
1286 | ||
1287 | * elf32-score7.c: New file. | |
1288 | * elf32-score.h: New file. | |
1289 | * elf32-score.c: Add code to support score 7. Set score7 as the | |
1290 | default. | |
1291 | * cpu-score.c: Add score7 architecure. | |
1292 | (compatibile): New function. | |
1293 | * Makefile.am: Add rules for building elf32-score7 object. | |
1294 | * Makefile.in: Regenerate. | |
1295 | * configure.in: Add elf32-score7 object to score vectors. | |
1296 | * configure: Regenerate. | |
1297 | * reloc.c: Add score7 relocs. | |
1298 | * archures.c: Add score3 and score7 machine numbers. | |
1299 | * bfd-in2.h: Regenerate. | |
1300 | * libbfd.h: Regenerate. | |
1301 | ||
58e24671 RW |
1302 | 2009-03-01 Ralf Wildenhues <[email protected]> |
1303 | ||
1304 | * configure: Regenerate. | |
1305 | ||
5887528b DA |
1306 | 2009-03-01 John David Anglin <[email protected]> |
1307 | ||
d45b7d74 DA |
1308 | * elf32-hppa.c (hppa32_elf_local_refcounts): New function. |
1309 | (elf32_hppa_check_relocs): Use it. | |
1310 | ||
5887528b DA |
1311 | * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to |
1312 | elf64-hppa.c. | |
1313 | (elf_hppa_unmark_useless_dynamic_symbols): Likewise. | |
1314 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. | |
1315 | (elf_hppa_is_dynamic_loader_symbol): Likewise. | |
1316 | (elf_hppa_record_segment_addrs): Likewise. | |
1317 | (elf_hppa_final_link): Likewise. | |
1318 | (elf_hppa_relocate_insn): Likewise. | |
1319 | (elf_hppa_final_link_relocate): Likewise. | |
1320 | (elf64_hppa_relocate_section): Likewise. | |
1321 | * elf64-hppa.c: Insert above. | |
1322 | ||
a03bd320 DA |
1323 | 2009-02-28 John David Anglin <[email protected]> |
1324 | ||
1325 | * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. | |
1326 | (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table. | |
1327 | (elf_hppa_relocate_section): Likewise. | |
1328 | * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive | |
1329 | from struct elf_link_hash_entry. Add count field. | |
1330 | (struct elf64_hppa_dyn_hash_table): Delete. | |
1331 | (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field. | |
1332 | (elf64_hppa_hash_table): Rename to hppa_link_hash_table. | |
1333 | (hppa_elf_hash_entry, eh_name): Define. | |
1334 | (elf64_hppa_new_dyn_hash_entry): Delete. | |
1335 | (elf64_hppa_dyn_hash_lookup): Delete. | |
1336 | (elf64_hppa_dyn_hash_traverse): Delete. | |
1337 | (get_dyn_name): Delete. | |
1338 | (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead | |
1339 | of struct elf64_hppa_dyn_hash_entry *. | |
1340 | (elf64_hppa_finalize_dlt, llocate_global_data_dlt, | |
1341 | allocate_global_data_plt, allocate_global_data_stub, | |
1342 | allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries): | |
1343 | Likewise. | |
1344 | (hppa64_link_hash_newfunc): New. | |
1345 | (elf64_hppa_hash_table_create): Rework. | |
1346 | (count_dyn_reloc): Likewise. | |
1347 | (hppa64_elf_local_refcounts): New. | |
1348 | (elf64_hppa_check_relocs): Rework using standard technique for recording | |
1349 | local DLT, PLT and OPD reference counts. | |
1350 | (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct | |
1351 | elf_link_hash_entry *. | |
1352 | (elf64_hppa_mark_exported_functions, allocate_global_data_dlt, | |
1353 | allocate_global_data_plt, allocate_global_data_stub, | |
1354 | allocate_global_data_opd, allocate_dynrel_entries, | |
1355 | elf64_hppa_adjust_dynamic_symbol, | |
1356 | elf64_hppa_mark_milli_and_exported_functions): Likewise. | |
1357 | (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections): | |
1358 | Use hppa_link_hash_table. Rework. | |
1359 | (elf64_hppa_link_output_symbol_hook): Rework. | |
1360 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd, | |
1361 | elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc, | |
1362 | elf64_hppa_finish_dynamic_sections): Likewise. | |
1363 | ||
ebe24dd4 CL |
1364 | 2009-02-26 Christophe Lyon <[email protected]> |
1365 | ||
1366 | * elf32-arm.c (stub_reloc_type): Removed. | |
1367 | (insn_sequence): Renamed reloc_type field to r_type. | |
1368 | (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub. | |
1369 | (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise. | |
1370 | (elf32_arm_stub_long_branch_thumb_only_pic): Likewise. | |
1371 | (elf32_arm_stub_type): Add new enum entries for the new stubs. | |
1372 | (arm_stub_is_thumb): Catch new stubs. | |
1373 | (arm_type_of_stub): Handle new stubs. | |
1374 | (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs. | |
1375 | (bfd_elf32_arm_process_before_allocation): Remove useless | |
1376 | condition. | |
1377 | ||
b9d678e0 L |
1378 | 2009-02-25 H.J. Lu <[email protected]> |
1379 | ||
1380 | * elf.c (elf_find_function): Use is_function_type to check | |
1381 | function symbol. | |
1382 | ||
56fb3749 SA |
1383 | 2009-02-24 Sterling Augustine <[email protected]> |
1384 | ||
1385 | * xtensa-modules.c: Revert to previous version 1.11 due | |
1386 | to inadvertant commit. | |
1387 | ||
658ff993 SA |
1388 | 2009-02-24 Sterling Augustine <[email protected]> |
1389 | ||
1390 | * elf32-xtensa.c (text_action_add): Separate test for action | |
1391 | type. Break if saved action is ta_widen_insn at same offset. | |
1392 | ||
cf3eccff DJ |
1393 | 2009-02-24 Daniel Jacobowitz <[email protected]> |
1394 | ||
1395 | * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename | |
1396 | to elf32_arm_stub_long_branch_any_arm_pic. | |
1397 | (elf32_arm_stub_long_branch_any_thumb_pic): New. | |
1398 | (enum elf32_arm_stub_type, arm_type_of_stub) | |
1399 | (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC | |
1400 | separately. | |
1401 | ||
07d72278 DJ |
1402 | 2009-02-24 Joseph Myers <[email protected]> |
1403 | ||
1404 | * elf32-arm.c (PREV_SEC): Update comment. | |
1405 | (group_sections): Rename argument to stubs_always_after_branch. | |
1406 | Reverse the list and place stubs at the end of input sections. | |
1407 | Undefine NEXT_SEC. | |
1408 | (elf32_arm_size_stubs): Update to use stubs_always_after_branch. | |
1409 | ||
4e31c731 DJ |
1410 | 2009-02-23 Daniel Jacobowitz <[email protected]> |
1411 | ||
1412 | * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset. | |
1413 | Fix formatting. | |
1414 | (arm_size_one_stub): Remove unnecessary break. | |
1415 | (arm_map_one_stub): Fix formatting. Return after BFD_FAIL. | |
1416 | ||
1417 | 2009-02-23 Christophe Lyon <[email protected]> | |
461a49ca DJ |
1418 | |
1419 | * elf32-arm.c (stub_insn_type): New type. | |
1420 | (stub_reloc_type): Likewise. | |
1421 | (insn_sequence): Likewise. | |
1422 | (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence. | |
1423 | (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise. | |
1424 | (elf32_arm_stub_long_branch_thumb_only): Likewise. | |
1425 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
1426 | (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise. | |
1427 | (elf32_arm_stub_long_branch_any_any_pic): Likewise. | |
1428 | (elf32_arm_stub_hash_entry): Add new helper fields. | |
1429 | (stub_hash_newfunc): Initialize these new fields. | |
1430 | (arm_build_one_stub): Encode Arm and Thumb instructions separately | |
1431 | to take endianness into account. | |
1432 | (arm_size_one_stub): Compute size of stubs using insn_sequence. | |
1433 | (arm_map_one_stub): Code is now more generic, thanks to | |
1434 | insn_sequence. | |
1435 | ||
c2b4a39d CL |
1436 | 2009-02-23 Christophe Lyon <[email protected]> |
1437 | ||
1438 | * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub | |
1439 | code. | |
1440 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
1441 | (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when | |
1442 | BLX is not available. Fix typo in warning message. Add comments | |
1443 | and improve formatting. | |
1444 | (arm_build_one_stub): Adjust to new | |
1445 | elf32_arm_stub_long_branch_v4t_thumb_arm stub. | |
1446 | (arm_map_one_stub): Likewise. | |
1447 | ||
0c376465 | 1448 | 2009-02-23 Tristan Gingold <[email protected]> |
a60a89d6 TG |
1449 | Eric Botcazou <[email protected]> |
1450 | Douglas B Rupp <[email protected]> | |
0c376465 TG |
1451 | |
1452 | * vms.h: Update copyright year, fix comments, reorder declarations. | |
1453 | (_bfd_save_vms_section): Remove the prototype. | |
1454 | (EGPS_S_V_NO_SHIFT): New constant. | |
1455 | (bfd_vms_set_section_flags): New prototype. | |
1456 | (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New | |
1457 | constants. | |
1458 | (EGSY_S_W_FLAGS): Ditto. | |
1459 | (EGSY_S_V_QUAD_VAL): Ditto. | |
1460 | (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto. | |
1461 | (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX, | |
1462 | EGST_S_B_NAMLNG): Ditto. | |
1463 | (ESRF_S_B_NAMLNG): Ditto. | |
1464 | (ETIR_S_C_HEADER_SIZE): Ditto. | |
1465 | (EGPS_S_V_ALLOC_64BIT): Ditto. | |
1466 | (DST_S_C_EPILOG): Ditto. | |
1467 | (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto. | |
1468 | (DST_S_C_SRC_INCRLNUM_B): Ditto. | |
1469 | (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto. | |
1470 | (DST_S_L_PCLINE_UNSLONG): Ditto. | |
1471 | (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto | |
1472 | (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto | |
1473 | (DST_S_C_SOURCE_HEADER_SIZE): Ditto. | |
1474 | (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto. | |
1475 | (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto. | |
1476 | (DST_S_B_SRC_UNSBYTE): Ditto. | |
1477 | (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto. | |
1478 | Add prototypes. | |
1479 | (vms_section, vms_reloc): Remove types. | |
1480 | (hdr_struc): Replaced by ... | |
1481 | (hdr_struct): ... new type. | |
1482 | (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants. | |
1483 | (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto. | |
1484 | (EMH_DATE_LENGTH): Ditto. | |
1485 | (eom_struc): Replaced by ... | |
1486 | (eom_struct): ... new type. | |
1487 | (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants. | |
1488 | (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto. | |
1489 | (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto. | |
1490 | (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto. | |
1491 | (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto. | |
1492 | (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto. | |
1493 | (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto. | |
1494 | (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto. | |
1495 | (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto. | |
1496 | (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto. | |
1497 | (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto. | |
1498 | (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto. | |
1499 | (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto. | |
1500 | (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto. | |
1501 | (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto. | |
1502 | (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto. | |
1503 | (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto. | |
1504 | (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH) | |
1505 | (DBG_S_C_DMT_PSECT_SIZE): Ditto. | |
1506 | (enum file_type_enum): New type. | |
1507 | (struct location_struct): Removed. | |
1508 | (struct fileinfo, struct srecinfo, struct lineinfo): New types. | |
1509 | (struct funcinfo, struct module): Ditto. | |
1510 | (struct vms_private_data_struct): Update fields. | |
1511 | (struct vms_section_data_struct): New type. | |
1512 | ||
1513 | * vms.c: Update copyright year, fix comments, | |
1514 | Fix includes for DECC, add prototypes. | |
1515 | (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove | |
1516 | some initializers. | |
1517 | Use flavour to set is_vax, location_stack is removed. | |
1518 | (struct pair): Declare. | |
1519 | (fill_section_ptr): Initialize variables at declaration. | |
1520 | Add guard to set SECTION_SYM flag, handlde und section. | |
1521 | (vms_fixup_sections): Use struct pair for fill_section_ptr argument. | |
1522 | (_bfd_vms_slurp_object_records): New function, replaces previous | |
1523 | vms_object_p. | |
1524 | (vms_slurp_module): New function. | |
1525 | (vms_slurp_image): Ditto. | |
1526 | (vms_object_p): Complete rewrite. | |
1527 | (vms_mkobject): Use is_vax field to slect architecture. | |
1528 | (free_reloc_stream): New function. | |
1529 | (vms_convert_to_var): Ditto. | |
1530 | (vms_convert_to_var_1): Ditto. | |
1531 | (vms_convert_to_var_unix_filename): Ditto. | |
1532 | (vms_close_and_cleanup): Call free_reloc_stream, convert file to | |
1533 | VAR format on VMS. | |
1534 | (vms_new_section_hook): Set alignment to 0, allocate private data. | |
1535 | (vms_get_section_contents): Load content. | |
1536 | (vms_get_symbol_info): Handle undefined section. | |
1537 | (vms_find_nearest_line): Handle. | |
1538 | (alloc_reloc_stream): New function. | |
1539 | (vms_slurp_reloc_table): Ditto. | |
1540 | (vms_get_reloc_upper_bound): Make it real. | |
1541 | (vms_canonicalize_reloc): Do the real work. | |
1542 | (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA, | |
1543 | ALPHA_R_BOH. | |
1544 | (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH. | |
1545 | (vms_set_arch_mach): Check arch. | |
1546 | (vms_set_section_contents): Copy the content after allocation. | |
1547 | (vms_alpha_vec): Update object flags. | |
1548 | ||
1549 | * vms-tir.c: Update copyright year, fix comments, | |
1550 | add prototypes for new functions. | |
1551 | (dst_define_location): New function. | |
1552 | (dst_restore_location): New function. | |
1553 | (dst_retrieve_location): New function. | |
1554 | (dst_check_allocation): New function. | |
1555 | (image_dump): Call dst_check_allocation. | |
1556 | (image_write_b): Ditto. | |
1557 | (image_write_w): Ditto. | |
1558 | (image_write_l): Ditto. | |
1559 | (image_write_q): Ditto. | |
1560 | (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW, | |
1561 | STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC, | |
1562 | CTL_STKDL. | |
1563 | Call error handler instead of abort if name is not known. | |
1564 | (etir_sta): Add quarter_relocs argument and set it. | |
1565 | Fix cast. | |
1566 | (etir_sto): Ditto. | |
1567 | (etir_opr): Ditto, return FALSE in case of error. | |
1568 | (etir_ctl): Add quarter_relocs argument and set it, fix cast. | |
1569 | Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL. | |
1570 | (etir_stc): Add quarter_relocs argument and set it, fix cast. | |
1571 | Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA. | |
1572 | Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL. | |
1573 | Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS. | |
1574 | Return FALSE in case of error. | |
1575 | (tir_sta): Change sign of psect. | |
1576 | (tir_ctl): Ditto. | |
1577 | (tir_cmd): Fix cast. Makes tir_table static const. | |
1578 | (etir_cmd): Add quarter_relocs argument, makes etir_table const, | |
1579 | add argument to explain. | |
1580 | (analyze_etir): Initialize maxptr, add quarter_relocs | |
1581 | declaration, move some declarations into inner scopes. | |
1582 | Handle quarter_relocs and STO_IMM. | |
1583 | (_bfd_vms_slurp_tir): Use constant instead of hard-coded values. | |
1584 | (_bfd_vms_slurp_relocs): New function. | |
1585 | (_bfd_vms_decode_relocs): New function. | |
1586 | (sto_imm): Rewritten. | |
1587 | (start_first_etbt_record): New function. | |
1588 | (start_another_etbt_record): Ditto. | |
1589 | (etir_output_check): Ditto. | |
1590 | (defer_reloc_p): Ditto. | |
1591 | (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to | |
1592 | a for-loop. Correctly deals with contents, deals with .vmsdebug, | |
1593 | rewritte relocations handling. | |
1594 | (_bfd_vms_write_tbt): Removed. | |
1595 | (_bfd_vms_write_dbg): Ditto. | |
1596 | ||
1597 | * vms-misc.c: Update copyright year, Fix comments. | |
1598 | (_bfd_vms_get_header_values): Use 'size' instead of 'length'. | |
1599 | (maybe_adjust_record_pointer_for_object): New function. | |
1600 | (_bfd_vms_get_first_record): New function, replaces ... | |
1601 | (_bfd_vms_get_record): .. removed. | |
1602 | (_bfd_vms_get_object_record): New function. | |
1603 | (_bfd_vms_get_object_record): New function. | |
1604 | (vms_get_remaining_object_record): New function, replaces ... | |
1605 | (_bfd_vms_get_next_record): ... removed. | |
1606 | (add_new_contents): Removed. | |
1607 | (_bfd_save_vms_section): Removed. | |
1608 | (_bfd_get_vms_section): Removed. | |
1609 | (_bfd_vms_output_flush): Write in VAR format. | |
1610 | (new_symbol): Don't make UND section. | |
1611 | ||
1612 | * vms-hdr.c: Update copyright year, update list of record handled. | |
1613 | (_bfd_vms_slurp_hdr): rec_length renamed to rec_size. | |
1614 | (_bfd_vms_write_hdr): Strip vms and unix patches, | |
1615 | add comments, truncate module name at 31 characters, | |
1616 | use constants instead of hard-coded value, | |
1617 | write BFD version instead of a fixed string. | |
1618 | (_bfd_vms_slurp_ihd): New function. | |
1619 | (_bfd_vms_slurp_isd): Ditto. | |
1620 | (_bfd_vms_slurp_ihs): Ditto. | |
1621 | (new_module): Ditto. | |
1622 | (parse_module): Ditto | |
1623 | (build_module_list): Ditto. | |
1624 | (module_find_nearest_line): Ditto. | |
1625 | (_bfd_vms_find_nearest_dst_line): Ditto. | |
1626 | (vms_slurp_debug): Ditto. | |
1627 | (_bfd_vms_slurp_dbg): Ditto. | |
1628 | (_bfd_vms_slurp_tbt): Ditto. | |
1629 | (_bfd_vms_write_dbg): Ditto. | |
1630 | (_bfd_vms_write_tbt): Ditto. | |
1631 | ||
1632 | * vms-gsd.c: Update copyright year, update list of records handled. | |
1633 | (EVAX_LITERALS_NAME): New macro. | |
1634 | (evax_section_flags): Add an entry for EVAX_LITERALS_NAME. | |
1635 | (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd. | |
1636 | (register_universal_symbol): New function and prototype. | |
1637 | (_bfd_vms_slurp_gsd): Fix indentations and casts, | |
1638 | improve debug messages, | |
1639 | use constants instead of hard-coded value, | |
1640 | fix missing endianness conversion, | |
1641 | handle global symbol (SYMG). | |
1642 | (bfd_vms_set_section_flags): New function. | |
1643 | (_bfd_vms_write_gsd): Don't write .vmsdebug section, | |
1644 | handle section literals, | |
1645 | fix indentation, | |
1646 | handle section bfd and vms flags, | |
1647 | don't output LIB$INITIALIZE symbol, | |
1648 | fix handling of weak symbols, | |
1649 | fix evax vs vax procedure descriptor, | |
1650 | handle absolute symbols. | |
1651 | ||
1652 | * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR, | |
1653 | BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations. | |
1654 | ||
1655 | * makefile.vms (DEFS): Fix flags for VMS. | |
1656 | ||
1657 | * bfdio.c (real_fopen): Handle multiple VMS fopen attributes. | |
1658 | ||
1659 | * bfd-in2.h: Regenerated. | |
1660 | * libbfd.h: Regenerated. | |
1661 | ||
47149254 CC |
1662 | 2009-02-20 Cary Coutant <[email protected]> |
1663 | ||
1664 | * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime | |
1665 | in struct stat. | |
1666 | ||
6b1cecf3 DK |
1667 | 2009-18-02 Dave Korn <[email protected]> |
1668 | ||
1669 | PR gas/7059 | |
1670 | * coffcode.h (coff_write_object_contents): Don't let the string | |
1671 | table offset overflow the s_name field when using long section names. | |
1672 | ||
88183869 DK |
1673 | 2009-18-02 Dave Korn <[email protected]> |
1674 | ||
1675 | * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which | |
1676 | control long section name handling with ECOFF_NO_LONG_SECTION_NAMES. | |
1677 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1678 | * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which | |
1679 | control long section name handling with XCOFF_NO_LONG_SECTION_NAMES. | |
1680 | (bfd_pmac_xcoff_backend_data): Likewise. | |
1681 | * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise. | |
1682 | (bfd_xcoff_aix5_backend_data): Likewise. | |
1683 | (xcoff64_write_object_contents): Delete unused long_section_names | |
1684 | local variable. | |
1685 | * coff-sh.c (bfd_coff_small_swap_table): Initialise long section | |
1686 | name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire | |
1687 | struct non-const. | |
1688 | * coffcode.h (documentation): Update to describe long section names. | |
1689 | (COFFLONGSECTIONCATHELPER): New helper macro. | |
1690 | (BLANKOR1TOODD): Likewise. | |
1691 | (COFF_ENABLE_LONG_SECTION_NAMES): Likewise. | |
1692 | (COFF_LONG_SECTION_NAMES_SETTER): Likewise. | |
1693 | (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise. | |
1694 | (bfd_coff_set_long_section_names_allowed): New function. | |
1695 | (bfd_coff_set_long_section_names_disallowed): Likewise. | |
1696 | (struct bfd_coff_backend_data): Add new backend hook function | |
1697 | pointer _bfd_coff_set_long_section_names. | |
1698 | (bfd_coff_set_long_section_names): New backend hook. | |
1699 | (coff_write_object_contents): Only generate long section names if | |
1700 | bfd_coff_long_section_names() indicates they are currently enabled. | |
1701 | (bfd_coff_std_swap_table): Make non-const, and initialise long | |
1702 | section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
1703 | (ticoff0_swap_table): Likewise to both. | |
1704 | (ticoff1_swap_table): Again, likewise to both. | |
1705 | * coffgen.c (make_a_section_from_file): Allow long section names | |
1706 | as inputs even if not currently allowed for outputs. | |
1707 | * ecoff.c (_bfd_ecoff_no_long_sections): New function. | |
1708 | * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank. | |
1709 | * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1710 | * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1711 | * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1712 | * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1713 | * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1714 | * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1715 | * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1716 | * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1717 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1718 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1719 | * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1720 | * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1721 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1722 | * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1723 | * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
1724 | * libcoff-in.h: Update copyright year to cause updated copyright | |
1725 | year in generated libcoff.h, and fix typo. | |
1726 | * libcoff.h: Regenerated. | |
1727 | * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro. | |
1728 | (_bfd_ecoff_no_long_sections): Add prototype. | |
1729 | * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro. | |
1730 | * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already | |
1731 | defined by an including .c file. | |
1732 | * ticoff.h (ticoff0_swap_table): Make non-const, and initialise | |
1733 | long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
1734 | (ticoff1_swap_table): Likewise to both. | |
1735 | ||
90d8a22c CL |
1736 | 2009-02-18 Christophe Lyon <[email protected]> |
1737 | ||
1738 | * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic | |
1739 | stub. Catch default case error. | |
1740 | (arm_map_one_stub): Add missing Thumb mapping symbol. | |
1741 | ||
12123067 NC |
1742 | 2009-02-18 Bjoern Haase <[email protected]> |
1743 | ||
1744 | PR 9841 | |
1745 | * elf32-avr.c: Handle case where no local symbos exist correctly. | |
1746 | ||
fea2b4d6 CL |
1747 | 2009-02-16 Christophe Lyon <[email protected]> |
1748 | ||
1749 | bfd/ | |
1750 | * elf32-arm.c (arm_long_branch_stub, | |
1751 | arm_thumb_v4t_long_branch_stub, | |
1752 | arm_thumb_thumb_long_branch_stub, | |
1753 | arm_thumb_arm_v4t_long_branch_stub, | |
1754 | arm_thumb_arm_v4t_short_branch_stub, | |
1755 | arm_pic_long_branch_stub): | |
1756 | Renamed to elf32_arm_stub_long_branch_any_any, | |
1757 | elf32_arm_stub_long_branch_v4t_arm_thumb, | |
1758 | elf32_arm_stub_long_branch_thumb_only, | |
1759 | elf32_arm_stub_long_branch_v4t_thumb_arm, | |
1760 | elf32_arm_stub_short_branch_v4t_thumb_arm, | |
1761 | elf32_arm_stub_long_branch_any_any_pic. | |
1762 | (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch, | |
1763 | arm_thumb_thumb_stub_long_branch, | |
1764 | arm_thumb_arm_v4t_stub_long_branch, | |
1765 | arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch): | |
1766 | Renamed to arm_stub_long_branch_any_any, | |
1767 | arm_stub_long_branch_v4t_arm_thumb, | |
1768 | arm_stub_long_branch_thumb_only, | |
1769 | arm_stub_long_branch_v4t_thumb_arm, | |
1770 | arm_stub_short_branch_v4t_thumb_arm, | |
1771 | arm_stub_long_branch_any_any_pic. | |
1772 | ||
13e0a874 DA |
1773 | 2009-02-15 John David Anglin <[email protected]> |
1774 | ||
1775 | * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used | |
1776 | in branch offset check. | |
1777 | ||
3a71aa26 AM |
1778 | 2009-02-15 Alan Modra <[email protected]> |
1779 | ||
1780 | * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, | |
1781 | add toc.symndx and toc.add. | |
1782 | (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. | |
1783 | Set up toc.add. | |
1784 | (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all | |
1785 | callers. | |
1786 | (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. | |
1787 | (branch_reloc_hash_match): New function, extracted from.. | |
1788 | (ppc64_elf_tls_optimize): ..here. | |
1789 | (ppc64_elf_relocate_section): Properly set addends when optimizing | |
1790 | tls sequences. Avoid unnecessary reading and writing of insns. | |
1791 | Only redo reloc when symbol changed. Bypass symbol checks when | |
1792 | using tlsld_got. | |
1793 | * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. | |
1794 | (branch_reloc_hash_match): New function, extracted from.. | |
1795 | (ppc_elf_tls_optimize): ..here. | |
1796 | (ppc_elf_relocate_section): Avoid unnecessary reading of insns. | |
1797 | Don't clear addend on zapped __tls_get_addr reloc. | |
1798 | ||
2c2b4ed4 NC |
1799 | 2009-02-12 Nick Clifton <[email protected]> |
1800 | ||
1801 | PR 9827 | |
1802 | * elflink.c (bfd_elf_final_link): When counting the relocations, | |
1803 | if the header size has not been set yet then assume that it will | |
1804 | match the output section's reloc type. | |
1805 | ||
453f5985 NS |
1806 | 2009-02-12 Nathan Sidwell <[email protected]> |
1807 | ||
1808 | * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for | |
1809 | relocatable link. | |
1810 | ||
3209bffa AM |
1811 | 2009-02-09 Alan Modra <[email protected]> |
1812 | ||
1813 | * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. | |
1814 | (find_function): Likewise. | |
1815 | (pasted_function): Don't error if no prior function found. | |
1816 | (discover_functions): Revert 2008-12-10 change. Extend first | |
1817 | function range to start of section. | |
1818 | ||
813c8a3c DA |
1819 | 2009-02-08 John David Anglin <[email protected]> |
1820 | ||
1821 | * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert | |
1822 | functions to C90. | |
1823 | * elf64-hppa.h: Likewise. | |
1824 | ||
2d0f9ad9 JM |
1825 | 2009-02-06 Joseph Myers <[email protected]> |
1826 | ||
1827 | * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special | |
1828 | .sbss handling. | |
1829 | ||
50e00962 AM |
1830 | 2009-02-04 Alan Modra <[email protected]> |
1831 | ||
1832 | * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize. | |
1833 | Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*. | |
1834 | ||
52b6b6b9 JM |
1835 | 2009-02-03 Sandip Matte <[email protected]> |
1836 | ||
1837 | * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. | |
1838 | * archures.c (bfd_mach_mips_xlr): Define. | |
1839 | * bfd-in2.h: Regenerate. | |
1840 | * cpu-mips.c (I_xlr): Define. | |
1841 | (arch_info_struct): Add XLR entry. | |
1842 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. | |
1843 | (mips_set_isa_flags): Handle bfd_mach_mips_xlr | |
1844 | (mips_mach_extensions): Add XLR entry. | |
1845 | ||
654c3c9f EW |
1846 | 2009-02-03 Eric B. Weddington <[email protected]> |
1847 | ||
1848 | * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound. | |
1849 | ||
31dd3154 JM |
1850 | 2009-02-03 Carlos O'Donell <[email protected]> |
1851 | ||
1852 | * configure.in: AC_SUBST pdfdir. | |
d1fa68d3 | 1853 | * Makefile.am: Add install-pdf, install-pdf-am |
31dd3154 JM |
1854 | and install-pdf-recursive targets. Define pdfdir. |
1855 | * doc/Makefile.am: Define pdf__strip_dir. Add | |
1856 | install-pdf and install-pdf-am targets. | |
d1fa68d3 | 1857 | * po/Make-in: Add install-pdf target. |
31dd3154 JM |
1858 | * configure: Regenerate. |
1859 | * Makefile.in: Regenerate | |
1860 | * doc/Makefile.in: Regenerate. | |
1861 | ||
cf869cce NC |
1862 | 2009-02-03 Maxim Kuvyrkov <[email protected]> |
1863 | ||
1864 | * bfd-in2.h: Regenerate. | |
1865 | * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and | |
1866 | fields from n_entries to n_slots where appropriate, update comments. | |
1867 | (HOWTO): Add TLS relocations. | |
1868 | (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*. | |
1869 | (enum elf_m68k_got_offset_size): New enum. | |
1870 | (struct elf_m68k_got_entry.type): Move field to ... | |
1871 | (struct elf_m68k_got_entry_key): ... here. Update all uses. | |
1872 | (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static | |
1873 | functions. | |
1874 | (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static | |
1875 | functions. | |
1876 | (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries | |
1877 | fields into n_entries array. Update comments. | |
1878 | (elf_m68k_init_got): Simplify, update all uses. | |
1879 | (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update. | |
1880 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot | |
1881 | GOT entries; update name, update all uses. | |
1882 | (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto. | |
1883 | (elf_m68k_get_got_entry): Update. | |
1884 | (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries, | |
1885 | simplify. | |
1886 | (elf_m68k_remove_got_entry_type): Simplify. | |
1887 | (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update. | |
1888 | (elf_m68k_can_merge_gots): Update. | |
1889 | (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update. | |
1890 | (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot | |
1891 | GOT entries, simplify. | |
1892 | (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same. | |
1893 | (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff | |
1894 | field, remove obsoleted local_n_entries field. | |
1895 | (elf_m68k_partition_multi_got_2): New static function. | |
1896 | (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it; | |
1897 | update. | |
1898 | (elf_m68k_remove_got_entry_type): Update. | |
1899 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
d1fa68d3 | 1900 | (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary |
cf869cce NC |
1901 | update of sgot->size and srelgot->size. |
1902 | (elf_m68k_gc_sweep_hook): Update. | |
1903 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
1904 | (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle | |
1905 | TLS relocations. | |
1906 | * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations. | |
1907 | * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*. | |
1908 | ||
c1a0a41f DD |
1909 | 2009-02-02 DJ Delorie <[email protected]> |
1910 | ||
1911 | * elf32-mep.c (config_names): Regenerate configuration. | |
1912 | ||
72a80a16 AM |
1913 | 2009-02-02 Alan Modra <[email protected]> |
1914 | ||
1915 | * elf-bfd.h (bfd_elf_get_str_section): Don't declare. | |
1916 | (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise. | |
1917 | * elf.c (bfd_elf_get_str_section): Make static. | |
1918 | (bfd_elf_find_section): Delete. | |
1919 | * libbfd.h: Regenerate. | |
1920 | ||
273f4430 JK |
1921 | 2009-02-01 Jan Kratochvil <[email protected]> |
1922 | ||
1923 | * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove. | |
1924 | (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs. | |
1925 | ||
010e5ae2 AM |
1926 | 2009-01-31 Alan Modra <[email protected]> |
1927 | ||
1928 | * elflink.c (on_needed_list): New function. | |
1929 | (elf_link_add_object_symbols): Link in --as-needed libs if they | |
1930 | satisfy undefined symbols in other libs. | |
1931 | ||
33a7ffc2 JM |
1932 | 2009-01-30 Julian Brown <[email protected]> |
1933 | ||
1934 | * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with | |
1935 | EXEC_P or DYNAMIC flags, and skip sections which are being linked | |
1936 | with --just-symbols (-R). | |
1937 | ||
13d72a14 AN |
1938 | 2009-01-29 Adam Nemet <[email protected]> |
1939 | ||
1940 | * dwarf2.c (read_rangelist): Use read_address to read low_pc and | |
1941 | high_pc in order to properly sign-extend VMAs. | |
1942 | ||
d334575b | 1943 | 2009-01-29 Daniel Jacobowitz <[email protected]> |
d1fa68d3 AS |
1944 | Mark Shinwell <[email protected]> |
1945 | Catherine Moore <[email protected]> | |
d334575b JM |
1946 | |
1947 | * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments. | |
1948 | ||
528aeb62 CM |
1949 | 2009-01-28 Catherine Moore <[email protected]> |
1950 | ||
1951 | * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and | |
1952 | SEC_LOAD for dynamic relocation sections. | |
1953 | ||
f6f05983 HPN |
1954 | 2009-01-27 Hans-Peter Nilsson <[email protected]> |
1955 | ||
1956 | * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table | |
1957 | (info)->tls_size, not elf_hash_table (info)->tls_sec->size for | |
1958 | the size of local TLS data. | |
1959 | ||
27cc28f9 AS |
1960 | 2009-01-27 Andreas Schwab <[email protected]> |
1961 | ||
1962 | * mach-o.c (bfd_mach_o_archive_p): Restrict the number of | |
1963 | architectures in the archive. | |
1964 | ||
b3bf42d8 HPN |
1965 | 2009-01-27 Hans-Peter Nilsson <[email protected]> |
1966 | ||
f551b6f0 HPN |
1967 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL> |
1968 | <R_CRIS_32_DTPREL>: Correct relocation value. | |
1969 | ||
b3bf42d8 HPN |
1970 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8> |
1971 | <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined | |
1972 | symbols with non-default visibility. | |
1973 | ||
9bc4e62b NS |
1974 | 2009-01-26 Nathan Sidwell <[email protected]> |
1975 | ||
1976 | * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs | |
1977 | describing the trampolines. | |
1978 | (ppc_elf_relocate_section): Update relocs to describe the | |
1979 | trampolines. | |
1980 | ||
aeaf6540 DA |
1981 | 2009-01-25 John David Anglin <[email protected]> |
1982 | ||
1983 | * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that | |
1984 | branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F | |
1985 | and R_PARISC_PCREL12F relocations. | |
1986 | ||
1e8fa21e AM |
1987 | 2009-01-24 Alan Modra <[email protected]> |
1988 | ||
1989 | PR 6022 | |
1990 | * elflink.c (find_version_for_sym): New function split out from, | |
1991 | but without export_dynamic test, .. | |
1992 | (_bfd_elf_link_assign_sym_version): ..here. | |
1993 | (_bfd_elf_export_symbol): Use it. | |
1994 | ||
28caa186 AM |
1995 | 2009-01-23 Alan Modra <[email protected]> |
1996 | ||
1997 | * elf-bfd.h (struct elf_assign_sym_version_info): Delete. | |
1998 | (struct elf_info_failed, struct elf_find_verdep_info): Move to.. | |
1999 | * elflink.c: ..here, somewhat modified. | |
2000 | * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol, | |
2001 | _bfd_elf_link_find_version_dependencies, | |
2002 | _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section, | |
2003 | _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, | |
2004 | _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't | |
2005 | declare.. | |
2006 | * elflink.c: ..and make static here. | |
2007 | (_bfd_elf_link_find_version_dependencies): Adjust for removal | |
2008 | of output_bfd from struct elf_find_verdep_info. | |
2009 | (_bfd_elf_link_assign_sym_version): Similarly adjust to use | |
2010 | struct elf_info_failed. | |
2011 | (bfd_elf_size_dynamic_sections): Adjust. | |
2012 | ||
be04437d AM |
2013 | 2009-01-22 Alan Modra <[email protected]> |
2014 | ||
2015 | PR 6832 | |
2016 | * dwarf2.c (find_line): Don't update stash->sec_info_ptr until | |
2017 | after comp_unit_find_line call. | |
2018 | ||
58f9615c NC |
2019 | 2009-01-21 Nick Clifton <[email protected]> |
2020 | ||
2021 | PR 9769 | |
2022 | * vmsutil.c (vms_file_stats_name): Remove use of unsupported | |
2023 | tm_gmtoff field in struct tm. | |
2024 | ||
fb266b8b AM |
2025 | 2009-01-21 Alan Modra <[email protected]> |
2026 | ||
2027 | * elf32-spu.h (struct spu_elf_params): Add non_ia_text. | |
2028 | * elf32-spu.c (mark_overlay_section): Only include .text.ia.* | |
2029 | sections in soft-icache lines unless non_ia_text. Don't add | |
2030 | rodata if doing so would exceed line size. | |
2031 | ||
451ffe63 HPN |
2032 | 2009-01-19 Hans-Peter Nilsson <[email protected]> |
2033 | ||
2034 | * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol | |
2035 | types than bfd_link_hash_indirect, before early return, call | |
2036 | _bfd_elf_link_hash_copy_indirect. | |
2037 | ||
5aa6ff7c AS |
2038 | 2009-01-19 Andrew Stubbs <[email protected]> |
2039 | ||
2040 | * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. | |
2041 | * elf-bfd.h (elf_backend_data): Add obj_attrs_order. | |
2042 | * elf32-arm.c (elf32_arm_obj_attrs_order): New function. | |
2043 | (elf_backend_obj_attrs_order): New define. | |
2044 | * elfxx-target.h (elf_backend_obj_attrs_order): New define. | |
2045 | (elfNN_bed): Add elf_backend_obj_attrs_order. | |
2046 | ||
3483fe2e AS |
2047 | 2009-01-19 Andrew Stubbs <[email protected]> |
2048 | ||
2049 | * elf-attrs.c (is_default_attr): Substitute magic numbers with macros. | |
2050 | (obj_attr_size): Likewise. | |
2051 | (write_obj_attribute): Likewise. | |
2052 | (_bfd_elf_copy_obj_attributes): Likewise. | |
2053 | (_bfd_elf_parse_attributes): Likewise. | |
2054 | * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define. | |
2055 | (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines. | |
2056 | (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines. | |
2057 | (ATTR_TYPE_HAS_NO_DEFAULT): New define. | |
2058 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers | |
2059 | with macros. | |
2060 | ||
2d0bb761 AS |
2061 | 2009-01-19 Andrew Stubbs <[email protected]> |
2062 | ||
2063 | * elf-attrs.c (is_default_attr): Support defaultless attributes. | |
2064 | (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. | |
2065 | (bfd_elf_add_obj_attr_string): Likewise. | |
2066 | (bfd_elf_add_obj_attr_int_string): Likewise. | |
2067 | (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. | |
2068 | * elf-bfd.h (struct obj_attribute): Document new flag bit. | |
2069 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that | |
2070 | Tag_nodefaults has no default value. | |
2071 | (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults | |
2072 | comment to reflect the new state. | |
2073 | ||
a77e83b7 AM |
2074 | 2009-01-19 Alan Modra <[email protected]> |
2075 | ||
2076 | PR 9695 | |
2077 | * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC. | |
2078 | (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC. | |
2079 | (adjust_z_magix): Delete dead code handling QMAGIC. | |
2080 | ||
f6d29e26 KT |
2081 | 2009-01-16 Kai Tietz <[email protected]> |
2082 | ||
2083 | * coffcode.h (styp_to_sec_flags): Correct interpretation of | |
2084 | IMAGE_SCN_MEM_DISCARDABLE. | |
2085 | ||
29670fb9 AM |
2086 | 2009-01-16 Alan Modra <[email protected]> |
2087 | ||
2088 | * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute | |
2089 | SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. | |
2090 | * configure.in (commonbfdlib): Delete. | |
2091 | (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ | |
2092 | (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such | |
2093 | is available, not just for linux. | |
2094 | * po/SRC-POTFILES.in: Regenerate. | |
2095 | * Makefile.in: Regenerate. | |
2096 | * configure: Regenerate. | |
2097 | ||
91e22acd AS |
2098 | 2009-01-15 Andrew Stubbs <[email protected]> |
2099 | Julian Brown <[email protected]> | |
2100 | ||
2101 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known | |
2102 | ARM attributes in ABI 2.07. | |
2103 | * elf32-arm.c (get_secondary_compatible_arch): New function. | |
2104 | (set_secondary_compatible_arch): New function. | |
2105 | (tag_cpu_arch_combine): New function. | |
2106 | (elf32_arm_copy_one_eabi_other_attribute): Delete function. | |
2107 | (elf32_arm_copy_eabi_other_attribute_list): Delete function. | |
2108 | (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to | |
2109 | make it fit with order_01243. | |
2110 | Add support for Tag_also_compatible_with, | |
2111 | Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, | |
2112 | Tag_MPextension_use, Tag_nodefaults and Tag_conformance. | |
2113 | Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, | |
2114 | Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, | |
2115 | Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, | |
2116 | Tag_VFP_arch and Tag_ABI_FP_16bit_format. | |
2117 | Rework the way unknown attributes are handled. | |
2118 | Defer errors until all attributes have been processed. | |
2119 | ||
7b86a9fa AS |
2120 | 2009-01-15 Andrew Stubbs <[email protected]> |
2121 | ||
2122 | * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to | |
2123 | bfd_elf_add_obj_attr_int_string. | |
2124 | Read Tag_compatibility from its new location in the attribute array, | |
2125 | rather than the attribute list. | |
2126 | (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat -> | |
2127 | bfd_elf_add_obj_attr_int_string. | |
2128 | (_bfd_elf_parse_attributes): Likewise. | |
2129 | (_bfd_elf_merge_object_attributes): There's now only one | |
2130 | Tag_compatibility, and it's in the array, not the list. | |
2131 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include | |
2132 | Tag_compatibility. | |
2133 | (bfd_elf_add_obj_attr_compat): Rename to | |
2134 | bfd_elf_add_obj_attr_int_string. | |
2135 | (bfd_elf_add_proc_attr_compat): Rename to | |
2136 | bfd_elf_add_proc_attr_int_string. | |
2137 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle | |
2138 | Tag_compatibility. | |
2139 | ||
01e1a5bc NC |
2140 | 2009-01-15 Douglas B Rupp <[email protected]> |
2141 | ||
2142 | * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo | |
2143 | (BFD32_BACKENDS_CFILES): Add new file vmsutil.c | |
2144 | (vmsutil.lo): Add dependency rule. | |
2145 | * Makefile.in: Regenerate. | |
2146 | * config.bfd (ia64*-*-*vms*): Add case. | |
2147 | * configure.in (bfd_elf64_ia64_vms_vec): Add case. | |
2148 | * configure: Regenerate. | |
2149 | * vmsutil.c: New file. | |
2150 | * vmsutil.h: New file. | |
2151 | * elf-bfd.h (struct bfd_elf_special_section): Change type of | |
2152 | attr to bfd_vma. | |
2153 | * elfxx-ia64.c (elfNN_vms_post_process_headers, | |
2154 | elfNN_vms_section_processing, elfNN_vms_final_write_processing, | |
2155 | elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, | |
2156 | elfNN_vms_object_p): New functions | |
2157 | * targets.c (bfd_elf64_ia64_vms_vec): New target. | |
2158 | ||
a33dafc3 L |
2159 | 2009-01-14 H.J. Lu <[email protected]> |
2160 | ||
2161 | PR ld/9727 | |
2162 | * elflink.c (elf_gc_sweep): Exclude the group section if the | |
2163 | first member of the section group is excluded. | |
2164 | ||
13c0e967 AM |
2165 | 2009-01-14 Alan Modra <[email protected]> |
2166 | ||
2167 | PR 9735 | |
2168 | * syms.c (_bfd_stab_section_find_nearest_line): Don't free | |
2169 | saved filename, use bfd_alloc rather than bfd_malloc for it. | |
2170 | ||
460e679b AM |
2171 | 2009-01-13 Alan Modra <[email protected]> |
2172 | ||
2173 | * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. | |
2174 | ||
25076afa AM |
2175 | 2009-01-13 Alan Modra <[email protected]> |
2176 | ||
2177 | * elf32-spu.c (remove_cycles): Always set call->max_depth. | |
2178 | ||
37107878 AM |
2179 | 2009-01-12 Alan Modra <[email protected]> |
2180 | ||
2181 | * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. | |
2182 | ||
cd4a7468 AM |
2183 | 2009-01-12 Alan Modra <[email protected]> |
2184 | ||
2185 | * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, | |
2186 | num_lines_log2. | |
2187 | (struct got_entry): Add br_addr. | |
2188 | (struct call_info): Add priority. | |
2189 | (struct function_info): Add lr_store and sp_adjust. | |
2190 | (spu_elf_setup): Init line_size_log2 and num_lines_log2. | |
2191 | (spu_elf_find_overlays): For soft-icache, mark any section within cache | |
2192 | area as an overlay, and check that no other overlays exist. Look up | |
2193 | icache overlay manager entry sym. | |
2194 | (BRA_STUBS, BRA, BRASL): Define. | |
2195 | (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub. | |
2196 | (needs_ovl_stub): Adjust for soft-icache. Return priority encoded | |
2197 | in branch insn. | |
2198 | (count_stub, build_stub): Support soft-icache. | |
2199 | (build_spuear_stubs, process_stubs): Adjust build_stub call. | |
2200 | (spu_elf_size_stubs): Size soft-icache stubs. | |
2201 | (overlay_index): New function. | |
2202 | (spu_elf_build_stubs): Make static. Support soft-icache. | |
2203 | (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache. | |
2204 | (find_function_stack_adjust): Save lr store and stack adjust insn | |
2205 | offsets. | |
2206 | (maybe_insert_function): Adjust find_function_stack_adjust call. | |
2207 | (mark_functions_via_relocs): Retrieve priority. | |
2208 | (remove_cycles): Only warn about pruned arcs when stack_analysis. | |
2209 | (sort_calls): Sort by priority first. | |
2210 | (mark_overlay_section): Ignore .ovl.init. | |
2211 | (sum_stack): Only print when stack_analysis. | |
2212 | (print_one_overlay_section): New function, extracted from.. | |
2213 | (spu_elf_auto_overlay): ..here. Support soft-icache overlays. | |
2214 | (spu_elf_stack_analysis): Only print when htab->stack_analysis. | |
2215 | (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive | |
2216 | analysis. Call spu_elf_build_stubs. | |
2217 | (spu_elf_relocate_section): For soft-icache encode overlay index | |
2218 | into addresses. | |
2219 | (spu_elf_output_symbol_hook): Support soft-icache. | |
2220 | (spu_elf_modify_program_headers: Likewise. | |
37107878 | 2221 | |
cd4a7468 AM |
2222 | * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename |
2223 | num_regions to num_lines. Add line_size and max_branch. | |
2224 | (enum _ovly_flavour): Add ovly_soft_icache. | |
2225 | (spu_elf_build_stubs): Delete. | |
2226 | ||
80c29487 JK |
2227 | 2009-01-11 Jan Kratochvil <[email protected]> |
2228 | ||
2229 | * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4 | |
2230 | relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'. | |
2231 | ||
1bc86aea HPN |
2232 | 2009-01-07 Hans-Peter Nilsson <[email protected]> |
2233 | ||
2234 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> | |
2235 | <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in | |
2236 | the program, the known offset starts at the negative size of the | |
2237 | TLS section. | |
2238 | <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: | |
2239 | Similar. | |
2240 | ||
3baa454d | 2241 | 2009-01-05 Joel Sherrill <[email protected]> |
75606e85 | 2242 | |
3baa454d | 2243 | * config.bfd: Add lm32-*-rtems*. |
75606e85 | 2244 | |
9dbe8890 L |
2245 | 2009-01-03 H.J. Lu <[email protected]> |
2246 | ||
2247 | * coff-ppc.c: Add 2009 to Copyright. | |
2248 | * elf32-cris.c: Likewise. | |
2249 | * elflink.c: Likewise. | |
2250 | ||
0bdf8d40 HPN |
2251 | 2009-01-03 Hans-Peter Nilsson <[email protected]> |
2252 | ||
2253 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename | |
2254 | gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry. | |
2255 | ||
54ac0771 L |
2256 | 2009-01-02 H.J. Lu <[email protected]> |
2257 | ||
2258 | PR ld/9679 | |
2259 | * elflink.c (elf_merge_st_other): New. | |
2260 | (_bfd_elf_merge_symbol): Use it on skipped weak definitions and | |
2261 | hide them if needed. | |
2262 | (elf_link_add_object_symbols): Updated. | |
2263 | ||
d8880531 L |
2264 | 2009-01-02 H.J. Lu <[email protected]> |
2265 | ||
2266 | PR ld/9676 | |
2267 | * elflink.c (elf_link_add_object_symbols): Update def_dynamic, | |
2268 | ref_dynamic and dynamic_def fields when setting def_regular | |
2269 | to 1. | |
2270 | ||
b70b5c14 NC |
2271 | 2009-01-02 Curtis Mackie <[email protected]> |
2272 | ||
2273 | PR 9682 | |
2274 | * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string | |
2275 | literal. | |
2276 | ||
d8880531 | 2277 | For older changes see ChangeLog-2008 |
56882138 AM |
2278 | \f |
2279 | Local Variables: | |
2280 | mode: change-log | |
2281 | left-margin: 8 | |
2282 | fill-column: 74 | |
2283 | version-control: never | |
2284 | End: |