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