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