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