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