1 2009-01-21 Alan Modra <amodra@bigpond.net.au>
3 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
4 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
5 sections in soft-icache lines unless non_ia_text. Don't add
6 rodata if doing so would exceed line size.
8 2009-01-19 Hans-Peter Nilsson <hp@axis.com>
10 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
11 types than bfd_link_hash_indirect, before early return, call
12 _bfd_elf_link_hash_copy_indirect.
14 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
16 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
17 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
18 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
19 (elf_backend_obj_attrs_order): New define.
20 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
21 (elfNN_bed): Add elf_backend_obj_attrs_order.
23 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
25 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
26 (obj_attr_size): Likewise.
27 (write_obj_attribute): Likewise.
28 (_bfd_elf_copy_obj_attributes): Likewise.
29 (_bfd_elf_parse_attributes): Likewise.
30 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
31 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
32 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
33 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
34 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
37 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
39 * elf-attrs.c (is_default_attr): Support defaultless attributes.
40 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
41 (bfd_elf_add_obj_attr_string): Likewise.
42 (bfd_elf_add_obj_attr_int_string): Likewise.
43 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
44 * elf-bfd.h (struct obj_attribute): Document new flag bit.
45 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
46 Tag_nodefaults has no default value.
47 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
48 comment to reflect the new state.
50 2009-01-19 Alan Modra <amodra@bigpond.net.au>
53 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
54 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
55 (adjust_z_magix): Delete dead code handling QMAGIC.
57 2009-01-16 Kai Tietz <kai.tietz@onevision.com>
59 * coffcode.h (styp_to_sec_flags): Correct interpretation of
60 IMAGE_SCN_MEM_DISCARDABLE.
62 2009-01-16 Alan Modra <amodra@bigpond.net.au>
64 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
65 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
66 * configure.in (commonbfdlib): Delete.
67 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
68 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
69 is available, not just for linux.
70 * po/SRC-POTFILES.in: Regenerate.
71 * Makefile.in: Regenerate.
72 * configure: Regenerate.
74 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
75 Julian Brown <julian@codesourcery.com>
77 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
78 ARM attributes in ABI 2.07.
79 * elf32-arm.c (get_secondary_compatible_arch): New function.
80 (set_secondary_compatible_arch): New function.
81 (tag_cpu_arch_combine): New function.
82 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
83 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
84 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
85 make it fit with order_01243.
86 Add support for Tag_also_compatible_with,
87 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
88 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
89 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
90 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
91 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
92 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
93 Rework the way unknown attributes are handled.
94 Defer errors until all attributes have been processed.
96 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
98 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
99 bfd_elf_add_obj_attr_int_string.
100 Read Tag_compatibility from its new location in the attribute array,
101 rather than the attribute list.
102 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
103 bfd_elf_add_obj_attr_int_string.
104 (_bfd_elf_parse_attributes): Likewise.
105 (_bfd_elf_merge_object_attributes): There's now only one
106 Tag_compatibility, and it's in the array, not the list.
107 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
109 (bfd_elf_add_obj_attr_compat): Rename to
110 bfd_elf_add_obj_attr_int_string.
111 (bfd_elf_add_proc_attr_compat): Rename to
112 bfd_elf_add_proc_attr_int_string.
113 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
116 2009-01-15 Douglas B Rupp <rupp@gnat.com>
118 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
119 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
120 (vmsutil.lo): Add dependency rule.
121 * Makefile.in: Regenerate.
122 * config.bfd (ia64*-*-*vms*): Add case.
123 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
124 * configure: Regenerate.
125 * vmsutil.c: New file.
126 * vmsutil.h: New file.
127 * elf-bfd.h (struct bfd_elf_special_section): Change type of
129 * elfxx-ia64.c (elfNN_vms_post_process_headers,
130 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
131 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
132 elfNN_vms_object_p): New functions
133 * targets.c (bfd_elf64_ia64_vms_vec): New target.
135 2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
138 * elflink.c (elf_gc_sweep): Exclude the group section if the
139 first member of the section group is excluded.
141 2009-01-14 Alan Modra <amodra@bigpond.net.au>
144 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
145 saved filename, use bfd_alloc rather than bfd_malloc for it.
147 2009-01-13 Alan Modra <amodra@bigpond.net.au>
149 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
151 2009-01-13 Alan Modra <amodra@bigpond.net.au>
153 * elf32-spu.c (remove_cycles): Always set call->max_depth.
155 2009-01-12 Alan Modra <amodra@bigpond.net.au>
157 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
159 2009-01-12 Alan Modra <amodra@bigpond.net.au>
161 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
163 (struct got_entry): Add br_addr.
164 (struct call_info): Add priority.
165 (struct function_info): Add lr_store and sp_adjust.
166 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
167 (spu_elf_find_overlays): For soft-icache, mark any section within cache
168 area as an overlay, and check that no other overlays exist. Look up
169 icache overlay manager entry sym.
170 (BRA_STUBS, BRA, BRASL): Define.
171 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
172 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
174 (count_stub, build_stub): Support soft-icache.
175 (build_spuear_stubs, process_stubs): Adjust build_stub call.
176 (spu_elf_size_stubs): Size soft-icache stubs.
177 (overlay_index): New function.
178 (spu_elf_build_stubs): Make static. Support soft-icache.
179 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
180 (find_function_stack_adjust): Save lr store and stack adjust insn
182 (maybe_insert_function): Adjust find_function_stack_adjust call.
183 (mark_functions_via_relocs): Retrieve priority.
184 (remove_cycles): Only warn about pruned arcs when stack_analysis.
185 (sort_calls): Sort by priority first.
186 (mark_overlay_section): Ignore .ovl.init.
187 (sum_stack): Only print when stack_analysis.
188 (print_one_overlay_section): New function, extracted from..
189 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
190 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
191 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
192 analysis. Call spu_elf_build_stubs.
193 (spu_elf_relocate_section): For soft-icache encode overlay index
195 (spu_elf_output_symbol_hook): Support soft-icache.
196 (spu_elf_modify_program_headers: Likewise.
198 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
199 num_regions to num_lines. Add line_size and max_branch.
200 (enum _ovly_flavour): Add ovly_soft_icache.
201 (spu_elf_build_stubs): Delete.
203 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
205 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
206 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
208 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
210 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
211 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
212 the program, the known offset starts at the negative size of the
214 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
217 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
219 * config.bfd: Add lm32-*-rtems*.
221 2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
223 * coff-ppc.c: Add 2009 to Copyright.
224 * elf32-cris.c: Likewise.
225 * elflink.c: Likewise.
227 2009-01-03 Hans-Peter Nilsson <hp@axis.com>
229 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
230 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
232 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
235 * elflink.c (elf_merge_st_other): New.
236 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
238 (elf_link_add_object_symbols): Updated.
240 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
243 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
244 ref_dynamic and dynamic_def fields when setting def_regular
247 2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
250 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
253 For older changes see ChangeLog-2008
259 version-control: never