ea813ff50af9f6da7b11cfd1f01121ec7d100b09
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2008-02-22 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/5788
4 * elflink.c (elf_create_symbuf): Correct buffer size and
5 position.
6
7 2008-02-22 Nick Clifton <nickc@redhat.com>
8
9 PR 868
10 * dwarf2.c: Revert previous patch. All of the allocate memory is
11 on an obstack which will be freed at some other time.
12
13 2008-02-20 Nick Clifton <nickc@redhat.com>
14
15 PR 868
16 * libbfd.c (bfd_realloc_or_free): New function. Performs like
17 bfd_realloc, but if the (re)allocation fails, the pointer is
18 freed.
19 * libbfd-in.h: Prototype.
20 * libbfd.h: Regenerate.
21 * bfdio.c (bfd_bwrite): Use the new function.
22 (bfd_seek): Likewise.
23 * bfdwin.c:(bfd_get_file_window): Likewise.
24 * elf-strtab.c (_bfd_elf_strtab_add): Likewise.
25 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
26 * elf32-xtensa.c (vsprintf_msg): Likewise.
27 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
28 * stabs.c (_bfd_link_seciton_stabs): Likewise.
29 * vms-misc.c (_bfd_vms_get_record): Likewise.
30 * vms-tir.c (check_section): Likewise.
31 * vms.c (vms_new_section_hook): Likewise.
32 * elf32-arm.c (elf32_arm_section_map_add): Check that the
33 allocation of sec_data->map succeeded before using it.
34 * elflink.c (elf_link_output_sym): Do not overwrite finfo->
35 symshndxbuf until it is known that the reallocation succeeded.
36
37 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br>
38 Nick Clifton <nickc@redhat.com>
39
40 PR 868
41 * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
42 out of memory.
43 (decode_line_info): Free the line_info_table before returning a
44 failure result.
45 (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
46 Free the line table. Free the function table. Free the variable
47 table.
48
49 2008-02-17 Mark Kettenis <kettenis@gnu.org>
50
51 * elf.c (swap_out_syms): Avoid preprocessing directive within
52 macro arg.
53
54 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
55
56 * elf.c (assign_file_positions_for_load_sections): Set the type of
57 PT_NOTE sections to SHT_NOTE.
58
59 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com>
60
61 * simple.c (bfd_simple_get_relocated_section_contents): Set
62 link_info.output_bfd.
63
64 2008-02-16 Nathan Sidwell <nathan@codesourcery.com>
65
66 * dwarf2.c (find_line): Don't trust debug information after an
67 unparseable compilation unit.
68
69 2008-02-15 Alan Modra <amodra@bigpond.net.au>
70
71 PR 5765
72 * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags.
73 * bfd-in2.h: Regenerate.
74
75 2008-02-15 Alan Modra <amodra@bigpond.net.au>
76
77 * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
78 * elf.c (bfd_elf_allocate_object): Don't check for already allocated
79 tdata.
80 * elf32-hppa.c (elf32_hppa_mkobject): New function.
81 (bfd_elf32_mkobject): Define.
82 * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with..
83 (is_ppc_elf): ..this new macro.
84 * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with..
85 (is_ppc64_elf): ..this new macro.
86
87 2008-02-15 Alan Modra <amodra@bigpond.net.au>
88
89 * elflink.c: Replace all accesses to hash->creator field with
90 output_bfd->xvec.
91 * cofflink.c: Likewise.
92 * coff-h8300.c: Likewise.
93 * ecoff.c: Likewise.
94 * elf32-m68hc1x.c: Likewise.
95 * elf32-ppc.c: Likewise.
96 * elf64-alpha.c: Likewise.
97 * elf64-ppc.c: Likewise.
98 * elf64-sparc.c: Likewise.
99 * elfxx-mips.c: Likewise.
100 * i386linux.c: Likewise.
101 * m68klinux.c: Likewise.
102 * sparclinux.c: Likewise.
103 * sunos.c: Likewise.
104 * xcofflink.c: Likewise.
105 * linker.c: Likewise.
106 (_bfd_link_hash_table_init): Don't store creator.
107
108 2008-02-14 Peter Jones <pjones@redhat.com>
109
110 * efi-rtdrv-ia32.c: New file.
111 * efi-bsdrv-ia32.c: New file.
112 * efi-rtdrv-ia64.c: New file.
113 * efi-bsdrv-ia64.c: New file.
114 * efi-rtdrv-x86_64.c: New file.
115 * efi-bsdrv-x86_64.c: New file.
116 * peicode.h (pe_bfd_object_p): Add support for boot service and
117 runtime service drivers.
118 * libpei.h: Add macros for EFI formats, and rename the efi application
119 format macros to disambiguate.
120 * targets.c: Add bfd_target _vec externs.
121 (_bfd_tar): Add EFI _vec entries.
122 * config.bfd: Add EFI vectors into the selection routines.
123 * configure.in: add EFI _vec entries.
124 * configure: Regenerate.
125 * Makefile.am: Add EFI files.
126 * Makefile.in: Regenerate.
127
128 2008-02-14 Nathan Sidwell <nathan@codesourcery.com>
129
130 * dwarf1.c (struct dwarf1_debug): Add syms member.
131 (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory.
132 (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate
133 section contents, check for out of memory.
134
135 * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte.
136 (parse_die): Change data pointers to bfd_byte.
137 (parse_line_table, parse_functions_in_unit): Likewise.
138
139 2008-02-14 Alan Modra <amodra@bigpond.net.au>
140
141 * elflink.c (compute_bucket_count): Warning fixes.
142
143 2008-02-12 DJ Delorie <dj@redhat.com>
144
145 * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
146 relocation pointing to local symbol in merged section.
147
148 * elf32-iq2000.c (iq2000_elf_relocate_offset16): New.
149 (iq2000_elf_relocate_section): Call it.
150
151 2008-02-12 Nick Clifton <nickc@redhat.com>
152
153 PR ld/5692
154 * elf-bfd.h (enum elf_object_id): New enum, used to identify
155 target specific extensions to the elf_obj_tdata structure.
156 (struct elf_obj_tdata): New field 'object_id'.
157 (elf_object_id, elf_program_header_size, elf_symtab_hdr): New
158 macros for accessing fields in the elf_obj_tdata structure.
159 (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object.
160 (bfd_elf_allocate_object): New function.
161 * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object
162 and implement by calling bfd_elf_allocate_object.
163 (bfd_elf_allocate_object): New function: Allocates an
164 elf_obj_tdata structure, possibly with a target specific
165 extension.
166 * elfxx-target.h (bfd_elfNN_mkobject): Use
167 bfd_elf_make_generic_object as the default value.
168 * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata
169 for consistency with other, similar structures.
170 (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM
171 ELF bfd.
172 (elf32_arm_mkobject): Call bfd_elf_allocate_object.
173 (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check
174 the bfd being processed.
175 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
176 (bfd_elf32_arm_set_target_relocs): Likewise.
177 (bfd_elf32_arm_final_link_relocate): Likewise.
178 (bfd_elf32_arm_copy_private_bfd_data): Likewise.
179 (bfd_elf32_arm_merge_eabi_attributes): Likewise.
180 (bfd_elf32_arm_merge_private_bfd_data): Likewise.
181 (bfd_elf32_arm_check_relocs): Likewise.
182 (bfd_elf32_arm_gc_mark_extra_sections): Likewise.
183 (bfd_elf32_arm_size_dynamic_sections): Likewise.
184 (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr.
185 (bfd_elf32_arm_init_maps): Likewise.
186 (bfd_elf32_arm_final_link_relocate): Likewise.
187 (bfd_elf32_arm_relocate_section): Likewise.
188 (bfd_elf32_arm_gc_sweep_hook): Likewise.
189 (bfd_elf32_arm_check_relocs): Likewise.
190 (bfd_elf32_arm_size_dynamic_sections): Likewise.
191 * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object.
192 (is_i386_elf): New macro. Checks a BFD to make sure that is an x86
193 ELF bfd.
194 (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd
195 being processed.
196 (elf_i386_size_dynamic_sections): Likewise.
197 (elf_i386_relocate_section): Likewise.
198 (elf_i386_check_relocs): Use elf_symtab_hdr.
199 (elf_i386_gc_sweep_hook): Likewise.
200 (elf_i386_size_dynamic_sections): Likewise.
201 (elf_i386_relocate_section): Likewise.
202 * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object.
203 (elf_create_pointer_linker_section): Use is_ppc_elf_target to
204 verify that the bfd before accessing target specific fields.
205 (ppc_elf_check_relocs): Likewise.
206 (elf_finish_pointer_linker_section): Likewise.
207 (elf_create_pointer_linker_section): Use elf_symtab_hdr.
208 (ppc_elf_check_relocs): Likewise.
209 (ppc_elf_gc_sweep_hook): Likewise.
210 (ppc_elf_tls_optimize): Likewise.
211 (ppc_elf_size_dynamic_sections): Likewise.
212 (ppc_elf_relax_section): Likewise.
213 (ppc_elf_relocate_section): Likewise.
214 * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment
215 reminding programmers to keep this structure in sync with the one
216 defined in elf64-s390.c.
217 (elf_s390_mkobject): Call bfd_elf_allocate_object.
218 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
219 ELF bfd.
220 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
221 being processed.
222 (elf_s390_size_dynamic_sections): Likewise.
223 (elf_s390_relocate_section): Likewise.
224 (elf_s390_check_relocs): Use elf_symtab_hdr.
225 (elf_s390_gc_sweep_hook): Likewise.
226 (elf_s390_size_dynamic_sections): Likewise.
227 (elf_s390_relocate_section): Likewise.
228 * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
229 (is_sh_elf): New macro. Checks a BFD to make sure that is an SH
230 ELF bfd.
231 (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the
232 bfd being processed.
233 (sh_elf_relocate_section): Likewise.
234 (sh_elf_check_relocs): Likewise.
235 (sh_elf_copy_private_data): Likewise.
236 (sh_elf_relax_section): Use elf_symtab_hdr.
237 (sh_elf_size_dynamic_sections): Likewise.
238 (sh_elf_relocate_section): Likewise.
239 (sh_elf_get_relocated_section_contents): Likewise.
240 (sh_elf_gc_sweep_hook): Likewise.
241 (sh_elf_check_relocs): Likewise.
242 * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object.
243 (is_alpha_elf): New macro. Checks a BFD to make sure that is an
244 Alpha ELF bfd.
245 (elf64_alpha_create_got_section): Use is_alpha_elf macro to check
246 the bfd being processed.
247 (elf64_alpha_create_dynamic_section): Likewise.
248 (elf64_alpha_check_relocs): Likewise.
249 (elf64_alpha_size_got_sections): Likewise.
250 (elf64_alpha_relax_section): Likewise.
251 (elf64_alpha_relocate_section): Likewise.
252 (elf64_alpha_final_link): Likewise.
253 (elf64_alpha_check_relocs): Use elf_symtab_hdr.
254 (elf64_alpha_relax_section): Likewise.
255 (elf64_alpha_relocate_section_r): Likewise.
256 (elf64_alpha_relocate_section): Likewise.
257 * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object.
258 (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd
259 being processed.
260 (opd_entry_value): Likewise.
261 (allocate_dynrelocs): Likewise.
262 (ppc64_elf_relocate_section): Likewise.
263 (ppc64_elf_check_relocs): Use elf_symtab_hdr.
264 (opd_entry_value): Likewise.
265 (ppc64_elf_gc_sweep_hook): Likewise.
266 (get_sym_h): Likewise.
267 (ppc64_elf_edit_opd): Likewise.
268 (ppc64_elf_tls_optimize): Likewise.
269 (ppc64_elf_edit_toc): Likewise.
270 (ppc64_elf_size_dynamic_sections): Likewise.
271 (toc_adjusting_stub_needed): Likewise.
272 (ppc64_elf_size_stubs): Likewise.
273 (ppc64_elf_relocate_section): Likewise.
274 * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment
275 reminding programmers to keep this structure in sync with the one
276 defined in elf32-s390.c.
277 (elf_s390_mkobject): Call bfd_elf_allocate_object.
278 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
279 ELF bfd.
280 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
281 being processed.
282 (elf_s390_size_dynamic_sections): Likewise.
283 (elf_s390_relocate_section): Likewise.
284 (elf_s390_check_relocs): Use elf_symtab_hdr.
285 (elf_s390_gc_sweep_hook): Likewise.
286 (elf_s390_size_dynamic_sections): Likewise.
287 (elf_s390_relocate_section): Likewise.
288 * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object.
289 (is_x86_64_elf): New macro. Checks a BFD to make sure that is an
290 x86_64 ELF bfd.
291 (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd
292 being processed.
293 (elf64_x86_64_size_dynamic_sections): Likewise.
294 (elf64_x86_64_relocate_section): Likewise.
295 (elf64_x86_64_check_relocs): Use elf_symtab_hdr.
296 (elf64_x86_64_gc_sweep_hook): Likewise.
297 (elf64_x86_64_size_dynamic_sections): Likewise.
298 (elf64_x86_64_relocate_section): Likewise.
299 * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object.
300 (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc
301 ELF bfd.
302 (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the
303 bfd being processed.
304 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
305 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
306 (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
307 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
308 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
309 (_bfd_sparc_elf_relocate_section): Likewise.
310
311 2008-02-12 Alan Modra <amodra@bigpond.net.au>
312
313 PR 5303, 5755
314 * arange-set.c: Delete.
315 * arange-set.h: Delete.
316 * dwarf2.c: Revert 2007-09-21 changes.
317 * Makefile.am: Likewise.
318 * Makefile.in: Regenerate.
319 * po/SRC-POTFILES.in: Regenerate.
320
321 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com>
322
323 * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
324 if necessary.
325 (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type
326 mismatches are detected.
327
328 * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
329 emit invalid relocs or rofixup entries for deleted .eh_frame entries.
330
331 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com>
332
333 * cache.c (cache_bread): Set bfd_error_file_truncated if EOF
334 was reached.
335 * srec.c (srec_scan): Calculate the checksum. Complain on mismatch.
336
337 2008-02-07 Alan Modra <amodra@bigpond.net.au>
338
339 * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling
340 of _ovly_buf_table size.
341 (spu_elf_build_stubs): Use low bit of .size as "present" bit.
342 Adjust initialisations relating to _ovly_buf_table.
343
344 2008-02-04 Bob Wilson <bob.wilson@acm.org>
345
346 * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
347 relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND
348 relocations against dynamic symbols.
349 (elf_xtensa_finish_dynamic_sections): Do not fail if there is no
350 .xt.lit section.
351
352 2008-02-04 Kai Tietz <kai.tietz@onevision.com>
353 H.J. Lu <hongjiu.lu@intel.com>
354
355 PR 5715
356 * warning.m4: Enable -Wno-format by default when using gcc on
357 mingw.
358 * configure: Regenerated.
359
360 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
361
362 * archures.c: Update copyright.
363 (bfd_mach_mips_octeon): New macro.
364 * bfd-in2.h: Regenerate.
365 * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon.
366 (mips_set_isa_flags): Likewise.
367 (mips_mach_extensions): Add Octeon.
368 * cpu-mips.c: Update copyright.
369 (I_mipsocteon): New enum constant.
370 (arch_info_struct): Add Octeon.
371
372 2008-02-04 Alan Modra <amodra@bigpond.net.au>
373
374 * elf32-spu.c (spu_elf_relocate_section): Correct return type.
375 Return error status on unexpected relocation errors.
376
377 2008-02-04 Alan Modra <amodra@bigpond.net.au>
378
379 PR ld/5692
380 * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort
381 on non-ELF input.
382 * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue
383 processing on non-ELF input.
384
385 2008-01-31 Marc Gauthier <marc@tensilica.com>
386
387 * config.bfd (xtensa*-*-*): Recognize processor variants.
388
389 2008-01-31 Nick Clifton <nickc@redhat.com>
390
391 PR ld/5692
392 * elf.c (bfd_elf_get_elf_syms): Check the return value of
393 get_elf_backend_data.
394
395 2008-01-28 Fabian Groffen <grobian@gentoo.org>
396
397 * config.bfd (x86_64-*-solaris2): Add support for this target.
398
399 2008-01-28 Alan Modra <amodra@bigpond.net.au>
400
401 Rewrite SPU overlay handling code. Put overlay calls stubs in the
402 overlays where possible. Use a faster call stub, or optionally at
403 compile time, a more compact stub. Double size of _ovly_buf_table
404 so that low bit of _ovly_table.buf can be used as a "present" bit.
405 Reserve an extra _ovly_table entry for index zero.
406 * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields,
407 add new ones.
408 (struct got_entry): New.
409 (struct spu_stub_hash_entry): Delete.
410 (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete.
411 (spu_elf_link_hash_table_create): Adjust for struct changes.
412 (spu_stub_name): Delete.
413 (spu_elf_find_overlays): Don't track sections from overlay regions.
414 Instead set ovl_buf number in spu elf section data. Error if
415 overlays in one region don't start at the same address. Adjust
416 for struct _spu_elf_section_data changes.
417 (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete.
418 (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define.
419 (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes.
420 (enum _insn_type): New.
421 (count_stub, build_stub): New functions.
422 (allocate_spuear_stubs): Use count_stub.
423 (build_spuear_stubs): Use build_stub.
424 (populate_stubs, sort_stubs): Delete.
425 (process_stubs): New function.
426 (write_one_stub): Delete.
427 (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite.
428 (alloc_stack_info): Adjust for struct _spu_elf_section_data changes.
429 (maybe_insert_function, check_function_ranges): Likewise.
430 (find_function, pasted_function, build_call_tree): Likewise.
431 (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise.
432 (spu_elf_modify_program_headers): Likewise.
433 (interesting_section): Detect stub sections differently. Delete
434 htab param, adjust all callers.
435 (spu_elf_relocate_section): Rewrite stub handling.
436 (spu_elf_output_symbol_hook): Likewise.
437 (bfd_elf32_bfd_link_hash_table_free): Delete.
438 * elf32-spu.h (struct _spu_elf_section_data): Move input-only and
439 output-only fields into a union. Add ovl_buf.
440 (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes.
441
442 2008-01-25 DJ Delorie <dj@redhat.com>
443
444 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
445
446 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
447
448 * bfd-in.h: Add mingw I64 support.
449 * bfd-in2.h: Regenerated.
450 * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64.
451
452 2008-01-21 Alan Modra <amodra@bigpond.net.au>
453
454 PR 4453
455 * format.c (bfd_check_format_matches): Don't accept archives as
456 fully matching unless they have a map.
457
458 2008-01-21 Alan Modra <amodra@bigpond.net.au>
459
460 * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
461
462 2008-01-21 Alan Modra <amodra@bigpond.net.au>
463
464 * ecoff.c (_bfd_ecoff_archive_p): Delete.
465 * libecoff.h (_bfd_ecoff_archive_p): Delete.
466 * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
467 * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
468 (ecoff_biglittle_vec): Likewise.
469
470 2008-01-19 Alan Modra <amodra@bigpond.net.au>
471
472 PR 5646
473 * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
474 non-NULL before dereferencing.
475
476 2008-01-15 Alan Modra <amodra@bigpond.net.au>
477
478 PR 5604
479 * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param
480 names from others.
481 (_bfd_elf_gc_keep): Declare.
482 * elfxx-target.h (elf_backend_gc_keep): Define.
483 (elfNN_bed): Init new field.
484 * elflink.c (_bfd_elf_gc_keep): New function.
485 (bfd_elf_gc_sections): Call gc_keep.
486 * elf64-ppc.c (elf_backend_gc_keep): Define.
487 (struct _ppc64_elf_section_data): Move .opd related fields to
488 a struct so they don't occupy the same storage. Adjust accesses
489 throughout file.
490 (ppc64_elf_gc_keep): New function, split out from..
491 (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark
492 to mark .opd section, just set gc_mark.
493 (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust
494 unless we are changing .opd. Test non-NULL opd->adjust at all
495 accesses throughout file.
496 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
497
498 2008-01-15 Alan Modra <amodra@bigpond.net.au>
499
500 * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
501 * bfd-in2.h: Regenerate.
502
503 2008-01-11 Tristan Gingold <gingold@adacore.com>
504 Eric Botcazou <ebotcazou@adacore.com>
505
506 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
507 relocatable.
508 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
509 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
510 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
511 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
512 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
513 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
514 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
515 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
516 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
517 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
518 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
519 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
520 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
521 * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
522 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
523 * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
524 or executable output with relocations.
525
526 2008-01-09 Nick Clifton <nickc@redhat.com>
527
528 PR gas/5552
529 * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field
530 to FALSE for all relocs.
531
532 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk>
533
534 PR ld/5526
535 * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
536 fields. Rename u.cie.u.merged to u.cie.u.merged_with.
537 (eh_frame_sec_info): Add a cies field.
538 (eh_frame_hdr_info): Add a merge_cies field.
539 * elf-eh-frame.c (cie): Add a reloc_index member to the personality
540 union.
541 (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
542 of hdr_info->cies.
543 (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of
544 cie structures in all cases and use it instead of extended_cies.
545 If merging, store the cie array in sec_info->cies and point each
546 CIE's eh_fde_cie at the associated element. Do not try to
547 calculate the value of the personality routine here; record the
548 offset of the relocation instead. Do not merge CIEs here.
549 (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
550 (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
551 (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
552 (find_merged_cie): New function.
553 (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies.
554
555 2008-01-07 Nick Clifton <nickc@redhat.com>
556
557 PR binutils/5535
558 * vms.c (vms_close_and_cleanup): Check for the presence of a
559 vms_private_data_struct before examining any of its fields.
560
561 2008-01-07 H.J. Lu <hongjiu.lu@intel.com>
562
563 PR ld/5522
564 * elflink.c (elf_link_input_bfd): Don't write out a section if
565 its output section is marked with SEC_NEVER_LOAD.
566
567 For older changes see ChangeLog-2007
568 \f
569 Local Variables:
570 mode: change-log
571 left-margin: 8
572 fill-column: 74
573 version-control: never
574 End:
This page took 0.050068 seconds and 3 git commands to generate.