bfd/
[platform/upstream/binutils.git] / bfd / ChangeLog
1 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
2
3         PR 6768
4         * configure.in: Test for ld --as-needed support.  Link shared
5         libbfd against libm.
6         * configure: Regenerate.
7
8 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
9
10         * Makefile.am: Run "make dep-am".
11         * Makefile.in: Regenerate.
12
13 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
14
15         * elf32-score7.c: New file.
16         * elf32-score.h: New file.
17         * elf32-score.c: Add code to support score 7.  Set score7 as the
18         default.
19         * cpu-score.c: Add score7 architecure.
20         (compatibile): New function.
21         * Makefile.am: Add rules for building elf32-score7 object.
22         * Makefile.in: Regenerate.
23         * configure.in: Add elf32-score7 object to score vectors.
24         * configure: Regenerate.
25         * reloc.c: Add score7 relocs.
26         * archures.c: Add score3 and score7 machine numbers.
27         * bfd-in2.h: Regenerate.
28         * libbfd.h: Regenerate.
29
30 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31
32         * configure: Regenerate.
33
34 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35
36         * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
37         (elf32_hppa_check_relocs): Use it.
38
39         * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
40         elf64-hppa.c.
41         (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
42         (elf_hppa_remark_useless_dynamic_symbols): Likewise.
43         (elf_hppa_is_dynamic_loader_symbol): Likewise.
44         (elf_hppa_record_segment_addrs): Likewise.
45         (elf_hppa_final_link): Likewise.
46         (elf_hppa_relocate_insn): Likewise.
47         (elf_hppa_final_link_relocate): Likewise.
48         (elf64_hppa_relocate_section): Likewise.
49         * elf64-hppa.c: Insert above.
50
51 2009-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
52
53         * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
54         (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
55         (elf_hppa_relocate_section): Likewise.
56         * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
57         from struct elf_link_hash_entry.  Add count field.
58         (struct elf64_hppa_dyn_hash_table): Delete.
59         (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
60         (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
61         (hppa_elf_hash_entry, eh_name): Define.
62         (elf64_hppa_new_dyn_hash_entry): Delete.
63         (elf64_hppa_dyn_hash_lookup): Delete.
64         (elf64_hppa_dyn_hash_traverse): Delete.
65         (get_dyn_name): Delete.
66         (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
67         of struct elf64_hppa_dyn_hash_entry *.
68         (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
69         allocate_global_data_plt, allocate_global_data_stub,
70         allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
71         Likewise.
72         (hppa64_link_hash_newfunc): New.
73         (elf64_hppa_hash_table_create): Rework.
74         (count_dyn_reloc): Likewise.
75         (hppa64_elf_local_refcounts): New.
76         (elf64_hppa_check_relocs): Rework using standard technique for recording
77         local DLT, PLT and OPD reference counts.
78         (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
79         elf_link_hash_entry *.
80         (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
81         allocate_global_data_plt, allocate_global_data_stub,
82         allocate_global_data_opd, allocate_dynrel_entries,
83         elf64_hppa_adjust_dynamic_symbol,
84         elf64_hppa_mark_milli_and_exported_functions): Likewise.
85         (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
86         Use hppa_link_hash_table.  Rework.
87         (elf64_hppa_link_output_symbol_hook): Rework.
88         (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
89         elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
90         elf64_hppa_finish_dynamic_sections): Likewise.
91
92 2009-02-26  Christophe Lyon  <christophe.lyon@st.com>
93
94         * elf32-arm.c (stub_reloc_type): Removed.
95         (insn_sequence): Renamed reloc_type field to r_type.
96         (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
97         (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
98         (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
99         (elf32_arm_stub_type): Add new enum entries for the new stubs.
100         (arm_stub_is_thumb): Catch new stubs.
101         (arm_type_of_stub): Handle new stubs.
102         (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
103         (bfd_elf32_arm_process_before_allocation): Remove useless
104         condition.
105
106 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
107
108         * elf.c (elf_find_function): Use is_function_type to check
109         function symbol.
110
111 2009-02-24  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
112
113         * xtensa-modules.c: Revert to previous version 1.11 due
114         to inadvertant commit.
115
116 2009-02-24  Sterling Augustine  <sterling@tensilica.com>
117
118         * elf32-xtensa.c (text_action_add): Separate test for action
119         type.  Break if saved action is ta_widen_insn at same offset.
120
121 2009-02-24  Daniel Jacobowitz  <dan@codesourcery.com>
122
123         * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
124         to elf32_arm_stub_long_branch_any_arm_pic.
125         (elf32_arm_stub_long_branch_any_thumb_pic): New.
126         (enum elf32_arm_stub_type, arm_type_of_stub)
127         (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
128         separately.
129
130 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
131
132         * elf32-arm.c (PREV_SEC): Update comment.
133         (group_sections): Rename argument to stubs_always_after_branch.
134         Reverse the list and place stubs at the end of input sections.
135         Undefine NEXT_SEC.
136         (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
137
138 2009-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
139
140         * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
141         Fix formatting.
142         (arm_size_one_stub): Remove unnecessary break.
143         (arm_map_one_stub): Fix formatting.  Return after BFD_FAIL.
144
145 2009-02-23  Christophe Lyon  <christophe.lyon@st.com>
146
147         * elf32-arm.c (stub_insn_type): New type.
148         (stub_reloc_type): Likewise.
149         (insn_sequence): Likewise.
150         (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
151         (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
152         (elf32_arm_stub_long_branch_thumb_only): Likewise.
153         (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
154         (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
155         (elf32_arm_stub_long_branch_any_any_pic): Likewise.
156         (elf32_arm_stub_hash_entry): Add new helper fields.
157         (stub_hash_newfunc): Initialize these new fields.
158         (arm_build_one_stub): Encode Arm and Thumb instructions separately
159         to take endianness into account.
160         (arm_size_one_stub): Compute size of stubs using insn_sequence.
161         (arm_map_one_stub): Code is now more generic, thanks to
162         insn_sequence.
163
164 2009-02-23  Christophe Lyon  <christophe.lyon@st.com>
165
166         * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
167         code.
168         (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
169         (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
170         BLX is not available. Fix typo in warning message. Add comments
171         and improve formatting.
172         (arm_build_one_stub): Adjust to new
173         elf32_arm_stub_long_branch_v4t_thumb_arm stub.
174         (arm_map_one_stub): Likewise.
175
176 2009-02-23  Tristan Gingold  <gingold@adacore.com>
177             Eric Botcazou  <ebotcazou@adacore.com>
178             Douglas B Rupp  <rupp@gnat.com>
179
180         * vms.h: Update copyright year, fix comments, reorder declarations.
181         (_bfd_save_vms_section): Remove the prototype.
182         (EGPS_S_V_NO_SHIFT): New constant.
183         (bfd_vms_set_section_flags): New prototype.
184         (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
185         constants.
186         (EGSY_S_W_FLAGS): Ditto.
187         (EGSY_S_V_QUAD_VAL): Ditto.
188         (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
189         (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
190         EGST_S_B_NAMLNG): Ditto.
191         (ESRF_S_B_NAMLNG): Ditto.
192         (ETIR_S_C_HEADER_SIZE): Ditto.
193         (EGPS_S_V_ALLOC_64BIT): Ditto.
194         (DST_S_C_EPILOG): Ditto.
195         (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
196         (DST_S_C_SRC_INCRLNUM_B): Ditto.
197         (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
198         (DST_S_L_PCLINE_UNSLONG): Ditto.
199         (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
200         (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
201         (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
202         (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
203         (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
204         (DST_S_B_SRC_UNSBYTE): Ditto.
205         (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
206         Add prototypes.
207         (vms_section, vms_reloc): Remove types.
208         (hdr_struc): Replaced by ...
209         (hdr_struct): ... new type.
210         (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
211         (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
212         (EMH_DATE_LENGTH): Ditto.
213         (eom_struc): Replaced by ...
214         (eom_struct): ... new type.
215         (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
216         (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
217         (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
218         (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
219         (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
220         (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
221         (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
222         (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
223         (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
224         (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
225         (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
226         (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
227         (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
228         (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
229         (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
230         (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
231         (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
232         (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
233         (DBG_S_C_DMT_PSECT_SIZE): Ditto.
234         (enum file_type_enum): New type.
235         (struct location_struct): Removed.
236         (struct fileinfo, struct srecinfo, struct lineinfo): New types.
237         (struct funcinfo, struct module): Ditto.
238         (struct vms_private_data_struct): Update fields.
239         (struct vms_section_data_struct): New type.
240
241         * vms.c: Update copyright year, fix comments,
242         Fix includes for DECC, add prototypes.
243         (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
244         some initializers.
245         Use flavour to set is_vax, location_stack is removed.
246         (struct pair): Declare.
247         (fill_section_ptr): Initialize variables at declaration.
248         Add guard to set SECTION_SYM flag, handlde und section.
249         (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
250         (_bfd_vms_slurp_object_records): New function, replaces previous
251         vms_object_p.
252         (vms_slurp_module): New function.
253         (vms_slurp_image): Ditto.
254         (vms_object_p): Complete rewrite.
255         (vms_mkobject): Use is_vax field to slect architecture.
256         (free_reloc_stream): New function.
257         (vms_convert_to_var): Ditto.
258         (vms_convert_to_var_1): Ditto.
259         (vms_convert_to_var_unix_filename): Ditto.
260         (vms_close_and_cleanup): Call free_reloc_stream, convert file to
261         VAR format on VMS.
262         (vms_new_section_hook): Set alignment to 0, allocate private data.
263         (vms_get_section_contents): Load content.
264         (vms_get_symbol_info): Handle undefined section.
265         (vms_find_nearest_line): Handle.
266         (alloc_reloc_stream): New function.
267         (vms_slurp_reloc_table): Ditto.
268         (vms_get_reloc_upper_bound): Make it real.
269         (vms_canonicalize_reloc): Do the real work.
270         (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
271         ALPHA_R_BOH.
272         (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
273         (vms_set_arch_mach): Check arch.
274         (vms_set_section_contents): Copy the content after allocation.
275         (vms_alpha_vec): Update object flags.
276
277         * vms-tir.c: Update copyright year, fix comments,
278         add prototypes for new functions.
279         (dst_define_location): New function.
280         (dst_restore_location): New function.
281         (dst_retrieve_location): New function.
282         (dst_check_allocation): New function.
283         (image_dump): Call dst_check_allocation.
284         (image_write_b): Ditto.
285         (image_write_w): Ditto.
286         (image_write_l): Ditto.
287         (image_write_q): Ditto.
288         (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
289         STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
290         CTL_STKDL.
291         Call error handler instead of abort if name is not known.
292         (etir_sta): Add quarter_relocs argument and set it.
293         Fix cast.
294         (etir_sto): Ditto.
295         (etir_opr): Ditto, return FALSE in case of error.
296         (etir_ctl): Add quarter_relocs argument and set it, fix cast.
297         Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
298         (etir_stc): Add quarter_relocs argument and set it, fix cast.
299         Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
300         Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
301         Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
302         Return FALSE in case of error.
303         (tir_sta): Change sign of psect.
304         (tir_ctl): Ditto.
305         (tir_cmd): Fix cast. Makes tir_table static const.
306         (etir_cmd): Add quarter_relocs argument, makes etir_table const,
307         add argument to explain.
308         (analyze_etir): Initialize maxptr, add quarter_relocs
309         declaration, move some declarations into inner scopes.
310         Handle quarter_relocs and STO_IMM.
311         (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
312         (_bfd_vms_slurp_relocs): New function.
313         (_bfd_vms_decode_relocs): New function.
314         (sto_imm): Rewritten.
315         (start_first_etbt_record): New function.
316         (start_another_etbt_record): Ditto.
317         (etir_output_check): Ditto.
318         (defer_reloc_p): Ditto.
319         (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
320         a for-loop.  Correctly deals with contents, deals with .vmsdebug,
321         rewritte relocations handling.
322         (_bfd_vms_write_tbt): Removed.
323         (_bfd_vms_write_dbg): Ditto.
324
325         * vms-misc.c: Update copyright year, Fix comments.
326         (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
327         (maybe_adjust_record_pointer_for_object): New function.
328         (_bfd_vms_get_first_record): New function, replaces ...
329         (_bfd_vms_get_record): ..  removed.
330         (_bfd_vms_get_object_record): New function.
331         (_bfd_vms_get_object_record): New function.
332         (vms_get_remaining_object_record): New function, replaces ...
333         (_bfd_vms_get_next_record): ... removed.
334         (add_new_contents): Removed.
335         (_bfd_save_vms_section): Removed.
336         (_bfd_get_vms_section): Removed.
337         (_bfd_vms_output_flush): Write in VAR format.
338         (new_symbol): Don't make UND section.
339
340         * vms-hdr.c: Update copyright year, update list of record handled.
341         (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
342         (_bfd_vms_write_hdr): Strip vms and unix patches,
343         add comments, truncate module name at 31 characters,
344         use constants instead of hard-coded value,
345         write BFD version instead of a fixed string.
346         (_bfd_vms_slurp_ihd): New function.
347         (_bfd_vms_slurp_isd): Ditto.
348         (_bfd_vms_slurp_ihs): Ditto.
349         (new_module): Ditto.
350         (parse_module): Ditto
351         (build_module_list): Ditto.
352         (module_find_nearest_line): Ditto.
353         (_bfd_vms_find_nearest_dst_line): Ditto.
354         (vms_slurp_debug): Ditto.
355         (_bfd_vms_slurp_dbg): Ditto.
356         (_bfd_vms_slurp_tbt): Ditto.
357         (_bfd_vms_write_dbg): Ditto.
358         (_bfd_vms_write_tbt): Ditto.
359
360         * vms-gsd.c: Update copyright year, update list of records handled.
361         (EVAX_LITERALS_NAME): New macro.
362         (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
363         (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
364         (register_universal_symbol): New function and prototype.
365         (_bfd_vms_slurp_gsd): Fix indentations and casts,
366         improve debug messages,
367         use constants instead of hard-coded value,
368         fix missing endianness conversion,
369         handle global symbol (SYMG).
370         (bfd_vms_set_section_flags): New function.
371         (_bfd_vms_write_gsd): Don't write .vmsdebug section,
372         handle section literals,
373         fix indentation,
374         handle section bfd and vms flags,
375         don't output LIB$INITIALIZE symbol,
376         fix handling of weak symbols,
377         fix evax vs vax procedure descriptor,
378         handle absolute symbols.
379
380         * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
381         BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
382
383         * makefile.vms (DEFS): Fix flags for VMS.
384
385         * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
386
387         * bfd-in2.h: Regenerated.
388         * libbfd.h: Regenerated.
389
390 2009-02-20  Cary Coutant  <ccoutant@google.com>
391
392         * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
393         in struct stat.
394
395 2009-18-02  Dave Korn  <dave.korn.cygwin@gmail.com>
396
397         PR gas/7059
398         * coffcode.h (coff_write_object_contents):  Don't let the string
399         table offset overflow the s_name field when using long section names.
400
401 2009-18-02  Dave Korn  <dave.korn.cygwin@gmail.com>
402
403         * coff-alpha.c (alpha_ecoff_backend_data):  Initialise fields which
404         control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
405         * coff-mips.c (mips_ecoff_backend_data):  Likewise.
406         * coff-rs6000.c (bfd_xcoff_backend_data):  Initialise fields which
407         control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
408         (bfd_pmac_xcoff_backend_data):  Likewise.
409         * coff64-rs6000.c (bfd_xcoff_backend_data):  Likewise.
410         (bfd_xcoff_aix5_backend_data):  Likewise.
411         (xcoff64_write_object_contents):  Delete unused long_section_names
412         local variable.
413         * coff-sh.c (bfd_coff_small_swap_table):  Initialise long section
414         name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
415         struct non-const.
416         * coffcode.h (documentation):  Update to describe long section names.
417         (COFFLONGSECTIONCATHELPER):  New helper macro.
418         (BLANKOR1TOODD):  Likewise.
419         (COFF_ENABLE_LONG_SECTION_NAMES):  Likewise.
420         (COFF_LONG_SECTION_NAMES_SETTER):  Likewise.
421         (COFF_DEFAULT_LONG_SECTION_NAMES):  Likewise.
422         (bfd_coff_set_long_section_names_allowed):  New function.
423         (bfd_coff_set_long_section_names_disallowed):  Likewise.
424         (struct bfd_coff_backend_data):  Add new backend hook function
425         pointer _bfd_coff_set_long_section_names.
426         (bfd_coff_set_long_section_names):  New backend hook.
427         (coff_write_object_contents):  Only generate long section names if
428         bfd_coff_long_section_names() indicates they are currently enabled.
429         (bfd_coff_std_swap_table):  Make non-const, and initialise long
430         section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
431         (ticoff0_swap_table):  Likewise to both.
432         (ticoff1_swap_table):  Again, likewise to both.
433         * coffgen.c (make_a_section_from_file):  Allow long section names
434         as inputs even if not currently allowed for outputs.
435         * ecoff.c (_bfd_ecoff_no_long_sections):  New function.
436         * efi-app-ia32.c (COFF_LONG_SECTION_NAMES):  Define to 0, not blank.
437         * efi-app-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
438         * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
439         * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
440         * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
441         * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
442         * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
443         * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
444         * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
445         * pei-arm.c (COFF_LONG_SECTION_NAMES):  Likewise.
446         * pei-i386.c (COFF_LONG_SECTION_NAMES):  Likewise.
447         * pei-mcore.c (COFF_LONG_SECTION_NAMES):  Likewise.
448         * pei-mips.c (COFF_LONG_SECTION_NAMES):  Likewise.
449         * pei-ppc.c (COFF_LONG_SECTION_NAMES):  Likewise.
450         * pei-sh.c (COFF_LONG_SECTION_NAMES):  Likewise.
451         * pei-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
452         * libcoff-in.h:  Update copyright year to cause updated copyright
453         year in generated libcoff.h, and fix typo.
454         * libcoff.h:  Regenerated.
455         * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES):  New macro.
456         (_bfd_ecoff_no_long_sections):  Add prototype.
457         * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES):  New macro.
458         * pe-mips.c (COFF_LONG_SECTION_NAMES):  Define empty if not already
459         defined by an including .c file.
460         * ticoff.h (ticoff0_swap_table):  Make non-const, and initialise
461         long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
462         (ticoff1_swap_table):  Likewise to both.
463
464 2009-02-18  Christophe Lyon  <christophe.lyon@st.com>
465
466         * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
467         stub. Catch default case error.
468         (arm_map_one_stub): Add missing Thumb mapping symbol.
469
470 2009-02-18  Bjoern Haase  <bjoern.m.haase@web.de>
471
472         PR 9841
473         * elf32-avr.c: Handle case where no local symbos exist correctly.
474
475 2009-02-16  Christophe Lyon  <christophe.lyon@st.com>
476
477         bfd/
478         * elf32-arm.c (arm_long_branch_stub,
479         arm_thumb_v4t_long_branch_stub,
480         arm_thumb_thumb_long_branch_stub,
481         arm_thumb_arm_v4t_long_branch_stub,
482         arm_thumb_arm_v4t_short_branch_stub,
483         arm_pic_long_branch_stub):
484         Renamed to elf32_arm_stub_long_branch_any_any,
485         elf32_arm_stub_long_branch_v4t_arm_thumb,
486         elf32_arm_stub_long_branch_thumb_only,
487         elf32_arm_stub_long_branch_v4t_thumb_arm,
488         elf32_arm_stub_short_branch_v4t_thumb_arm,
489         elf32_arm_stub_long_branch_any_any_pic.
490         (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
491         arm_thumb_thumb_stub_long_branch,
492         arm_thumb_arm_v4t_stub_long_branch,
493         arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
494         Renamed to arm_stub_long_branch_any_any,
495         arm_stub_long_branch_v4t_arm_thumb,
496         arm_stub_long_branch_thumb_only,
497         arm_stub_long_branch_v4t_thumb_arm,
498         arm_stub_short_branch_v4t_thumb_arm,
499         arm_stub_long_branch_any_any_pic.
500
501 2009-02-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
502
503         * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
504         in branch offset check.
505
506 2009-02-15  Alan Modra  <amodra@bigpond.net.au>
507
508         * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
509         add toc.symndx and toc.add.
510         (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
511         Set up toc.add.
512         (get_tls_mask): Add toc_addend param, set from toc.add.  Adjust all
513         callers.
514         (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
515         (branch_reloc_hash_match): New function, extracted from..
516         (ppc64_elf_tls_optimize): ..here.
517         (ppc64_elf_relocate_section): Properly set addends when optimizing
518         tls sequences.  Avoid unnecessary reading and writing of insns.
519         Only redo reloc when symbol changed.  Bypass symbol checks when
520         using tlsld_got.
521         * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
522         (branch_reloc_hash_match): New function, extracted from..
523         (ppc_elf_tls_optimize): ..here.
524         (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
525         Don't clear addend on zapped __tls_get_addr reloc.
526
527 2009-02-12  Nick Clifton  <nickc@redhat.com>
528
529         PR 9827
530         * elflink.c (bfd_elf_final_link): When counting the relocations,
531         if the header size has not been set yet then assume that it will
532         match the output section's reloc type.
533
534 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
535
536         * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
537         relocatable link.
538
539 2009-02-09  Alan Modra  <amodra@bigpond.net.au>
540
541         * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
542         (find_function): Likewise.
543         (pasted_function): Don't error if no prior function found.
544         (discover_functions): Revert 2008-12-10 change.  Extend first
545         function range to start of section.
546
547 2009-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
548
549         * elf64-hppa.c: Remove PARAMS macro.  Replace PTR with void *.  Convert
550         functions to C90.
551         * elf64-hppa.h: Likewise.
552
553 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
554
555         * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
556         .sbss handling.
557
558 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
559
560         * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
561         Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
562
563 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
564
565         * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
566         * archures.c (bfd_mach_mips_xlr): Define.
567         * bfd-in2.h: Regenerate.
568         * cpu-mips.c (I_xlr): Define.
569         (arch_info_struct): Add XLR entry.
570         * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
571         (mips_set_isa_flags): Handle bfd_mach_mips_xlr
572         (mips_mach_extensions): Add XLR entry.
573
574 2009-02-03  Eric B. Weddington  <eric.weddington@atmel.com>
575
576         * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
577
578 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
579
580         * configure.in: AC_SUBST pdfdir.
581         * Makefile.am: Add install-pdf, install-pdf-am 
582         and install-pdf-recursive targets. Define pdfdir.
583         * doc/Makefile.am: Define pdf__strip_dir. Add
584         install-pdf and install-pdf-am targets.
585         * po/Make-in: Add install-pdf target. 
586         * configure: Regenerate.
587         * Makefile.in: Regenerate
588         * doc/Makefile.in: Regenerate.
589
590 2009-02-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
591
592         * bfd-in2.h: Regenerate.
593         * elf32-m68k.c: Handle 2-slot GOT entries.  Rename variables and
594         fields from n_entries to n_slots where appropriate, update comments.
595         (HOWTO): Add TLS relocations.
596         (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
597         (enum elf_m68k_got_offset_size): New enum.
598         (struct elf_m68k_got_entry.type): Move field to ...
599         (struct elf_m68k_got_entry_key): ... here.  Update all uses.
600         (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
601         functions.
602         (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
603         functions.
604         (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
605         fields into n_entries array.  Update comments.
606         (elf_m68k_init_got): Simplify, update all uses.
607         (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
608         (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
609         GOT entries; update name, update all uses.
610         (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
611         (elf_m68k_get_got_entry): Update.
612         (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
613         simplify.
614         (elf_m68k_remove_got_entry_type): Simplify.
615         (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
616         (elf_m68k_can_merge_gots): Update.
617         (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
618         (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
619         GOT entries, simplify.
620         (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
621         (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
622         field, remove obsoleted local_n_entries field.
623         (elf_m68k_partition_multi_got_2): New static function.
624         (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
625         update.
626         (elf_m68k_remove_got_entry_type): Update.
627         (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
628         (elf_m68k_check_relocs): Handle TLS relocations.  Remove unnecessary 
629         update of sgot->size and srelgot->size.
630         (elf_m68k_gc_sweep_hook): Update.
631         (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
632         (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
633         TLS relocations.
634         * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
635         * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
636
637 2009-02-02  DJ Delorie  <dj@redhat.com>
638
639         * elf32-mep.c (config_names): Regenerate configuration.
640
641 2009-02-02  Alan Modra  <amodra@bigpond.net.au>
642
643         * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
644         (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
645         * elf.c (bfd_elf_get_str_section): Make static.
646         (bfd_elf_find_section): Delete.
647         * libbfd.h: Regenerate.
648
649 2009-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
650
651         * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
652         (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
653
654 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
655
656         * elflink.c (on_needed_list): New function.
657         (elf_link_add_object_symbols): Link in --as-needed libs if they
658         satisfy undefined symbols in other libs.
659
660 2009-01-30  Julian Brown  <julian@codesourcery.com>
661
662         * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
663         EXEC_P or DYNAMIC flags, and skip sections which are being linked
664         with --just-symbols (-R).
665
666 2009-01-29  Adam Nemet  <anemet@caviumnetworks.com>
667
668         * dwarf2.c (read_rangelist): Use read_address to read low_pc and
669         high_pc in order to properly sign-extend VMAs.
670
671 2009-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
672             Mark Shinwell  <shinwell@codesourcery.com>
673             Catherine Moore  <clm@codesourcery.com>
674
675         * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
676
677 2009-01-28  Catherine Moore <clm@codesourcery.com>
678
679         * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
680         SEC_LOAD for dynamic relocation sections.
681
682 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
683
684         * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
685         (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
686         the size of local TLS data.
687
688 2009-01-27  Andreas Schwab  <schwab@suse.de>
689
690         * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
691         architectures in the archive.
692
693 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
694
695         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
696         <R_CRIS_32_DTPREL>: Correct relocation value.
697
698         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
699         <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
700         symbols with non-default visibility.
701
702 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
703
704         * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
705         describing the trampolines.
706         (ppc_elf_relocate_section): Update relocs to describe the
707         trampolines.
708
709 2009-01-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
710
711         * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
712         branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
713         and R_PARISC_PCREL12F relocations.
714
715 2009-01-24  Alan Modra  <amodra@bigpond.net.au>
716
717         PR 6022
718         * elflink.c (find_version_for_sym): New function split out from,
719         but without export_dynamic test, ..
720         (_bfd_elf_link_assign_sym_version): ..here.
721         (_bfd_elf_export_symbol): Use it.
722
723 2009-01-23  Alan Modra  <amodra@bigpond.net.au>
724
725         * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
726         (struct elf_info_failed, struct elf_find_verdep_info): Move to..
727         * elflink.c: ..here, somewhat modified.
728         * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
729         _bfd_elf_link_find_version_dependencies,
730         _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
731         _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
732         _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
733         declare..
734         * elflink.c: ..and make static here.
735         (_bfd_elf_link_find_version_dependencies): Adjust for removal
736         of output_bfd from struct elf_find_verdep_info.
737         (_bfd_elf_link_assign_sym_version): Similarly adjust to use
738         struct elf_info_failed.
739         (bfd_elf_size_dynamic_sections): Adjust.
740
741 2009-01-22  Alan Modra  <amodra@bigpond.net.au>
742
743         PR 6832
744         * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
745         after comp_unit_find_line call.
746
747 2009-01-21  Nick Clifton  <nickc@redhat.com>
748
749         PR 9769
750         * vmsutil.c (vms_file_stats_name): Remove use of unsupported
751         tm_gmtoff field in struct tm.
752
753 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
754
755         * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
756         * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
757         sections in soft-icache lines unless non_ia_text.  Don't add
758         rodata if doing so would exceed line size.
759
760 2009-01-19  Hans-Peter Nilsson  <hp@axis.com>
761
762         * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
763         types than bfd_link_hash_indirect, before early return, call
764         _bfd_elf_link_hash_copy_indirect.
765
766 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
767
768         * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
769         * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
770         * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
771         (elf_backend_obj_attrs_order): New define.
772         * elfxx-target.h (elf_backend_obj_attrs_order): New define.
773         (elfNN_bed): Add elf_backend_obj_attrs_order.
774
775 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
776
777         * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
778         (obj_attr_size): Likewise.
779         (write_obj_attribute): Likewise.
780         (_bfd_elf_copy_obj_attributes): Likewise.
781         (_bfd_elf_parse_attributes): Likewise.
782         * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
783         (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
784         (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
785         (ATTR_TYPE_HAS_NO_DEFAULT): New define.
786         * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
787         with macros.
788
789 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
790
791         * elf-attrs.c (is_default_attr): Support defaultless attributes.
792         (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
793         (bfd_elf_add_obj_attr_string): Likewise.
794         (bfd_elf_add_obj_attr_int_string): Likewise.
795         (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
796         * elf-bfd.h (struct obj_attribute): Document new flag bit.
797         * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
798         Tag_nodefaults has no default value.
799         (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
800         comment to reflect the new state.
801
802 2009-01-19  Alan Modra  <amodra@bigpond.net.au>
803
804         PR 9695
805         * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
806         (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
807         (adjust_z_magix): Delete dead code handling QMAGIC.
808
809 2009-01-16  Kai Tietz  <kai.tietz@onevision.com>
810
811         * coffcode.h (styp_to_sec_flags): Correct interpretation of
812         IMAGE_SCN_MEM_DISCARDABLE.
813
814 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
815
816         * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
817         SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
818         * configure.in (commonbfdlib): Delete.
819         (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
820         (SHARED_LIBADD): Rename from WIN32LIBADD.  Add pic libiberty if such
821         is available, not just for linux.
822         * po/SRC-POTFILES.in: Regenerate.
823         * Makefile.in: Regenerate.
824         * configure: Regenerate.
825
826 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
827             Julian Brown   <julian@codesourcery.com>
828
829         * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
830         ARM attributes in ABI 2.07.
831         * elf32-arm.c (get_secondary_compatible_arch): New function.
832         (set_secondary_compatible_arch): New function.
833         (tag_cpu_arch_combine): New function.
834         (elf32_arm_copy_one_eabi_other_attribute): Delete function.
835         (elf32_arm_copy_eabi_other_attribute_list): Delete function.
836         (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
837         make it fit with order_01243.
838         Add support for Tag_also_compatible_with,
839         Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
840         Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
841         Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
842         Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
843         Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
844         Tag_VFP_arch and Tag_ABI_FP_16bit_format.
845         Rework the way unknown attributes are handled.
846         Defer errors until all attributes have been processed.
847
848 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
849
850         * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
851         bfd_elf_add_obj_attr_int_string.
852         Read Tag_compatibility from its new location in the attribute array,
853         rather than the attribute list.
854         (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
855         bfd_elf_add_obj_attr_int_string.
856         (_bfd_elf_parse_attributes): Likewise.
857         (_bfd_elf_merge_object_attributes): There's now only one
858         Tag_compatibility, and it's in the array, not the list.
859         * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
860         Tag_compatibility.
861         (bfd_elf_add_obj_attr_compat): Rename to
862         bfd_elf_add_obj_attr_int_string.
863         (bfd_elf_add_proc_attr_compat): Rename to
864         bfd_elf_add_proc_attr_int_string.
865         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
866         Tag_compatibility.
867
868 2009-01-15  Douglas B Rupp  <rupp@gnat.com>
869
870         * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
871         (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
872         (vmsutil.lo): Add dependency rule.
873         * Makefile.in: Regenerate.
874         * config.bfd (ia64*-*-*vms*): Add case.
875         * configure.in (bfd_elf64_ia64_vms_vec): Add case.
876         * configure: Regenerate.
877         * vmsutil.c: New file.
878         * vmsutil.h: New file.
879         * elf-bfd.h (struct bfd_elf_special_section): Change type of
880         attr to bfd_vma.
881         * elfxx-ia64.c (elfNN_vms_post_process_headers,
882         elfNN_vms_section_processing, elfNN_vms_final_write_processing,
883         elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
884         elfNN_vms_object_p): New functions
885         * targets.c (bfd_elf64_ia64_vms_vec): New target.
886
887 2009-01-14  H.J. Lu  <hongjiu.lu@intel.com>
888
889         PR ld/9727
890         * elflink.c (elf_gc_sweep): Exclude the group section if the
891         first member of the section group is excluded.
892
893 2009-01-14  Alan Modra  <amodra@bigpond.net.au>
894
895         PR 9735
896         * syms.c (_bfd_stab_section_find_nearest_line): Don't free
897         saved filename, use bfd_alloc rather than bfd_malloc for it.
898
899 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
900
901         * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
902
903 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
904
905         * elf32-spu.c (remove_cycles): Always set call->max_depth.
906
907 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
908
909         * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
910
911 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
912
913         * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
914         num_lines_log2.
915         (struct got_entry): Add br_addr.
916         (struct call_info): Add priority.
917         (struct function_info): Add lr_store and sp_adjust.
918         (spu_elf_setup): Init line_size_log2 and num_lines_log2.
919         (spu_elf_find_overlays): For soft-icache, mark any section within cache
920         area as an overlay, and check that no other overlays exist.  Look up
921         icache overlay manager entry sym.
922         (BRA_STUBS, BRA, BRASL): Define.
923         (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
924         (needs_ovl_stub): Adjust for soft-icache.  Return priority encoded
925         in branch insn.
926         (count_stub, build_stub): Support soft-icache.
927         (build_spuear_stubs, process_stubs): Adjust build_stub call.
928         (spu_elf_size_stubs): Size soft-icache stubs.
929         (overlay_index): New function.
930         (spu_elf_build_stubs): Make static.  Support soft-icache.
931         (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
932         (find_function_stack_adjust): Save lr store and stack adjust insn
933         offsets.
934         (maybe_insert_function): Adjust find_function_stack_adjust call.
935         (mark_functions_via_relocs): Retrieve priority.
936         (remove_cycles): Only warn about pruned arcs when stack_analysis.
937         (sort_calls): Sort by priority first.
938         (mark_overlay_section): Ignore .ovl.init.
939         (sum_stack): Only print when stack_analysis.
940         (print_one_overlay_section): New function, extracted from..
941         (spu_elf_auto_overlay): ..here.  Support soft-icache overlays.
942         (spu_elf_stack_analysis): Only print when htab->stack_analysis.
943         (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
944         analysis.  Call spu_elf_build_stubs.
945         (spu_elf_relocate_section): For soft-icache encode overlay index
946         into addresses.
947         (spu_elf_output_symbol_hook): Support soft-icache.
948         (spu_elf_modify_program_headers: Likewise.
949
950         * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis.  Rename
951         num_regions to num_lines.  Add line_size and max_branch.
952         (enum _ovly_flavour): Add ovly_soft_icache.
953         (spu_elf_build_stubs): Delete.
954
955 2009-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
956
957         * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
958         relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
959
960 2009-01-07  Hans-Peter Nilsson  <hp@axis.com>
961
962         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
963         <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
964         the program, the known offset starts at the negative size of the
965         TLS section.
966         <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
967         Similar.
968
969 2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
970
971         * config.bfd: Add lm32-*-rtems*.
972
973 2009-01-03  H.J. Lu  <hongjiu.lu@intel.com>
974
975         * coff-ppc.c: Add 2009 to Copyright.
976         * elf32-cris.c: Likewise.
977         * elflink.c: Likewise.
978
979 2009-01-03  Hans-Peter Nilsson  <hp@axis.com>
980
981         * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
982         gotplt_index to rela_plt_index.  Adjust for R_CRIS_DTPMOD entry.
983
984 2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
985
986         PR ld/9679
987         * elflink.c (elf_merge_st_other): New.
988         (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
989         hide them if needed.
990         (elf_link_add_object_symbols): Updated.
991
992 2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
993
994         PR ld/9676
995         * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
996         ref_dynamic and dynamic_def fields when setting def_regular
997         to 1.
998
999 2009-01-02  Curtis Mackie  <curtmackevo@gmail.com>
1000
1001         PR 9682
1002         * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
1003         literal.
1004
1005 For older changes see ChangeLog-2008
1006 \f
1007 Local Variables:
1008 mode: change-log
1009 left-margin: 8
1010 fill-column: 74
1011 version-control: never
1012 End: