* elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2010-02-09 Alan Modra <amodra@gmail.com>
2
3 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
4 unsigned char. Update variables and code using them throughout file.
5 (struct ppc_link_hash_entry): Likewise for tls_mask.
6
7 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
8
9 2010-02-08 David S. Miller <davem@davemloft.net>
10
11 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
12 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
13
14 * elfxx-sparc.c (create_got_section): Delete.
15 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
16 section creator does that work for us. Use ->elf.foo instead of
17 ->foo where applicable.
18 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
19 where applicable.
20 (allocate_dynrelocs): Likewise.
21 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
22 (_bfd_sparc_elf_relocate_section): Likewise.
23 (sparc_vxworks_build_plt_entry): Likewise.
24 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
25 (sparc_finish_dyn): Likewise.
26 (sparc_vxworks_finish_exec_plt): Likewise.
27 (sparc_vxworks_finish_shared_plt): Likewise.
28 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
29
30 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
31 macros for visibilty and locality checks.
32 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
33 (allocate_dynrelocs): Likewise.
34 (_bfd_sparc_elf_relocate_section): Likewise.
35 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
36
37 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
38 but never used local var 'dynobj'.
39
40 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
41 nocopyreloc.
42
43 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
44 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
45 * bfd-in2.h: Regenerate.
46 * libbfd.h: Regenerate.
47
48 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
49 and loc_hash_memory.
50 (_bfd_sparc_elf_link_hash_table_free): Declare.
51 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
52 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
53 bfd_elf32_bfd_link_hash_table_free): Define.
54 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
55 has_ifunc_symbols if STT_GNU_IFUNC.
56 (bfd_elf64_bfd_link_hash_table_free): Define.
57 (elf_backend_post_process_headers): Define always.
58 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
59 (sparc_reloc_map): Add entries for new IFUNC relocs.
60 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
61 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
62 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
63 elf_sparc_get_local_sym_hash): New.
64 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
65 from here...
66 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
67 local hash table.
68 (_bfd_sparc_elf_link_hash_table_free): New.
69 (create_ifunc_sections): New.
70 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
71 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
72 cons up a fake local hash table entry for it. Unconditionally add
73 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
74 dyn relocs for ifunc.
75 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
76 (allocate_dynrelocs): Unconditionally emit a PLT entry when
77 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
78 (allocate_local_dynrelocs): New function.
79 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
80 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
81 like splt.
82 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
83 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
84 plt in iplt/irelplt.
85
86 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
87
88 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
89 max_contents_size, only consider sections whose contents must
90 be swapped in.
91
92 2010-02-09 Alan Modra <amodra@gmail.com>
93
94 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
95 (ppc64_elf_size_dynamic_sections): ..and here..
96 (merge_got_entries): ..rather than here.
97
98 2010-02-09 Alan Modra <amodra@gmail.com>
99
100 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
101 (has_small_toc_reloc): Define.
102 (ppc64_elf_check_relocs): Set the above flags.
103 (ppc64_elf_edit_opd): Delete obfd param.
104 (ppc64_elf_tls_optimize): Likewise.
105 (ppc64_elf_edit_toc): Likewise.
106 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
107 * elf64-ppc.h: Update prototypes.
108
109 2010-02-08 Alan Modra <amodra@gmail.com>
110
111 * section.c (struct bfd_section): Delete has_tls_reloc,
112 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
113 Add sec_flg0 thru sec_flg5.
114 (BFD_FAKE_SECTION): Update for changed flags.
115 * ecoff.c (bfd_debug_section): Likewise.
116 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
117 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
118 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
119 * elf32-xtensa.c (reloc_done): Define.
120 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
121 * bfd-in2.h: Regenerate.
122
123 2010-02-08 Tristan Gingold <gingold@adacore.com>
124
125 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
126 for non-scattered relocations.
127
128 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
129
130 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
131 apuinfo sections, only scan input sections once and reuse the
132 buffer.
133
134 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
135
136 * archures.c (bfd_mach_ppc_titan): Define.
137 * bfd-in2.h: Regenerate.
138 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
139
140 2010-02-08 Alan Modra <amodra@gmail.com>
141
142 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
143
144 2010-02-05 Sterling Augustine <sterling@tensilica.com>
145
146 * elf.c (assign_file_positions_for_load_sections) Update lma of
147 section if necessary. Fixes Bugzilla 11219.
148
149 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
150
151 * elf32-i386.c: Remove trailing white spaces.
152 * elf64-x86-64.c: Likewise.
153
154 2010-02-03 Nick Clifton <nickc@redhat.com>
155
156 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
157 entries for other architectures.
158 (struct elf_link_hash_table): Add hash_table_id field.
159 (elf_hash_table_id): New accessor macro.
160 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
161 parameter.
162 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
163 returning cast pointer.
164 (elf32_mn10300_link_hash_table_create): Identify new table as
165 containing MN10300 extensions.
166 (mn10300_elf_relax_section): Check pointer returned by
167 elf32_mn10300_hash_table.
168 * elf32-arm.c: Likewise, except using ARM extensions.
169 * elf32-avr.c: Likewise, except using AVR extensions.
170 * elf32-bfin.c: Likewise, except using BFIN extensions.
171 * elf32-cris.c: Likewise, except using CRIS extensions.
172 * elf32-frv.c: Likewise, except using FRV extensions.
173 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
174 * elf32-i386.c: Likewise, except using I386 extensions.
175 * elf32-lm32.c: Likewise, except using LM32 extensions.
176 * elf32-m32r.c: Likewise, except using M32RM extensions.
177 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
178 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
179 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
180 * elf32-m68k.c: Likewise, except using M68K extensions.
181 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
182 * elf32-ppc.c: Likewise, except using PPC32 extensions.
183 * elf32-s390.c: Likewise, except using S390 extensions.
184 * elf32-sh.c: Likewise, except using SH extensions.
185 * elf32-spu.c: Likewise, except using SPU extensions.
186 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
187 * elf64-alpha.c: Likewise, except using ALPHA extensions.
188 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
189 * elf64-ppc.c: Likewise, except using PPC64 extensions.
190 * elf64-s390.c: Likewise, except using S390 extensions.
191 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
192 * elfxx-ia64.c: Likewise, except using IA64 extensions.
193 * elfxx-mips.c: Likewise, except using MIPS extensions.
194 * elfxx-sparc.c: Likewise, except using SPARC extensions.
195 * elfxx-sparc.h: Likewise, except using SPARC extensions.
196 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
197 redundant structure.
198 (elf32_cr16_hash_table): Delete unused macro.
199 (elf32_cr16_link_hash_traverse): Delete unused macro.
200 * elf32-score.c: Likewise.
201 * elf32-score7.c: Likewise.
202 * elf32-vax.c: Likewise.
203 * elf64-sh64.c: Likewise.
204
205 2010-02-03 Alan Modra <amodra@gmail.com>
206
207 * elf64-ppc.c (struct plt_entry): Move earlier in file.
208 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
209 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
210 Update all uses.
211 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
212 Remove no_multi_toc.
213 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
214 when allocating a new struct got_entry.
215 (allocate_got): New function, extracted from..
216 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
217 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
218 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
219 (ppc64_elf_setup_section_lists): Remove output_bfd param and
220 no_multi_toc, add add_stub_section and layout_sections_again. Stash
221 new params in htab. Extract some code to..
222 (ppc64_elf_start_multitoc_partition): ..here. New function.
223 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
224 second pass toc scan.
225 (merge_got_entries, merge_global_got, reallocate_got): New functions.
226 (ppc64_elf_reinit_toc): Rename to..
227 (ppc64_elf_finish_multitoc_partition): ..this.
228 (ppc64_elf_layout_multitoc): New function.
229 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
230 layout_sections_again params.
231 (ppc64_elf_relocate_section): Handle indirect got entries.
232 * elf64-ppc.h: Update prototypes. Declare new functions.
233
234 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
235
236 * elf-bfd.h (elfcore_write_xstatereg): New.
237
238 * elf.c (elfcore_grok_xstatereg): New.
239 (elfcore_write_xstatereg): Likewise.
240 (elfcore_grok_note): Handle NT_X86_XSTATE.
241 (elfcore_write_register_note): Handle .reg-xstate section.
242
243 2010-02-01 Tristan Gingold <gingold@adacore.com>
244
245 * som.c (som_write_ar_hdr): Define this macro.
246
247 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
248
249 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
250 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
251 linkage table pointer to use the global table pointer if not doing
252 a shared link.
253
254 2010-01-29 Joel Brobecker <brobecker@adacore.com>
255
256 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
257 if it has already been set.
258
259 2010-01-27 Tristan Gingold <gingold@adacore.com>
260
261 * vms.h: Remove trailing spaces.
262 (struct hdr_struct): Remove unused hdr_c_cpr field.
263 (enum file_format_enum): Add comments.
264 * vms.c (vms_bfd_print_private_bfd_data): New function that
265 replaces the macro.
266 Remove trailing spaces.
267 * vms-misc.c: Improve comments.
268 (_bfd_vms_get_object_record): Also handle files without pads.
269 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
270 * vms-gsd.c (struct flagdescstruct): Make name field const.
271 (gsyflagdesc): Fix typo.
272
273 2010-01-27 Alan Modra <amodra@gmail.com>
274
275 PR ld/11217
276 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
277 (ppc64_elf_setup_section_lists): Init them.
278 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
279 and .toc on the same input file.
280 (ppc64_elf_relocate_section): Correct GOT entry offset.
281
282 2010-01-26 Tristan Gingold <gingold@adacore.com>
283
284 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
285 (bfd_target): Add _bfd_write_ar_hdr_fn field.
286 * archive.c (is_bsd44_extended_name): New macro.
287 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
288 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
289 name.
290 (_bfd_archive_bsd44_construct_extended_name_table): New function.
291 (_bfd_generic_write_ar_hdr): Ditto.
292 (_bfd_bsd44_write_ar_hdr): Ditto.
293 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
294 (bsd_write_armap): Adjust firstreal computation.
295 * libbfd-in.h (struct areltdata): Add extra_size field.
296 (_bfd_generic_write_ar_hdr): Add prototype.
297 (_bfd_bsd44_write_ar_hdr): Ditto.
298 (_bfd_write_ar_hdr): Define.
299 (_bfd_noarchive_write_ar_hdr): Ditto.
300 (_bfd_archive_bsd_write_ar_hdr): Ditto.
301 (_bfd_archive_coff_write_ar_hdr): Ditto.
302 (_bfd_archive_bsd44_slurp_armap): Ditto.
303 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
304 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
305 (_bfd_archive_bsd44_truncate_arname): Ditto.
306 (_bfd_archive_bsd44_write_armap): Ditto.
307 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
308 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
309 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
310 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
311 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
312 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
313 * libbfd.h: Regenerate.
314 * oasys.c (oasys_write_ar_hdr): Define.
315 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
316 * ieee.c (ieee_write_ar_hdr): Define.
317 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
318 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
319 (bfd_pmac_xcoff_backend_data): Ditto.
320 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
321 (bfd_xcoff_aix5_backend_data): Ditto.
322 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
323 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
324 * aout-tic30.c (MY_write_ar_hdr): Ditto.
325 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
326 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
327 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
328 (bfd_mach_o_construct_extended_name_table)
329 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
330 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
331 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
332 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
333 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
334 (bfd_mach_o_construct_extended_name_table)
335 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
336 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
337 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
338 * bfd-in2.h: Regenerate.
339
340 2010-01-26 Alan Modra <amodra@gmail.com>
341 H.J. Lu <hongjiu.lu@intel.com>
342
343 PR ld/11218
344 * elflink.c (elf_link_output_extsym): Do not ignore undefined
345 symbols with ref_regular set when gc_sections is active.
346
347 2010-01-25 Alan Modra <amodra@gmail.com>
348
349 PR ld/11217
350 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
351 with relocations against undefined weak symbols.
352 (ppc64_elf_relocate_section): Don't optimize calls to undefined
353 weak functions if the symbol is dynamic.
354 (ppc64_elf_relocate_section): Edit tprel tls sequences.
355 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
356 (_bfd_elf_ppc_at_tprel_transform): New function.
357 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
358 * bfd-in2.h: Regenerate.
359
360 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
361
362 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
363 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
364 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
365 bitsize to 1.
366 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
367
368 2010-01-21 Nick Clifton <nickc@redhat.com>
369
370 * elflink.c (elf_link_add_object_symbols): Look up name of
371 undefined symbol both before and after versioning has been
372 applied. Do not bother with symbols that are weakly undefined.
373
374 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
375
376 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
377 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
378
379 2010-01-19 Cary Coutant <ccoutant@google.com>
380
381 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
382
383 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
384 Alan Modra <amodra@gmail.com>
385
386 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
387 (elf_object_p): Read e_phnum extension.
388 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
389 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
390 that we can read last program header.
391
392 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
393
394 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
395 R_ARM_THM_CALL entry.
396 (elf32_arm_final_link_relocate): Correct calculation of
397 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
398 or R_ARM_THM_JUMP24 relocation.
399
400 2010-01-18 Alan Modra <amodra@gmail.com>
401
402 PR 11168
403 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
404 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
405 than 32k sections.
406
407 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
408
409 Fix compilation warning on gcc-3.4.
410 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
411 parameter index to sec_index according to the function definition.
412
413 2010-01-13 Chao-ying Fu <fu@mips.com>
414
415 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
416 It is true for all CPUs.
417 (jal_reloc_p): New function.
418 (mips_elf_calculate_relocation): Rename require_jalxp to
419 cross_mode_jump_p.
420 Update comment for CROSS_MODE_JUMP_P.
421 Set up cross_mode_jump_p based on the mode change.
422 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
423 Update comment for CROSS_MODE_JUMP_P.
424 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
425 Use !cross_mode_jump_p to guard conversion.
426 Convert "jr t9" to "b", if possible.
427 (_bfd_mips_elf_relocate_section): Rename require_jalx to
428 cross_mode_jump_p.
429 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
430 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
431
432 2010-01-13 Nick Clifton <nickc@redhat.com>
433
434 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
435 "m32c" returns the m32c arch_info_struct and not the m16c
436 arch_info_struct.
437 (arch_info_struct): Use the new scan function.
438 (bfd_m32c_arch): Likewise.
439
440 2010-01-13 Tristan Gingold <gingold@adacore.com>
441
442 * config.bfd: Remove duplicated target vector for i386-*-darwin.
443 Appends new arch instead of overriding.
444 Use mach_o_x86_64_vec for x86_64-*-darwin.
445 * configure.in: Add mach_o_x86_64_vec.
446 * configure: Regenerate.
447 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
448 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
449 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
450 * Makefile.in: Regenerate.
451 * mach-o-x86-64.c: New file.
452
453 2010-01-13 Tristan Gingold <gingold@adacore.com>
454
455 * reloc.c: Add MACH_O_X86_64 relocations.
456 * bfd-in2.h: Regenerate.
457 * libbfd.h: Regenerate.
458
459 2010-01-13 Tristan Gingold <gingold@adacore.com>
460
461 * archive.c (normalize): Use lbasename.
462 (bfd_bsd_truncate_arname): Ditto.
463 (bfd_gnu_truncate_arname): Ditto.
464
465 2010-01-12 Tristan Gingold <gingold@adacore.com>
466
467 * makefile.vms (CFLAGS): Turns warnings into informational messages.
468
469 2010-01-11 Tristan Gingold <gingold@adacore.com>
470
471 * mach-o.h: Add x86-64 relocation types.
472
473 2010-01-11 Tristan Gingold <gingold@adacore.com>
474
475 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
476 (bfd_mach_o_set_arch_mach): New prototype.
477 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
478 (bfd_mach_o_set_arch_mach): New function.
479 (bfd_mach_o_gen_mkobject): New function.
480 Set TARGET_ARCHITECTURE for the generic back-ends.
481 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
482 Check that TARGET_ARCHITECTURE is defined.
483 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
484 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
485
486 2010-01-11 Tristan Gingold <gingold@adacore.com>
487
488 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
489
490 2010-01-11 Nick Clifton <nickc@redhat.com>
491
492 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
493 handling of R_V850_HI16_S relocation.
494
495 2010-01-11 Alan Modra <amodra@gmail.com>
496
497 PR 11103
498 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
499
500 2010-01-11 Alan Modra <amodra@gmail.com>
501
502 PR 6832
503 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
504 (find_abstract_instance_name): Use it.
505 (parse_comp_unit): Set it.
506
507 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
508
509 * Makefile.in: Regenerate.
510 * configure: Regenerate.
511
512 2010-01-08 Tristan Gingold <gingold@adacore.com>
513
514 * archive.c: Remove bfd_special_undocumented_glue.
515
516 2010-01-08 Alan Modra <amodra@gmail.com>
517
518 PR ld/11133
519 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
520 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
521 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
522
523 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
524
525 PR ld/11138
526 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
527 a symbol referenced by DSO is is defined in a non-shared object
528 and forced local.
529
530 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
531
532 PR ld/11133
533 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
534 undefined __start_XXX/__stop_XXX in all input files and set
535 SEC_KEEP.
536
537 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
538
539 PR ld/11143
540 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
541
542 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
543
544 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
545 before including procfs.h.
546 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
547 * configure.in: Added autoconf probe for the pr_fpreg member.
548 * configure: Regenerated.
549 * config.in: Regenerated.
550 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
551
552 2010-01-04 Joel Brobecker <brobecker@adacore.com>
553
554 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
555 * dwarf2.c (concat_filename): Rename dirname with dir_name
556 to void shadowing the dirname function.
557 Rename subdirname with subdir_name to stay consistent with
558 the new dir_name variable name.
559
560 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
561
562 * archures.c: Add bfd_mach_ppc_e500mc64.
563 * bfd-in2.h: Regenerate.
564 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
565 bfd_mach_ppc_e500mc64.
566
567 2010-01-01 Joel Brobecker <brobecker@adacore.com>
568
569 Fix -Wshadow warnings (seen on ppc-aix)
570 * xcofflink.c: Replace finfo by flinfo throughout.
571
572 For older changes see ChangeLog-2009
573 \f
574 Local Variables:
575 mode: change-log
576 left-margin: 8
577 fill-column: 74
578 version-control: never
579 End:
This page took 0.042704 seconds and 5 git commands to generate.