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