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