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