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