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