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