2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
2
3 * elf32-i386.c (elf_i386_check_relocs): Cache or free isymbuf.
4 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
5
6 2009-06-18 Nick Clifton <nickc@redhat.com>
7
8 * elflink.c (elf_link_sort_relocs): Return early if there are no
9 relocs to sort.
10
11 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
12
13 Merge cegcc and mingw32ce target name changes from
14 CeGCC project:
15
16 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
17
18 * config.bfd: Add arm*-*-cegcc* target.
19
20 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
21
22 * config.bfd: Add arm-*-mingw32ce* target.
23
24 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
25
26 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New.
27 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise.
28 * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it.
29 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
30
31 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
32
33 * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New.
34 * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise.
35 * elf32-i386.c (elf_i386_check_relocs): Use it.
36 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
37
38 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
39
40 * elf-bfd.h (elf_dyn_relocs): New.
41
42 * elf32-i386.c (elf_i386_dyn_relocs): Removed.
43 (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with
44 elf_dyn_relocs.
45 (elf_i386_copy_indirect_symbol): Likewise.
46 (elf_i386_check_relocs): Likewise.
47 (elf_i386_gc_sweep_hook): Likewise.
48 (elf_i386_allocate_dynrelocs): Likewise.
49 (elf_i386_readonly_dynrelocs): Likewise.
50 (elf_i386_size_dynamic_sections): Likewise.
51
52 * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed.
53 (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs
54 with elf_dyn_relocs.
55 (elf64_x86_64_copy_indirect_symbol): Updated.
56 (elf64_x86_64_check_relocs): Likewise.
57 (elf64_x86_64_gc_sweep_hook): Likewise.
58 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
59 (elf64_x86_64_allocate_dynrelocs): Likewise.
60 (elf64_x86_64_readonly_dynrelocs): Likewise.
61 (elf64_x86_64_size_dynamic_sections): Likewise.
62
63 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
64
65 * elf32-arm.c (create_got_section): Get existing .rela.got
66 section.
67 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
68 * elf32-lm32.c (create_got_section): Likewise.
69 * elf32-m32r.c (create_got_section): Likewise.
70 * elf32-ppc.c (ppc_elf_create_got): Likewise.
71 * elf32-s390.c (create_got_section): Likewise.
72 * elf32-sh.c (create_got_section): Likewise.
73 * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
74 * elf64-s390.c (create_got_section): Likewise.
75 * elfxx-sparc.c (create_got_section): Likewise.
76
77 * elflink.c (_bfd_elf_create_got_section): Properly initialize
78 the GOT size.
79
80 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
81
82 * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New.
83
84 * elf32-i386.c (elf_i386_local_hash): Removed.
85 (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
86 (elf_i386_get_local_sym_hash): Likewise.
87
88 * elf64-x86-64.c (elf64_x86_64_local_hash): Removed.
89 (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
90 (elf64_x86_64_get_local_sym_hash): Likewise.
91 * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise.
92 (get_local_sym_hash): Likewise.
93
94 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
95
96 * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec,
97 rel_got_sec and plt_sec.
98 (elfNN_ia64_relax_section): Updated.
99 (elfNN_ia64_create_dynamic_sections): Likewise.
100 (get_got): Likewise.
101 (allocate_dynrel_entries): Likewise.
102 (elfNN_ia64_size_dynamic_sections): Likewise.
103 (set_got_entry): Likewise.
104 (elfNN_ia64_choose_gp): Likewise.
105 (elfNN_ia64_relocate_section): Likewise.
106 (elfNN_ia64_finish_dynamic_symbol): Likewise.
107 (elfNN_ia64_finish_dynamic_sections): Likewise.
108
109 2009-06-16 Ulrich Weigand <uweigand@de.ibm.com>
110
111 * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits
112 also for calls.
113
114 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
115
116 * configure.in (elf): Add elf-ifunc.lo.
117
118 * configure: Regenerated.
119 * Makefile.in: Likewise.
120
121 * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt,
122 srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc.
123
124 * elf32-i386.c (elf_i386_link_hash_table): Remove sgot,
125 sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
126 irelifunc.
127 (elf_i386_link_hash_table_create): Likewise.
128 (elf_i386_create_dynamic_sections): Likewise.
129 (elf_i386_check_relocs): Likewise.
130 (elf_i386_allocate_dynrelocs): Likewise.
131 (elf_i386_size_dynamic_sections): Likewise.
132 (elf_i386_relocate_section): Likewise.
133 (elf_i386_finish_dynamic_symbol): Likewise.
134 (elf_i386_finish_dynamic_sections): Likewise.
135 (elf_i386_create_got_section): Removed.
136
137 * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot,
138 sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
139 irelifunc.
140 (elf64_x86_64_compute_jump_table_size): Updated.
141 (elf64_x86_64_link_hash_table_create): Likewise.
142 (elf64_x86_64_create_dynamic_sections): Likewise.
143 (elf64_x86_64_check_relocs): Likewise.
144 (elf64_x86_64_allocate_dynrelocs): Likewise.
145 (elf64_x86_64_size_dynamic_sections): Likewise.
146 (elf64_x86_64_relocate_section): Likewise.
147 (elf64_x86_64_finish_dynamic_symbol): Likewise.
148 (elf64_x86_64_finish_dynamic_sections): Likewise.
149 (elf64_x86_64_create_got_section): Removed.
150
151 * elflink.c (_bfd_elf_create_got_section): Use log_file_align
152 for pointer alignment. Set up section pointers.
153 (_bfd_elf_create_dynamic_sections): Likewise.
154 (_bfd_elf_create_ifunc_sections): Moved to ...
155 * elf-ifunc.c: Here. New.
156
157 * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo.
158 (BFD32_BACKENDS_CFILES): Add elf-ifunc.c.
159 Run "make dep-am".
160
161 2009-06-16 Doug Kwan <dougkwan@google.com>
162
163 * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset
164 to bfd_signed_vma. Cast constant operands which are used in
165 offset related expressions to bfd_signed_vma type as appropriate.
166
167 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
168
169 * elf32-vax.c (elf_vax_plt_sym_val): New function.
170 (elf_backend_plt_sym_val): Define.
171
172 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
173
174 * elf32-vax.c (elf_vax_reloc_type_class): New function.
175 (elf_backend_reloc_type_class): Define.
176
177 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
178
179 * elf32-vax.c (elf_vax_relocate_section): For symbol references
180 from an executable to a shared library treat R_VAX_PC32
181 relocations as R_VAX_PLT32 ones.
182
183 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
184
185 * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local
186 symbols in GOT space calculation.
187 (elf_vax_relocate_section): Adjust accordingly.
188
189 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
190
191 * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to
192 include <R11:R2>.
193
194 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
195
196 * elf32-vax.c (elf_vax_check_relocs): Handle the visibility
197 attribute.
198 (elf_vax_relocate_section): Likewise.
199
200 2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
201
202 * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments.
203 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
204
205 2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
206
207 * elf32-i386.c (elf_i386_check_relocs): Reformat.
208 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
209
210 2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
211
212 * Makefile.am: Run "make dep-am".
213 * Makefile.in: Regenerated.
214
215 2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
216
217 * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo.
218 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
219
220 2009-06-15 Nick Clifton <nickc@redhat.com>
221
222 * po/ru.po: New Russian translation.
223 * configure.in (ALL_LINGUAS): Add ru.
224 * configure: Regenerate.
225
226 2009-06-14 H.J. Lu <hongjiu.lu@intel.com>
227
228 * elf32-i386.c: Remove duplicated comments.
229
230 2009-06-14 H.J. Lu <hongjiu.lu@intel.com>
231
232 PR ld/10270
233 * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow
234 dynamic IFUNC pointer in non-shared object. Use .got.plt
235 for IFUNC definition in PIE.
236 (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in
237 PIE locally.
238
239 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow
240 dynamic IFUNC pointer in non-shared object. Use .got.plt
241 for IFUNC definition in PIE.
242 (elf64_x86_64_relocate_section): Resolve IFUNC definition in
243 PIE locally.
244
245 2009-06-13 H.J. Lu <hongjiu.lu@intel.com>
246
247 * elf32-i386.c (elf_i386_check_relocs): Properly report
248 local symbol for unhandled relocation against STT_GNU_IFUNC
249 symbol.
250 (elf_i386_relocate_section): Likewise.
251 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
252 (elf64_x86_64_relocate_section): Likewise.
253
254 2009-06-13 H.J. Lu <hongjiu.lu@intel.com>
255
256 PR ld/10269
257 * elf32-i386.c: Include "objalloc.h" and "hashtab.h".
258 (elf_i386_link_hash_table): Add loc_hash_table and
259 loc_hash_memory.
260 (elf_i386_local_hash): New.
261 (elf_i386_local_htab_hash): Likewise.
262 (elf_i386_local_htab_eq): Likewise.
263 (elf_i386_get_local_sym_hash): Likewise.
264 (elf_i386_link_hash_table_free): Likewise.
265 (elf_i386_allocate_local_dynrelocs): Likewise.
266 (elf_i386_finish_local_dynamic_symbol): Likewise.
267 (bfd_elf64_bfd_link_hash_table_free): Likewise.
268 (elf_i386_link_hash_table_create): Create loc_hash_table and
269 loc_hash_memory.
270 (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols.
271 (elf_i386_size_dynamic_sections): Likewise.
272 (elf_i386_relocate_section): Likewise.
273 (elf_i386_finish_dynamic_sections): Likewise.
274 (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym
275 isn't NULL.
276
277 * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h".
278 (elf64_x86_64_link_hash_table): Add loc_hash_table and
279 loc_hash_memory.
280 (elf64_x86_64_local_hash): New.
281 (elf64_x86_64_local_htab_hash): Likewise.
282 (elf64_x86_64_local_htab_eq): Likewise.
283 (elf64_x86_64_get_local_sym_hash): Likewise.
284 (elf64_x86_64_link_hash_table_free): Likewise.
285 (elf64_x86_64_allocate_local_dynrelocs): Likewise.
286 (elf64_x86_64_finish_local_dynamic_symbol): Likewise.
287 (bfd_elf64_bfd_link_hash_table_free): Likewise.
288 (elf64_x86_64_link_hash_table_create): Create loc_hash_table
289 and loc_hash_memory.
290 (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC
291 symbols.
292 (elf64_x86_64_size_dynamic_sections): Likewise.
293 (elf64_x86_64_relocate_section): Likewise.
294 (elf64_x86_64_finish_dynamic_sections): Likewise.
295 (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if
296 sym isn't NULL.
297
298 2009-06-10 Philip Blundell <philb@gnu.org>
299
300 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
301 elf_sec->this_hdr == NULL.
302
303 2009-06-12 Tristan Gingold <gingold@adacore.com>
304
305 * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
306 * bfd-in2.h: Regenerated.
307 * libbfd.h: Regenerated.
308
309 * mach-o.c (FILE_ALIGN): New macro.
310 (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol.
311 (bfd_mach_o_print_symbol): Ditto.
312 (bfd_mach_o_scan_write_thread): Adjust type of variable offset.
313 (bfd_mach_o_get_reloc_upper_bound): New function.
314 (bfd_mach_o_canonicalize_reloc): Ditto.
315 (bfd_mach_o_scan_write_relocs): Ditto.
316 (bfd_mach_o_scan_write_section_32): Remove offset argument.
317 (bfd_mach_o_scan_write_section_64): Ditto.
318 (bfd_mach_o_scan_write_segment_32): Write relocs. Fix size of data
319 written for load command. Do not compute section file offset.
320 (bfd_mach_o_scan_write_segment_64): Ditto.
321 (bfd_mach_o_scan_write_symtab): Compute file offset first.
322 Adjust for bfd_mach_o_asymbol. Move code to convert from BFD to
323 Mach-O to ...
324 (bfd_mach_o_mangle_symbols): ... this new function.
325 (bfd_mach_o_write_contents): Be sure to habe load commands built.
326 Call bfd_mach_o_mangle_symbols.
327 (bfd_mach_o_build_commands): Adjust for filelen field.
328 Use FILE_ALIGN macro. Clear section file offset if section is empty.
329 Do not set symtab file offset anymore here.
330 (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol.
331 (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc.
332 Set reloc_count and rel_filepos section fields.
333 (bfd_mach_o_scan_read_section_32): Type of argument offset is now
334 unsigned int.
335 (bfd_mach_o_scan_read_section_64): Ditto.
336 (bfd_mach_o_scan_read_section): Ditto.
337 (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now
338 bfd_mach_o_asymbol. Use unsigned int for file offset type.
339 (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol.
340 Handle weak-ref symbols.
341 (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol.
342 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
343 (bfd_mach_o_scan): Remove assignment to removed field.
344 (bfd_mach_o_mkobject_init): Ditto.
345 (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter.
346 (bfd_mach_o_bfd_reloc_type_lookup): New macro.
347 (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
348 (bfd_mach_o_swap_reloc_in): Ditto.
349 (bfd_mach_o_swap_reloc_out): Ditto.
350
351 * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY)
352 (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY)
353 (BFD_MACH_O_REFERENCE_FLAG_DEFINED)
354 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED)
355 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY)
356 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY)
357 (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED)
358 (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF)
359 (BFD_MACH_O_N_WEAK_DEF): New macros.
360 Add comments.
361 (bfd_mach_o_section_type): Add new enumeration values.
362 (BFD_MACH_O_S_SELF_MODIFYING_CODE)
363 (BFD_MACH_O_S_ATTR_LIVE_SUPPORT)
364 (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP)
365 (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New
366 macros.
367 (BFD_MACH_O_GENERIC_RELOC_VANILLA)
368 (BFD_MACH_O_GENERIC_RELOC_PAIR)
369 (BFD_MACH_O_GENERIC_RELOC_SECTDIFF)
370 (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR)
371 (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto.
372 (BFD_MACH_O_RELENT_SIZE): Ditto.
373 (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH)
374 (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE)
375 (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH)
376 (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto.
377 (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL)
378 (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE)
379 (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH)
380 (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto.
381 (bfd_mach_o_reloc_info): New struct.
382 (bfd_mach_o_asymbol): New struct.
383 (bfd_mach_o_symtab_command): The symbols field is now of type
384 bfd_mach_o_asymbol.
385 (bfd_mach_o_load_command): The offset and len fields are now of type
386 unsigned int.
387 (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields.
388 Add a filelen field. Add comments.
389 (bfd_mach_o_backend_data): New struct.
390 (bfd_mach_o_get_backend_data): New macro.
391 (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type
392 bfd_mach_o_asymbol.
393 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
394 (bfd_mach_o_get_reloc_upper_bound): New prototype.
395 (bfd_mach_o_canonicalize_reloc): Ditto.
396
397 * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove
398 duplicated macro. Now defined to _bfd_generic_is_local_label.
399 (TARGET_NAME_BACKEND): New macro...
400 (TARGET_NAME_BACKEND): ... used to name a new variable.
401 (TARGET_NAME): Define relocs table using bfd_mach_o, reference
402 Mach-O backend data.
403
404 * mach-o-i386.c (i386_howto_table): New variable.
405 (bfd_mach_o_i386_swap_reloc_in): New function.
406 (bfd_mach_o_i386_swap_reloc_out): Ditto.
407 (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto.
408 (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto.
409 (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros.
410 (bfd_mach_o_bfd_reloc_type_lookup)
411 (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
412
413 2009-06-11 Eric Paris <eparis@redhat.com>
414 Nick Clifton <nickc@redhat.com>
415
416 * opncls.c (_maybe_make_executable): New function. Gives execute
417 permission to an executable bfd that was opened for writing
418 provided that it is a regular file. Replaces common code found in...
419 (bfd_close): here and ...
420 (bfd_close_all_done): here.
421
422 2009-06-11 Anthony Green <green@moxielogic.com>
423
424 * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL.
425 * bfd-in2.h: Rebuilt.
426 * libbfd.h: Rebuilt.
427 * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10
428 relocation support.
429 (moxie_reloc_map): Ditto.
430 Clean up copyright notice.
431
432 2009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com>
433
434 * bfd-in2.h: bfd_mmap prototype.
435 * bfdio.c (bfd_mmap): New function.
436 * libbfd.h (bfd_iovec): Add bmmap.
437 * cache.c (cache_bmmap): New function.
438 (cache_iovec): Initialize bmmap member.
439 * opencls.c (opncls_bmmap): New function.
440 (opncls_iovec): Initialize bmmap member.
441
442 2009-06-09 Tristan Gingold <gingold@adacore.com>
443
444 * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
445 and stabstr_segment fields.
446 (mach_o_be_vec, mach_o_le_vec): Removed
447 (bfd_mach_o_version): New prototype.
448
449 * mach-o.c (bfd_mach_o_version): Make this function public.
450 (mach_o_wide_p): New function.
451 (bfd_mach_o_wide_p): Ditto.
452 (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
453 weird names.
454 (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
455 Search in the list only if the name starts with a dot.
456 (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
457 test. Check bfd_seek status.
458 (bfd_mach_o_scan_write_thread): Check bfd_seek status.
459 (bfd_mach_o_scan_write_section_32): Ditto.
460 (bfd_mach_o_scan_write_section_64): Ditto.
461 (bfd_mach_o_scan_write_section): Removed.
462 (bfd_mach_o_scan_write_segment): Split into ...
463 (bfd_mach_o_scan_write_segment_32): ... this and ...
464 (bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status.
465 (bfd_mach_o_scan_write_symtab_symbols): Moved into ...
466 (bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD
467 symbol table. Now returns a boolean.
468 (bfd_mach_o_write_contents): Set filetype. Check bfd_seek status.
469 Adjust for status type.
470 (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
471 test. Write symbol table. Numbers the sections.
472 (bfd_mach_o_read_header): Check bfd_seek status.
473 Use mach_o_wide_p instead of hard-coded test.
474 (bfd_mach_o_scan_read_section_32): Check bfd_seek status.
475 (bfd_mach_o_scan_read_section_64): Ditto.
476 (bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status.
477 Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly
478 handled common symbols.
479 (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
480 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
481 (bfd_mach_o_scan_read_dylinker): Ditto.
482 (bfd_mach_o_scan_read_dylib): Ditto.
483 (bfd_mach_o_scan_read_thread): Ditto.
484 (bfd_mach_o_scan_read_symtab): Ditto.
485 Do not create a section for the stabs.
486 (bfd_mach_o_scan_read_uuid): Check bfd_seek status.
487 (bfd_mach_o_scan_read_segment): Ditto.
488 (bfd_mach_o_scan_read_command): Ditto.
489 (bfd_mach_o_scan_start_address): Ditto.
490 (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
491 (bfd_mach_o_archive_p): Check bfd_seek status.
492 (bfd_mach_o_core_fetch_environment): Ditto.
493
494 * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.
495
496 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
497
498 * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc.
499 (elf_i386_link_hash_table_create): Initialize irelifunc.
500 (elf_i386_check_relocs): Updated. Set up irelifunc for
501 shared objects.
502 (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic
503 relocation for non-GOT reference of STT_GNU_IFUNC symbol in
504 shared objects.
505 (elf_i386_relocate_section): Likewise.
506
507 * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc.
508 (elf64_x86_64_link_hash_table_create): Initialize irelifunc.
509 (elf64_x86_64_check_relocs): Updated. Set up irelifunc for
510 shared objects.
511 (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic
512 relocation for non-GOT reference of STT_GNU_IFUNC symbol in
513 shared objects.
514 (elf64_x86_64_relocate_section): Likewise.
515
516 * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to
517 ...
518 (_bfd_elf_create_ifunc_sections): This.
519
520 * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to
521 ...
522 (_bfd_elf_create_ifunc_sections): This. Create .rel[a].ifunc
523 for shared objects.
524
525 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
526
527 * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
528 relocation for R_386_32 against STT_GNU_IFUNC symbol when
529 building shared object. Check info->executable instead of
530 !info->shared when setting non_got_ref.
531 (elf_i386_allocate_dynrelocs): Allocate dynamic relocation
532 for non-GOT reference of STT_GNU_IFUNC symbol in shared
533 object. Allocate GOT relocation agsinst STT_GNU_IFUNC
534 symbol if needed.
535 (elf_i386_relocate_section): Output dynamic relocation for
536 R_386_32 against STT_GNU_IFUNC symbol to get the real
537 function address when building shared object.
538 (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
539 relocation for STT_GNU_IFUNC symbol in shared object.
540
541 * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
542 dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
543 symbol when building shared object. Check info->executable
544 instead of !info->shared when setting non_got_ref.
545 (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
546 for non-GOT reference of STT_GNU_IFUNC symbol in shared
547 library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
548 if needed.
549 (elf64_x86_64_relocate_section): Output dynamic relocation
550 for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
551 function address when building shared object.
552 (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
553 relocation for STT_GNU_IFUNC symbol in shared object.
554
555 2009-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * Makefile.am: Run "make dep-am".
558 (BFD32_BACKENDS): Add mach-o-i386.lo.
559 (BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
560 * Makefile.in: Regenerate.
561
562 2009-06-06 Alan Modra <amodra@bigpond.net.au>
563
564 * elf32-spu.c (spu_elf_relocate_section): Match overlay number
565 when looking for soft-icache stubs.
566
567 2009-06-05 Tristan Gingold <gingold@adacore.com>
568
569 * mach-o.h: Update copyright year.
570 (bfd_mach_o_mach_header_magic): New enum.
571 (bfd_mach_o_cpu_subtype): Now an enum.
572 (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
573 (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
574 (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
575 (bfd_mach_o_load_command): Field type_required is now a boolean.
576 Reindent prototypes.
577 (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
578 (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
579 (bfd_mach_o_bfd_copy_private_section_data): Ditto.
580 (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
581 (bfd_mach_o_get_symtab_upper_bound): Ditto.
582 (bfd_mach_o_canonicalize_symtab): Ditto.
583 (bfd_mach_o_get_symbol_info): Ditto.
584 (bfd_mach_o_print_symbol): Ditto.
585 (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
586 (bfd_mach_o_make_empty_symbol): Ditto.
587 (bfd_mach_o_write_contents): Ditto.
588
589 * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
590 bfd_mach_o_mkobject): Defines.
591 (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
592 Do not check with target vector but with flavour.
593 (struct mach_o_section_name_xlat): New declaration.
594 (dwarf_section_names_xlat): Ditto.
595 (text_section_names_xlat): Ditto.
596 (data_section_names_xlat): Ditto.
597 (struct mach_o_segment_name_xlat): Ditto.
598 (segsec_names_xlat): Ditto.
599 (bfd_mach_o_convert_section_name_to_bfd): New function.
600 (bfd_mach_o_convert_section_name_to_mach_o): Ditto.
601 (bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
602 (bfd_mach_o_bfd_copy_private_section_data): Ditto.
603 (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
604 Accept any input and output flavour. Do not share private data
605 anymore.
606 (bfd_mach_o_count_symbols): Add a comment.
607 (bfd_mach_o_get_symtab_upper_bound): Make it public.
608 (bfd_mach_o_canonicalize_symtab): Ditto.
609 (bfd_mach_o_get_symbol_info): Ditto.
610 (bfd_mach_o_print_symbol): Ditto.
611 (bfd_mach_o_write_header): Now returns a boolean instead of an int.
612 Use constants instead of hard-coded values.
613 (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
614 values.
615 (bfd_mach_o_scan_write_section_64): Ditto.
616 (bfd_mach_o_scan_write_segment): Ditto.
617 Do not copy sections anymore.
618 (bfd_mach_o_write_contents): Make it public.
619 Remove dead code. Rewrite typeflag assignment.
620 (bfd_mach_o_build_commands): New function.
621 (bfd_mach_o_set_section_contents): Ditto.
622 (bfd_mach_o_make_empty_symbol): Make it public.
623 (bfd_mach_o_read_header): Make it static.
624 Convert to bfd_boolean.
625 Use constants instead of hard-coded values.
626 (bfd_mach_o_make_bfd_section): Call
627 bfd_mach_o_convert_section_name_to_bfd to create name.
628 (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
629 values.
630 (bfd_mach_o_scan_read_section_64): Ditto.
631 (bfd_mach_o_scan_read_segment): Do not create a bfd section for
632 a segment anymore. Use constants instead of hard-coded values.
633 (bfd_mach_o_scan_read_command): Fix style.
634 (bfd_mach_o_scan): Use constants instead of hard-coded values.
635 Get rid of BFD_IO_FUNCS.
636 (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
637 (bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
638 (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
639 (bfd_mach_o_object_p): Removed.
640 (bfd_mach_o_gen_core_p): New function, replaces ...
641 (bfd_mach_o_core_p): ... deleted.
642 (bfd_mach_o_bfd_print_private_bfd_data): Make it public.
643
644 * mach-o-i386.c: New file.
645 * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
646 * configure.in (TDEFINES): Add mach_o_i386_vec.
647 * configure: Regenerated.
648 * targets.c: Add mach_o_i386_vec.
649
650 * mach-o.c: Update copyright years.
651 (BFD_IO_FUNCS): Remove (was not used).
652 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
653 bfd_mach_o_slurp_extended_name_table,
654 bfd_mach_o_construct_extended_name_table,
655 bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
656 bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
657 bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
658 bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
659 bfd_mach_o_get_section_contents_in_window,
660 bfd_mach_o_bfd_is_local_label_name,
661 bfd_mach_o_bfd_is_target_special_symbol,
662 bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
663 bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
664 bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
665 bfd_mach_o_minisymbol_to_symbol,
666 bfd_mach_o_bfd_get_relocated_section_contents,
667 bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
668 bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
669 bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
670 bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
671 bfd_mach_o_bfd_merge_private_bfd_data,
672 bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
673 bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
674 bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
675 bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
676 bfd_mach_o_bfd_copy_private_header_data,
677 bfd_mach_o_core_file_matches_executable_p): Move these defines ...
678 * mach-o-target.c: ... here.
679 Update copyright years.
680
681 2009-06-04 Alan Modra <amodra@bigpond.net.au>
682
683 * dep-in.sed: Don't use \n in replacement part of s command.
684 * Makefile.am (DEP1): LC_ALL for uniq.
685 Run "make dep-am".
686 * Makefile.in: Regenerate.
687
688 2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
689
690 * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
691 h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
692 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
693
694 2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
695
696 * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
697 GOT entry for STT_GNU_IFUNC symbol with pointer equality.
698 (elf_i386_relocate_section): Adjust R_386_GOT32 relocation
699 against STT_GNU_IFUNC symbols for static executables.
700 (elf_i386_finish_dynamic_symbol): Load GOT entry with
701 PLT entry for STT_GNU_IFUNC symbol with pointer equality.
702
703 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
704 GOT entry for STT_GNU_IFUNC symbol with pointer equality.
705 (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
706 PLT entry for STT_GNU_IFUNC symbol with pointer equality.
707
708 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
709
710 * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
711 symbols to be left unimported when linking statically.
712 * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
713 code when linking statically.
714
715 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
716
717 * elf32-i386.c (elf_i386_check_relocs): Increment
718 got.refcount for R_386_GOT32/R_386_GOTOFF relocations
719 against STT_GNU_IFUNC symbol.
720 (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
721 local STT_GNU_IFUNC definition is used.
722 (elf_i386_relocate_section): Handle got.offset != -1 for
723 R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
724 symbol.
725
726 * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
727 got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
728 relocations against STT_GNU_IFUNC symbol.
729 (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
730 local STT_GNU_IFUNC definition is used.
731 (elf64_x86_64_relocate_section): Handle got.offset != -1
732 for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
733 STT_GNU_IFUNC symbol.
734
735 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
736
737 PR ld/10205
738 * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
739 (elf_i386_reloc_type_lookup): Likewise.
740 (R_386_tls): Removed.
741 (R_386_irelative): New.
742 (R_386_vt_offset): Updated.
743 (elf_i386_rtype_to_howto): Likewise.
744 (elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
745 (elf_i386_link_hash_table_create): Initialize igotplt,
746 iplt and irelplt.
747 (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
748 (elf_i386_adjust_dynamic_symbol): Likewise.
749 (elf_i386_allocate_dynrelocs): Likewise.
750 (elf_i386_relocate_section): Likewise.
751 (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
752 sections.
753 (elf_i386_finish_dynamic_symbol): When building a static
754 executable, use .iplt, .igot.plt and .rel.iplt sections for
755 STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for
756 locally defined STT_GNU_IFUNC symbol.
757
758 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
759 (x86_64_reloc_map): Likewise.
760 (R_X86_64_standard): Updated.
761 (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
762 (elf64_x86_64_link_hash_table_create): Initialize igotplt,
763 iplt and irelplt.
764 (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
765 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
766 (elf64_x86_64_allocate_dynrelocs): Likewise.
767 (elf64_x86_64_relocate_section): Likewise.
768 (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
769 sections.
770 (elf64_x86_64_finish_dynamic_symbol): When building a static
771 executable, use .iplt, .igot.plt and .rela.iplt sections for
772 STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation
773 for locally defined STT_GNU_IFUNC symbol.
774
775 * reloc.c (BFD_RELOC_386_IRELATIVE): New.
776 (BFD_RELOC_X86_64_IRELATIVE): Likewise.
777
778 * bfd-in2.h: Regenerated.
779 * libbfd.h: Likewise.
780
781 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
782
783 * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
784 (_bfd_elf_make_ifunc_reloc_section): Removed.
785 (_bfd_elf_is_ifunc_symbol): Likewise.
786 (_bfd_elf_create_static_ifunc_sections): New.
787
788 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
789 symbol check to ...
790 (elf_link_add_object_symbols): Here.
791 (_bfd_elf_link_hash_hide_symbol): Don't clean plt on
792 STT_GNU_IFUNC symbol.
793 (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
794 if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
795 (IFUNC_INFIX): Removed.
796 (get_ifunc_reloc_section_name): Likewise.
797 (_bfd_elf_make_ifunc_reloc_section): Likewise.
798 (_bfd_elf_is_ifunc_symbol): Likewise.
799 (_bfd_elf_create_static_ifunc_sections): New.
800
801 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
802
803 * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
804 (create_got_section): Likewise.
805 (allocate_dynrelocs): Likewise.
806 (readonly_dynrelocs): Likewise.
807 (set_tls_module_base): Likewise.
808 (dtpoff_base): Likewise.
809 (tpoff): Likewise.
810 (elf_i386_link_hash_table_create): Updated.
811 (elf_i386_create_dynamic_sections): Likewise.
812 (elf_i386_check_relocs): Likewise.
813 (elf_i386_size_dynamic_sections): Likewise.
814 (elf_i386_relocate_section): Likewise.
815
816 * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
817 (create_got_section): Likewise.
818 (allocate_dynrelocs): Likewise.
819 (readonly_dynrelocs): Likewise.
820 (set_tls_module_base): Likewise.
821 (dtpoff_base): Likewise.
822 (tpoff): Likewise.
823 (elf64_x86_64_link_hash_table_create): Updated.
824 (elf64_x86_64_create_dynamic_sections): Likewise.
825 (elf64_x86_64_check_relocs): Likewise.
826 (elf64_x86_64_size_dynamic_sections): Likewise.
827 (elf64_x86_64_relocate_section): Likewise.
828
829 2009-05-28 Nick Clifton <nickc@redhat.com>
830
831 * targets.c (_bfd_target_vector): Only include plugin target in
832 all-targets build if BFD_SUPPORTS_PLUGINS is non-zero.
833
834 2009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
835
836 * elf32-spu.c (struct call_info): New member broken_cycle.
837 (remove_cycle): Instead of physically removing call_info structures
838 to break call graph cycles, mark them using the broken_cycle flag.
839 (mark_overlay_section): Respect broken_cycle flag.
840 (unmark_overlay_section): Likewise.
841 (collect_lib_sections): Likewise.
842 (collect_overlays): Likewise.
843 (sum_stack): Likewise.
844
845 2009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
846
847 * elf32-spu.c (insert_callee): Accumulate incoming callee->count.
848 (mark_functions_via_relocs): Initialize callee->count to 1.
849 (pasted_function): Likewise.
850 (spu_elf_auto_overlay): Honor call counts when determining number
851 of stubs required in software i-cache mode.
852
853 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
854
855 * plugin.c (program_name): Remove.
856 (plugin_program_name): New.
857 (bfd_plugin_set_program_name): New.
858 (try_load_plugin): Use plugin_program_name.
859 * plugin.h (bfd_plugin_set_program_name): New.
860
861 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
862
863 * aclocal.m4: Include ../config/plugins.m4.
864 * configure.in: Use AC_PLUGINS.
865 * configure: Regenerate.
866 * Makefile.in: Regenerate.
867 * doc/Makefile.in: Regenerate.
868
869 2009-05-27 Nathan Sidwell <nathan@codesourcery.com>
870
871 * elf32-ppc.c (ppc_elf_relax_section): Work with a partial
872 link.
873 * bout.c (b_out_bfd_relax_section): Reject relocatable links.
874 * elf32-m10300.c (mn10300_elf_relax_section): Likewise.
875 * elf32-avr.c (elf32_avr_relax_section): Likewise.
876 * elf32-frv.c (elf32_avr_relax_section): Likewise.
877 * elf32-xtensa.c (elf_xtensa_relax_section): Likewise.
878 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
879 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
880 * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise.
881 * reloc.c (bfd_generic_relax_section): Likewise.
882 * reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
883 * vms.c (vms_bfd_relax_section): Likewise.
884
885 2009-05-26 H.J. Lu <hongjiu.lu@intel.com>
886
887 * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New.
888
889 * elf32-i386.c (is_indirect_symbol): Renamed to ...
890 * elflink.c (_bfd_elf_is_ifunc_symbol): This.
891
892 * elf32-i386.c (allocate_dynrelocs): Updated.
893 (elf_i386_relocate_section): Likewise.
894 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
895 (elf64_x86_64_relocate_section): Likewise.
896
897 * elf64-x86-64.c (is_indirect_symbol): Removed.
898
899 2009-05-26 Nick Clifton <nickc@redhat.com>
900
901 * po/id.po: Updated Indonesian translation.
902
903 2009-05-26 Rafael Avila de Espindola <espindola@google.com>
904
905 * Makefile.am: Run "make dep-am".
906 (AM_CPPFLAGS): New.
907 (LIBDL): New.
908 (ALL_MACHINES): Add cpu-plugin.lo.
909 (ALL_MACHINES_CFILES): Add cpu-plugin.c.
910 (BFD32_BACKENDS): Add plugin.lo.
911 (BFD32_BACKENDS_CFILES): Add plugin.c.
912 (libbfd_la_LIBADD): Add LIBDL
913 * archures.c (bfd_architecture): Add bfd_arch_plugin.
914 (bfd_plugin_arch): Declare.
915 * bfd-in.h (BFD_SUPPORTS_PLUGINS): New.
916 * bfd.c (bfd): Add plugin_data.
917 * config.bfd: Handle the plugin target.
918 * configure.in: Check for --enable-plugins.
919 (LT_INIT): Use the dlopen option.
920 * cpu-plugin.c: New.
921 * plugin.c: New.
922 * plugin.h: New.
923 * targets.c (plugin_vec): Declare.
924 (_bfd_target_vector): Add plugin_vec.
925 * Makefile.in: Regenerate.
926 * bfd-in2.h: Regenerate.
927 * configure: Regenerate.
928
929 2009-05-26 Alan Modra <amodra@bigpond.net.au>
930
931 * dep-in.sed: Don't modify .o to .lo here. Output one filename
932 per line with all lines having continuation backslash. Prefix
933 first line with "A", following lines with "B".
934 * Makefile.am (DEP): Don't use dep.sed here.
935 (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use
936 dep.sed here on dependencies, sort and uniq.
937 * Makefile.in: Regenerate.
938
939 2009-05-25 Tristan Gingold <gingold@adacore.com>
940
941 * makefile.vms: Add verilog.obj to object list OBJS.
942
943 2009-05-24 Alan Modra <amodra@bigpond.net.au>
944
945 * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory
946 for BFD_IN_MEMORY is cleared.
947 (bfd_bwrite): Zero excess memory allocated.
948
949 2009-05-22 Julian Brown <julian@codesourcery.com>
950
951 * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New
952 macros.
953 (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
954 (elf32_arm_stub_a8_veneer_blx): New stub sequences.
955 (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
956 arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
957 (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
958 (a8_erratum_fix, a8_erratum_reloc): New structs.
959 (elf32_arm_link_hash_table): Add a8_erratum_fixes,
960 num_a8_erratum_fixes, fix_cortex_a8 fields.
961 (elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
962 (elf32_arm_add_stub): Split into two parts, creating...
963 (elf32_arm_create_or_find_stub_sec): New function.
964 (elf32_arm_final_link_relocate): Add forward declaration.
965 (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
966 relocations, multiple relocations per stub.
967 (find_stub_size_and_template): New (using parts of arm_size_one_stub).
968 (arm_size_one_stub): Use find_stub_size_and_template.
969 (a8_reloc_compare): New.
970 (find_thumb_glue): Add forward declaration.
971 (cortex_a8_erratum_scan): New.
972 (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
973 (bfd_elf32_arm_set_cortex_a8_fix): New.
974 (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
975 (arm_map_one_stub): Add THUMB32_TYPE support.
976 (a8_branch_to_stub_data): New.
977 (make_branch_to_a8_stub): New.
978 (elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
979 * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
980 (bfd_elf32_arm_set_target_relocs): Add argument for controlling
981 Cortex-A8 erratum workaround.
982 * bfd-in2.h: Regenerate.
983
984 2009-05-22 Alan Modra <amodra@bigpond.net.au>
985
986 * Makefile.am: Run "make dep-am".
987 * Makefile.in: Regenerate.
988 * po/SRC-POTFILES.in: Regenerate.
989
990 2009-05-21 Alan Modra <amodra@bigpond.net.au>
991
992 * elflink.c (elf_link_input_bfd): Correct *pindex change in last
993 commit.
994
995 2009-05-21 Alan Modra <amodra@bigpond.net.au>
996
997 * elf-bfd.h (struct elf_backend_data
998 <elf_backend_link_output_symbol_hook>): Return an int.
999 * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop
1000 symbols on deleted .opd entries.
1001 * elflink.c (elf_link_output_sym): Return without outputting sym
1002 if output_symbol_hook returns 2.
1003 (elf_link_output_extsym): Don't assign h->indx when symbol discarded.
1004 Abort if we must not discard sym.
1005 (elf_link_input_bfd): Similarly, don't set finfo->indices for
1006 local syms.
1007 (bfd_elf_final_link): Adjust elf_link_output_sym calls.
1008 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for
1009 elf_backend_link_output_symbol_hook return type change.
1010 * elf32-arm.c (output_arch_syminfo): Likewise.
1011 (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise.
1012 (elf32_arm_output_arch_local_syms): Likewise.
1013 * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise.
1014 * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise.
1015 (bfd_score_elf_link_output_symbol_hook): Likewise.
1016 * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
1017 * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
1018 * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise.
1019 * elf32-spu.c (spu_elf_output_symbol_hook): Likewise.
1020 * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise.
1021 * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise.
1022 * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise.
1023 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise.
1024 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
1025 * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise.
1026 * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise.
1027
1028 2009-05-21 Alan Modra <amodra@bigpond.net.au>
1029
1030 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on
1031 out of range .opd symbols.
1032
1033 2009-05-21 Dave Korn <dave.korn.cygwin@gmail.com>
1034
1035 * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not
1036 fprintf_vma directly.
1037 * peXXigen.c (pe_print_edata): Likewise.
1038 (pe_print_pdata): Likewise.
1039 (_bfd_XX_print_ce_compressed_pdata): Likewise.
1040 (_bfd_XX_print_private_bfd_data_common): Likewise.
1041
1042 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
1043
1044 * cofflink.c (process_embedded_commands): Ignore "-aligncomm".
1045
1046 2009-05-15 Andrew Stubbs <ams@codesourcery.com>
1047 Paul Brook <paul@codesourcery.com>
1048
1049 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
1050 fix discarded sections.
1051
1052 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1053
1054 * elf32-spu.c (mark_overlay_section): Move .init and .fini
1055 sections into the software icache.
1056
1057 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1058
1059 * elf32-spu.c (build_stub): Always build "compact" sofware
1060 i-cache stubs.
1061
1062 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1063
1064 * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2.
1065 (spu_elf_setup): Initialize it.
1066 (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache.
1067 Update to new-sytle cache manager data structures.
1068 (spu_elf_build_stubs): Generate new-style cache manager data
1069 structures and symbols.
1070 (spu_elf_auto_overlay): Update size computation.
1071
1072 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1073
1074 * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY
1075 segments first amongst the program headers.
1076
1077 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1078
1079 * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index
1080 into addresses for relocation types that look at high bits. Remove
1081 special handling of relocation overflow warnings.
1082
1083 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1084
1085 * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the
1086 control flow graph between fragments of a function.
1087
1088 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1089
1090 * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode,
1091 generate only a 16-byte .toe section.
1092 (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise.
1093
1094 2009-05-14 Alan Modra <amodra@bigpond.net.au>
1095
1096 * elf32-spu.c (spu_elf_size_stubs): Split out section placement to..
1097 (spu_elf_place_overlay_data): ..here. New function.
1098 * elf32-spu.h (spu_elf_place_overlay_data): Declare.
1099
1100 2009-05-13 Andrew Jenner <andrew@codesourcery.com>
1101
1102 * elf32-arm.c: Move sysdep.h to start of file.
1103
1104 2009-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1105
1106 * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as
1107 start of overlays.
1108 (spu_elf_build_stubs): Don't define __icache_tagbase. Define
1109 __icache_tag_array and __icache_tag_array_size.
1110
1111 2009-05-11 Masaki Muranaka <monaka@monami-software.com>
1112
1113 * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary
1114 ATTRIBUTE_UNUSED.
1115 (bfinfdpic_link_omit_section_dynsym): Likewise.
1116 (elf32_bfinfdpic_finish_dynamic_sections): Likewise.
1117
1118 2009-05-05 Paul Brook <paul@codesourcery.com>
1119
1120 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
1121 * bfd-in2.h: Regenerate.
1122 * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
1123 (_arm_elf_section_data): Add text and exidx fields.
1124 (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
1125 insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
1126 copy_exidx_entry): New functions.
1127 (elf32_arm_write_section): Fixup .ARM.exidx contents.
1128
1129 2009-05-05 Christophe lyon <christophe.lyon@st.com>
1130
1131 * elf32-arm.c (DEF_STUBS): New helper define.
1132 (DEF_STUB): Likewise.
1133 (stub_def): New type.
1134 (stub_definitions): New array, containing stub template pointers
1135 and sizes.
1136 (arm_size_one_stub): Make use of stub_definitions.
1137
1138 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
1139
1140 * elflink.c (find_version_for_sym): Remove from here, ...
1141 * linker.c (bfd_find_version_for_sym): ... rename, replace
1142 here, make public and update all callers.
1143 * bfd-in2.h: Regenerate.
1144
1145 2009-04-30 Nick Clifton <nickc@redhat.com>
1146
1147 * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs
1148 section pointer.
1149 (struct elf_obj_data): Add has_ifunc_symbols boolean.
1150 * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags
1151 into a STT_GNU_IFUNC symbol type.
1152 (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function
1153 type.
1154 (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if
1155 the binary contains ifunc symbols.
1156 * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC
1157 symbol type into a BSF_GNU_INDIRECT_FUNCTION flag.
1158 * elf32-i386.c (is_indirect_function): New function.
1159 (elf_i386_check_relocs): Create an ifunc output section.
1160 (allocate_dynrelocs): Create dynamic relocs in the ifunc output
1161 section if necessary.
1162 (elf_i386_relocate_section): Emit a reloc against an ifunc symbol
1163 if necessary.
1164 (elf_i386_add_symbol_hook): New function. Set the
1165 has_ifunc_symbols field of the elf_obj_data structure if an ifunc
1166 symbol is encountered.
1167 (elf_backend_post_process_headers): Define.
1168 (elf_backend_add_symbol_hook): Define.
1169 (elf_i386_post_process_headers): Rename to
1170 elf_i388_fbsd_post_process_headers.
1171 * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro.
1172 (is_indirect_function): New function.
1173 (elf64_x86_64_check_relocs): Create an ifunc output section.
1174 (allocate_dynrelocs): Create dynamic relocs in the ifunc output
1175 section if necessary.
1176 (elf64_x86_64_relocate_section): Emit a reloc against an ifunc
1177 symbol if necessary.
1178 (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the
1179 elf_obj_data structure if an ifunc symbol is encountered.
1180 (elf_backend_post_process_headers): Define.
1181 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT
1182 if we have ifunc symbols to handle.
1183 (get_ifunc_reloc_section_name): New function. Computes the name
1184 for an ifunc section.
1185 (_bfd_elf_make_ifunc_reloc_section): New function. Creates a
1186 section to hold ifunc relocs.
1187 * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define.
1188 (bfd_print_symbol_vandf): Handle ifunc symbols.
1189 (bfd_decode_symclass): Likewise.
1190 * bfd-in2.h: Regenerate.
1191
1192 2009-04-30 Joseph Myers <joseph@codesourcery.com>
1193
1194 * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute
1195 MOVW and MOVT relocations in a shared library link.
1196
1197 2009-04-27 Anthony Green <green@moxielogic.com>
1198
1199 * verilog.c: New file.
1200 * Makefile.am (BFD32_LIBS): Add verilog.c.
1201 (BFD32_LIBS_CFILES): Add verilog.c.
1202 (verilog.lo): New build rule.
1203 * Makefile.in: Rebuilt.
1204 * targets.c: Add verilog support.
1205 * bfd.c (tdata union): Add Verilog private data field.
1206 * bfd-in2.h: Regenerate.
1207
1208 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
1209
1210 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
1211 copy pe_opthdr.
1212
1213 2009-04-23 Matthias Klose <doko@ubuntu.com>
1214
1215 * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.
1216
1217 2009-04-22 Christophe Lyon <christophe.lyon@st.com>
1218
1219 PR9743
1220 * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24,
1221 R_ARM_JUMP24 and R_ARM_PLT32 relocations.
1222 (elf32_arm_size_stubs): Likewise.
1223 (record_thumb_to_arm_glue): Deleted unused function.
1224 (bfd_elf32_arm_process_before_allocation): No longer handle
1225 R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here.
1226 (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24,
1227 R_ARM_JUMP24 and R_ARM_PLT32 relocations.
1228
1229 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
1230
1231 * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED.
1232 (elf32_arm_write_section): Declare early.
1233 (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD.
1234 (arm_allocate_glue_section_space): Exclude empty sections.
1235 (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED.
1236 (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub
1237 BFD.
1238 (elf32_arm_output_glue_section, elf32_arm_final_link): New.
1239 (elf32_arm_merge_eabi_attributes): Skip the stub BFD.
1240 (elf32_arm_size_dynamic_sections): Allocate interworking
1241 sections here.
1242 (bfd_elf32_bfd_final_link): Define.
1243
1244 2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
1245
1246 * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.
1247
1248 * coffcode.h (coff_compute_section_file_positions): Clear
1249 D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.
1250
1251 * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and
1252 force_minimum_alignment.
1253
1254 * libcoff.h: Regenerated.
1255
1256 * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed.
1257 (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise.
1258
1259 * peicode.h (pe_mkobject): Don't set force_minimum_alignment
1260 nor target_subsystem.
1261
1262 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check
1263 force_minimum_alignment nor target_subsystem.
1264
1265 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
1266
1267 * coff-x86_64.c (PEI_HEADERS): Protect includes.
1268 (bfd_pe_print_pdata): Remove #ifdef PE variation.
1269 * pei-x86_64.c (PEI_HEADERS): Define to prevent double
1270 include in coff-x86_64.c of headers.
1271 (PDATA_ROW_SIZE): New define.
1272 (pex_regs[]): New static array.
1273 (pex64_get_runtime_function): New static function.
1274 (pex64_get_unwind_info): Likewise.
1275 (pex64_get_scope_entry): Likewise.
1276 (pex64_xdata_print_uwd_codes): Likewise.
1277 (pex64_get_section_by_rva): Likewise.
1278 (pex64_dump_xdata): Likewise.
1279 (pex64_bfd_print_pdata): Likewise.
1280 (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
1281 * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
1282 * libpei.h (_bfd_pex64_print_pdata): Removed declaration.
1283
1284 2009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com>
1285 Alan Modra <amodra@bigpond.net.au>
1286 Dave Korn <dave.korn.cygwin@gmail.com>
1287
1288 * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t
1289 long names and non-NUL-terminated strings.
1290
1291 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
1292
1293 * bfd-in2.h: Regenerated.
1294
1295 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
1296
1297 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
1298 IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.
1299
1300 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
1301
1302 PR binutils/10074
1303 * coffcode.h (bfd_pei_p): New.
1304
1305 * config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
1306 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
1307 bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
1308 bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec,
1309 bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
1310 i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
1311
1312 * configure.in: Remove bfd_efi_bsdrv_ia32_vec,
1313 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
1314 bfd_efi_rtdrv_x86_64_vec,
1315 bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace
1316 bfd_efi_ia64_vec with bfd_pei_ia64_vec.
1317 * targets.c: Likewise.
1318
1319 * configure: Regenerated.
1320 * libcoff.h: Likewise.
1321 * Makefile.in: Likewise.
1322
1323 * efi-app-ia32.c: Removed.
1324 * efi-app-x86_64.c: Likewise.
1325 * efi-bsdrv-ia32.c: Likewise.
1326 * efi-bsdrv-ia64.c: Likewise.
1327 * efi-bsdrv-x86_64.c: Likewise.
1328 * efi-rtdrv-ia32.c: Likewise.
1329 * efi-rtdrv-ia64.c: Likewise.
1330 * efi-rtdrv-x86_64.c: Likewise.
1331 * efi-rtdrv-ia32.c: Likewise.
1332
1333 * efi-app-ia64.c: Moved to ...
1334 * pei-ia64.c: This.
1335 (TARGET_SYM): Set to bfd_pei_ia64_vec.
1336 (TARGET_NAME): Set to pei-ia64.
1337
1338 * libpei.h (bfd_target_pei_p): Removed.
1339 (bfd_target_pei_arch): Likewise.
1340 (bfd_target_efi_app_p): Likewise.
1341 (bfd_target_efi_app_arch): Likewise.
1342 (bfd_target_efi_bsdrv_p): Likewise.
1343 (bfd_target_efi_bsdrv_arch): Likewise.
1344 (bfd_target_efi_rtdrv_p): Likewise.
1345 (bfd_target_efi_rtdrv_arch): Likewise.
1346 (bfd_pe_executable_p): Likewise.
1347
1348 * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
1349 efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
1350 (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
1351 and efi-rtdrv-ia32.c.
1352 (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
1353 efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
1354 efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
1355 (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
1356 efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
1357 efi-rtdrv-x86_64.c. Add pei-ia64.c.
1358 (efi-app-ia64.lo): Removed.
1359 (efi-bsdrv-ia32.lo): Likewise.
1360 (efi-rtdrv-ia32.lo): Likewise.
1361 (efi-app-ia64.lo): Likewise.
1362 (efi-bsdrv-ia64.lo): Likewise.
1363 (efi-rtdrv-ia64.lo): Likewise.
1364 (efi-app-x86_64.lo): Likewise.
1365 (efi-bsdrv-x86_64.lo): Likewise.
1366 (efi-rtdrv-x86_64.lo): Likewise.
1367 (pei-ia64.lo): New.
1368
1369 * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
1370 with bfd_pei_p.
1371 (arch_type): Removed.
1372 (pe_arch): Likewise.
1373 (pe_bfd_object_p): Just return coff_object_p.
1374
1375 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
1376 bfd_pe_executable_p with bfd_pei_p.
1377
1378 2009-04-17 Christophe Lyon <christophe.lyon@st.com>
1379
1380 * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
1381 PLT entries to an undefined symbol when generating a shared
1382 library.
1383
1384 2009-04-17 Nick Clifton <nickc@redhat.com>
1385
1386 PR 9909
1387 * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
1388
1389 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
1390
1391 * aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
1392 * aout-target.h (MY_bfd_define_common_symbol): Likewise.
1393 * aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
1394 * binary.c (binary_bfd_define_common_symbol): Likewise.
1395 * bout.c (b_out_bfd_define_common_symbol): Likewise.
1396 * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
1397 * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
1398 * coffcode.h (coff_bfd_define_common_symbol): Likewise.
1399 * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
1400 * i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
1401 * i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
1402 * ieee.c (ieee_bfd_define_common_symbol): Likewise.
1403 * ihex.c (ihex_bfd_define_common_symbol): Likewise.
1404 * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
1405 * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
1406 * mmo.c (mmo_bfd_define_common_symbol): Likewise.
1407 * nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
1408 * oasys.c (oasys_bfd_define_common_symbol): Likewise.
1409 * pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
1410 * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
1411 * som.c (som_bfd_define_common_symbol): Likewise.
1412 * srec.c (srec_bfd_define_common_symbol): Likewise.
1413 * tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
1414 * versados.c (versados_bfd_define_common_symbol): Likewise.
1415 * vms.c (vms_bfd_define_common_symbol): Likewise.
1416 * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
1417 * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
1418 * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
1419 (pmac_xcoff_vec): Likewise.
1420 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1421 (aix5coff64_vec): Likewise.
1422 * linker.c (bfd_generic_define_common_symbol): New function.
1423 * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
1424 (_bfd_define_common_symbol): New field.
1425 * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
1426 * xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
1427 (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
1428 symbols here.
1429 * bfd-in2.h: Regenerate.
1430 * libbfd.h: Likewise.
1431 * libcoff.h: Likewise.
1432
1433 2009-04-15 Anthony Green <green@moxielogic.com>
1434
1435 * targets.c: Add moxie support.
1436 * Makefile.am: Ditto.
1437 * Makefile.in: Rebuilt.
1438 * cpu-moxie.c, elf32-moxie.c: New files.
1439 * archures.c: Add moxie support.
1440 * configure.in: Add moxie support.
1441 * configure: Rebuilt.
1442 * config.bfd, archures.c: Add moxie support.
1443 * bfd-in2.h: Rebuilt.
1444
1445 2009-04-15 Christophe Lyon <christophe.lyon@st.com>
1446
1447 * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
1448 branch to an undef weak symbol into a jump to next instruction if
1449 a PLT entry will be created.
1450
1451 2009-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
1452
1453 * coffgen.c (make_a_section_from_file): Set the backend long
1454 section names enable if long section names found on input.
1455 * coffcode.h: Extend long section names documentation to match.
1456
1457 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
1458
1459 * elflink.c (elf_link_add_object_symbols): Warn alternate ELF
1460 machine code.
1461
1462 2009-04-07 DJ Delorie <dj@redhat.com>
1463
1464 * archures.c: Add bfd_mach_mep_c5.
1465 * bfd-in2.h: Likewise.
1466 * cpu-mep.c: Add bfd_c5_arch.
1467 * elf32-mep.c: Support it.
1468
1469 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
1470
1471 * elflink.c (_bfd_elf_section_already_linked): Add `\n' for
1472 info->callbacks->einfo.
1473 * linker.c (_bfd_generic_section_already_linked): Likewise.
1474
1475 2009-04-06 DJ Delorie <dj@redhat.com>
1476
1477 * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
1478
1479 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
1480
1481 * coff-x86_64.c (bfd_pe_print_pdata): Defined to
1482 _bfd_pex64_print_pdata only if PE is defined.
1483
1484 * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
1485 (_bfd_pex64_print_pdata): This.
1486
1487 * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
1488 (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64
1489 is defined.
1490
1491 2009-04-05 Kai Tietz <kai.tietz@onevision.com>
1492
1493 * coff-x86_64.c (bfd_pe_print_pdata): Define as
1494 _bfd_pep_print_x64_pdata.
1495 * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
1496 * peXXigen.c (_bfd_pep_print_x64_pdata): New.
1497
1498 2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
1499
1500 * elf32-xtensa.c (relax_property_section): Always set r_offset
1501 to zero.
1502
1503 2009-04-02 Christophe Lyon <christophe.lyon@st.com>
1504
1505 * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
1506 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
1507 branch stubs.
1508 (elf32_arm_stub_type): New enum values for the two new stubs.
1509 (arm_type_of_stub): Make use of the two new stubs.
1510 (arm_size_one_stub): Handle the two new stubs.
1511
1512 2009-04-01 Matt Thomas <matt@netbsd.org>
1513
1514 * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
1515 hidden symbols into the GOT or PLT.GOT.
1516 (elf_vax_relocate_section): Do not emit a PCREL reloc
1517 into a shared object if it is against a hidden symbol.
1518
1519 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1520
1521 * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
1522 and know_contains_shared_object_p.
1523 (xcoff_archive_contains_shared_object_p): Add an "info" parameter.
1524 Cache the result in the archive_info table.
1525 (xcoff_auto_export_p): Add an "info" parameter and update the
1526 call to xcoff_archive_contains_shared_object_p.
1527 (xcoff_mark_auto_exports): Update accordingly.
1528 (xcoff_post_gc_symbol): Likewise.
1529
1530 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1531
1532 * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
1533 rather than C_EXT.
1534
1535 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1536
1537 * coff-rs6000.c (member_layout): New structure.
1538 (archive_iterator): Likewise.
1539 (member_layout_init): New function.
1540 (archive_iterator_begin): Likewise.
1541 (archive_iterator_next): Likewise.
1542 (xcoff_write_armap_old): Use the new iterator functions.
1543 (do_shared_object_padding): Delete.
1544 (xcoff_write_armap_big): Use the new iterator functions. Simplify
1545 handling of arch_info.
1546 (xcoff_write_archive_contents_old): Allocate arelt_data in the
1547 first loop rather than the second. Allocate a member header if
1548 there isn't one, then work out the stat information and length
1549 in the first loop too. Use the new iterators for the second loop.
1550 (xcoff_write_archive_contents_big): Likewise.
1551
1552 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1553
1554 * bfd-in.h (bfd_xcoff_split_import_path): Declare.
1555 (bfd_xcoff_set_archive_import_path): Likewise.
1556 * bfd-in2.h: Regenerate.
1557 * xcofflink.c: Include libiberty.h.
1558 (xcoff_archive_info): New structure.
1559 (xcoff_archive_info_hash): New function.
1560 (xcoff_archive_info_eq): Likewise.
1561 (xcoff_get_archive_info): Likewise.
1562 (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
1563 (bfd_xcoff_split_import_path): New function.
1564 (bfd_xcoff_set_archive_import_path): Likewise.
1565 (xcoff_set_import_path): Move earlier in file.
1566 (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
1567 object to the the directory part of the bfd's filename. Get the
1568 import path and filename of an archive object from the archive's
1569 xcoff_tdata, initializing it if necessary. Update use of
1570 import_file_id.
1571 (bfd_link_input_bfd): Update use of import_file_id.
1572 (xcoff_write_global_symbol): Likewise.
1573
1574 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1575
1576 * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
1577
1578 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1579
1580 * xcofflink.c (xcoff_link_create_extra_sections): Don't create
1581 a .loader section for relocatable links.
1582 (xcoff_need_ldrel_p): New function.
1583 (xcoff_mark): Use it.
1584 (bfd_xcoff_link_count_reloc): Only count loader relocs if there's
1585 a loader section.
1586 (xcoff_build_ldsym): New function, split out from...
1587 (xcoff_build_ldsyms): ...here. Rename to...
1588 (xcoff_post_gc_symbol): ...this. Only export symbols, and only
1589 call xcoff_build_ldsym, if there's a loader section.
1590 (xcoff_build_loader_section): New function, extracted verbatim from...
1591 (bfd_xcoff_size_dynamic_sections): ...here. Only call it if
1592 there's a loader section. Only add an __rtinit loader symbol
1593 if there's a loader section. Update after above name change.
1594 (xcoff_symbol_section, xcoff_create_ldrel): New functions.
1595 (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
1596 and xcoff_create_ldrel.
1597 (xcoff_write_global_symbol): Use xcoff_create_ldrel.
1598 (xcoff_reloc_link_order): Likewise, but only call it if there's
1599 a loader section. Use xcoff_symbol_section.
1600 (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
1601 if there's a loader section.
1602
1603 2009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
1604
1605 * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
1606
1607 2009-04-01 Christophe Lyon <christophe.lyon@st.com>
1608
1609 * elf32-arm.c (group_sections): Rewrite loops for better
1610 readability.
1611
1612 2009-03-30 DJ Delorie <dj@redhat.com>
1613
1614 * elflink.c (elf_link_input_bfd): Don't try to resolve complex
1615 relocs when doing a relocatable link.
1616
1617 2009-03-28 Mark Mitchell <mark@codesourcery.com>
1618
1619 * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
1620 "ERROR:", in error messages.
1621 * cpu-arm.c (bfd_arm_merge_machines): Likewise.
1622 * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
1623 * elf32-arm.c (tag_cpu_arch_combine): Likewise.
1624 (elf32_arm_merge_eabi_attributes): Likewise.
1625 (elf32_arm_merge_private_bfd_data): Likewise.
1626
1627 2009-03-27 Nick Clifton <nickc@redhat.com>
1628
1629 * section.c (bfd_get_section_contents): Detect and handle the case
1630 where a section has the SEC_IN_MEMORY flag set but no actual
1631 contents allocated.
1632
1633 2009-03-26 Alan Modra <amodra@bigpond.net.au>
1634
1635 PR 6494
1636 * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
1637 p_filesz and p_memsz are equal. Use p_memsz as the segment size.
1638 (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
1639 if we don't find matching PT_LOAD when copying.
1640
1641 2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
1642
1643 * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
1644 the reloc descriptions.
1645
1646 2009-03-25 Hans-Peter Nilsson <hp@axis.com>
1647
1648 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
1649 <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
1650 <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
1651
1652 2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
1653
1654 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
1655 (bfd_i386_arch_intel_syntax): Likewise.
1656 (i8086_arch): Likewise.
1657 (bfd_x86_64_arch): Likewise.
1658
1659 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
1660
1661 * elf32-cris.c (cris_elf_relocate_section): <case
1662 R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
1663 symbols for non-allocated sections. Don't check whether to
1664 generate R_CRIS_DTPMOD for non-allocated sections.
1665 (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
1666 handle relocation GC:ing if applied to non-allocated section.
1667 (cris_elf_check_relocs): Similar.
1668
1669 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
1670 <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
1671 when emitting a known TP offset in the GOT.
1672
1673 2009-03-23 Alan Modra <amodra@bigpond.net.au>
1674
1675 * elf64-ppc.c (synthetic_opd): Delete.
1676 (compare_symbols): Look for .opd name rather than section match.
1677 (ppc64_elf_get_synthetic_symtab): Likewise.
1678
1679 2009-03-21 Alan Modra <amodra@bigpond.net.au>
1680
1681 * elf32-ppc.c (is_pic_glink_stub): Delete.
1682 (is_nonpic_glink_stub): New function.
1683 (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
1684 than first pic one.
1685 (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
1686
1687 2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1688 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1689
1690 * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
1691 macros for visibilty and locality checks.
1692 (elf_s390_adjust_dynamic_symbol): Likewise.
1693 (allocate_dynrelocs): Likewise.
1694 (elf_s390_relocate_section): Likewise.
1695 (elf_s390_finish_dynamic_symbol): Likewise.
1696 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1697 (elf_s390_adjust_dynamic_symbol): Likewise.
1698 (allocate_dynrelocs): Likewise.
1699 (elf_s390_relocate_section): Likewise.
1700 (elf_s390_finish_dynamic_symbol): Likewise.
1701
1702 2009-03-19 Kai Tietz <kai.tietz@onevision.com>
1703
1704 * bfd-in2.h: Regenerated.
1705 * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
1706 for debugging sections and map memory read/write dependent on
1707 SEC_COFF_NOREAD.
1708 (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
1709 without memory read flags set.
1710 * section.c: Add SEC_COFF_NOREAD to section flags.
1711
1712 2009-03-19 Andreas Schwab <schwab@linux-m68k.org>
1713
1714 * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
1715 for format string.
1716
1717 2009-03-19 Alan Modra <amodra@bigpond.net.au>
1718
1719 * elf32-spu.c (spu_elf_find_overlays): Separate error return from
1720 "no overlays" return. If there are overlays, create overlay
1721 manager entry symbols here, so that..
1722 (spu_elf_build_stubs): ..we don't need to set them up here.
1723 Simplify entry symbol tests.
1724 * elf32-spu.h (spu_elf_find_overlays): Update prototype.
1725
1726 2009-03-18 Mark Kettenis <kettenis@gnu.org>
1727
1728 * elf.c (elfcore_grok_openbsd_procinfo)
1729 (elfcore_grok_openbsd_note): New functions.
1730 (elf_parse_notes): Handle notes from OpenBSD ELF core files.
1731
1732 2009-03-18 Alan Modra <amodra@bigpond.net.au>
1733
1734 * vms-hdr.c: Don't include alloca.h.
1735 * elf32-m68hc1x.c: Include alloca-conf.h.
1736 * xsym.c: Likewise.
1737 * elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
1738 * som.c: Likewise.
1739 * Makefile.am: Run "make dep-am".
1740 * Makefile.in: Regenerate.
1741
1742 2009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1743
1744 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
1745
1746 2009-03-17 Alan Modra <amodra@bigpond.net.au>
1747
1748 * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
1749 Add compact_stub.
1750 (emum _ovly_flavour): Delete ovly_compact, ovly_none.
1751 * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
1752 ovly_return fields with ovly_entry[2]. Adjust all users.
1753 (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
1754 when soft-icache.
1755 (spu_elf_build_stubs): Likewise.
1756 (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
1757 ovly_flavour changes. Update all callers.
1758 (ovl_stub_size_log2): New function.
1759 (build_stub): Handle compact icache stubs. Use different manager
1760 entry point for stubs in non-icache area.
1761 (spu_elf_size_stubs): Don't allocate space for indirect branch
1762 descriptors.
1763 (spu_elf_build_stubs): And don't built them.
1764
1765 2009-03-16 Andrew Stubbs <ams@codesourcery.com>
1766
1767 * dwarf2.c (read_section): Always use rawsize, if available.
1768
1769 2009-03-16 Alan Modra <amodra@bigpond.net.au>
1770
1771 * simple.c (bfd_simple_get_relocated_section_contents): Use larger
1772 of rawsize and size for buffer.
1773
1774 2009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1775
1776 * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
1777 parameter just because fixed sections fit into local store.
1778 (spu_elf_auto_overlay): Do not declare as "noreturn". Skip
1779 generating overlays if fixed sections plus reserved stack
1780 and heap space fit into local store.
1781
1782 2009-03-15 Alan Modra <amodra@bigpond.net.au>
1783
1784 * elf32-spu.c (build_stub): Correct icache set_id.
1785 (spu_elf_relocate_section): Likewise.
1786
1787 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1788
1789 * xcofflink.c (xcoff_link_check_archive_element): Only free the
1790 symbol table if it was created by the current call.
1791
1792 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1793
1794 * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
1795 class XMC_DS rather than XMC_UA.
1796
1797 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1798
1799 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
1800 bfd_boolean export_defineds parameter with an unsigned int
1801 auto_export_flags parameter.
1802 * bfd-in2.h: Regenerate.
1803 * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
1804 split out from xcoff_build_ldsyms.
1805 (xcoff_covered_by_expall_p): New function.
1806 (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
1807 but with extra code to handle -bexpfull and -bexpall.
1808 (xcoff_mark_auto_exports): New function.
1809 (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
1810 a function should be automatically exported.
1811 (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
1812 parameter with an auto_export_flags parameter. Update ldinfo
1813 accordingly. Use xcoff_mark_auto_exports to mark all automatically-
1814 exported symbols.
1815
1816 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1817
1818 * xcofflink.c (xcoff_mark_symbol_by_name): New function.
1819 (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
1820 init and fini functions. Do garbage collection for objects
1821 without an entry point too.
1822
1823 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1824
1825 * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
1826 check whether a symbol has csect information.
1827 (coff_print_aux): Likewise.
1828 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
1829 information for C_AIX_WEAKEXT too.
1830 (_bfd_xcoff_swap_aux_out): Likewise.
1831 (xcoff_reloc_type_br): Handle defweak symbols too.
1832 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
1833 information for C_AIX_WEAKEXT too.
1834 (_bfd_xcoff64_swap_aux_out): Likewise.
1835 (xcoff64_reloc_type_br): Handle defweak symbols too.
1836 * coffgen.c (coff_print_symbol): Handle auxillary function
1837 information for C_AIX_WEAKEXT too.
1838 * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
1839 instead of BSF_GLOBAL if the L_WEAK flag is set.
1840 (xcoff_dynamic_definition_p): New function.
1841 (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
1842 defines h. Don't change h if ldsym isn't the definition. Otherwise,
1843 always take the symbol class from the ldsym. Use weak bfd symbol
1844 types for weak ldsyms.
1845 (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
1846 Fix the check for whether a definition is from a shared object.
1847 Allow redefinitions of weak symbols.
1848 (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
1849 (xcoff_keep_symbol_p): Likewise.
1850 (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
1851 (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
1852 Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
1853 but mark them as L_WEAK.
1854 (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
1855 instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
1856
1857 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1858
1859 * xcofflink.c (xcoff_mark): When walking the relocations,
1860 only mark the target symbol or the target section, not both.
1861 (xcoff_final_definition_p): New function.
1862 (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
1863 symbol is a valid definition of the associated output symbol.
1864 Use XCOFF_ALLOCATED to stop the same hash table entry having
1865 two output symbols.
1866 (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
1867 keeping a symbol.
1868 (xcoff_link_input_bfd): Use xcoff_final_definition_p.
1869
1870 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1871
1872 * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
1873 symbols as XMC_XO.
1874
1875 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1876
1877 * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
1878 * libcoff.h: Regenerate.
1879 * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
1880 line-number counts in the bfd's lineno_counts field.
1881 Don't keep per-csect line-number counts.
1882 (xcoff_sweep): Don't update per-csect line-number counts.
1883 (bfd_xcoff_size_dynamic_sections): Count the number of line-number
1884 entries in each output section.
1885 (xcoff_link_input_bfd): Get the number of line numbers from
1886 the bfd's lineno_counts field, rather than recalculating it
1887 from scratch. Fix the range check when updating C_BINCL and
1888 C_EINCL symbols.
1889 (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
1890 here. Don't expect csects to have line-number counts.
1891
1892 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1893
1894 * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
1895 * libcoff.h: Regenerate.
1896 * xcofflink.c (xcoff_keep_symbol_p): New function, using the
1897 "skip" logic from xcoff_link_input_bfd.
1898 (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
1899 objects in a dynamic link, rather than checking whether csectpp
1900 is null. Always allocate debug_index for other objects,
1901 and always go through the loop. Update the type of debug_index
1902 after the change above. Read the auxillary csect information
1903 and use xcoff_keep_symbol_p to decide whether a symbol should
1904 be kept. Set its debug_index to -2 if not.
1905 (xcoff_link_input_bfd): Update the type of debug_index after
1906 the change above and always expect it to be nonnull. Use it to
1907 test whether a symbol should be stripped, rather than making the
1908 decision here. Postpone all symbol creation to the second pass.
1909
1910 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1911
1912 * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
1913 creating a descriptor.
1914 (xcoff_sweep): Don't mark toc_section unless it's needed.
1915 (bfd_xcoff_size_dynamic_sections): Skip the toc_section
1916 when marking every bfd.
1917 (xcoff_link_input_bfd): Skip all TOC anchors.
1918 (xcoff_toc_section_p, xcoff_find_tc0): New functions.
1919 (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
1920 to -1; call xcoff_find_tc0 instead.
1921
1922 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1923
1924 * libcoff-in.h (xcoff_section_tdata): Update commentary.
1925 * libcoff.h: Regenerate.
1926 * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
1927 symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
1928 the previous symbol's csect. Treat last_symndx as an inclusive value
1929 and simplify its handling.
1930 (xcoff_mark): Treat last_symndx as an inclusive value. Only mark
1931 symbols with the right csect. Don't mark rsec when processing
1932 relocations against undefined or absolute sections.
1933 (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
1934 of bfd_und_section_ptr.
1935 (xcoff_link_input_bfd): Likewise.
1936
1937 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1938
1939 * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
1940 against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
1941 flag is set. Assert that all undefined symbols are either
1942 imported or defined by a dynamic object.
1943 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
1944 * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
1945 handling to all relocations. Only set XCOFF_CALLED for function
1946 symbols.
1947 (xcoff_find_function): New function, split out from...
1948 (bfd_xcoff_export_symbol) ...here.
1949 (xcoff_set_import_path): New function, split out from...
1950 (bfd_xcoff_import_symbol): ...here. Remove assertion for old
1951 meaning of XCOFF_CALLED.
1952 (xcoff_mark_symbol): If we mark an undefined and unimported
1953 symbol, find some way of defining it. If the symbol is a function
1954 descriptor, fill in its definition automatically. If the symbol
1955 is a function, mark its descriptor and allocate room for global
1956 linkage code. Otherwise mark the symbol as implicitly imported.
1957 Move the code for creating function descriptors from...
1958 (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
1959 check for symbols that were implicitly defined.
1960 (xcoff_mark): Don't count any dynamic relocations against
1961 function symbols.
1962 (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
1963 in the xcoff link info.
1964 (xcoff_link_input_bfd): Remove handling of undefined and
1965 unexported symbols.
1966
1967 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1968
1969 * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
1970 if the target is absolute. Fix comment typo.
1971 (xcoff_ppc_relocate_section): Remove FIXME.
1972 * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
1973 if the target is absolute.
1974
1975 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1976
1977 * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
1978 R_POS and R_NEG relocations against absolute symbols to the
1979 .loader section.
1980
1981 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1982
1983 * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
1984 to 2 for bfd_mach_ppc_620.
1985
1986 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1987
1988 * config.bfd: Treat AIX 6+ in the same way as AIX 5.
1989 * configure.in: Likewise.
1990 * configure: Regenerate.
1991
1992 2009-03-13 H.J. Lu <hongjiu.lu@intel.com>
1993
1994 PR binutils/9945
1995 * elf.c (assign_section_numbers): Generate symbol table if there
1996 is any relocation in output.
1997 (_bfd_elf_compute_section_file_positions): Likewise.
1998
1999 2009-03-13 Nick Clifton <nickc@redhat.com>
2000
2001 PR 9934
2002 * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
2003 * elflink.c (elf_link_read_relocs_from_section): Use
2004 NUM_SHDR_ENTRIES. Gracefully handle the case where there are
2005 relocs but no symbol table.
2006 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
2007
2008 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 PR ld/9938
2011 * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
2012 to check ___tls_get_addr.
2013
2014 * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
2015 strncmp to check __tls_get_addr.
2016
2017 2009-03-12 Andrew Stubbs <ams@codesourcery.com>
2018
2019 * dwarf2.c (read_section): Always check the offset, even when the
2020 section has been read before.
2021
2022 2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
2023
2024 * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
2025 comments.
2026
2027 2009-03-11 Chris Demetriou <cgd@google.com>
2028
2029 * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
2030 * bfd-in2.h: Regenerate.
2031 * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
2032 flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
2033 mode.
2034 (bsd_write_armap): Likewise.
2035 (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
2036 flag is set, do nothing.
2037 (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
2038 for timestamp.
2039
2040 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2041
2042 * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
2043 used to update stack pointer.
2044
2045 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2046
2047 PR binutils/9921
2048 * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
2049 for unknown symbols in absolute section.
2050
2051 2009-03-06 Nick Clifton <nickc@redhat.com>
2052
2053 * po/es.po: Updated Spanish translation.
2054
2055 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
2056
2057 * elf32-arm.c (group_sections): Take next section size into
2058 account before accepting to group it.
2059
2060 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
2061
2062 * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
2063 PLT entries.
2064 (elf32_arm_final_link_relocate): Likewise.
2065
2066 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
2067
2068 PR 9923
2069 * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
2070
2071 2009-03-04 Alan Modra <amodra@bigpond.net.au>
2072
2073 * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
2074 * section.c (struct bfd_section): Add has_tls_get_addr_call.
2075 (BFD_FAKE_SECTION): Init new flag.
2076 * ecoff.c (bfd_debug_section): Likewise.
2077 * bfd-in2.h: Regenerate.
2078 * libbfd.h: Regenerate.
2079 * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
2080 (ppc_elf_reloc_type_lookup): Handle new relocs.
2081 (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
2082 without marker relocs.
2083 (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
2084 if section has no old-style calls.
2085 (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
2086 Don't try to optimize new-style __tls_get_addr call when handling
2087 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
2088 relocs.
2089 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
2090 (ppc64_elf_reloc_type_lookup): Handle new relocs.
2091 (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
2092 without marker relocs.
2093 (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
2094 if section has no old-style calls. Set toc_ref for new relocs as
2095 appropriate.
2096 (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
2097 Don't try to optimize new-style __tls_get_addr call when handling
2098 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
2099 relocs.
2100
2101 2009-03-04 Alan Modra <amodra@bigpond.net.au>
2102
2103 PR 6768
2104 * configure.in: Test for ld --as-needed support. Link shared
2105 libbfd against libm.
2106 * configure: Regenerate.
2107
2108 2009-03-03 Alan Modra <amodra@bigpond.net.au>
2109
2110 * Makefile.am: Run "make dep-am".
2111 * Makefile.in: Regenerate.
2112
2113 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
2114
2115 * elf32-score7.c: New file.
2116 * elf32-score.h: New file.
2117 * elf32-score.c: Add code to support score 7. Set score7 as the
2118 default.
2119 * cpu-score.c: Add score7 architecure.
2120 (compatibile): New function.
2121 * Makefile.am: Add rules for building elf32-score7 object.
2122 * Makefile.in: Regenerate.
2123 * configure.in: Add elf32-score7 object to score vectors.
2124 * configure: Regenerate.
2125 * reloc.c: Add score7 relocs.
2126 * archures.c: Add score3 and score7 machine numbers.
2127 * bfd-in2.h: Regenerate.
2128 * libbfd.h: Regenerate.
2129
2130 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2131
2132 * configure: Regenerate.
2133
2134 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2135
2136 * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
2137 (elf32_hppa_check_relocs): Use it.
2138
2139 * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
2140 elf64-hppa.c.
2141 (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
2142 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2143 (elf_hppa_is_dynamic_loader_symbol): Likewise.
2144 (elf_hppa_record_segment_addrs): Likewise.
2145 (elf_hppa_final_link): Likewise.
2146 (elf_hppa_relocate_insn): Likewise.
2147 (elf_hppa_final_link_relocate): Likewise.
2148 (elf64_hppa_relocate_section): Likewise.
2149 * elf64-hppa.c: Insert above.
2150
2151 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2152
2153 * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
2154 (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
2155 (elf_hppa_relocate_section): Likewise.
2156 * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
2157 from struct elf_link_hash_entry. Add count field.
2158 (struct elf64_hppa_dyn_hash_table): Delete.
2159 (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
2160 (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
2161 (hppa_elf_hash_entry, eh_name): Define.
2162 (elf64_hppa_new_dyn_hash_entry): Delete.
2163 (elf64_hppa_dyn_hash_lookup): Delete.
2164 (elf64_hppa_dyn_hash_traverse): Delete.
2165 (get_dyn_name): Delete.
2166 (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
2167 of struct elf64_hppa_dyn_hash_entry *.
2168 (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
2169 allocate_global_data_plt, allocate_global_data_stub,
2170 allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
2171 Likewise.
2172 (hppa64_link_hash_newfunc): New.
2173 (elf64_hppa_hash_table_create): Rework.
2174 (count_dyn_reloc): Likewise.
2175 (hppa64_elf_local_refcounts): New.
2176 (elf64_hppa_check_relocs): Rework using standard technique for recording
2177 local DLT, PLT and OPD reference counts.
2178 (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
2179 elf_link_hash_entry *.
2180 (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
2181 allocate_global_data_plt, allocate_global_data_stub,
2182 allocate_global_data_opd, allocate_dynrel_entries,
2183 elf64_hppa_adjust_dynamic_symbol,
2184 elf64_hppa_mark_milli_and_exported_functions): Likewise.
2185 (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
2186 Use hppa_link_hash_table. Rework.
2187 (elf64_hppa_link_output_symbol_hook): Rework.
2188 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
2189 elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
2190 elf64_hppa_finish_dynamic_sections): Likewise.
2191
2192 2009-02-26 Christophe Lyon <christophe.lyon@st.com>
2193
2194 * elf32-arm.c (stub_reloc_type): Removed.
2195 (insn_sequence): Renamed reloc_type field to r_type.
2196 (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
2197 (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
2198 (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
2199 (elf32_arm_stub_type): Add new enum entries for the new stubs.
2200 (arm_stub_is_thumb): Catch new stubs.
2201 (arm_type_of_stub): Handle new stubs.
2202 (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
2203 (bfd_elf32_arm_process_before_allocation): Remove useless
2204 condition.
2205
2206 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
2207
2208 * elf.c (elf_find_function): Use is_function_type to check
2209 function symbol.
2210
2211 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
2212
2213 * xtensa-modules.c: Revert to previous version 1.11 due
2214 to inadvertant commit.
2215
2216 2009-02-24 Sterling Augustine <sterling@tensilica.com>
2217
2218 * elf32-xtensa.c (text_action_add): Separate test for action
2219 type. Break if saved action is ta_widen_insn at same offset.
2220
2221 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
2222
2223 * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
2224 to elf32_arm_stub_long_branch_any_arm_pic.
2225 (elf32_arm_stub_long_branch_any_thumb_pic): New.
2226 (enum elf32_arm_stub_type, arm_type_of_stub)
2227 (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
2228 separately.
2229
2230 2009-02-24 Joseph Myers <joseph@codesourcery.com>
2231
2232 * elf32-arm.c (PREV_SEC): Update comment.
2233 (group_sections): Rename argument to stubs_always_after_branch.
2234 Reverse the list and place stubs at the end of input sections.
2235 Undefine NEXT_SEC.
2236 (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
2237
2238 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2239
2240 * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
2241 Fix formatting.
2242 (arm_size_one_stub): Remove unnecessary break.
2243 (arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
2244
2245 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
2246
2247 * elf32-arm.c (stub_insn_type): New type.
2248 (stub_reloc_type): Likewise.
2249 (insn_sequence): Likewise.
2250 (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
2251 (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
2252 (elf32_arm_stub_long_branch_thumb_only): Likewise.
2253 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
2254 (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
2255 (elf32_arm_stub_long_branch_any_any_pic): Likewise.
2256 (elf32_arm_stub_hash_entry): Add new helper fields.
2257 (stub_hash_newfunc): Initialize these new fields.
2258 (arm_build_one_stub): Encode Arm and Thumb instructions separately
2259 to take endianness into account.
2260 (arm_size_one_stub): Compute size of stubs using insn_sequence.
2261 (arm_map_one_stub): Code is now more generic, thanks to
2262 insn_sequence.
2263
2264 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
2265
2266 * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
2267 code.
2268 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
2269 (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
2270 BLX is not available. Fix typo in warning message. Add comments
2271 and improve formatting.
2272 (arm_build_one_stub): Adjust to new
2273 elf32_arm_stub_long_branch_v4t_thumb_arm stub.
2274 (arm_map_one_stub): Likewise.
2275
2276 2009-02-23 Tristan Gingold <gingold@adacore.com>
2277 Eric Botcazou <ebotcazou@adacore.com>
2278 Douglas B Rupp <rupp@gnat.com>
2279
2280 * vms.h: Update copyright year, fix comments, reorder declarations.
2281 (_bfd_save_vms_section): Remove the prototype.
2282 (EGPS_S_V_NO_SHIFT): New constant.
2283 (bfd_vms_set_section_flags): New prototype.
2284 (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
2285 constants.
2286 (EGSY_S_W_FLAGS): Ditto.
2287 (EGSY_S_V_QUAD_VAL): Ditto.
2288 (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
2289 (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
2290 EGST_S_B_NAMLNG): Ditto.
2291 (ESRF_S_B_NAMLNG): Ditto.
2292 (ETIR_S_C_HEADER_SIZE): Ditto.
2293 (EGPS_S_V_ALLOC_64BIT): Ditto.
2294 (DST_S_C_EPILOG): Ditto.
2295 (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
2296 (DST_S_C_SRC_INCRLNUM_B): Ditto.
2297 (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
2298 (DST_S_L_PCLINE_UNSLONG): Ditto.
2299 (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
2300 (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
2301 (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
2302 (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
2303 (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
2304 (DST_S_B_SRC_UNSBYTE): Ditto.
2305 (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
2306 Add prototypes.
2307 (vms_section, vms_reloc): Remove types.
2308 (hdr_struc): Replaced by ...
2309 (hdr_struct): ... new type.
2310 (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
2311 (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
2312 (EMH_DATE_LENGTH): Ditto.
2313 (eom_struc): Replaced by ...
2314 (eom_struct): ... new type.
2315 (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
2316 (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
2317 (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
2318 (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
2319 (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
2320 (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
2321 (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
2322 (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
2323 (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
2324 (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
2325 (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
2326 (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
2327 (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
2328 (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
2329 (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
2330 (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
2331 (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
2332 (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
2333 (DBG_S_C_DMT_PSECT_SIZE): Ditto.
2334 (enum file_type_enum): New type.
2335 (struct location_struct): Removed.
2336 (struct fileinfo, struct srecinfo, struct lineinfo): New types.
2337 (struct funcinfo, struct module): Ditto.
2338 (struct vms_private_data_struct): Update fields.
2339 (struct vms_section_data_struct): New type.
2340
2341 * vms.c: Update copyright year, fix comments,
2342 Fix includes for DECC, add prototypes.
2343 (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
2344 some initializers.
2345 Use flavour to set is_vax, location_stack is removed.
2346 (struct pair): Declare.
2347 (fill_section_ptr): Initialize variables at declaration.
2348 Add guard to set SECTION_SYM flag, handlde und section.
2349 (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
2350 (_bfd_vms_slurp_object_records): New function, replaces previous
2351 vms_object_p.
2352 (vms_slurp_module): New function.
2353 (vms_slurp_image): Ditto.
2354 (vms_object_p): Complete rewrite.
2355 (vms_mkobject): Use is_vax field to slect architecture.
2356 (free_reloc_stream): New function.
2357 (vms_convert_to_var): Ditto.
2358 (vms_convert_to_var_1): Ditto.
2359 (vms_convert_to_var_unix_filename): Ditto.
2360 (vms_close_and_cleanup): Call free_reloc_stream, convert file to
2361 VAR format on VMS.
2362 (vms_new_section_hook): Set alignment to 0, allocate private data.
2363 (vms_get_section_contents): Load content.
2364 (vms_get_symbol_info): Handle undefined section.
2365 (vms_find_nearest_line): Handle.
2366 (alloc_reloc_stream): New function.
2367 (vms_slurp_reloc_table): Ditto.
2368 (vms_get_reloc_upper_bound): Make it real.
2369 (vms_canonicalize_reloc): Do the real work.
2370 (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
2371 ALPHA_R_BOH.
2372 (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
2373 (vms_set_arch_mach): Check arch.
2374 (vms_set_section_contents): Copy the content after allocation.
2375 (vms_alpha_vec): Update object flags.
2376
2377 * vms-tir.c: Update copyright year, fix comments,
2378 add prototypes for new functions.
2379 (dst_define_location): New function.
2380 (dst_restore_location): New function.
2381 (dst_retrieve_location): New function.
2382 (dst_check_allocation): New function.
2383 (image_dump): Call dst_check_allocation.
2384 (image_write_b): Ditto.
2385 (image_write_w): Ditto.
2386 (image_write_l): Ditto.
2387 (image_write_q): Ditto.
2388 (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
2389 STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
2390 CTL_STKDL.
2391 Call error handler instead of abort if name is not known.
2392 (etir_sta): Add quarter_relocs argument and set it.
2393 Fix cast.
2394 (etir_sto): Ditto.
2395 (etir_opr): Ditto, return FALSE in case of error.
2396 (etir_ctl): Add quarter_relocs argument and set it, fix cast.
2397 Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
2398 (etir_stc): Add quarter_relocs argument and set it, fix cast.
2399 Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
2400 Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
2401 Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
2402 Return FALSE in case of error.
2403 (tir_sta): Change sign of psect.
2404 (tir_ctl): Ditto.
2405 (tir_cmd): Fix cast. Makes tir_table static const.
2406 (etir_cmd): Add quarter_relocs argument, makes etir_table const,
2407 add argument to explain.
2408 (analyze_etir): Initialize maxptr, add quarter_relocs
2409 declaration, move some declarations into inner scopes.
2410 Handle quarter_relocs and STO_IMM.
2411 (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
2412 (_bfd_vms_slurp_relocs): New function.
2413 (_bfd_vms_decode_relocs): New function.
2414 (sto_imm): Rewritten.
2415 (start_first_etbt_record): New function.
2416 (start_another_etbt_record): Ditto.
2417 (etir_output_check): Ditto.
2418 (defer_reloc_p): Ditto.
2419 (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
2420 a for-loop. Correctly deals with contents, deals with .vmsdebug,
2421 rewritte relocations handling.
2422 (_bfd_vms_write_tbt): Removed.
2423 (_bfd_vms_write_dbg): Ditto.
2424
2425 * vms-misc.c: Update copyright year, Fix comments.
2426 (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
2427 (maybe_adjust_record_pointer_for_object): New function.
2428 (_bfd_vms_get_first_record): New function, replaces ...
2429 (_bfd_vms_get_record): .. removed.
2430 (_bfd_vms_get_object_record): New function.
2431 (_bfd_vms_get_object_record): New function.
2432 (vms_get_remaining_object_record): New function, replaces ...
2433 (_bfd_vms_get_next_record): ... removed.
2434 (add_new_contents): Removed.
2435 (_bfd_save_vms_section): Removed.
2436 (_bfd_get_vms_section): Removed.
2437 (_bfd_vms_output_flush): Write in VAR format.
2438 (new_symbol): Don't make UND section.
2439
2440 * vms-hdr.c: Update copyright year, update list of record handled.
2441 (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
2442 (_bfd_vms_write_hdr): Strip vms and unix patches,
2443 add comments, truncate module name at 31 characters,
2444 use constants instead of hard-coded value,
2445 write BFD version instead of a fixed string.
2446 (_bfd_vms_slurp_ihd): New function.
2447 (_bfd_vms_slurp_isd): Ditto.
2448 (_bfd_vms_slurp_ihs): Ditto.
2449 (new_module): Ditto.
2450 (parse_module): Ditto
2451 (build_module_list): Ditto.
2452 (module_find_nearest_line): Ditto.
2453 (_bfd_vms_find_nearest_dst_line): Ditto.
2454 (vms_slurp_debug): Ditto.
2455 (_bfd_vms_slurp_dbg): Ditto.
2456 (_bfd_vms_slurp_tbt): Ditto.
2457 (_bfd_vms_write_dbg): Ditto.
2458 (_bfd_vms_write_tbt): Ditto.
2459
2460 * vms-gsd.c: Update copyright year, update list of records handled.
2461 (EVAX_LITERALS_NAME): New macro.
2462 (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
2463 (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
2464 (register_universal_symbol): New function and prototype.
2465 (_bfd_vms_slurp_gsd): Fix indentations and casts,
2466 improve debug messages,
2467 use constants instead of hard-coded value,
2468 fix missing endianness conversion,
2469 handle global symbol (SYMG).
2470 (bfd_vms_set_section_flags): New function.
2471 (_bfd_vms_write_gsd): Don't write .vmsdebug section,
2472 handle section literals,
2473 fix indentation,
2474 handle section bfd and vms flags,
2475 don't output LIB$INITIALIZE symbol,
2476 fix handling of weak symbols,
2477 fix evax vs vax procedure descriptor,
2478 handle absolute symbols.
2479
2480 * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
2481 BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
2482
2483 * makefile.vms (DEFS): Fix flags for VMS.
2484
2485 * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
2486
2487 * bfd-in2.h: Regenerated.
2488 * libbfd.h: Regenerated.
2489
2490 2009-02-20 Cary Coutant <ccoutant@google.com>
2491
2492 * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
2493 in struct stat.
2494
2495 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
2496
2497 PR gas/7059
2498 * coffcode.h (coff_write_object_contents): Don't let the string
2499 table offset overflow the s_name field when using long section names.
2500
2501 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
2502
2503 * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
2504 control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
2505 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2506 * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
2507 control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
2508 (bfd_pmac_xcoff_backend_data): Likewise.
2509 * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
2510 (bfd_xcoff_aix5_backend_data): Likewise.
2511 (xcoff64_write_object_contents): Delete unused long_section_names
2512 local variable.
2513 * coff-sh.c (bfd_coff_small_swap_table): Initialise long section
2514 name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
2515 struct non-const.
2516 * coffcode.h (documentation): Update to describe long section names.
2517 (COFFLONGSECTIONCATHELPER): New helper macro.
2518 (BLANKOR1TOODD): Likewise.
2519 (COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
2520 (COFF_LONG_SECTION_NAMES_SETTER): Likewise.
2521 (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
2522 (bfd_coff_set_long_section_names_allowed): New function.
2523 (bfd_coff_set_long_section_names_disallowed): Likewise.
2524 (struct bfd_coff_backend_data): Add new backend hook function
2525 pointer _bfd_coff_set_long_section_names.
2526 (bfd_coff_set_long_section_names): New backend hook.
2527 (coff_write_object_contents): Only generate long section names if
2528 bfd_coff_long_section_names() indicates they are currently enabled.
2529 (bfd_coff_std_swap_table): Make non-const, and initialise long
2530 section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
2531 (ticoff0_swap_table): Likewise to both.
2532 (ticoff1_swap_table): Again, likewise to both.
2533 * coffgen.c (make_a_section_from_file): Allow long section names
2534 as inputs even if not currently allowed for outputs.
2535 * ecoff.c (_bfd_ecoff_no_long_sections): New function.
2536 * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
2537 * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
2538 * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
2539 * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
2540 * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
2541 * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
2542 * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
2543 * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
2544 * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
2545 * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
2546 * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
2547 * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
2548 * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
2549 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
2550 * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
2551 * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
2552 * libcoff-in.h: Update copyright year to cause updated copyright
2553 year in generated libcoff.h, and fix typo.
2554 * libcoff.h: Regenerated.
2555 * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
2556 (_bfd_ecoff_no_long_sections): Add prototype.
2557 * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
2558 * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
2559 defined by an including .c file.
2560 * ticoff.h (ticoff0_swap_table): Make non-const, and initialise
2561 long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
2562 (ticoff1_swap_table): Likewise to both.
2563
2564 2009-02-18 Christophe Lyon <christophe.lyon@st.com>
2565
2566 * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
2567 stub. Catch default case error.
2568 (arm_map_one_stub): Add missing Thumb mapping symbol.
2569
2570 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
2571
2572 PR 9841
2573 * elf32-avr.c: Handle case where no local symbos exist correctly.
2574
2575 2009-02-16 Christophe Lyon <christophe.lyon@st.com>
2576
2577 bfd/
2578 * elf32-arm.c (arm_long_branch_stub,
2579 arm_thumb_v4t_long_branch_stub,
2580 arm_thumb_thumb_long_branch_stub,
2581 arm_thumb_arm_v4t_long_branch_stub,
2582 arm_thumb_arm_v4t_short_branch_stub,
2583 arm_pic_long_branch_stub):
2584 Renamed to elf32_arm_stub_long_branch_any_any,
2585 elf32_arm_stub_long_branch_v4t_arm_thumb,
2586 elf32_arm_stub_long_branch_thumb_only,
2587 elf32_arm_stub_long_branch_v4t_thumb_arm,
2588 elf32_arm_stub_short_branch_v4t_thumb_arm,
2589 elf32_arm_stub_long_branch_any_any_pic.
2590 (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
2591 arm_thumb_thumb_stub_long_branch,
2592 arm_thumb_arm_v4t_stub_long_branch,
2593 arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
2594 Renamed to arm_stub_long_branch_any_any,
2595 arm_stub_long_branch_v4t_arm_thumb,
2596 arm_stub_long_branch_thumb_only,
2597 arm_stub_long_branch_v4t_thumb_arm,
2598 arm_stub_short_branch_v4t_thumb_arm,
2599 arm_stub_long_branch_any_any_pic.
2600
2601 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2602
2603 * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
2604 in branch offset check.
2605
2606 2009-02-15 Alan Modra <amodra@bigpond.net.au>
2607
2608 * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
2609 add toc.symndx and toc.add.
2610 (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
2611 Set up toc.add.
2612 (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
2613 callers.
2614 (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
2615 (branch_reloc_hash_match): New function, extracted from..
2616 (ppc64_elf_tls_optimize): ..here.
2617 (ppc64_elf_relocate_section): Properly set addends when optimizing
2618 tls sequences. Avoid unnecessary reading and writing of insns.
2619 Only redo reloc when symbol changed. Bypass symbol checks when
2620 using tlsld_got.
2621 * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
2622 (branch_reloc_hash_match): New function, extracted from..
2623 (ppc_elf_tls_optimize): ..here.
2624 (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
2625 Don't clear addend on zapped __tls_get_addr reloc.
2626
2627 2009-02-12 Nick Clifton <nickc@redhat.com>
2628
2629 PR 9827
2630 * elflink.c (bfd_elf_final_link): When counting the relocations,
2631 if the header size has not been set yet then assume that it will
2632 match the output section's reloc type.
2633
2634 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
2635
2636 * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
2637 relocatable link.
2638
2639 2009-02-09 Alan Modra <amodra@bigpond.net.au>
2640
2641 * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
2642 (find_function): Likewise.
2643 (pasted_function): Don't error if no prior function found.
2644 (discover_functions): Revert 2008-12-10 change. Extend first
2645 function range to start of section.
2646
2647 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2648
2649 * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
2650 functions to C90.
2651 * elf64-hppa.h: Likewise.
2652
2653 2009-02-06 Joseph Myers <joseph@codesourcery.com>
2654
2655 * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
2656 .sbss handling.
2657
2658 2009-02-04 Alan Modra <amodra@bigpond.net.au>
2659
2660 * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
2661 Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
2662
2663 2009-02-03 Sandip Matte <sandip@rmicorp.com>
2664
2665 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
2666 * archures.c (bfd_mach_mips_xlr): Define.
2667 * bfd-in2.h: Regenerate.
2668 * cpu-mips.c (I_xlr): Define.
2669 (arch_info_struct): Add XLR entry.
2670 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
2671 (mips_set_isa_flags): Handle bfd_mach_mips_xlr
2672 (mips_mach_extensions): Add XLR entry.
2673
2674 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
2675
2676 * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
2677
2678 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
2679
2680 * configure.in: AC_SUBST pdfdir.
2681 * Makefile.am: Add install-pdf, install-pdf-am
2682 and install-pdf-recursive targets. Define pdfdir.
2683 * doc/Makefile.am: Define pdf__strip_dir. Add
2684 install-pdf and install-pdf-am targets.
2685 * po/Make-in: Add install-pdf target.
2686 * configure: Regenerate.
2687 * Makefile.in: Regenerate
2688 * doc/Makefile.in: Regenerate.
2689
2690 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
2691
2692 * bfd-in2.h: Regenerate.
2693 * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
2694 fields from n_entries to n_slots where appropriate, update comments.
2695 (HOWTO): Add TLS relocations.
2696 (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
2697 (enum elf_m68k_got_offset_size): New enum.
2698 (struct elf_m68k_got_entry.type): Move field to ...
2699 (struct elf_m68k_got_entry_key): ... here. Update all uses.
2700 (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
2701 functions.
2702 (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
2703 functions.
2704 (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
2705 fields into n_entries array. Update comments.
2706 (elf_m68k_init_got): Simplify, update all uses.
2707 (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
2708 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
2709 GOT entries; update name, update all uses.
2710 (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
2711 (elf_m68k_get_got_entry): Update.
2712 (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
2713 simplify.
2714 (elf_m68k_remove_got_entry_type): Simplify.
2715 (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
2716 (elf_m68k_can_merge_gots): Update.
2717 (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
2718 (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
2719 GOT entries, simplify.
2720 (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
2721 (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
2722 field, remove obsoleted local_n_entries field.
2723 (elf_m68k_partition_multi_got_2): New static function.
2724 (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
2725 update.
2726 (elf_m68k_remove_got_entry_type): Update.
2727 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
2728 (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
2729 update of sgot->size and srelgot->size.
2730 (elf_m68k_gc_sweep_hook): Update.
2731 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
2732 (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
2733 TLS relocations.
2734 * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
2735 * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
2736
2737 2009-02-02 DJ Delorie <dj@redhat.com>
2738
2739 * elf32-mep.c (config_names): Regenerate configuration.
2740
2741 2009-02-02 Alan Modra <amodra@bigpond.net.au>
2742
2743 * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
2744 (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
2745 * elf.c (bfd_elf_get_str_section): Make static.
2746 (bfd_elf_find_section): Delete.
2747 * libbfd.h: Regenerate.
2748
2749 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2750
2751 * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
2752 (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
2753
2754 2009-01-31 Alan Modra <amodra@bigpond.net.au>
2755
2756 * elflink.c (on_needed_list): New function.
2757 (elf_link_add_object_symbols): Link in --as-needed libs if they
2758 satisfy undefined symbols in other libs.
2759
2760 2009-01-30 Julian Brown <julian@codesourcery.com>
2761
2762 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
2763 EXEC_P or DYNAMIC flags, and skip sections which are being linked
2764 with --just-symbols (-R).
2765
2766 2009-01-29 Adam Nemet <anemet@caviumnetworks.com>
2767
2768 * dwarf2.c (read_rangelist): Use read_address to read low_pc and
2769 high_pc in order to properly sign-extend VMAs.
2770
2771 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2772 Mark Shinwell <shinwell@codesourcery.com>
2773 Catherine Moore <clm@codesourcery.com>
2774
2775 * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
2776
2777 2009-01-28 Catherine Moore <clm@codesourcery.com>
2778
2779 * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
2780 SEC_LOAD for dynamic relocation sections.
2781
2782 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
2783
2784 * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
2785 (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
2786 the size of local TLS data.
2787
2788 2009-01-27 Andreas Schwab <schwab@suse.de>
2789
2790 * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
2791 architectures in the archive.
2792
2793 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
2794
2795 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
2796 <R_CRIS_32_DTPREL>: Correct relocation value.
2797
2798 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
2799 <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
2800 symbols with non-default visibility.
2801
2802 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
2803
2804 * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
2805 describing the trampolines.
2806 (ppc_elf_relocate_section): Update relocs to describe the
2807 trampolines.
2808
2809 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2810
2811 * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
2812 branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
2813 and R_PARISC_PCREL12F relocations.
2814
2815 2009-01-24 Alan Modra <amodra@bigpond.net.au>
2816
2817 PR 6022
2818 * elflink.c (find_version_for_sym): New function split out from,
2819 but without export_dynamic test, ..
2820 (_bfd_elf_link_assign_sym_version): ..here.
2821 (_bfd_elf_export_symbol): Use it.
2822
2823 2009-01-23 Alan Modra <amodra@bigpond.net.au>
2824
2825 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
2826 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
2827 * elflink.c: ..here, somewhat modified.
2828 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
2829 _bfd_elf_link_find_version_dependencies,
2830 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
2831 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
2832 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
2833 declare..
2834 * elflink.c: ..and make static here.
2835 (_bfd_elf_link_find_version_dependencies): Adjust for removal
2836 of output_bfd from struct elf_find_verdep_info.
2837 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
2838 struct elf_info_failed.
2839 (bfd_elf_size_dynamic_sections): Adjust.
2840
2841 2009-01-22 Alan Modra <amodra@bigpond.net.au>
2842
2843 PR 6832
2844 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
2845 after comp_unit_find_line call.
2846
2847 2009-01-21 Nick Clifton <nickc@redhat.com>
2848
2849 PR 9769
2850 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
2851 tm_gmtoff field in struct tm.
2852
2853 2009-01-21 Alan Modra <amodra@bigpond.net.au>
2854
2855 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
2856 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
2857 sections in soft-icache lines unless non_ia_text. Don't add
2858 rodata if doing so would exceed line size.
2859
2860 2009-01-19 Hans-Peter Nilsson <hp@axis.com>
2861
2862 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
2863 types than bfd_link_hash_indirect, before early return, call
2864 _bfd_elf_link_hash_copy_indirect.
2865
2866 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
2867
2868 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
2869 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
2870 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
2871 (elf_backend_obj_attrs_order): New define.
2872 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
2873 (elfNN_bed): Add elf_backend_obj_attrs_order.
2874
2875 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
2876
2877 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
2878 (obj_attr_size): Likewise.
2879 (write_obj_attribute): Likewise.
2880 (_bfd_elf_copy_obj_attributes): Likewise.
2881 (_bfd_elf_parse_attributes): Likewise.
2882 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
2883 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
2884 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
2885 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
2886 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
2887 with macros.
2888
2889 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
2890
2891 * elf-attrs.c (is_default_attr): Support defaultless attributes.
2892 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
2893 (bfd_elf_add_obj_attr_string): Likewise.
2894 (bfd_elf_add_obj_attr_int_string): Likewise.
2895 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
2896 * elf-bfd.h (struct obj_attribute): Document new flag bit.
2897 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
2898 Tag_nodefaults has no default value.
2899 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
2900 comment to reflect the new state.
2901
2902 2009-01-19 Alan Modra <amodra@bigpond.net.au>
2903
2904 PR 9695
2905 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
2906 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
2907 (adjust_z_magix): Delete dead code handling QMAGIC.
2908
2909 2009-01-16 Kai Tietz <kai.tietz@onevision.com>
2910
2911 * coffcode.h (styp_to_sec_flags): Correct interpretation of
2912 IMAGE_SCN_MEM_DISCARDABLE.
2913
2914 2009-01-16 Alan Modra <amodra@bigpond.net.au>
2915
2916 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
2917 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
2918 * configure.in (commonbfdlib): Delete.
2919 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
2920 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
2921 is available, not just for linux.
2922 * po/SRC-POTFILES.in: Regenerate.
2923 * Makefile.in: Regenerate.
2924 * configure: Regenerate.
2925
2926 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
2927 Julian Brown <julian@codesourcery.com>
2928
2929 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
2930 ARM attributes in ABI 2.07.
2931 * elf32-arm.c (get_secondary_compatible_arch): New function.
2932 (set_secondary_compatible_arch): New function.
2933 (tag_cpu_arch_combine): New function.
2934 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
2935 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
2936 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
2937 make it fit with order_01243.
2938 Add support for Tag_also_compatible_with,
2939 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
2940 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
2941 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
2942 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
2943 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
2944 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
2945 Rework the way unknown attributes are handled.
2946 Defer errors until all attributes have been processed.
2947
2948 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
2949
2950 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
2951 bfd_elf_add_obj_attr_int_string.
2952 Read Tag_compatibility from its new location in the attribute array,
2953 rather than the attribute list.
2954 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
2955 bfd_elf_add_obj_attr_int_string.
2956 (_bfd_elf_parse_attributes): Likewise.
2957 (_bfd_elf_merge_object_attributes): There's now only one
2958 Tag_compatibility, and it's in the array, not the list.
2959 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
2960 Tag_compatibility.
2961 (bfd_elf_add_obj_attr_compat): Rename to
2962 bfd_elf_add_obj_attr_int_string.
2963 (bfd_elf_add_proc_attr_compat): Rename to
2964 bfd_elf_add_proc_attr_int_string.
2965 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
2966 Tag_compatibility.
2967
2968 2009-01-15 Douglas B Rupp <rupp@gnat.com>
2969
2970 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
2971 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
2972 (vmsutil.lo): Add dependency rule.
2973 * Makefile.in: Regenerate.
2974 * config.bfd (ia64*-*-*vms*): Add case.
2975 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
2976 * configure: Regenerate.
2977 * vmsutil.c: New file.
2978 * vmsutil.h: New file.
2979 * elf-bfd.h (struct bfd_elf_special_section): Change type of
2980 attr to bfd_vma.
2981 * elfxx-ia64.c (elfNN_vms_post_process_headers,
2982 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
2983 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
2984 elfNN_vms_object_p): New functions
2985 * targets.c (bfd_elf64_ia64_vms_vec): New target.
2986
2987 2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
2988
2989 PR ld/9727
2990 * elflink.c (elf_gc_sweep): Exclude the group section if the
2991 first member of the section group is excluded.
2992
2993 2009-01-14 Alan Modra <amodra@bigpond.net.au>
2994
2995 PR 9735
2996 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
2997 saved filename, use bfd_alloc rather than bfd_malloc for it.
2998
2999 2009-01-13 Alan Modra <amodra@bigpond.net.au>
3000
3001 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
3002
3003 2009-01-13 Alan Modra <amodra@bigpond.net.au>
3004
3005 * elf32-spu.c (remove_cycles): Always set call->max_depth.
3006
3007 2009-01-12 Alan Modra <amodra@bigpond.net.au>
3008
3009 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
3010
3011 2009-01-12 Alan Modra <amodra@bigpond.net.au>
3012
3013 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
3014 num_lines_log2.
3015 (struct got_entry): Add br_addr.
3016 (struct call_info): Add priority.
3017 (struct function_info): Add lr_store and sp_adjust.
3018 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
3019 (spu_elf_find_overlays): For soft-icache, mark any section within cache
3020 area as an overlay, and check that no other overlays exist. Look up
3021 icache overlay manager entry sym.
3022 (BRA_STUBS, BRA, BRASL): Define.
3023 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
3024 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
3025 in branch insn.
3026 (count_stub, build_stub): Support soft-icache.
3027 (build_spuear_stubs, process_stubs): Adjust build_stub call.
3028 (spu_elf_size_stubs): Size soft-icache stubs.
3029 (overlay_index): New function.
3030 (spu_elf_build_stubs): Make static. Support soft-icache.
3031 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
3032 (find_function_stack_adjust): Save lr store and stack adjust insn
3033 offsets.
3034 (maybe_insert_function): Adjust find_function_stack_adjust call.
3035 (mark_functions_via_relocs): Retrieve priority.
3036 (remove_cycles): Only warn about pruned arcs when stack_analysis.
3037 (sort_calls): Sort by priority first.
3038 (mark_overlay_section): Ignore .ovl.init.
3039 (sum_stack): Only print when stack_analysis.
3040 (print_one_overlay_section): New function, extracted from..
3041 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
3042 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
3043 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
3044 analysis. Call spu_elf_build_stubs.
3045 (spu_elf_relocate_section): For soft-icache encode overlay index
3046 into addresses.
3047 (spu_elf_output_symbol_hook): Support soft-icache.
3048 (spu_elf_modify_program_headers: Likewise.
3049
3050 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
3051 num_regions to num_lines. Add line_size and max_branch.
3052 (enum _ovly_flavour): Add ovly_soft_icache.
3053 (spu_elf_build_stubs): Delete.
3054
3055 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3056
3057 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
3058 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
3059
3060 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
3061
3062 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
3063 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
3064 the program, the known offset starts at the negative size of the
3065 TLS section.
3066 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
3067 Similar.
3068
3069 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3070
3071 * config.bfd: Add lm32-*-rtems*.
3072
3073 2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
3074
3075 * coff-ppc.c: Add 2009 to Copyright.
3076 * elf32-cris.c: Likewise.
3077 * elflink.c: Likewise.
3078
3079 2009-01-03 Hans-Peter Nilsson <hp@axis.com>
3080
3081 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
3082 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
3083
3084 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
3085
3086 PR ld/9679
3087 * elflink.c (elf_merge_st_other): New.
3088 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
3089 hide them if needed.
3090 (elf_link_add_object_symbols): Updated.
3091
3092 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
3093
3094 PR ld/9676
3095 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
3096 ref_dynamic and dynamic_def fields when setting def_regular
3097 to 1.
3098
3099 2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
3100
3101 PR 9682
3102 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
3103 literal.
3104
3105 For older changes see ChangeLog-2008
3106 \f
3107 Local Variables:
3108 mode: change-log
3109 left-margin: 8
3110 fill-column: 74
3111 version-control: never
3112 End:
This page took 0.13818 seconds and 5 git commands to generate.