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