include/
[external/binutils.git] / bfd / ChangeLog
1 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
2
3         * elf32-m68hc1x.c: Include alloca-conf.h.
4         * xsym.c: Likewise.
5         * elf64-hppa.c: Likewise.  Remove existing #if's handling alloca.
6         * som.c: Likewise.
7         * Makefile.am: Run "make dep-am".
8         * Makefile.in: Regenerate.
9
10 2009-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
11
12         * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
13
14 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
15
16         * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
17         Add compact_stub.
18         (emum _ovly_flavour): Delete ovly_compact, ovly_none.
19         * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
20         ovly_return fields with ovly_entry[2].  Adjust all users.
21         (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
22         when soft-icache.
23         (spu_elf_build_stubs): Likewise.
24         (ovl_stub_size): Change arg to spu_elf_params pointer.  Adjust for
25         ovly_flavour changes.  Update all callers.
26         (ovl_stub_size_log2): New function.
27         (build_stub): Handle compact icache stubs.  Use different manager
28         entry point for stubs in non-icache area.
29         (spu_elf_size_stubs): Don't allocate space for indirect branch
30         descriptors.
31         (spu_elf_build_stubs): And don't built them.
32
33 2009-03-16  Andrew Stubbs  <ams@codesourcery.com>
34
35         * dwarf2.c (read_section): Always use rawsize, if available.
36
37 2009-03-16  Alan Modra  <amodra@bigpond.net.au>
38
39         * simple.c (bfd_simple_get_relocated_section_contents): Use larger
40         of rawsize and size for buffer.
41
42 2009-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
43
44         * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
45         parameter just because fixed sections fit into local store.
46         (spu_elf_auto_overlay): Do not declare as "noreturn".  Skip
47         generating overlays if fixed sections plus reserved stack
48         and heap space fit into local store.
49
50 2009-03-15  Alan Modra  <amodra@bigpond.net.au>
51
52         * elf32-spu.c (build_stub): Correct icache set_id.
53         (spu_elf_relocate_section): Likewise.
54
55 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
56
57         * xcofflink.c (xcoff_link_check_archive_element): Only free the
58         symbol table if it was created by the current call.
59
60 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
61
62         * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
63         class XMC_DS rather than XMC_UA.
64
65 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
66
67         * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
68         bfd_boolean export_defineds parameter with an unsigned int
69         auto_export_flags parameter.
70         * bfd-in2.h: Regenerate.
71         * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
72         split out from xcoff_build_ldsyms.
73         (xcoff_covered_by_expall_p): New function.
74         (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
75         but with extra code to handle -bexpfull and -bexpall.
76         (xcoff_mark_auto_exports): New function.
77         (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
78         a function should be automatically exported.
79         (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
80         parameter with an auto_export_flags parameter.  Update ldinfo
81         accordingly.  Use xcoff_mark_auto_exports to mark all automatically-
82         exported symbols.
83
84 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
85
86         * xcofflink.c (xcoff_mark_symbol_by_name): New function.
87         (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
88         init and fini functions.  Do garbage collection for objects
89         without an entry point too.
90
91 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
92
93         * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
94         check whether a symbol has csect information.
95         (coff_print_aux): Likewise.
96         * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
97         information for C_AIX_WEAKEXT too.
98         (_bfd_xcoff_swap_aux_out): Likewise.
99         (xcoff_reloc_type_br): Handle defweak symbols too.
100         * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
101         information for C_AIX_WEAKEXT too.
102         (_bfd_xcoff64_swap_aux_out): Likewise.
103         (xcoff64_reloc_type_br): Handle defweak symbols too.
104         * coffgen.c (coff_print_symbol): Handle auxillary function
105         information for C_AIX_WEAKEXT too.
106         * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
107         instead of BSF_GLOBAL if the L_WEAK flag is set.
108         (xcoff_dynamic_definition_p): New function.
109         (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
110         defines h.  Don't change h if ldsym isn't the definition.  Otherwise,
111         always take the symbol class from the ldsym.  Use weak bfd symbol
112         types for weak ldsyms.
113         (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
114         Fix the check for whether a definition is from a shared object.
115         Allow redefinitions of weak symbols.
116         (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
117         (xcoff_keep_symbol_p): Likewise.
118         (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
119         (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
120         Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
121         but mark them as L_WEAK.
122         (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
123         instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
124
125 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
126
127         * xcofflink.c (xcoff_mark): When walking the relocations,
128         only mark the target symbol or the target section, not both.
129         (xcoff_final_definition_p): New function.
130         (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
131         symbol is a valid definition of the associated output symbol.
132         Use XCOFF_ALLOCATED to stop the same hash table entry having
133         two output symbols.
134         (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
135         keeping a symbol.
136         (xcoff_link_input_bfd): Use xcoff_final_definition_p.
137
138 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
139
140         * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
141         symbols as XMC_XO.
142
143 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
144
145         * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
146         * libcoff.h: Regenerate.
147         * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
148         line-number counts in the bfd's lineno_counts field.
149         Don't keep per-csect line-number counts.
150         (xcoff_sweep): Don't update per-csect line-number counts.
151         (bfd_xcoff_size_dynamic_sections): Count the number of line-number
152         entries in each output section.
153         (xcoff_link_input_bfd): Get the number of line numbers from
154         the bfd's lineno_counts field, rather than recalculating it
155         from scratch.  Fix the range check when updating C_BINCL and
156         C_EINCL symbols.
157         (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
158         here.  Don't expect csects to have line-number counts.
159
160 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
161
162         * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
163         * libcoff.h: Regenerate.
164         * xcofflink.c (xcoff_keep_symbol_p): New function, using the
165         "skip" logic from xcoff_link_input_bfd.
166         (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
167         objects in a dynamic link, rather than checking whether csectpp
168         is null.  Always allocate debug_index for other objects,
169         and always go through the loop.  Update the type of debug_index
170         after the change above.  Read the auxillary csect information
171         and use xcoff_keep_symbol_p to decide whether a symbol should
172         be kept.  Set its debug_index to -2 if not.
173         (xcoff_link_input_bfd): Update the type of debug_index after
174         the change above and always expect it to be nonnull.  Use it to
175         test whether a symbol should be stripped, rather than making the
176         decision here.  Postpone all symbol creation to the second pass.
177
178 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
179
180         * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
181         creating a descriptor.
182         (xcoff_sweep): Don't mark toc_section unless it's needed.
183         (bfd_xcoff_size_dynamic_sections): Skip the toc_section
184         when marking every bfd.
185         (xcoff_link_input_bfd): Skip all TOC anchors.
186         (xcoff_toc_section_p, xcoff_find_tc0): New functions.
187         (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
188         to -1; call xcoff_find_tc0 instead.
189
190 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
191
192         * libcoff-in.h (xcoff_section_tdata): Update commentary.
193         * libcoff.h: Regenerate.
194         * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
195         symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
196         the previous symbol's csect.  Treat last_symndx as an inclusive value
197         and simplify its handling.
198         (xcoff_mark): Treat last_symndx as an inclusive value.  Only mark
199         symbols with the right csect.  Don't mark rsec when processing
200         relocations against undefined or absolute sections.  
201         (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
202         of bfd_und_section_ptr.
203         (xcoff_link_input_bfd): Likewise.
204
205 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
206
207         * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
208         against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
209         flag is set.  Assert that all undefined symbols are either
210         imported or defined by a dynamic object.
211         * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
212         * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
213         handling to all relocations.  Only set XCOFF_CALLED for function
214         symbols.
215         (xcoff_find_function): New function, split out from...
216         (bfd_xcoff_export_symbol) ...here.
217         (xcoff_set_import_path): New function, split out from...
218         (bfd_xcoff_import_symbol): ...here.  Remove assertion for old
219         meaning of XCOFF_CALLED.
220         (xcoff_mark_symbol): If we mark an undefined and unimported
221         symbol, find some way of defining it.  If the symbol is a function
222         descriptor, fill in its definition automatically.  If the symbol
223         is a function, mark its descriptor and allocate room for global
224         linkage code.  Otherwise mark the symbol as implicitly imported.
225         Move the code for creating function descriptors from...
226         (xcoff_build_ldsyms): ...here.  Use XCOFF_WAS_UNDEFINED to 
227         check for symbols that were implicitly defined.
228         (xcoff_mark): Don't count any dynamic relocations against
229         function symbols.
230         (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
231         in the xcoff link info.
232         (xcoff_link_input_bfd): Remove handling of undefined and
233         unexported symbols.
234
235 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
236
237         * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
238         if the target is absolute.  Fix comment typo.
239         (xcoff_ppc_relocate_section): Remove FIXME.
240         * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
241         if the target is absolute.
242
243 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
244
245         * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
246         R_POS and R_NEG relocations against absolute symbols to the
247         .loader section.
248
249 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
250
251         * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
252         to 2 for bfd_mach_ppc_620.
253
254 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
255
256         * config.bfd: Treat AIX 6+ in the same way as AIX 5.
257         * configure.in: Likewise.
258         * configure: Regenerate.
259
260 2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>
261
262         PR binutils/9945
263         * elf.c (assign_section_numbers): Generate symbol table if there
264         is any relocation in output.
265         (_bfd_elf_compute_section_file_positions): Likewise.
266
267 2009-03-13  Nick Clifton  <nickc@redhat.com>
268
269         PR 9934
270         * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
271         * elflink.c (elf_link_read_relocs_from_section): Use
272         NUM_SHDR_ENTRIES.  Gracefully handle the case where there are
273         relocs but no symbol table.
274         * elf32-arm.c (elf32_arm_check_relocs): Likewise.
275
276 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
277
278         PR ld/9938
279         * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
280         to check ___tls_get_addr.
281
282         * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
283         strncmp to check __tls_get_addr.
284
285 2009-03-12  Andrew Stubbs  <ams@codesourcery.com>
286
287         * dwarf2.c (read_section): Always check the offset, even when the
288         section has been read before.
289
290 2009-03-11  H.J. Lu  <hongjiu.lu@intel.com>
291
292         * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
293         comments.
294
295 2009-03-11  Chris Demetriou  <cgd@google.com>
296
297         * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
298         * bfd-in2.h: Regenerate.
299         * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
300         flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
301         mode.
302         (bsd_write_armap): Likewise.
303         (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
304         flag is set, do nothing.
305         (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
306         for timestamp.
307
308 2009-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
309
310         * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
311         used to update stack pointer.
312
313 2009-03-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
314
315         PR binutils/9921
316         * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
317         for unknown symbols in absolute section.
318
319 2009-03-06  Nick Clifton  <nickc@redhat.com>
320
321         * po/es.po: Updated Spanish translation.
322
323 2009-03-05  Christophe Lyon  <christophe.lyon@st.com>
324
325         * elf32-arm.c (group_sections): Take next section size into
326         account before accepting to group it.
327
328 2009-03-05  Christophe Lyon  <christophe.lyon@st.com>
329
330         * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
331         PLT entries.
332         (elf32_arm_final_link_relocate): Likewise.
333
334 2009-03-05  Moritz Kroll  <Moritz.Kroll@gmx.de>
335
336         PR 9923
337         * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
338
339 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
340
341         * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
342         * section.c (struct bfd_section): Add has_tls_get_addr_call.
343         (BFD_FAKE_SECTION): Init new flag.
344         * ecoff.c (bfd_debug_section): Likewise.
345         * bfd-in2.h: Regenerate.
346         * libbfd.h: Regenerate.
347         * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
348         (ppc_elf_reloc_type_lookup): Handle new relocs.
349         (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
350         without marker relocs.
351         (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
352         if section has no old-style calls.
353         (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
354         Don't try to optimize new-style __tls_get_addr call when handling
355         arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
356         relocs.
357         * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
358         (ppc64_elf_reloc_type_lookup): Handle new relocs.
359         (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
360         without marker relocs.
361         (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
362         if section has no old-style calls.  Set toc_ref for new relocs as
363         appropriate.
364         (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
365         Don't try to optimize new-style __tls_get_addr call when handling
366         arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
367         relocs.
368
369 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
370
371         PR 6768
372         * configure.in: Test for ld --as-needed support.  Link shared
373         libbfd against libm.
374         * configure: Regenerate.
375
376 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
377
378         * Makefile.am: Run "make dep-am".
379         * Makefile.in: Regenerate.
380
381 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
382
383         * elf32-score7.c: New file.
384         * elf32-score.h: New file.
385         * elf32-score.c: Add code to support score 7.  Set score7 as the
386         default.
387         * cpu-score.c: Add score7 architecure.
388         (compatibile): New function.
389         * Makefile.am: Add rules for building elf32-score7 object.
390         * Makefile.in: Regenerate.
391         * configure.in: Add elf32-score7 object to score vectors.
392         * configure: Regenerate.
393         * reloc.c: Add score7 relocs.
394         * archures.c: Add score3 and score7 machine numbers.
395         * bfd-in2.h: Regenerate.
396         * libbfd.h: Regenerate.
397
398 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
399
400         * configure: Regenerate.
401
402 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
403
404         * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
405         (elf32_hppa_check_relocs): Use it.
406
407         * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
408         elf64-hppa.c.
409         (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
410         (elf_hppa_remark_useless_dynamic_symbols): Likewise.
411         (elf_hppa_is_dynamic_loader_symbol): Likewise.
412         (elf_hppa_record_segment_addrs): Likewise.
413         (elf_hppa_final_link): Likewise.
414         (elf_hppa_relocate_insn): Likewise.
415         (elf_hppa_final_link_relocate): Likewise.
416         (elf64_hppa_relocate_section): Likewise.
417         * elf64-hppa.c: Insert above.
418
419 2009-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
420
421         * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
422         (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
423         (elf_hppa_relocate_section): Likewise.
424         * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
425         from struct elf_link_hash_entry.  Add count field.
426         (struct elf64_hppa_dyn_hash_table): Delete.
427         (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
428         (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
429         (hppa_elf_hash_entry, eh_name): Define.
430         (elf64_hppa_new_dyn_hash_entry): Delete.
431         (elf64_hppa_dyn_hash_lookup): Delete.
432         (elf64_hppa_dyn_hash_traverse): Delete.
433         (get_dyn_name): Delete.
434         (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
435         of struct elf64_hppa_dyn_hash_entry *.
436         (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
437         allocate_global_data_plt, allocate_global_data_stub,
438         allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
439         Likewise.
440         (hppa64_link_hash_newfunc): New.
441         (elf64_hppa_hash_table_create): Rework.
442         (count_dyn_reloc): Likewise.
443         (hppa64_elf_local_refcounts): New.
444         (elf64_hppa_check_relocs): Rework using standard technique for recording
445         local DLT, PLT and OPD reference counts.
446         (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
447         elf_link_hash_entry *.
448         (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
449         allocate_global_data_plt, allocate_global_data_stub,
450         allocate_global_data_opd, allocate_dynrel_entries,
451         elf64_hppa_adjust_dynamic_symbol,
452         elf64_hppa_mark_milli_and_exported_functions): Likewise.
453         (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
454         Use hppa_link_hash_table.  Rework.
455         (elf64_hppa_link_output_symbol_hook): Rework.
456         (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
457         elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
458         elf64_hppa_finish_dynamic_sections): Likewise.
459
460 2009-02-26  Christophe Lyon  <christophe.lyon@st.com>
461
462         * elf32-arm.c (stub_reloc_type): Removed.
463         (insn_sequence): Renamed reloc_type field to r_type.
464         (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
465         (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
466         (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
467         (elf32_arm_stub_type): Add new enum entries for the new stubs.
468         (arm_stub_is_thumb): Catch new stubs.
469         (arm_type_of_stub): Handle new stubs.
470         (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
471         (bfd_elf32_arm_process_before_allocation): Remove useless
472         condition.
473
474 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
475
476         * elf.c (elf_find_function): Use is_function_type to check
477         function symbol.
478
479 2009-02-24  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
480
481         * xtensa-modules.c: Revert to previous version 1.11 due
482         to inadvertant commit.
483
484 2009-02-24  Sterling Augustine  <sterling@tensilica.com>
485
486         * elf32-xtensa.c (text_action_add): Separate test for action
487         type.  Break if saved action is ta_widen_insn at same offset.
488
489 2009-02-24  Daniel Jacobowitz  <dan@codesourcery.com>
490
491         * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
492         to elf32_arm_stub_long_branch_any_arm_pic.
493         (elf32_arm_stub_long_branch_any_thumb_pic): New.
494         (enum elf32_arm_stub_type, arm_type_of_stub)
495         (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
496         separately.
497
498 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
499
500         * elf32-arm.c (PREV_SEC): Update comment.
501         (group_sections): Rename argument to stubs_always_after_branch.
502         Reverse the list and place stubs at the end of input sections.
503         Undefine NEXT_SEC.
504         (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
505
506 2009-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
507
508         * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
509         Fix formatting.
510         (arm_size_one_stub): Remove unnecessary break.
511         (arm_map_one_stub): Fix formatting.  Return after BFD_FAIL.
512
513 2009-02-23  Christophe Lyon  <christophe.lyon@st.com>
514
515         * elf32-arm.c (stub_insn_type): New type.
516         (stub_reloc_type): Likewise.
517         (insn_sequence): Likewise.
518         (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
519         (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
520         (elf32_arm_stub_long_branch_thumb_only): Likewise.
521         (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
522         (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
523         (elf32_arm_stub_long_branch_any_any_pic): Likewise.
524         (elf32_arm_stub_hash_entry): Add new helper fields.
525         (stub_hash_newfunc): Initialize these new fields.
526         (arm_build_one_stub): Encode Arm and Thumb instructions separately
527         to take endianness into account.
528         (arm_size_one_stub): Compute size of stubs using insn_sequence.
529         (arm_map_one_stub): Code is now more generic, thanks to
530         insn_sequence.
531
532 2009-02-23  Christophe Lyon  <christophe.lyon@st.com>
533
534         * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
535         code.
536         (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
537         (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
538         BLX is not available. Fix typo in warning message. Add comments
539         and improve formatting.
540         (arm_build_one_stub): Adjust to new
541         elf32_arm_stub_long_branch_v4t_thumb_arm stub.
542         (arm_map_one_stub): Likewise.
543
544 2009-02-23  Tristan Gingold  <gingold@adacore.com>
545             Eric Botcazou  <ebotcazou@adacore.com>
546             Douglas B Rupp  <rupp@gnat.com>
547
548         * vms.h: Update copyright year, fix comments, reorder declarations.
549         (_bfd_save_vms_section): Remove the prototype.
550         (EGPS_S_V_NO_SHIFT): New constant.
551         (bfd_vms_set_section_flags): New prototype.
552         (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
553         constants.
554         (EGSY_S_W_FLAGS): Ditto.
555         (EGSY_S_V_QUAD_VAL): Ditto.
556         (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
557         (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
558         EGST_S_B_NAMLNG): Ditto.
559         (ESRF_S_B_NAMLNG): Ditto.
560         (ETIR_S_C_HEADER_SIZE): Ditto.
561         (EGPS_S_V_ALLOC_64BIT): Ditto.
562         (DST_S_C_EPILOG): Ditto.
563         (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
564         (DST_S_C_SRC_INCRLNUM_B): Ditto.
565         (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
566         (DST_S_L_PCLINE_UNSLONG): Ditto.
567         (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
568         (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
569         (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
570         (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
571         (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
572         (DST_S_B_SRC_UNSBYTE): Ditto.
573         (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
574         Add prototypes.
575         (vms_section, vms_reloc): Remove types.
576         (hdr_struc): Replaced by ...
577         (hdr_struct): ... new type.
578         (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
579         (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
580         (EMH_DATE_LENGTH): Ditto.
581         (eom_struc): Replaced by ...
582         (eom_struct): ... new type.
583         (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
584         (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
585         (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
586         (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
587         (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
588         (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
589         (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
590         (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
591         (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
592         (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
593         (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
594         (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
595         (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
596         (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
597         (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
598         (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
599         (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
600         (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
601         (DBG_S_C_DMT_PSECT_SIZE): Ditto.
602         (enum file_type_enum): New type.
603         (struct location_struct): Removed.
604         (struct fileinfo, struct srecinfo, struct lineinfo): New types.
605         (struct funcinfo, struct module): Ditto.
606         (struct vms_private_data_struct): Update fields.
607         (struct vms_section_data_struct): New type.
608
609         * vms.c: Update copyright year, fix comments,
610         Fix includes for DECC, add prototypes.
611         (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
612         some initializers.
613         Use flavour to set is_vax, location_stack is removed.
614         (struct pair): Declare.
615         (fill_section_ptr): Initialize variables at declaration.
616         Add guard to set SECTION_SYM flag, handlde und section.
617         (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
618         (_bfd_vms_slurp_object_records): New function, replaces previous
619         vms_object_p.
620         (vms_slurp_module): New function.
621         (vms_slurp_image): Ditto.
622         (vms_object_p): Complete rewrite.
623         (vms_mkobject): Use is_vax field to slect architecture.
624         (free_reloc_stream): New function.
625         (vms_convert_to_var): Ditto.
626         (vms_convert_to_var_1): Ditto.
627         (vms_convert_to_var_unix_filename): Ditto.
628         (vms_close_and_cleanup): Call free_reloc_stream, convert file to
629         VAR format on VMS.
630         (vms_new_section_hook): Set alignment to 0, allocate private data.
631         (vms_get_section_contents): Load content.
632         (vms_get_symbol_info): Handle undefined section.
633         (vms_find_nearest_line): Handle.
634         (alloc_reloc_stream): New function.
635         (vms_slurp_reloc_table): Ditto.
636         (vms_get_reloc_upper_bound): Make it real.
637         (vms_canonicalize_reloc): Do the real work.
638         (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
639         ALPHA_R_BOH.
640         (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
641         (vms_set_arch_mach): Check arch.
642         (vms_set_section_contents): Copy the content after allocation.
643         (vms_alpha_vec): Update object flags.
644
645         * vms-tir.c: Update copyright year, fix comments,
646         add prototypes for new functions.
647         (dst_define_location): New function.
648         (dst_restore_location): New function.
649         (dst_retrieve_location): New function.
650         (dst_check_allocation): New function.
651         (image_dump): Call dst_check_allocation.
652         (image_write_b): Ditto.
653         (image_write_w): Ditto.
654         (image_write_l): Ditto.
655         (image_write_q): Ditto.
656         (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
657         STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
658         CTL_STKDL.
659         Call error handler instead of abort if name is not known.
660         (etir_sta): Add quarter_relocs argument and set it.
661         Fix cast.
662         (etir_sto): Ditto.
663         (etir_opr): Ditto, return FALSE in case of error.
664         (etir_ctl): Add quarter_relocs argument and set it, fix cast.
665         Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
666         (etir_stc): Add quarter_relocs argument and set it, fix cast.
667         Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
668         Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
669         Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
670         Return FALSE in case of error.
671         (tir_sta): Change sign of psect.
672         (tir_ctl): Ditto.
673         (tir_cmd): Fix cast. Makes tir_table static const.
674         (etir_cmd): Add quarter_relocs argument, makes etir_table const,
675         add argument to explain.
676         (analyze_etir): Initialize maxptr, add quarter_relocs
677         declaration, move some declarations into inner scopes.
678         Handle quarter_relocs and STO_IMM.
679         (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
680         (_bfd_vms_slurp_relocs): New function.
681         (_bfd_vms_decode_relocs): New function.
682         (sto_imm): Rewritten.
683         (start_first_etbt_record): New function.
684         (start_another_etbt_record): Ditto.
685         (etir_output_check): Ditto.
686         (defer_reloc_p): Ditto.
687         (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
688         a for-loop.  Correctly deals with contents, deals with .vmsdebug,
689         rewritte relocations handling.
690         (_bfd_vms_write_tbt): Removed.
691         (_bfd_vms_write_dbg): Ditto.
692
693         * vms-misc.c: Update copyright year, Fix comments.
694         (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
695         (maybe_adjust_record_pointer_for_object): New function.
696         (_bfd_vms_get_first_record): New function, replaces ...
697         (_bfd_vms_get_record): ..  removed.
698         (_bfd_vms_get_object_record): New function.
699         (_bfd_vms_get_object_record): New function.
700         (vms_get_remaining_object_record): New function, replaces ...
701         (_bfd_vms_get_next_record): ... removed.
702         (add_new_contents): Removed.
703         (_bfd_save_vms_section): Removed.
704         (_bfd_get_vms_section): Removed.
705         (_bfd_vms_output_flush): Write in VAR format.
706         (new_symbol): Don't make UND section.
707
708         * vms-hdr.c: Update copyright year, update list of record handled.
709         (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
710         (_bfd_vms_write_hdr): Strip vms and unix patches,
711         add comments, truncate module name at 31 characters,
712         use constants instead of hard-coded value,
713         write BFD version instead of a fixed string.
714         (_bfd_vms_slurp_ihd): New function.
715         (_bfd_vms_slurp_isd): Ditto.
716         (_bfd_vms_slurp_ihs): Ditto.
717         (new_module): Ditto.
718         (parse_module): Ditto
719         (build_module_list): Ditto.
720         (module_find_nearest_line): Ditto.
721         (_bfd_vms_find_nearest_dst_line): Ditto.
722         (vms_slurp_debug): Ditto.
723         (_bfd_vms_slurp_dbg): Ditto.
724         (_bfd_vms_slurp_tbt): Ditto.
725         (_bfd_vms_write_dbg): Ditto.
726         (_bfd_vms_write_tbt): Ditto.
727
728         * vms-gsd.c: Update copyright year, update list of records handled.
729         (EVAX_LITERALS_NAME): New macro.
730         (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
731         (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
732         (register_universal_symbol): New function and prototype.
733         (_bfd_vms_slurp_gsd): Fix indentations and casts,
734         improve debug messages,
735         use constants instead of hard-coded value,
736         fix missing endianness conversion,
737         handle global symbol (SYMG).
738         (bfd_vms_set_section_flags): New function.
739         (_bfd_vms_write_gsd): Don't write .vmsdebug section,
740         handle section literals,
741         fix indentation,
742         handle section bfd and vms flags,
743         don't output LIB$INITIALIZE symbol,
744         fix handling of weak symbols,
745         fix evax vs vax procedure descriptor,
746         handle absolute symbols.
747
748         * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
749         BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
750
751         * makefile.vms (DEFS): Fix flags for VMS.
752
753         * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
754
755         * bfd-in2.h: Regenerated.
756         * libbfd.h: Regenerated.
757
758 2009-02-20  Cary Coutant  <ccoutant@google.com>
759
760         * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
761         in struct stat.
762
763 2009-18-02  Dave Korn  <dave.korn.cygwin@gmail.com>
764
765         PR gas/7059
766         * coffcode.h (coff_write_object_contents):  Don't let the string
767         table offset overflow the s_name field when using long section names.
768
769 2009-18-02  Dave Korn  <dave.korn.cygwin@gmail.com>
770
771         * coff-alpha.c (alpha_ecoff_backend_data):  Initialise fields which
772         control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
773         * coff-mips.c (mips_ecoff_backend_data):  Likewise.
774         * coff-rs6000.c (bfd_xcoff_backend_data):  Initialise fields which
775         control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
776         (bfd_pmac_xcoff_backend_data):  Likewise.
777         * coff64-rs6000.c (bfd_xcoff_backend_data):  Likewise.
778         (bfd_xcoff_aix5_backend_data):  Likewise.
779         (xcoff64_write_object_contents):  Delete unused long_section_names
780         local variable.
781         * coff-sh.c (bfd_coff_small_swap_table):  Initialise long section
782         name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
783         struct non-const.
784         * coffcode.h (documentation):  Update to describe long section names.
785         (COFFLONGSECTIONCATHELPER):  New helper macro.
786         (BLANKOR1TOODD):  Likewise.
787         (COFF_ENABLE_LONG_SECTION_NAMES):  Likewise.
788         (COFF_LONG_SECTION_NAMES_SETTER):  Likewise.
789         (COFF_DEFAULT_LONG_SECTION_NAMES):  Likewise.
790         (bfd_coff_set_long_section_names_allowed):  New function.
791         (bfd_coff_set_long_section_names_disallowed):  Likewise.
792         (struct bfd_coff_backend_data):  Add new backend hook function
793         pointer _bfd_coff_set_long_section_names.
794         (bfd_coff_set_long_section_names):  New backend hook.
795         (coff_write_object_contents):  Only generate long section names if
796         bfd_coff_long_section_names() indicates they are currently enabled.
797         (bfd_coff_std_swap_table):  Make non-const, and initialise long
798         section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
799         (ticoff0_swap_table):  Likewise to both.
800         (ticoff1_swap_table):  Again, likewise to both.
801         * coffgen.c (make_a_section_from_file):  Allow long section names
802         as inputs even if not currently allowed for outputs.
803         * ecoff.c (_bfd_ecoff_no_long_sections):  New function.
804         * efi-app-ia32.c (COFF_LONG_SECTION_NAMES):  Define to 0, not blank.
805         * efi-app-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
806         * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
807         * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
808         * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
809         * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
810         * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
811         * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
812         * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
813         * pei-arm.c (COFF_LONG_SECTION_NAMES):  Likewise.
814         * pei-i386.c (COFF_LONG_SECTION_NAMES):  Likewise.
815         * pei-mcore.c (COFF_LONG_SECTION_NAMES):  Likewise.
816         * pei-mips.c (COFF_LONG_SECTION_NAMES):  Likewise.
817         * pei-ppc.c (COFF_LONG_SECTION_NAMES):  Likewise.
818         * pei-sh.c (COFF_LONG_SECTION_NAMES):  Likewise.
819         * pei-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
820         * libcoff-in.h:  Update copyright year to cause updated copyright
821         year in generated libcoff.h, and fix typo.
822         * libcoff.h:  Regenerated.
823         * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES):  New macro.
824         (_bfd_ecoff_no_long_sections):  Add prototype.
825         * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES):  New macro.
826         * pe-mips.c (COFF_LONG_SECTION_NAMES):  Define empty if not already
827         defined by an including .c file.
828         * ticoff.h (ticoff0_swap_table):  Make non-const, and initialise
829         long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
830         (ticoff1_swap_table):  Likewise to both.
831
832 2009-02-18  Christophe Lyon  <christophe.lyon@st.com>
833
834         * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
835         stub. Catch default case error.
836         (arm_map_one_stub): Add missing Thumb mapping symbol.
837
838 2009-02-18  Bjoern Haase  <bjoern.m.haase@web.de>
839
840         PR 9841
841         * elf32-avr.c: Handle case where no local symbos exist correctly.
842
843 2009-02-16  Christophe Lyon  <christophe.lyon@st.com>
844
845         bfd/
846         * elf32-arm.c (arm_long_branch_stub,
847         arm_thumb_v4t_long_branch_stub,
848         arm_thumb_thumb_long_branch_stub,
849         arm_thumb_arm_v4t_long_branch_stub,
850         arm_thumb_arm_v4t_short_branch_stub,
851         arm_pic_long_branch_stub):
852         Renamed to elf32_arm_stub_long_branch_any_any,
853         elf32_arm_stub_long_branch_v4t_arm_thumb,
854         elf32_arm_stub_long_branch_thumb_only,
855         elf32_arm_stub_long_branch_v4t_thumb_arm,
856         elf32_arm_stub_short_branch_v4t_thumb_arm,
857         elf32_arm_stub_long_branch_any_any_pic.
858         (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
859         arm_thumb_thumb_stub_long_branch,
860         arm_thumb_arm_v4t_stub_long_branch,
861         arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
862         Renamed to arm_stub_long_branch_any_any,
863         arm_stub_long_branch_v4t_arm_thumb,
864         arm_stub_long_branch_thumb_only,
865         arm_stub_long_branch_v4t_thumb_arm,
866         arm_stub_short_branch_v4t_thumb_arm,
867         arm_stub_long_branch_any_any_pic.
868
869 2009-02-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
870
871         * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
872         in branch offset check.
873
874 2009-02-15  Alan Modra  <amodra@bigpond.net.au>
875
876         * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
877         add toc.symndx and toc.add.
878         (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
879         Set up toc.add.
880         (get_tls_mask): Add toc_addend param, set from toc.add.  Adjust all
881         callers.
882         (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
883         (branch_reloc_hash_match): New function, extracted from..
884         (ppc64_elf_tls_optimize): ..here.
885         (ppc64_elf_relocate_section): Properly set addends when optimizing
886         tls sequences.  Avoid unnecessary reading and writing of insns.
887         Only redo reloc when symbol changed.  Bypass symbol checks when
888         using tlsld_got.
889         * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
890         (branch_reloc_hash_match): New function, extracted from..
891         (ppc_elf_tls_optimize): ..here.
892         (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
893         Don't clear addend on zapped __tls_get_addr reloc.
894
895 2009-02-12  Nick Clifton  <nickc@redhat.com>
896
897         PR 9827
898         * elflink.c (bfd_elf_final_link): When counting the relocations,
899         if the header size has not been set yet then assume that it will
900         match the output section's reloc type.
901
902 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
903
904         * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
905         relocatable link.
906
907 2009-02-09  Alan Modra  <amodra@bigpond.net.au>
908
909         * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
910         (find_function): Likewise.
911         (pasted_function): Don't error if no prior function found.
912         (discover_functions): Revert 2008-12-10 change.  Extend first
913         function range to start of section.
914
915 2009-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
916
917         * elf64-hppa.c: Remove PARAMS macro.  Replace PTR with void *.  Convert
918         functions to C90.
919         * elf64-hppa.h: Likewise.
920
921 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
922
923         * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
924         .sbss handling.
925
926 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
927
928         * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
929         Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
930
931 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
932
933         * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
934         * archures.c (bfd_mach_mips_xlr): Define.
935         * bfd-in2.h: Regenerate.
936         * cpu-mips.c (I_xlr): Define.
937         (arch_info_struct): Add XLR entry.
938         * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
939         (mips_set_isa_flags): Handle bfd_mach_mips_xlr
940         (mips_mach_extensions): Add XLR entry.
941
942 2009-02-03  Eric B. Weddington  <eric.weddington@atmel.com>
943
944         * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
945
946 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
947
948         * configure.in: AC_SUBST pdfdir.
949         * Makefile.am: Add install-pdf, install-pdf-am 
950         and install-pdf-recursive targets. Define pdfdir.
951         * doc/Makefile.am: Define pdf__strip_dir. Add
952         install-pdf and install-pdf-am targets.
953         * po/Make-in: Add install-pdf target. 
954         * configure: Regenerate.
955         * Makefile.in: Regenerate
956         * doc/Makefile.in: Regenerate.
957
958 2009-02-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
959
960         * bfd-in2.h: Regenerate.
961         * elf32-m68k.c: Handle 2-slot GOT entries.  Rename variables and
962         fields from n_entries to n_slots where appropriate, update comments.
963         (HOWTO): Add TLS relocations.
964         (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
965         (enum elf_m68k_got_offset_size): New enum.
966         (struct elf_m68k_got_entry.type): Move field to ...
967         (struct elf_m68k_got_entry_key): ... here.  Update all uses.
968         (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
969         functions.
970         (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
971         functions.
972         (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
973         fields into n_entries array.  Update comments.
974         (elf_m68k_init_got): Simplify, update all uses.
975         (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
976         (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
977         GOT entries; update name, update all uses.
978         (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
979         (elf_m68k_get_got_entry): Update.
980         (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
981         simplify.
982         (elf_m68k_remove_got_entry_type): Simplify.
983         (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
984         (elf_m68k_can_merge_gots): Update.
985         (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
986         (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
987         GOT entries, simplify.
988         (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
989         (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
990         field, remove obsoleted local_n_entries field.
991         (elf_m68k_partition_multi_got_2): New static function.
992         (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
993         update.
994         (elf_m68k_remove_got_entry_type): Update.
995         (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
996         (elf_m68k_check_relocs): Handle TLS relocations.  Remove unnecessary 
997         update of sgot->size and srelgot->size.
998         (elf_m68k_gc_sweep_hook): Update.
999         (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
1000         (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
1001         TLS relocations.
1002         * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
1003         * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
1004
1005 2009-02-02  DJ Delorie  <dj@redhat.com>
1006
1007         * elf32-mep.c (config_names): Regenerate configuration.
1008
1009 2009-02-02  Alan Modra  <amodra@bigpond.net.au>
1010
1011         * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
1012         (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
1013         * elf.c (bfd_elf_get_str_section): Make static.
1014         (bfd_elf_find_section): Delete.
1015         * libbfd.h: Regenerate.
1016
1017 2009-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1018
1019         * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
1020         (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
1021
1022 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
1023
1024         * elflink.c (on_needed_list): New function.
1025         (elf_link_add_object_symbols): Link in --as-needed libs if they
1026         satisfy undefined symbols in other libs.
1027
1028 2009-01-30  Julian Brown  <julian@codesourcery.com>
1029
1030         * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
1031         EXEC_P or DYNAMIC flags, and skip sections which are being linked
1032         with --just-symbols (-R).
1033
1034 2009-01-29  Adam Nemet  <anemet@caviumnetworks.com>
1035
1036         * dwarf2.c (read_rangelist): Use read_address to read low_pc and
1037         high_pc in order to properly sign-extend VMAs.
1038
1039 2009-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
1040             Mark Shinwell  <shinwell@codesourcery.com>
1041             Catherine Moore  <clm@codesourcery.com>
1042
1043         * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
1044
1045 2009-01-28  Catherine Moore <clm@codesourcery.com>
1046
1047         * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
1048         SEC_LOAD for dynamic relocation sections.
1049
1050 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
1051
1052         * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
1053         (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
1054         the size of local TLS data.
1055
1056 2009-01-27  Andreas Schwab  <schwab@suse.de>
1057
1058         * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
1059         architectures in the archive.
1060
1061 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
1062
1063         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
1064         <R_CRIS_32_DTPREL>: Correct relocation value.
1065
1066         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
1067         <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
1068         symbols with non-default visibility.
1069
1070 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
1071
1072         * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
1073         describing the trampolines.
1074         (ppc_elf_relocate_section): Update relocs to describe the
1075         trampolines.
1076
1077 2009-01-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1078
1079         * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
1080         branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
1081         and R_PARISC_PCREL12F relocations.
1082
1083 2009-01-24  Alan Modra  <amodra@bigpond.net.au>
1084
1085         PR 6022
1086         * elflink.c (find_version_for_sym): New function split out from,
1087         but without export_dynamic test, ..
1088         (_bfd_elf_link_assign_sym_version): ..here.
1089         (_bfd_elf_export_symbol): Use it.
1090
1091 2009-01-23  Alan Modra  <amodra@bigpond.net.au>
1092
1093         * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
1094         (struct elf_info_failed, struct elf_find_verdep_info): Move to..
1095         * elflink.c: ..here, somewhat modified.
1096         * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
1097         _bfd_elf_link_find_version_dependencies,
1098         _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
1099         _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
1100         _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
1101         declare..
1102         * elflink.c: ..and make static here.
1103         (_bfd_elf_link_find_version_dependencies): Adjust for removal
1104         of output_bfd from struct elf_find_verdep_info.
1105         (_bfd_elf_link_assign_sym_version): Similarly adjust to use
1106         struct elf_info_failed.
1107         (bfd_elf_size_dynamic_sections): Adjust.
1108
1109 2009-01-22  Alan Modra  <amodra@bigpond.net.au>
1110
1111         PR 6832
1112         * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
1113         after comp_unit_find_line call.
1114
1115 2009-01-21  Nick Clifton  <nickc@redhat.com>
1116
1117         PR 9769
1118         * vmsutil.c (vms_file_stats_name): Remove use of unsupported
1119         tm_gmtoff field in struct tm.
1120
1121 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
1122
1123         * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
1124         * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
1125         sections in soft-icache lines unless non_ia_text.  Don't add
1126         rodata if doing so would exceed line size.
1127
1128 2009-01-19  Hans-Peter Nilsson  <hp@axis.com>
1129
1130         * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
1131         types than bfd_link_hash_indirect, before early return, call
1132         _bfd_elf_link_hash_copy_indirect.
1133
1134 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
1135
1136         * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
1137         * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
1138         * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
1139         (elf_backend_obj_attrs_order): New define.
1140         * elfxx-target.h (elf_backend_obj_attrs_order): New define.
1141         (elfNN_bed): Add elf_backend_obj_attrs_order.
1142
1143 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
1144
1145         * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
1146         (obj_attr_size): Likewise.
1147         (write_obj_attribute): Likewise.
1148         (_bfd_elf_copy_obj_attributes): Likewise.
1149         (_bfd_elf_parse_attributes): Likewise.
1150         * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
1151         (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
1152         (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
1153         (ATTR_TYPE_HAS_NO_DEFAULT): New define.
1154         * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
1155         with macros.
1156
1157 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
1158
1159         * elf-attrs.c (is_default_attr): Support defaultless attributes.
1160         (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
1161         (bfd_elf_add_obj_attr_string): Likewise.
1162         (bfd_elf_add_obj_attr_int_string): Likewise.
1163         (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
1164         * elf-bfd.h (struct obj_attribute): Document new flag bit.
1165         * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
1166         Tag_nodefaults has no default value.
1167         (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
1168         comment to reflect the new state.
1169
1170 2009-01-19  Alan Modra  <amodra@bigpond.net.au>
1171
1172         PR 9695
1173         * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
1174         (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
1175         (adjust_z_magix): Delete dead code handling QMAGIC.
1176
1177 2009-01-16  Kai Tietz  <kai.tietz@onevision.com>
1178
1179         * coffcode.h (styp_to_sec_flags): Correct interpretation of
1180         IMAGE_SCN_MEM_DISCARDABLE.
1181
1182 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
1183
1184         * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
1185         SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
1186         * configure.in (commonbfdlib): Delete.
1187         (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
1188         (SHARED_LIBADD): Rename from WIN32LIBADD.  Add pic libiberty if such
1189         is available, not just for linux.
1190         * po/SRC-POTFILES.in: Regenerate.
1191         * Makefile.in: Regenerate.
1192         * configure: Regenerate.
1193
1194 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
1195             Julian Brown   <julian@codesourcery.com>
1196
1197         * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
1198         ARM attributes in ABI 2.07.
1199         * elf32-arm.c (get_secondary_compatible_arch): New function.
1200         (set_secondary_compatible_arch): New function.
1201         (tag_cpu_arch_combine): New function.
1202         (elf32_arm_copy_one_eabi_other_attribute): Delete function.
1203         (elf32_arm_copy_eabi_other_attribute_list): Delete function.
1204         (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
1205         make it fit with order_01243.
1206         Add support for Tag_also_compatible_with,
1207         Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
1208         Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
1209         Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
1210         Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
1211         Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
1212         Tag_VFP_arch and Tag_ABI_FP_16bit_format.
1213         Rework the way unknown attributes are handled.
1214         Defer errors until all attributes have been processed.
1215
1216 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
1217
1218         * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
1219         bfd_elf_add_obj_attr_int_string.
1220         Read Tag_compatibility from its new location in the attribute array,
1221         rather than the attribute list.
1222         (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
1223         bfd_elf_add_obj_attr_int_string.
1224         (_bfd_elf_parse_attributes): Likewise.
1225         (_bfd_elf_merge_object_attributes): There's now only one
1226         Tag_compatibility, and it's in the array, not the list.
1227         * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
1228         Tag_compatibility.
1229         (bfd_elf_add_obj_attr_compat): Rename to
1230         bfd_elf_add_obj_attr_int_string.
1231         (bfd_elf_add_proc_attr_compat): Rename to
1232         bfd_elf_add_proc_attr_int_string.
1233         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
1234         Tag_compatibility.
1235
1236 2009-01-15  Douglas B Rupp  <rupp@gnat.com>
1237
1238         * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
1239         (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
1240         (vmsutil.lo): Add dependency rule.
1241         * Makefile.in: Regenerate.
1242         * config.bfd (ia64*-*-*vms*): Add case.
1243         * configure.in (bfd_elf64_ia64_vms_vec): Add case.
1244         * configure: Regenerate.
1245         * vmsutil.c: New file.
1246         * vmsutil.h: New file.
1247         * elf-bfd.h (struct bfd_elf_special_section): Change type of
1248         attr to bfd_vma.
1249         * elfxx-ia64.c (elfNN_vms_post_process_headers,
1250         elfNN_vms_section_processing, elfNN_vms_final_write_processing,
1251         elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
1252         elfNN_vms_object_p): New functions
1253         * targets.c (bfd_elf64_ia64_vms_vec): New target.
1254
1255 2009-01-14  H.J. Lu  <hongjiu.lu@intel.com>
1256
1257         PR ld/9727
1258         * elflink.c (elf_gc_sweep): Exclude the group section if the
1259         first member of the section group is excluded.
1260
1261 2009-01-14  Alan Modra  <amodra@bigpond.net.au>
1262
1263         PR 9735
1264         * syms.c (_bfd_stab_section_find_nearest_line): Don't free
1265         saved filename, use bfd_alloc rather than bfd_malloc for it.
1266
1267 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
1268
1269         * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
1270
1271 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
1272
1273         * elf32-spu.c (remove_cycles): Always set call->max_depth.
1274
1275 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
1276
1277         * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
1278
1279 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
1280
1281         * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
1282         num_lines_log2.
1283         (struct got_entry): Add br_addr.
1284         (struct call_info): Add priority.
1285         (struct function_info): Add lr_store and sp_adjust.
1286         (spu_elf_setup): Init line_size_log2 and num_lines_log2.
1287         (spu_elf_find_overlays): For soft-icache, mark any section within cache
1288         area as an overlay, and check that no other overlays exist.  Look up
1289         icache overlay manager entry sym.
1290         (BRA_STUBS, BRA, BRASL): Define.
1291         (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
1292         (needs_ovl_stub): Adjust for soft-icache.  Return priority encoded
1293         in branch insn.
1294         (count_stub, build_stub): Support soft-icache.
1295         (build_spuear_stubs, process_stubs): Adjust build_stub call.
1296         (spu_elf_size_stubs): Size soft-icache stubs.
1297         (overlay_index): New function.
1298         (spu_elf_build_stubs): Make static.  Support soft-icache.
1299         (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
1300         (find_function_stack_adjust): Save lr store and stack adjust insn
1301         offsets.
1302         (maybe_insert_function): Adjust find_function_stack_adjust call.
1303         (mark_functions_via_relocs): Retrieve priority.
1304         (remove_cycles): Only warn about pruned arcs when stack_analysis.
1305         (sort_calls): Sort by priority first.
1306         (mark_overlay_section): Ignore .ovl.init.
1307         (sum_stack): Only print when stack_analysis.
1308         (print_one_overlay_section): New function, extracted from..
1309         (spu_elf_auto_overlay): ..here.  Support soft-icache overlays.
1310         (spu_elf_stack_analysis): Only print when htab->stack_analysis.
1311         (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
1312         analysis.  Call spu_elf_build_stubs.
1313         (spu_elf_relocate_section): For soft-icache encode overlay index
1314         into addresses.
1315         (spu_elf_output_symbol_hook): Support soft-icache.
1316         (spu_elf_modify_program_headers: Likewise.
1317
1318         * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis.  Rename
1319         num_regions to num_lines.  Add line_size and max_branch.
1320         (enum _ovly_flavour): Add ovly_soft_icache.
1321         (spu_elf_build_stubs): Delete.
1322
1323 2009-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1324
1325         * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
1326         relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
1327
1328 2009-01-07  Hans-Peter Nilsson  <hp@axis.com>
1329
1330         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
1331         <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
1332         the program, the known offset starts at the negative size of the
1333         TLS section.
1334         <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
1335         Similar.
1336
1337 2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
1338
1339         * config.bfd: Add lm32-*-rtems*.
1340
1341 2009-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1342
1343         * coff-ppc.c: Add 2009 to Copyright.
1344         * elf32-cris.c: Likewise.
1345         * elflink.c: Likewise.
1346
1347 2009-01-03  Hans-Peter Nilsson  <hp@axis.com>
1348
1349         * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
1350         gotplt_index to rela_plt_index.  Adjust for R_CRIS_DTPMOD entry.
1351
1352 2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
1353
1354         PR ld/9679
1355         * elflink.c (elf_merge_st_other): New.
1356         (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
1357         hide them if needed.
1358         (elf_link_add_object_symbols): Updated.
1359
1360 2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
1361
1362         PR ld/9676
1363         * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
1364         ref_dynamic and dynamic_def fields when setting def_regular
1365         to 1.
1366
1367 2009-01-02  Curtis Mackie  <curtmackevo@gmail.com>
1368
1369         PR 9682
1370         * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
1371         literal.
1372
1373 For older changes see ChangeLog-2008
1374 \f
1375 Local Variables:
1376 mode: change-log
1377 left-margin: 8
1378 fill-column: 74
1379 version-control: never
1380 End: