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