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