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