]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
* elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
f961d9dd
AM
12010-02-09 Alan Modra <amodra@gmail.com>
2
3 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
4 unsigned char. Update variables and code using them throughout file.
5 (struct ppc_link_hash_entry): Likewise for tls_mask.
6
72fbc6e5
DM
72010-02-08 David S. Miller <davem@davemloft.net>
8
9 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
10 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
11
12 * elfxx-sparc.c (create_got_section): Delete.
13 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
14 section creator does that work for us. Use ->elf.foo instead of
15 ->foo where applicable.
16 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
17 where applicable.
18 (allocate_dynrelocs): Likewise.
19 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
20 (_bfd_sparc_elf_relocate_section): Likewise.
21 (sparc_vxworks_build_plt_entry): Likewise.
22 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
23 (sparc_finish_dyn): Likewise.
24 (sparc_vxworks_finish_exec_plt): Likewise.
25 (sparc_vxworks_finish_shared_plt): Likewise.
26 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
27
28 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
29 macros for visibilty and locality checks.
30 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
31 (allocate_dynrelocs): Likewise.
32 (_bfd_sparc_elf_relocate_section): Likewise.
33 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
34
35 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
36 but never used local var 'dynobj'.
37
38 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
39 nocopyreloc.
40
d0c9aeb3
DM
41 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
42 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
43 * bfd-in2.h: Regenerate.
44 * libbfd.h: Regenerate.
45
46 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
47 and loc_hash_memory.
48 (_bfd_sparc_elf_link_hash_table_free): Declare.
49 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
50 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
51 bfd_elf32_bfd_link_hash_table_free): Define.
52 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
53 has_ifunc_symbols if STT_GNU_IFUNC.
54 (bfd_elf64_bfd_link_hash_table_free): Define.
55 (elf_backend_post_process_headers): Define always.
56 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
57 (sparc_reloc_map): Add entries for new IFUNC relocs.
58 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
59 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
60 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
61 elf_sparc_get_local_sym_hash): New.
62 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
63 from here...
64 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
65 local hash table.
66 (_bfd_sparc_elf_link_hash_table_free): New.
67 (create_ifunc_sections): New.
68 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
69 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
70 cons up a fake local hash table entry for it. Unconditionally add
71 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
72 dyn relocs for ifunc.
73 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
74 (allocate_dynrelocs): Unconditionally emit a PLT entry when
75 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
76 (allocate_local_dynrelocs): New function.
77 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
78 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
79 like splt.
80 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
81 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
82 plt in iplt/irelplt.
83
9ea2b942
RS
842010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
85
86 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
87 max_contents_size, only consider sections whose contents must
88 be swapped in.
89
0b8bcf0d
AM
902010-02-09 Alan Modra <amodra@gmail.com>
91
92 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
93 (ppc64_elf_size_dynamic_sections): ..and here..
94 (merge_got_entries): ..rather than here.
95
33c0ec9d
AM
962010-02-09 Alan Modra <amodra@gmail.com>
97
98 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
99 (has_small_toc_reloc): Define.
100 (ppc64_elf_check_relocs): Set the above flags.
101 (ppc64_elf_edit_opd): Delete obfd param.
102 (ppc64_elf_tls_optimize): Likewise.
103 (ppc64_elf_edit_toc): Likewise.
104 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
105 * elf64-ppc.h: Update prototypes.
106
b0dddeec
AM
1072010-02-08 Alan Modra <amodra@gmail.com>
108
109 * section.c (struct bfd_section): Delete has_tls_reloc,
110 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
111 Add sec_flg0 thru sec_flg5.
112 (BFD_FAKE_SECTION): Update for changed flags.
113 * ecoff.c (bfd_debug_section): Likewise.
114 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
115 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
116 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
117 * elf32-xtensa.c (reloc_done): Define.
118 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
119 * bfd-in2.h: Regenerate.
120
06988dfc
TG
1212010-02-08 Tristan Gingold <gingold@adacore.com>
122
123 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
124 for non-scattered relocations.
125
deddc40b
NS
1262010-02-08 Nathan Sidwell <nathan@codesourcery.com>
127
128 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
129 apuinfo sections, only scan input sections once and reuse the
130 buffer.
131
ce3d2015
AM
1322010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
133
134 * archures.c (bfd_mach_ppc_titan): Define.
135 * bfd-in2.h: Regenerate.
136 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
137
06a162cf
AM
1382010-02-08 Alan Modra <amodra@gmail.com>
139
140 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
141
4c348442
SA
1422010-02-05 Sterling Augustine <sterling@tensilica.com>
143
144 * elf.c (assign_file_positions_for_load_sections) Update lma of
145 section if necessary. Fixes Bugzilla 11219.
146
6bbec505
L
1472010-02-05 H.J. Lu <hongjiu.lu@intel.com>
148
149 * elf32-i386.c: Remove trailing white spaces.
150 * elf64-x86-64.c: Likewise.
151
4dfe6ac6
NC
1522010-02-03 Nick Clifton <nickc@redhat.com>
153
154 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
155 entries for other architectures.
156 (struct elf_link_hash_table): Add hash_table_id field.
157 (elf_hash_table_id): New accessor macro.
158 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
159 parameter.
160 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
161 returning cast pointer.
162 (elf32_mn10300_link_hash_table_create): Identify new table as
163 containing MN10300 extensions.
164 (mn10300_elf_relax_section): Check pointer returned by
165 elf32_mn10300_hash_table.
166 * elf32-arm.c: Likewise, except using ARM extensions.
167 * elf32-avr.c: Likewise, except using AVR extensions.
168 * elf32-bfin.c: Likewise, except using BFIN extensions.
169 * elf32-cris.c: Likewise, except using CRIS extensions.
170 * elf32-frv.c: Likewise, except using FRV extensions.
171 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
172 * elf32-i386.c: Likewise, except using I386 extensions.
173 * elf32-lm32.c: Likewise, except using LM32 extensions.
174 * elf32-m32r.c: Likewise, except using M32RM extensions.
175 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
176 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
177 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
178 * elf32-m68k.c: Likewise, except using M68K extensions.
179 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
180 * elf32-ppc.c: Likewise, except using PPC32 extensions.
181 * elf32-s390.c: Likewise, except using S390 extensions.
182 * elf32-sh.c: Likewise, except using SH extensions.
183 * elf32-spu.c: Likewise, except using SPU extensions.
184 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
185 * elf64-alpha.c: Likewise, except using ALPHA extensions.
186 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
187 * elf64-ppc.c: Likewise, except using PPC64 extensions.
188 * elf64-s390.c: Likewise, except using S390 extensions.
189 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
190 * elfxx-ia64.c: Likewise, except using IA64 extensions.
191 * elfxx-mips.c: Likewise, except using MIPS extensions.
192 * elfxx-sparc.c: Likewise, except using SPARC extensions.
193 * elfxx-sparc.h: Likewise, except using SPARC extensions.
194 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
195 redundant structure.
196 (elf32_cr16_hash_table): Delete unused macro.
197 (elf32_cr16_link_hash_traverse): Delete unused macro.
198 * elf32-score.c: Likewise.
199 * elf32-score7.c: Likewise.
200 * elf32-vax.c: Likewise.
201 * elf64-sh64.c: Likewise.
202
927be08e
AM
2032010-02-03 Alan Modra <amodra@gmail.com>
204
205 * elf64-ppc.c (struct plt_entry): Move earlier in file.
206 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
207 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
208 Update all uses.
209 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
210 Remove no_multi_toc.
211 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
212 when allocating a new struct got_entry.
213 (allocate_got): New function, extracted from..
214 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
215 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
216 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
217 (ppc64_elf_setup_section_lists): Remove output_bfd param and
218 no_multi_toc, add add_stub_section and layout_sections_again. Stash
219 new params in htab. Extract some code to..
220 (ppc64_elf_start_multitoc_partition): ..here. New function.
221 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
222 second pass toc scan.
223 (merge_got_entries, merge_global_got, reallocate_got): New functions.
224 (ppc64_elf_reinit_toc): Rename to..
225 (ppc64_elf_finish_multitoc_partition): ..this.
226 (ppc64_elf_layout_multitoc): New function.
227 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
228 layout_sections_again params.
229 (ppc64_elf_relocate_section): Handle indirect got entries.
230 * elf64-ppc.h: Update prototypes. Declare new functions.
231
4339cae0
L
2322010-02-02 H.J. Lu <hongjiu.lu@intel.com>
233
234 * elf-bfd.h (elfcore_write_xstatereg): New.
235
236 * elf.c (elfcore_grok_xstatereg): New.
237 (elfcore_write_xstatereg): Likewise.
238 (elfcore_grok_note): Handle NT_X86_XSTATE.
239 (elfcore_write_register_note): Handle .reg-xstate section.
240
9848eadf
TG
2412010-02-01 Tristan Gingold <gingold@adacore.com>
242
243 * som.c (som_write_ar_hdr): Define this macro.
244
f6fd0237
DA
2452010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
246
247 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
248 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
249 linkage table pointer to use the global table pointer if not doing
250 a shared link.
251
a1504221
JB
2522010-01-29 Joel Brobecker <brobecker@adacore.com>
253
254 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
255 if it has already been set.
256
771deb08
TG
2572010-01-27 Tristan Gingold <gingold@adacore.com>
258
259 * vms.h: Remove trailing spaces.
260 (struct hdr_struct): Remove unused hdr_c_cpr field.
261 (enum file_format_enum): Add comments.
262 * vms.c (vms_bfd_print_private_bfd_data): New function that
263 replaces the macro.
264 Remove trailing spaces.
265 * vms-misc.c: Improve comments.
266 (_bfd_vms_get_object_record): Also handle files without pads.
267 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
268 * vms-gsd.c (struct flagdescstruct): Make name field const.
269 (gsyflagdesc): Fix typo.
270
bf102f86
AM
2712010-01-27 Alan Modra <amodra@gmail.com>
272
273 PR ld/11217
274 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
275 (ppc64_elf_setup_section_lists): Init them.
276 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
277 and .toc on the same input file.
278 (ppc64_elf_relocate_section): Correct GOT entry offset.
279
8f95b6e4
TG
2802010-01-26 Tristan Gingold <gingold@adacore.com>
281
282 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
283 (bfd_target): Add _bfd_write_ar_hdr_fn field.
284 * archive.c (is_bsd44_extended_name): New macro.
285 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
286 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
287 name.
288 (_bfd_archive_bsd44_construct_extended_name_table): New function.
289 (_bfd_generic_write_ar_hdr): Ditto.
290 (_bfd_bsd44_write_ar_hdr): Ditto.
291 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
292 (bsd_write_armap): Adjust firstreal computation.
293 * libbfd-in.h (struct areltdata): Add extra_size field.
294 (_bfd_generic_write_ar_hdr): Add prototype.
295 (_bfd_bsd44_write_ar_hdr): Ditto.
296 (_bfd_write_ar_hdr): Define.
297 (_bfd_noarchive_write_ar_hdr): Ditto.
298 (_bfd_archive_bsd_write_ar_hdr): Ditto.
299 (_bfd_archive_coff_write_ar_hdr): Ditto.
300 (_bfd_archive_bsd44_slurp_armap): Ditto.
301 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
302 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
303 (_bfd_archive_bsd44_truncate_arname): Ditto.
304 (_bfd_archive_bsd44_write_armap): Ditto.
305 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
306 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
307 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
308 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
309 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
310 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
311 * libbfd.h: Regenerate.
312 * oasys.c (oasys_write_ar_hdr): Define.
313 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
314 * ieee.c (ieee_write_ar_hdr): Define.
315 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
316 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
317 (bfd_pmac_xcoff_backend_data): Ditto.
318 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
319 (bfd_xcoff_aix5_backend_data): Ditto.
320 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
321 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
322 * aout-tic30.c (MY_write_ar_hdr): Ditto.
323 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
324 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
325 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
326 (bfd_mach_o_construct_extended_name_table)
327 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
328 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
329 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
330 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
331 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
332 (bfd_mach_o_construct_extended_name_table)
333 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
334 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
335 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
336 * bfd-in2.h: Regenerate.
337
98da7939
L
3382010-01-26 Alan Modra <amodra@gmail.com>
339 H.J. Lu <hongjiu.lu@intel.com>
340
341 PR ld/11218
342 * elflink.c (elf_link_output_extsym): Do not ignore undefined
343 symbols with ref_regular set when gc_sections is active.
344
766bc656
AM
3452010-01-25 Alan Modra <amodra@gmail.com>
346
347 PR ld/11217
348 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
349 with relocations against undefined weak symbols.
350 (ppc64_elf_relocate_section): Don't optimize calls to undefined
351 weak functions if the symbol is dynamic.
352 (ppc64_elf_relocate_section): Edit tprel tls sequences.
353 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
354 (_bfd_elf_ppc_at_tprel_transform): New function.
355 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
356 * bfd-in2.h: Regenerate.
357
c865e45b
RS
3582010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
359
360 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
361 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
362 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
363 bitsize to 1.
364 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
365
b918acf9
NC
3662010-01-21 Nick Clifton <nickc@redhat.com>
367
368 * elflink.c (elf_link_add_object_symbols): Look up name of
369 undefined symbol both before and after versioning has been
370 applied. Do not bother with symbols that are weakly undefined.
371
55786da2 3722010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
b918acf9 373
55786da2
AK
374 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
375 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
376
a37a68dd
CC
3772010-01-19 Cary Coutant <ccoutant@google.com>
378
379 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
380
ecd12bc1
AM
3812010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
382 Alan Modra <amodra@gmail.com>
383
384 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
385 (elf_object_p): Read e_phnum extension.
386 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
387 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
388 that we can read last program header.
389
f6ebfac0
AM
3902010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
391
392 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
393 R_ARM_THM_CALL entry.
394 (elf32_arm_final_link_relocate): Correct calculation of
395 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
396 or R_ARM_THM_JUMP24 relocation.
397
22eb4b1d
AM
3982010-01-18 Alan Modra <amodra@gmail.com>
399
400 PR 11168
401 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
402 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
403 than 32k sections.
404
6ec12636
JK
4052010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
406
407 Fix compilation warning on gcc-3.4.
408 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
409 parameter index to sec_index according to the function definition.
410
38a7df63
CF
4112010-01-13 Chao-ying Fu <fu@mips.com>
412
413 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
414 It is true for all CPUs.
415 (jal_reloc_p): New function.
416 (mips_elf_calculate_relocation): Rename require_jalxp to
417 cross_mode_jump_p.
418 Update comment for CROSS_MODE_JUMP_P.
419 Set up cross_mode_jump_p based on the mode change.
420 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
421 Update comment for CROSS_MODE_JUMP_P.
422 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
423 Use !cross_mode_jump_p to guard conversion.
424 Convert "jr t9" to "b", if possible.
425 (_bfd_mips_elf_relocate_section): Rename require_jalx to
426 cross_mode_jump_p.
427 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
428 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
429
91b9a4a4
NC
4302010-01-13 Nick Clifton <nickc@redhat.com>
431
432 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
433 "m32c" returns the m32c arch_info_struct and not the m16c
434 arch_info_struct.
435 (arch_info_struct): Use the new scan function.
436 (bfd_m32c_arch): Likewise.
437
618b7301
TG
4382010-01-13 Tristan Gingold <gingold@adacore.com>
439
440 * config.bfd: Remove duplicated target vector for i386-*-darwin.
441 Appends new arch instead of overriding.
442 Use mach_o_x86_64_vec for x86_64-*-darwin.
443 * configure.in: Add mach_o_x86_64_vec.
444 * configure: Regenerate.
445 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
446 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
447 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
448 * Makefile.in: Regenerate.
449 * mach-o-x86-64.c: New file.
450
f88af2f1
TG
4512010-01-13 Tristan Gingold <gingold@adacore.com>
452
453 * reloc.c: Add MACH_O_X86_64 relocations.
454 * bfd-in2.h: Regenerate.
455 * libbfd.h: Regenerate.
456
19172f39
TG
4572010-01-13 Tristan Gingold <gingold@adacore.com>
458
459 * archive.c (normalize): Use lbasename.
460 (bfd_bsd_truncate_arname): Ditto.
461 (bfd_gnu_truncate_arname): Ditto.
462
6cdb8d82
TG
4632010-01-12 Tristan Gingold <gingold@adacore.com>
464
465 * makefile.vms (CFLAGS): Turns warnings into informational messages.
466
9a753de0
TG
4672010-01-11 Tristan Gingold <gingold@adacore.com>
468
469 * mach-o.h: Add x86-64 relocation types.
470
42fa0891
TG
4712010-01-11 Tristan Gingold <gingold@adacore.com>
472
473 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
474 (bfd_mach_o_set_arch_mach): New prototype.
475 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
476 (bfd_mach_o_set_arch_mach): New function.
477 (bfd_mach_o_gen_mkobject): New function.
478 Set TARGET_ARCHITECTURE for the generic back-ends.
479 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
480 Check that TARGET_ARCHITECTURE is defined.
481 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
482 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
483
cba0723b
TG
4842010-01-11 Tristan Gingold <gingold@adacore.com>
485
19172f39 486 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
cba0723b 487
4d421096
NC
4882010-01-11 Nick Clifton <nickc@redhat.com>
489
490 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
491 handling of R_V850_HI16_S relocation.
492
20b1d3e3
AM
4932010-01-11 Alan Modra <amodra@gmail.com>
494
495 PR 11103
496 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
497
a358ecb8
AM
4982010-01-11 Alan Modra <amodra@gmail.com>
499
500 PR 6832
501 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
502 (find_abstract_instance_name): Use it.
503 (parse_comp_unit): Set it.
504
3725885a
RW
5052010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
506
507 * Makefile.in: Regenerate.
508 * configure: Regenerate.
509
3ee87829
TG
5102010-01-08 Tristan Gingold <gingold@adacore.com>
511
512 * archive.c: Remove bfd_special_undocumented_glue.
513
fb34365b
AM
5142010-01-08 Alan Modra <amodra@gmail.com>
515
516 PR ld/11133
517 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
518 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
519 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
520
d023c380
L
5212010-01-07 H.J. Lu <hongjiu.lu@intel.com>
522
523 PR ld/11138
524 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
525 a symbol referenced by DSO is is defined in a non-shared object
526 and forced local.
527
bde6f3eb
L
5282010-01-07 H.J. Lu <hongjiu.lu@intel.com>
529
530 PR ld/11133
531 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
532 undefined __start_XXX/__stop_XXX in all input files and set
533 SEC_KEEP.
534
16583161
L
5352010-01-07 H.J. Lu <hongjiu.lu@intel.com>
536
537 PR ld/11143
538 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
539
16231b7b
DG
5402010-01-04 Daniel Gutson <dgutson@codesourcery.com>
541
542 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
543 before including procfs.h.
544 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
545 * configure.in: Added autoconf probe for the pr_fpreg member.
546 * configure: Regenerated.
547 * config.in: Regenerated.
548 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
549
608fa8d3
JB
5502010-01-04 Joel Brobecker <brobecker@adacore.com>
551
552 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
553 * dwarf2.c (concat_filename): Rename dirname with dir_name
554 to void shadowing the dirname function.
555 Rename subdirname with subdir_name to stay consistent with
556 the new dir_name variable name.
557
0dc93057
AM
5582010-01-04 Edmar Wienskoski <edmar@freescale.com>
559
560 * archures.c: Add bfd_mach_ppc_e500mc64.
561 * bfd-in2.h: Regenerate.
562 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
563 bfd_mach_ppc_e500mc64.
564
baf9bed3
JB
5652010-01-01 Joel Brobecker <brobecker@adacore.com>
566
567 Fix -Wshadow warnings (seen on ppc-aix)
568 * xcofflink.c: Replace finfo by flinfo throughout.
569
43ecc30f 570For older changes see ChangeLog-2009
56882138
AM
571\f
572Local Variables:
573mode: change-log
574left-margin: 8
575fill-column: 74
576version-control: never
577End: