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