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