2010-01-27 Tristan Gingold <gingold@adacore.com>
[external/binutils.git] / bfd / ChangeLog
1 2010-01-27  Tristan Gingold  <gingold@adacore.com>
2
3         * vms.h: Remove trailing spaces.
4         (struct hdr_struct): Remove unused hdr_c_cpr field.
5         (enum file_format_enum): Add comments.
6         * vms.c (vms_bfd_print_private_bfd_data): New function that
7         replaces the macro.
8         Remove trailing spaces.
9         * vms-misc.c: Improve comments.
10         (_bfd_vms_get_object_record): Also handle files without pads.
11         * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
12         * vms-gsd.c (struct flagdescstruct): Make name field const.
13         (gsyflagdesc): Fix typo.
14
15 2010-01-27  Alan Modra  <amodra@gmail.com>
16
17         PR ld/11217
18         * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
19         (ppc64_elf_setup_section_lists): Init them.
20         (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
21         and .toc on the same input file.
22         (ppc64_elf_relocate_section): Correct GOT entry offset.
23
24 2010-01-26  Tristan Gingold  <gingold@adacore.com>
25
26         * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
27         (bfd_target): Add _bfd_write_ar_hdr_fn field.
28         * archive.c (is_bsd44_extended_name): New macro.
29         (_bfd_generic_read_ar_hdr_mag): Use it.  Add extra_size.
30         (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
31         name.
32         (_bfd_archive_bsd44_construct_extended_name_table): New function.
33         (_bfd_generic_write_ar_hdr): Ditto.
34         (_bfd_bsd44_write_ar_hdr): Ditto.
35         (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
36         (bsd_write_armap): Adjust firstreal computation.
37         * libbfd-in.h (struct areltdata): Add extra_size field.
38         (_bfd_generic_write_ar_hdr): Add prototype.
39         (_bfd_bsd44_write_ar_hdr): Ditto.
40         (_bfd_write_ar_hdr): Define.
41         (_bfd_noarchive_write_ar_hdr): Ditto.
42         (_bfd_archive_bsd_write_ar_hdr): Ditto.
43         (_bfd_archive_coff_write_ar_hdr): Ditto.
44         (_bfd_archive_bsd44_slurp_armap): Ditto.
45         (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
46         (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
47         (_bfd_archive_bsd44_truncate_arname): Ditto.
48         (_bfd_archive_bsd44_write_armap): Ditto.
49         (_bfd_archive_bsd44_read_ar_hdr): Ditto.
50         (_bfd_archive_bsd44_write_ar_hdr): Ditto.
51         (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
52         (_bfd_archive_bsd44_get_elt_at_index): Ditto.
53         (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
54         (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
55         * libbfd.h: Regenerate.
56         * oasys.c (oasys_write_ar_hdr): Define.
57         * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
58         * ieee.c (ieee_write_ar_hdr): Define.
59         * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
60         * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
61         (bfd_pmac_xcoff_backend_data): Ditto.
62         * coff64-rs6000.c (rs6000coff64_vec): Ditto.
63         (bfd_xcoff_aix5_backend_data): Ditto.
64         * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
65         * aout-target.h (MY_write_ar_hdr): Define it if not defined.
66         * aout-tic30.c (MY_write_ar_hdr): Ditto.
67         * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
68         (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
69         (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
70         (bfd_mach_o_construct_extended_name_table)
71         (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
72         (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
73         (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
74         * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
75         (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
76         (bfd_mach_o_construct_extended_name_table)
77         (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
78         (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
79         (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
80         * bfd-in2.h: Regenerate.
81
82 2010-01-26  Alan Modra  <amodra@gmail.com>
83             H.J. Lu  <hongjiu.lu@intel.com>
84
85         PR ld/11218
86         * elflink.c (elf_link_output_extsym): Do not ignore undefined
87         symbols with ref_regular set when gc_sections is active.
88
89 2010-01-25  Alan Modra  <amodra@gmail.com>
90
91         PR ld/11217
92         * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
93         with relocations against undefined weak symbols.
94         (ppc64_elf_relocate_section): Don't optimize calls to undefined
95         weak functions if the symbol is dynamic.
96         (ppc64_elf_relocate_section): Edit tprel tls sequences.
97         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
98         (_bfd_elf_ppc_at_tprel_transform): New function.
99         * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
100         * bfd-in2.h: Regenerate.
101
102 2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
103
104         * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
105         (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
106         * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
107         bitsize to 1.
108         (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
109
110 2010-01-21  Nick Clifton  <nickc@redhat.com>
111
112         * elflink.c (elf_link_add_object_symbols): Look up name of
113         undefined symbol both before and after versioning has been
114         applied.  Do not bother with symbols that are weakly undefined.
115
116 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
117
118         * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
119         (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
120
121 2010-01-19  Cary Coutant  <ccoutant@google.com>
122
123         * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
124
125 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
126             Alan Modra <amodra@gmail.com>
127
128         * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
129         (elf_object_p): Read e_phnum extension.
130         (elf_write_shdrs_and_ehdr): Write e_phnum extension.
131         * elfcore.h (elf_core_file_p): Read e_phnum extension.  Sanity check
132         that we can read last program header.
133
134 2010-01-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
135
136         * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
137         R_ARM_THM_CALL entry.
138         (elf32_arm_final_link_relocate): Correct calculation of
139         reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
140         or R_ARM_THM_JUMP24 relocation.
141
142 2010-01-18  Alan Modra  <amodra@gmail.com>
143
144         PR 11168
145         * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
146         block past vars in COFF_IMAGE_WITH_PE block.  Report error on more
147         than 32k sections.
148
149 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
150
151         Fix compilation warning on gcc-3.4.
152         * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
153         parameter index to sec_index according to the function definition.
154
155 2010-01-13  Chao-ying Fu  <fu@mips.com>
156
157         * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
158         It is true for all CPUs.
159         (jal_reloc_p): New function.
160         (mips_elf_calculate_relocation): Rename require_jalxp to
161         cross_mode_jump_p.
162         Update comment for CROSS_MODE_JUMP_P.
163         Set up cross_mode_jump_p based on the mode change.
164         (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
165         Update comment for CROSS_MODE_JUMP_P.
166         Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
167         Use !cross_mode_jump_p to guard conversion.
168         Convert "jr t9" to "b", if possible.
169         (_bfd_mips_elf_relocate_section): Rename require_jalx to
170         cross_mode_jump_p.
171         Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
172         Pass cross_mode_jump_p to call mips_elf_perform_relocation.
173
174 2010-01-13  Nick Clifton  <nickc@redhat.com>
175
176         * cpu-m32c.c (m32c_scan): New function.  Ensures that a scan for
177         "m32c" returns the m32c arch_info_struct and not the m16c
178         arch_info_struct.
179         (arch_info_struct): Use the new scan function.
180         (bfd_m32c_arch): Likewise.
181
182 2010-01-13  Tristan Gingold  <gingold@adacore.com>
183
184         * config.bfd: Remove duplicated target vector for i386-*-darwin.
185         Appends new arch instead of overriding.
186         Use mach_o_x86_64_vec for x86_64-*-darwin.
187         * configure.in: Add mach_o_x86_64_vec.
188         * configure: Regenerate.
189         * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
190         * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
191         (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
192         * Makefile.in: Regenerate.
193         * mach-o-x86-64.c: New file.
194
195 2010-01-13  Tristan Gingold  <gingold@adacore.com>
196
197         * reloc.c: Add MACH_O_X86_64 relocations.
198         * bfd-in2.h: Regenerate.
199         * libbfd.h: Regenerate.
200
201 2010-01-13  Tristan Gingold  <gingold@adacore.com>
202
203         * archive.c (normalize): Use lbasename.
204         (bfd_bsd_truncate_arname): Ditto.
205         (bfd_gnu_truncate_arname): Ditto.
206
207 2010-01-12  Tristan Gingold  <gingold@adacore.com>
208
209         * makefile.vms (CFLAGS): Turns warnings into informational messages.
210
211 2010-01-11  Tristan Gingold  <gingold@adacore.com>
212
213         * mach-o.h: Add x86-64 relocation types.
214
215 2010-01-11  Tristan Gingold  <gingold@adacore.com>
216
217         * mach-o.h (bfd_mach_o_backend_data): Add arch field.
218         (bfd_mach_o_set_arch_mach): New prototype.
219         * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
220         (bfd_mach_o_set_arch_mach): New function.
221         (bfd_mach_o_gen_mkobject): New function.
222         Set TARGET_ARCHITECTURE for the generic back-ends.
223         * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
224         Check that TARGET_ARCHITECTURE is defined.
225         Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
226         * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
227
228 2010-01-11  Tristan Gingold  <gingold@adacore.com>
229
230         * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
231
232 2010-01-11  Nick Clifton  <nickc@redhat.com>
233
234         * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
235         handling of R_V850_HI16_S relocation.
236
237 2010-01-11  Alan Modra  <amodra@gmail.com>
238
239         PR 11103
240         * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
241
242 2010-01-11  Alan Modra  <amodra@gmail.com>
243
244         PR 6832
245         * dwarf2.c (struct comp_unit): Add sec_info_ptr.
246         (find_abstract_instance_name): Use it.
247         (parse_comp_unit): Set it.
248
249 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
250
251         * Makefile.in: Regenerate.
252         * configure: Regenerate.
253
254 2010-01-08  Tristan Gingold  <gingold@adacore.com>
255
256         * archive.c: Remove bfd_special_undocumented_glue.
257
258 2010-01-08  Alan Modra  <amodra@gmail.com>
259
260         PR ld/11133
261         * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
262         * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
263         * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
264
265 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
266
267         PR ld/11138
268         * elflink.c (elf_link_check_versioned_symbol): Don't abort if
269         a symbol referenced by DSO is is defined in a non-shared object
270         and forced local.
271
272 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
273
274         PR ld/11133
275         * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
276         undefined __start_XXX/__stop_XXX in all input files and set
277         SEC_KEEP.
278
279 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
280
281         PR ld/11143
282         * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
283
284 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
285
286         * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
287         before including procfs.h.
288         (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
289         * configure.in: Added autoconf probe for the pr_fpreg member.
290         * configure: Regenerated.
291         * config.in: Regenerated.
292         * elf.c: Define _STRUCTURE_PROC before including procfs.h.
293
294 2010-01-04  Joel Brobecker  <brobecker@adacore.com>
295
296         Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
297         * dwarf2.c (concat_filename): Rename dirname with dir_name
298         to void shadowing the dirname function.
299         Rename subdirname with subdir_name to stay consistent with
300         the new dir_name variable name.
301
302 2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
303
304         * archures.c: Add bfd_mach_ppc_e500mc64.
305         * bfd-in2.h: Regenerate.
306         * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
307         bfd_mach_ppc_e500mc64.
308
309 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
310
311         Fix -Wshadow warnings (seen on ppc-aix)
312         * xcofflink.c: Replace finfo by flinfo throughout.
313
314 For older changes see ChangeLog-2009
315 \f
316 Local Variables:
317 mode: change-log
318 left-margin: 8
319 fill-column: 74
320 version-control: never
321 End: