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