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