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