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