* vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
[external/binutils.git] / bfd / ChangeLog
1 2009-02-20  Cary Coutant  <ccoutant@google.com>
2
3         * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
4         in struct stat.
5
6 2009-18-02  Dave Korn  <dave.korn.cygwin@gmail.com>
7
8         PR gas/7059
9         * coffcode.h (coff_write_object_contents):  Don't let the string
10         table offset overflow the s_name field when using long section names.
11
12 2009-18-02  Dave Korn  <dave.korn.cygwin@gmail.com>
13
14         * coff-alpha.c (alpha_ecoff_backend_data):  Initialise fields which
15         control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
16         * coff-mips.c (mips_ecoff_backend_data):  Likewise.
17         * coff-rs6000.c (bfd_xcoff_backend_data):  Initialise fields which
18         control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
19         (bfd_pmac_xcoff_backend_data):  Likewise.
20         * coff64-rs6000.c (bfd_xcoff_backend_data):  Likewise.
21         (bfd_xcoff_aix5_backend_data):  Likewise.
22         (xcoff64_write_object_contents):  Delete unused long_section_names
23         local variable.
24         * coff-sh.c (bfd_coff_small_swap_table):  Initialise long section
25         name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
26         struct non-const.
27         * coffcode.h (documentation):  Update to describe long section names.
28         (COFFLONGSECTIONCATHELPER):  New helper macro.
29         (BLANKOR1TOODD):  Likewise.
30         (COFF_ENABLE_LONG_SECTION_NAMES):  Likewise.
31         (COFF_LONG_SECTION_NAMES_SETTER):  Likewise.
32         (COFF_DEFAULT_LONG_SECTION_NAMES):  Likewise.
33         (bfd_coff_set_long_section_names_allowed):  New function.
34         (bfd_coff_set_long_section_names_disallowed):  Likewise.
35         (struct bfd_coff_backend_data):  Add new backend hook function
36         pointer _bfd_coff_set_long_section_names.
37         (bfd_coff_set_long_section_names):  New backend hook.
38         (coff_write_object_contents):  Only generate long section names if
39         bfd_coff_long_section_names() indicates they are currently enabled.
40         (bfd_coff_std_swap_table):  Make non-const, and initialise long
41         section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
42         (ticoff0_swap_table):  Likewise to both.
43         (ticoff1_swap_table):  Again, likewise to both.
44         * coffgen.c (make_a_section_from_file):  Allow long section names
45         as inputs even if not currently allowed for outputs.
46         * ecoff.c (_bfd_ecoff_no_long_sections):  New function.
47         * efi-app-ia32.c (COFF_LONG_SECTION_NAMES):  Define to 0, not blank.
48         * efi-app-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
49         * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
50         * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
51         * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
52         * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
53         * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
54         * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
55         * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
56         * pei-arm.c (COFF_LONG_SECTION_NAMES):  Likewise.
57         * pei-i386.c (COFF_LONG_SECTION_NAMES):  Likewise.
58         * pei-mcore.c (COFF_LONG_SECTION_NAMES):  Likewise.
59         * pei-mips.c (COFF_LONG_SECTION_NAMES):  Likewise.
60         * pei-ppc.c (COFF_LONG_SECTION_NAMES):  Likewise.
61         * pei-sh.c (COFF_LONG_SECTION_NAMES):  Likewise.
62         * pei-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
63         * libcoff-in.h:  Update copyright year to cause updated copyright
64         year in generated libcoff.h, and fix typo.
65         * libcoff.h:  Regenerated.
66         * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES):  New macro.
67         (_bfd_ecoff_no_long_sections):  Add prototype.
68         * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES):  New macro.
69         * pe-mips.c (COFF_LONG_SECTION_NAMES):  Define empty if not already
70         defined by an including .c file.
71         * ticoff.h (ticoff0_swap_table):  Make non-const, and initialise
72         long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
73         (ticoff1_swap_table):  Likewise to both.
74
75 2009-02-18  Christophe Lyon  <christophe.lyon@st.com>
76
77         * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
78         stub. Catch default case error.
79         (arm_map_one_stub): Add missing Thumb mapping symbol.
80
81 2009-02-18  Bjoern Haase  <bjoern.m.haase@web.de>
82
83         PR 9841
84         * elf32-avr.c: Handle case where no local symbos exist correctly.
85
86 2009-02-16  Christophe Lyon  <christophe.lyon@st.com>
87
88         bfd/
89         * elf32-arm.c (arm_long_branch_stub,
90         arm_thumb_v4t_long_branch_stub,
91         arm_thumb_thumb_long_branch_stub,
92         arm_thumb_arm_v4t_long_branch_stub,
93         arm_thumb_arm_v4t_short_branch_stub,
94         arm_pic_long_branch_stub):
95         Renamed to elf32_arm_stub_long_branch_any_any,
96         elf32_arm_stub_long_branch_v4t_arm_thumb,
97         elf32_arm_stub_long_branch_thumb_only,
98         elf32_arm_stub_long_branch_v4t_thumb_arm,
99         elf32_arm_stub_short_branch_v4t_thumb_arm,
100         elf32_arm_stub_long_branch_any_any_pic.
101         (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
102         arm_thumb_thumb_stub_long_branch,
103         arm_thumb_arm_v4t_stub_long_branch,
104         arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
105         Renamed to arm_stub_long_branch_any_any,
106         arm_stub_long_branch_v4t_arm_thumb,
107         arm_stub_long_branch_thumb_only,
108         arm_stub_long_branch_v4t_thumb_arm,
109         arm_stub_short_branch_v4t_thumb_arm,
110         arm_stub_long_branch_any_any_pic.
111
112 2009-02-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
113
114         * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
115         in branch offset check.
116
117 2009-02-15  Alan Modra  <amodra@bigpond.net.au>
118
119         * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
120         add toc.symndx and toc.add.
121         (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
122         Set up toc.add.
123         (get_tls_mask): Add toc_addend param, set from toc.add.  Adjust all
124         callers.
125         (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
126         (branch_reloc_hash_match): New function, extracted from..
127         (ppc64_elf_tls_optimize): ..here.
128         (ppc64_elf_relocate_section): Properly set addends when optimizing
129         tls sequences.  Avoid unnecessary reading and writing of insns.
130         Only redo reloc when symbol changed.  Bypass symbol checks when
131         using tlsld_got.
132         * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
133         (branch_reloc_hash_match): New function, extracted from..
134         (ppc_elf_tls_optimize): ..here.
135         (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
136         Don't clear addend on zapped __tls_get_addr reloc.
137
138 2009-02-12  Nick Clifton  <nickc@redhat.com>
139
140         PR 9827
141         * elflink.c (bfd_elf_final_link): When counting the relocations,
142         if the header size has not been set yet then assume that it will
143         match the output section's reloc type.
144
145 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
146
147         * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
148         relocatable link.
149
150 2009-02-09  Alan Modra  <amodra@bigpond.net.au>
151
152         * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
153         (find_function): Likewise.
154         (pasted_function): Don't error if no prior function found.
155         (discover_functions): Revert 2008-12-10 change.  Extend first
156         function range to start of section.
157
158 2009-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
159
160         * elf64-hppa.c: Remove PARAMS macro.  Replace PTR with void *.  Convert
161         functions to C90.
162         * elf64-hppa.h: Likewise.
163
164 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
165
166         * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
167         .sbss handling.
168
169 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
170
171         * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
172         Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
173
174 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
175
176         * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
177         * archures.c (bfd_mach_mips_xlr): Define.
178         * bfd-in2.h: Regenerate.
179         * cpu-mips.c (I_xlr): Define.
180         (arch_info_struct): Add XLR entry.
181         * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
182         (mips_set_isa_flags): Handle bfd_mach_mips_xlr
183         (mips_mach_extensions): Add XLR entry.
184
185 2009-02-03  Eric B. Weddington  <eric.weddington@atmel.com>
186
187         * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
188
189 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
190
191         * configure.in: AC_SUBST pdfdir.
192         * Makefile.am: Add install-pdf, install-pdf-am 
193         and install-pdf-recursive targets. Define pdfdir.
194         * doc/Makefile.am: Define pdf__strip_dir. Add
195         install-pdf and install-pdf-am targets.
196         * po/Make-in: Add install-pdf target. 
197         * configure: Regenerate.
198         * Makefile.in: Regenerate
199         * doc/Makefile.in: Regenerate.
200
201 2009-02-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
202
203         * bfd-in2.h: Regenerate.
204         * elf32-m68k.c: Handle 2-slot GOT entries.  Rename variables and
205         fields from n_entries to n_slots where appropriate, update comments.
206         (HOWTO): Add TLS relocations.
207         (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
208         (enum elf_m68k_got_offset_size): New enum.
209         (struct elf_m68k_got_entry.type): Move field to ...
210         (struct elf_m68k_got_entry_key): ... here.  Update all uses.
211         (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
212         functions.
213         (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
214         functions.
215         (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
216         fields into n_entries array.  Update comments.
217         (elf_m68k_init_got): Simplify, update all uses.
218         (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
219         (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
220         GOT entries; update name, update all uses.
221         (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
222         (elf_m68k_get_got_entry): Update.
223         (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
224         simplify.
225         (elf_m68k_remove_got_entry_type): Simplify.
226         (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
227         (elf_m68k_can_merge_gots): Update.
228         (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
229         (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
230         GOT entries, simplify.
231         (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
232         (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
233         field, remove obsoleted local_n_entries field.
234         (elf_m68k_partition_multi_got_2): New static function.
235         (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
236         update.
237         (elf_m68k_remove_got_entry_type): Update.
238         (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
239         (elf_m68k_check_relocs): Handle TLS relocations.  Remove unnecessary 
240         update of sgot->size and srelgot->size.
241         (elf_m68k_gc_sweep_hook): Update.
242         (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
243         (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
244         TLS relocations.
245         * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
246         * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
247
248 2009-02-02  DJ Delorie  <dj@redhat.com>
249
250         * elf32-mep.c (config_names): Regenerate configuration.
251
252 2009-02-02  Alan Modra  <amodra@bigpond.net.au>
253
254         * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
255         (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
256         * elf.c (bfd_elf_get_str_section): Make static.
257         (bfd_elf_find_section): Delete.
258         * libbfd.h: Regenerate.
259
260 2009-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
261
262         * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
263         (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
264
265 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
266
267         * elflink.c (on_needed_list): New function.
268         (elf_link_add_object_symbols): Link in --as-needed libs if they
269         satisfy undefined symbols in other libs.
270
271 2009-01-30  Julian Brown  <julian@codesourcery.com>
272
273         * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
274         EXEC_P or DYNAMIC flags, and skip sections which are being linked
275         with --just-symbols (-R).
276
277 2009-01-29  Adam Nemet  <anemet@caviumnetworks.com>
278
279         * dwarf2.c (read_rangelist): Use read_address to read low_pc and
280         high_pc in order to properly sign-extend VMAs.
281
282 2009-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
283             Mark Shinwell  <shinwell@codesourcery.com>
284             Catherine Moore  <clm@codesourcery.com>
285
286         * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
287
288 2009-01-28  Catherine Moore <clm@codesourcery.com>
289
290         * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
291         SEC_LOAD for dynamic relocation sections.
292
293 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
294
295         * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
296         (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
297         the size of local TLS data.
298
299 2009-01-27  Andreas Schwab  <schwab@suse.de>
300
301         * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
302         architectures in the archive.
303
304 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
305
306         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
307         <R_CRIS_32_DTPREL>: Correct relocation value.
308
309         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
310         <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
311         symbols with non-default visibility.
312
313 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
314
315         * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
316         describing the trampolines.
317         (ppc_elf_relocate_section): Update relocs to describe the
318         trampolines.
319
320 2009-01-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
321
322         * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
323         branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
324         and R_PARISC_PCREL12F relocations.
325
326 2009-01-24  Alan Modra  <amodra@bigpond.net.au>
327
328         PR 6022
329         * elflink.c (find_version_for_sym): New function split out from,
330         but without export_dynamic test, ..
331         (_bfd_elf_link_assign_sym_version): ..here.
332         (_bfd_elf_export_symbol): Use it.
333
334 2009-01-23  Alan Modra  <amodra@bigpond.net.au>
335
336         * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
337         (struct elf_info_failed, struct elf_find_verdep_info): Move to..
338         * elflink.c: ..here, somewhat modified.
339         * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
340         _bfd_elf_link_find_version_dependencies,
341         _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
342         _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
343         _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
344         declare..
345         * elflink.c: ..and make static here.
346         (_bfd_elf_link_find_version_dependencies): Adjust for removal
347         of output_bfd from struct elf_find_verdep_info.
348         (_bfd_elf_link_assign_sym_version): Similarly adjust to use
349         struct elf_info_failed.
350         (bfd_elf_size_dynamic_sections): Adjust.
351
352 2009-01-22  Alan Modra  <amodra@bigpond.net.au>
353
354         PR 6832
355         * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
356         after comp_unit_find_line call.
357
358 2009-01-21  Nick Clifton  <nickc@redhat.com>
359
360         PR 9769
361         * vmsutil.c (vms_file_stats_name): Remove use of unsupported
362         tm_gmtoff field in struct tm.
363
364 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
365
366         * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
367         * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
368         sections in soft-icache lines unless non_ia_text.  Don't add
369         rodata if doing so would exceed line size.
370
371 2009-01-19  Hans-Peter Nilsson  <hp@axis.com>
372
373         * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
374         types than bfd_link_hash_indirect, before early return, call
375         _bfd_elf_link_hash_copy_indirect.
376
377 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
378
379         * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
380         * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
381         * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
382         (elf_backend_obj_attrs_order): New define.
383         * elfxx-target.h (elf_backend_obj_attrs_order): New define.
384         (elfNN_bed): Add elf_backend_obj_attrs_order.
385
386 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
387
388         * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
389         (obj_attr_size): Likewise.
390         (write_obj_attribute): Likewise.
391         (_bfd_elf_copy_obj_attributes): Likewise.
392         (_bfd_elf_parse_attributes): Likewise.
393         * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
394         (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
395         (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
396         (ATTR_TYPE_HAS_NO_DEFAULT): New define.
397         * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
398         with macros.
399
400 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
401
402         * elf-attrs.c (is_default_attr): Support defaultless attributes.
403         (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
404         (bfd_elf_add_obj_attr_string): Likewise.
405         (bfd_elf_add_obj_attr_int_string): Likewise.
406         (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
407         * elf-bfd.h (struct obj_attribute): Document new flag bit.
408         * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
409         Tag_nodefaults has no default value.
410         (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
411         comment to reflect the new state.
412
413 2009-01-19  Alan Modra  <amodra@bigpond.net.au>
414
415         PR 9695
416         * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
417         (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
418         (adjust_z_magix): Delete dead code handling QMAGIC.
419
420 2009-01-16  Kai Tietz  <kai.tietz@onevision.com>
421
422         * coffcode.h (styp_to_sec_flags): Correct interpretation of
423         IMAGE_SCN_MEM_DISCARDABLE.
424
425 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
426
427         * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
428         SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
429         * configure.in (commonbfdlib): Delete.
430         (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
431         (SHARED_LIBADD): Rename from WIN32LIBADD.  Add pic libiberty if such
432         is available, not just for linux.
433         * po/SRC-POTFILES.in: Regenerate.
434         * Makefile.in: Regenerate.
435         * configure: Regenerate.
436
437 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
438             Julian Brown   <julian@codesourcery.com>
439
440         * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
441         ARM attributes in ABI 2.07.
442         * elf32-arm.c (get_secondary_compatible_arch): New function.
443         (set_secondary_compatible_arch): New function.
444         (tag_cpu_arch_combine): New function.
445         (elf32_arm_copy_one_eabi_other_attribute): Delete function.
446         (elf32_arm_copy_eabi_other_attribute_list): Delete function.
447         (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
448         make it fit with order_01243.
449         Add support for Tag_also_compatible_with,
450         Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
451         Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
452         Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
453         Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
454         Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
455         Tag_VFP_arch and Tag_ABI_FP_16bit_format.
456         Rework the way unknown attributes are handled.
457         Defer errors until all attributes have been processed.
458
459 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
460
461         * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
462         bfd_elf_add_obj_attr_int_string.
463         Read Tag_compatibility from its new location in the attribute array,
464         rather than the attribute list.
465         (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
466         bfd_elf_add_obj_attr_int_string.
467         (_bfd_elf_parse_attributes): Likewise.
468         (_bfd_elf_merge_object_attributes): There's now only one
469         Tag_compatibility, and it's in the array, not the list.
470         * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
471         Tag_compatibility.
472         (bfd_elf_add_obj_attr_compat): Rename to
473         bfd_elf_add_obj_attr_int_string.
474         (bfd_elf_add_proc_attr_compat): Rename to
475         bfd_elf_add_proc_attr_int_string.
476         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
477         Tag_compatibility.
478
479 2009-01-15  Douglas B Rupp  <rupp@gnat.com>
480
481         * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
482         (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
483         (vmsutil.lo): Add dependency rule.
484         * Makefile.in: Regenerate.
485         * config.bfd (ia64*-*-*vms*): Add case.
486         * configure.in (bfd_elf64_ia64_vms_vec): Add case.
487         * configure: Regenerate.
488         * vmsutil.c: New file.
489         * vmsutil.h: New file.
490         * elf-bfd.h (struct bfd_elf_special_section): Change type of
491         attr to bfd_vma.
492         * elfxx-ia64.c (elfNN_vms_post_process_headers,
493         elfNN_vms_section_processing, elfNN_vms_final_write_processing,
494         elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
495         elfNN_vms_object_p): New functions
496         * targets.c (bfd_elf64_ia64_vms_vec): New target.
497
498 2009-01-14  H.J. Lu  <hongjiu.lu@intel.com>
499
500         PR ld/9727
501         * elflink.c (elf_gc_sweep): Exclude the group section if the
502         first member of the section group is excluded.
503
504 2009-01-14  Alan Modra  <amodra@bigpond.net.au>
505
506         PR 9735
507         * syms.c (_bfd_stab_section_find_nearest_line): Don't free
508         saved filename, use bfd_alloc rather than bfd_malloc for it.
509
510 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
511
512         * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
513
514 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
515
516         * elf32-spu.c (remove_cycles): Always set call->max_depth.
517
518 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
519
520         * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
521
522 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
523
524         * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
525         num_lines_log2.
526         (struct got_entry): Add br_addr.
527         (struct call_info): Add priority.
528         (struct function_info): Add lr_store and sp_adjust.
529         (spu_elf_setup): Init line_size_log2 and num_lines_log2.
530         (spu_elf_find_overlays): For soft-icache, mark any section within cache
531         area as an overlay, and check that no other overlays exist.  Look up
532         icache overlay manager entry sym.
533         (BRA_STUBS, BRA, BRASL): Define.
534         (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
535         (needs_ovl_stub): Adjust for soft-icache.  Return priority encoded
536         in branch insn.
537         (count_stub, build_stub): Support soft-icache.
538         (build_spuear_stubs, process_stubs): Adjust build_stub call.
539         (spu_elf_size_stubs): Size soft-icache stubs.
540         (overlay_index): New function.
541         (spu_elf_build_stubs): Make static.  Support soft-icache.
542         (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
543         (find_function_stack_adjust): Save lr store and stack adjust insn
544         offsets.
545         (maybe_insert_function): Adjust find_function_stack_adjust call.
546         (mark_functions_via_relocs): Retrieve priority.
547         (remove_cycles): Only warn about pruned arcs when stack_analysis.
548         (sort_calls): Sort by priority first.
549         (mark_overlay_section): Ignore .ovl.init.
550         (sum_stack): Only print when stack_analysis.
551         (print_one_overlay_section): New function, extracted from..
552         (spu_elf_auto_overlay): ..here.  Support soft-icache overlays.
553         (spu_elf_stack_analysis): Only print when htab->stack_analysis.
554         (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
555         analysis.  Call spu_elf_build_stubs.
556         (spu_elf_relocate_section): For soft-icache encode overlay index
557         into addresses.
558         (spu_elf_output_symbol_hook): Support soft-icache.
559         (spu_elf_modify_program_headers: Likewise.
560
561         * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis.  Rename
562         num_regions to num_lines.  Add line_size and max_branch.
563         (enum _ovly_flavour): Add ovly_soft_icache.
564         (spu_elf_build_stubs): Delete.
565
566 2009-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
567
568         * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
569         relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
570
571 2009-01-07  Hans-Peter Nilsson  <hp@axis.com>
572
573         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
574         <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
575         the program, the known offset starts at the negative size of the
576         TLS section.
577         <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
578         Similar.
579
580 2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
581
582         * config.bfd: Add lm32-*-rtems*.
583
584 2009-01-03  H.J. Lu  <hongjiu.lu@intel.com>
585
586         * coff-ppc.c: Add 2009 to Copyright.
587         * elf32-cris.c: Likewise.
588         * elflink.c: Likewise.
589
590 2009-01-03  Hans-Peter Nilsson  <hp@axis.com>
591
592         * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
593         gotplt_index to rela_plt_index.  Adjust for R_CRIS_DTPMOD entry.
594
595 2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
596
597         PR ld/9679
598         * elflink.c (elf_merge_st_other): New.
599         (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
600         hide them if needed.
601         (elf_link_add_object_symbols): Updated.
602
603 2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
604
605         PR ld/9676
606         * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
607         ref_dynamic and dynamic_def fields when setting def_regular
608         to 1.
609
610 2009-01-02  Curtis Mackie  <curtmackevo@gmail.com>
611
612         PR 9682
613         * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
614         literal.
615
616 For older changes see ChangeLog-2008
617 \f
618 Local Variables:
619 mode: change-log
620 left-margin: 8
621 fill-column: 74
622 version-control: never
623 End: