* configure.ac: m4_include config/proginstall.m4.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
58c85be7
RW
12008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2
3 * aclocal.m4: Regenerate.
4 * configure: Likewise.
5 * Makefile.in: Likewise.
6
41bed6dd
L
72008-03-16 H.J. Lu <hongjiu.lu@intel.com>
8
9 PR ld/5789
10 PR ld/5943
11 * elf32-i386.c (elf_i386_relocate_section): Issue an error
12 for R_386_GOTOFF relocaton against undefined hidden/internal
13 symbols when building a shared object.
14
15 * elf64-x86-64.c (elf64_x86_64_relocate_section): Issue an
16 error for R_X86_64_PC8/R_X86_64_PC16/R_X86_64_PC32
17 relocaton against undefined hidden/internal symbols when
18 building a shared object.
19 (elf64_x86_64_finish_dynamic_symbol): Return FALSE when symbol
20 is referenced locally, but isn't defined in a regular file.
21
6ad2759d
L
222008-03-15 H.J. Lu <hongjiu.lu@intel.com>
23
24 * bfd-in.h (BFD_NO_FLAGS, HAS_RELOC, EXEC_P, HAS_LINENO,
25 HAS_DEBUG, HAS_SYMS, HAS_LOCALS, DYNAMIC, WP_TEXT, D_PAGED,
26 BFD_IS_RELAXABLE, BFD_TRADITIONAL_FORMAT, BFD_IN_MEMORY,
27 HAS_LOAD_PAGE, BFD_LINKER_CREATED): Moved to ...
28 * bfd.c: Here.
29
30 * bfd.c (bfd): Change cacheable, target_defaulted, opened_once,
31 mtime_set, no_export, output_has_begun and has_armap to bit
32 field.
33
34 * bfd-in2.h: Regenerated.
35
c04ea773
DJ
362008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
37
38 * cache.c (close_one): Remove mtime hack.
39
0f2830ff
L
402008-03-14 H.J. Lu <hongjiu.lu@intel.com>
41
42 PR ld/5913
43 * elfxx-ia64.c (elfNN_ia64_tprel_base): Remove BFD_ASSERT.
44 (elfNN_ia64_dtprel_base): Likewise.
45 (elfNN_ia64_relocate_section): Go to missing_tls_sec if
46 tls_sec is NULL before calling elfNN_ia64_tprel_base or
47 elfNN_ia64_dtprel_base. Report unsupported TLS relocations.
48
fdba2fcd
AM
492008-03-14 Alan Modra <amodra@bigpond.net.au>
50
51 * elf32-spu.c (process_stubs, spu_elf_relocate_section): Move
52 common code to..
53 (maybe_needs_stub): ..here, a new function that also omits stubs
54 for .eh_frame, and..
55 (needs_ovl_stub): ..here. Create stubs for labels in code section
56 referenced by switch jump table.
57 (spu_elf_find_overlays): Set htab->ovly_load and htab->ovly_return.
58 (enum _insn_type): Delete.
59 (enum _stub_type): New.
60 (count_stub, build_stub): Adjust.
61 (allocate_spuear_stubs, build_spuear_stubs): Adjust.
62
72de5009
AM
632008-03-13 Alan Modra <amodra@bigpond.net.au>
64
65 * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast.
66 (_bfd_elf_assign_file_position_for_section): Simplify align.
67 (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough
68 for sh_addralign.
69 (elf_fake_sections, swap_out_syms): Likewise.
70 * elflink.c (bfd_elf_final_link): Likewise.
71
50e7d84b
AM
722008-03-13 Alan Modra <amodra@bigpond.net.au>
73
74 * Makefile.am: Run "make dep-am".
75 * Makefile.in: Regenerate.
76 * po/SRC-POTFILES.in: Regenerate.
77
2774f1a6
BS
782008-03-12 Bernd Schmidt <bernd.schmidt@analog.com>
79
80 From Jie Zhang <jie.zhang@analog.com>
81 * elf32-bfin.c (struct bfinfdpic_relocs_info): Make got17m4,
82 gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, fdgoffhilo,
83 gotoff, call and sym not bitfields.
84 (bfinfdpic_gc_sweep_hook): New function; update the relocation
85 information for the relocations of the section being removed.
86 (bfinfdpic_check_relocs): Accumulate the number of relocations
87 which set got17m4, gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4,
88 fdgoffhilo, gotoff, call and sym fields.
89 (elf_backend_gc_sweep_hook): Redefine for FD-PIC.
90
4fbb74a6
AM
912008-03-12 Alan Modra <amodra@bigpond.net.au>
92
93 PR 5900
94 * elf-bfd.h: Include elf/internal.h after elf/external.h.
95 * elfcode.h (elf_swap_symbol_in): Map reserved shndx range.
96 (elf_swap_symbol_out): Adjust SHN_XINDEX test.
97 (elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values
98 seen in external structs.
99 (valid_section_index_p): Delete.
100 (elf_object_p): Don't increment section numbers over reserved range.
101 Simplify test for valid sh_link, sh_info and e_shstrndx fields.
102 (elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values
103 seen in external structs. Don't increment section numbers over
104 reserved range.
105 * elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx.
106 (bfd_section_from_shdr): Likewise.
107 (group_signature): Range check before accessing elf_elfsections.
108 (_bfd_elf_setup_sections): Likewise.
109 (bfd_section_from_shdr): Likewise.
110 (bfd_section_from_shdr): Don't increment section number over
111 reserved sections.
112 (assign_file_positions_for_non_load_sections): Likewise.
113 (assign_file_positions_except_relocs): Likewise.
114 (_bfd_elf_write_object_contents): Likewise.
115 (assign_section_numbers): Likewise. Adjust for changed SHN_*.
116 (prep_headers): Delete unused variable.
117 * elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust
118 for changed SHN_* values.
119 (check_dynsym, elf_link_input_bfd): Likewise.
120 (bfd_elf_final_link): Likewise. Don't skip over reserved section
121 range.
122 (elf_fixup_link_order): Check that sh_link field is valid.
123 * elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned.
124 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before
125 accesssing elf_elfsections.
126 * elf32-avr.c (elf32_avr_size_stubs): Likewise.
127 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
128 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise.
129 * elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed
130 SHN_* defines. Test for SHN_BAD return from
131 _bfd_elf_section_from_bfd_section
132
cb33740c
AM
1332008-03-12 Alan Modra <amodra@bigpond.net.au>
134
135 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype.
136 * elf.c (_bfd_elf_section_from_bfd_section): Return unsigned int,
137 SHN_BAD on error.
138 (_bfd_elf_print_private_bfd_data): Test for SHN_BAD result from
139 _bfd_elf_section_from_bfd_section, not -1.
140 (swap_out_syms): Likewise.
141 * elflink.c (elf_link_add_object_symbols): Likewise.
142 (bfd_elf_get_bfd_needed_list): Likewise.
143 (bfd_elf_match_symbols_in_sections): Likewise.
144 (elf_link_add_object_symbols): Don't bother testing for symbols
145 using normal sections before calling bfd_section_from_elf_index.
146 (elf_link_input_bfd, bfd_elf_final_link): Likewise.
147 (bfd_elf_reloc_symbol_deleted_p): Likewise.
148 * elfcode.h (elf_slurp_symbol_table): Likewise.
149 * elf32-spu.c (get_sym_h): Likewise.
150 * elf32-xtensa.c (get_elf_r_symndx_section): Likewise.
151 * elf64-ppc.c (opd_entry_value, get_sym_h, ppc64_elf_edit_toc): Ditto.
152 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
153
5f5fb9ec
AM
1542008-03-11 Alan Modra <amodra@bigpond.net.au>
155
156 * elf32-spu.c (spu_elf_relocate_section): Test identical conditions
157 to those in process_stubs for overlay symbols.
158
b1cc4aeb
PB
1592008-03-09 Paul Brook <paul@codesourcery.com>
160
161 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new
162 Tag_VFP_arch values.
163
12a0a0fd
PB
1642008-03-08 Paul Brook <paul@codesourcery.com>
165
166 * elf32-arm.c (insert_thumb_branch): Rewrite.
167 (elf32_thumb_to_arm_stub): Use new insert_thumb_branch.
168
39623e12
PB
1692008-03-07 Paul Brook <paul@codesourcery.com>
170
171 * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and
172 MOVT relocations.
173 (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign
174 extension.
175 (elf32_arm_relocate_section): Handle MOVW and MOVT
176 relocations. Improve safety check for other weird relocations.
177 (elf32_arm_check_relocs): Only set h->needs_plt for branch/call
178 relocations.
179
77cba8a3 1802008-03-03 Bob Wilson <bob.wilson@acm.org>
50e7d84b 181
77cba8a3
BW
182 * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and
183 only compute its value once.
50e7d84b 184
4a628337
AM
1852008-03-03 Alan Modra <amodra@bigpond.net.au>
186
187 * elf32-spu.c (struct got_entry): Add "addend" field.
188 (count_stub, build_stub): Use a new stub if relocation addend
189 differs from existing stubs for this symbol.
190 (process_stubs): Deal with addends.
191 (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise.
192
d95edcac
L
1932008-03-02 H.J. Lu <hongjiu.lu@intel.com>
194
195 PR ld/5789
196 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true
197 for hidden and local symbols.
198
89200bf8
AM
1992008-03-03 Alan Modra <amodra@bigpond.net.au>
200
201 * elf32-ppc.c (allocate_dynrelocs): Discard relocs on
202 undefined symbols with internal or hidden visibility.
203 (ppc_elf_relocate_section): Likewise. Use SYMBOL_CALLS_LOCAL
204 rather than SYMBOL_REFERENCES_LOCAL on branches. Don't
205 return immediately on dynamic reloc error.
206
176a0d42
AM
2072008-03-01 Alan Modra <amodra@bigpond.net.au>
208
209 * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs
210 if emitrelocations.
211 (get_relocs): New function, split out from..
212 (ppc_build_one_stub): ..here. Add relocs on plt_branch stubs if
213 emitrelocations. Remove indx temp.
214 (ppc_size_one_stub): Count new stub relocs.
215 (ppc64_elf_size_stubs): Count new glink reloc.
216 (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations.
217 (ppc64_elf_finish_dynamic_sections): Output glink relocs.
218 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic
219 glink code.
220
911f096e
AM
2212008-02-28 Alan Modra <amodra@bigpond.net.au>
222
223 * elf32-spu.c (mark_functions_via_relocs): Don't assume that
224 the "->start" pointer reaches to function origin, so that we
225 can handle functions split over more than two sections.
226 (build_call_tree): Likewise.
227 (pasted_function): Don't attempt to set fun->start back to the
228 function origin, just go back one section.
229
ad9563d6
CM
2302008-02-27 Catherine Moore <clm@codesourcery.com>
231
232 * elf.c ( _bfd_elf_print_private_bfd_data): Call
233 elf_backend_get_target_dtag if defined.
234 * elf32-mips.c (elf_backend_get_target_dtag): Define.
235 * elf64-mips.c: Likewise.
236 * elfn32-mips.c: Likewise.
237 * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New.
238 * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare.
239 * elf-bfd.h (elf_backend_get_target_dtag): Add prototype.
240 * elfxx-target.h (elf_backend_get_target_dtag): Add default.
911f096e 241 (elf_backend_data): Add elf_backend_get_target_dtag.
ad9563d6 242
625af618
AM
2432008-02-26 Alan Modra <amodra@bigpond.net.au>
244
245 * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
246 for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms,
247 and assume branch relocs are not dynamic when non-shared.
248 (readonly_dynrelocs): New function, split out from..
249 (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs.
250 (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries,
251 clear non_got_ref..
252 (allocate_dynrelocs): ..and don't set u.def for undefined weak.
253 Do allow dynamic relocs on undefined symbols.
254 (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs.
255 (ppc_elf_relocate_section): Mirror dynamic reloc changes in
256 check_relocs.
257 (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak
258 plt symbols needing pointer_equality_needed.
259
1cd81501
AM
2602008-02-23 Alan Modra <amodra@bigpond.net.au>
261
262 * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
263
0eb4a168
AM
2642008-02-23 Alan Modra <amodra@bigpond.net.au>
265
266 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
267 pointer_equality_needed.
268 (ppc_elf_check_relocs): Split out non-branch relocs from others
269 that might emit dynamic relocs. Set pointer_equality_needed
270 for their symbols. Don't set non_got_ref on branch reloc symbols.
271 (ppc_elf_hash_symbol): New function.
272 (elf_backend_hash_symbol): Define.
273 (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed.
274 Error if pointer_equality_needed on weak plt symbol.
275
3ae181ee
L
2762008-02-22 H.J. Lu <hongjiu.lu@intel.com>
277
278 PR ld/5788
279 * elflink.c (elf_create_symbuf): Correct buffer size and
280 position.
281
34b5e0b2
NC
2822008-02-22 Nick Clifton <nickc@redhat.com>
283
284 PR 868
3ae181ee 285 * dwarf2.c: Revert previous patch. All of the allocate memory is
34b5e0b2 286 on an obstack which will be freed at some other time.
0eb4a168 287
515ef31d
NC
2882008-02-20 Nick Clifton <nickc@redhat.com>
289
290 PR 868
291 * libbfd.c (bfd_realloc_or_free): New function. Performs like
292 bfd_realloc, but if the (re)allocation fails, the pointer is
293 freed.
294 * libbfd-in.h: Prototype.
295 * libbfd.h: Regenerate.
296 * bfdio.c (bfd_bwrite): Use the new function.
297 (bfd_seek): Likewise.
298 * bfdwin.c:(bfd_get_file_window): Likewise.
299 * elf-strtab.c (_bfd_elf_strtab_add): Likewise.
300 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
301 * elf32-xtensa.c (vsprintf_msg): Likewise.
302 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
303 * stabs.c (_bfd_link_seciton_stabs): Likewise.
304 * vms-misc.c (_bfd_vms_get_record): Likewise.
305 * vms-tir.c (check_section): Likewise.
306 * vms.c (vms_new_section_hook): Likewise.
307 * elf32-arm.c (elf32_arm_section_map_add): Check that the
308 allocation of sec_data->map succeeded before using it.
309 * elflink.c (elf_link_output_sym): Do not overwrite finfo->
310 symshndxbuf until it is known that the reallocation succeeded.
311
b42bf1e0
NC
3122008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br>
313 Nick Clifton <nickc@redhat.com>
314
315 PR 868
316 * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
317 out of memory.
318 (decode_line_info): Free the line_info_table before returning a
319 failure result.
320 (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
321 Free the line table. Free the function table. Free the variable
322 table.
323
0a40daed
MK
3242008-02-17 Mark Kettenis <kettenis@gnu.org>
325
326 * elf.c (swap_out_syms): Avoid preprocessing directive within
327 macro arg.
328
3f001e84
JK
3292008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 * elf.c (assign_file_positions_for_load_sections): Set the type of
332 PT_NOTE sections to SHT_NOTE.
333
37da76e8
AM
3342008-02-17 Ulrich Weigand <uweigand@de.ibm.com>
335
336 * simple.c (bfd_simple_get_relocated_section_contents): Set
337 link_info.output_bfd.
338
d74e4b29
NS
3392008-02-16 Nathan Sidwell <nathan@codesourcery.com>
340
341 * dwarf2.c (find_line): Don't trust debug information after an
342 unparseable compilation unit.
343
f856272b
AM
3442008-02-15 Alan Modra <amodra@bigpond.net.au>
345
346 PR 5765
347 * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags.
348 * bfd-in2.h: Regenerate.
349
0c8d6e5c
AM
3502008-02-15 Alan Modra <amodra@bigpond.net.au>
351
352 * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
353 * elf.c (bfd_elf_allocate_object): Don't check for already allocated
354 tdata.
355 * elf32-hppa.c (elf32_hppa_mkobject): New function.
356 (bfd_elf32_mkobject): Define.
357 * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with..
358 (is_ppc_elf): ..this new macro.
359 * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with..
360 (is_ppc64_elf): ..this new macro.
361
f13a99db
AM
3622008-02-15 Alan Modra <amodra@bigpond.net.au>
363
364 * elflink.c: Replace all accesses to hash->creator field with
365 output_bfd->xvec.
366 * cofflink.c: Likewise.
367 * coff-h8300.c: Likewise.
368 * ecoff.c: Likewise.
369 * elf32-m68hc1x.c: Likewise.
370 * elf32-ppc.c: Likewise.
371 * elf64-alpha.c: Likewise.
372 * elf64-ppc.c: Likewise.
373 * elf64-sparc.c: Likewise.
374 * elfxx-mips.c: Likewise.
375 * i386linux.c: Likewise.
376 * m68klinux.c: Likewise.
377 * sparclinux.c: Likewise.
378 * sunos.c: Likewise.
379 * xcofflink.c: Likewise.
380 * linker.c: Likewise.
381 (_bfd_link_hash_table_init): Don't store creator.
382
e81819a5
NC
3832008-02-14 Peter Jones <pjones@redhat.com>
384
385 * efi-rtdrv-ia32.c: New file.
386 * efi-bsdrv-ia32.c: New file.
387 * efi-rtdrv-ia64.c: New file.
388 * efi-bsdrv-ia64.c: New file.
389 * efi-rtdrv-x86_64.c: New file.
390 * efi-bsdrv-x86_64.c: New file.
391 * peicode.h (pe_bfd_object_p): Add support for boot service and
392 runtime service drivers.
393 * libpei.h: Add macros for EFI formats, and rename the efi application
394 format macros to disambiguate.
395 * targets.c: Add bfd_target _vec externs.
396 (_bfd_tar): Add EFI _vec entries.
397 * config.bfd: Add EFI vectors into the selection routines.
398 * configure.in: add EFI _vec entries.
399 * configure: Regenerate.
400 * Makefile.am: Add EFI files.
401 * Makefile.in: Regenerate.
402
ab1579fd
NS
4032008-02-14 Nathan Sidwell <nathan@codesourcery.com>
404
405 * dwarf1.c (struct dwarf1_debug): Add syms member.
406 (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory.
407 (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate
408 section contents, check for out of memory.
409
410 * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte.
411 (parse_die): Change data pointers to bfd_byte.
412 (parse_line_table, parse_functions_in_unit): Likewise.
413
d40f3da9
AM
4142008-02-14 Alan Modra <amodra@bigpond.net.au>
415
416 * elflink.c (compute_bucket_count): Warning fixes.
417
f15557e4
DD
4182008-02-12 DJ Delorie <dj@redhat.com>
419
420 * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
421 relocation pointing to local symbol in merged section.
422
423 * elf32-iq2000.c (iq2000_elf_relocate_offset16): New.
424 (iq2000_elf_relocate_section): Call it.
425
0ffa91dd
NC
4262008-02-12 Nick Clifton <nickc@redhat.com>
427
428 PR ld/5692
429 * elf-bfd.h (enum elf_object_id): New enum, used to identify
430 target specific extensions to the elf_obj_tdata structure.
431 (struct elf_obj_tdata): New field 'object_id'.
432 (elf_object_id, elf_program_header_size, elf_symtab_hdr): New
433 macros for accessing fields in the elf_obj_tdata structure.
434 (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object.
435 (bfd_elf_allocate_object): New function.
436 * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object
437 and implement by calling bfd_elf_allocate_object.
438 (bfd_elf_allocate_object): New function: Allocates an
439 elf_obj_tdata structure, possibly with a target specific
440 extension.
441 * elfxx-target.h (bfd_elfNN_mkobject): Use
442 bfd_elf_make_generic_object as the default value.
443 * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata
444 for consistency with other, similar structures.
445 (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM
446 ELF bfd.
447 (elf32_arm_mkobject): Call bfd_elf_allocate_object.
448 (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check
449 the bfd being processed.
450 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
451 (bfd_elf32_arm_set_target_relocs): Likewise.
452 (bfd_elf32_arm_final_link_relocate): Likewise.
453 (bfd_elf32_arm_copy_private_bfd_data): Likewise.
454 (bfd_elf32_arm_merge_eabi_attributes): Likewise.
455 (bfd_elf32_arm_merge_private_bfd_data): Likewise.
456 (bfd_elf32_arm_check_relocs): Likewise.
457 (bfd_elf32_arm_gc_mark_extra_sections): Likewise.
458 (bfd_elf32_arm_size_dynamic_sections): Likewise.
459 (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr.
460 (bfd_elf32_arm_init_maps): Likewise.
461 (bfd_elf32_arm_final_link_relocate): Likewise.
462 (bfd_elf32_arm_relocate_section): Likewise.
463 (bfd_elf32_arm_gc_sweep_hook): Likewise.
464 (bfd_elf32_arm_check_relocs): Likewise.
465 (bfd_elf32_arm_size_dynamic_sections): Likewise.
466 * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object.
467 (is_i386_elf): New macro. Checks a BFD to make sure that is an x86
468 ELF bfd.
469 (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd
470 being processed.
471 (elf_i386_size_dynamic_sections): Likewise.
472 (elf_i386_relocate_section): Likewise.
473 (elf_i386_check_relocs): Use elf_symtab_hdr.
474 (elf_i386_gc_sweep_hook): Likewise.
475 (elf_i386_size_dynamic_sections): Likewise.
476 (elf_i386_relocate_section): Likewise.
477 * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object.
478 (elf_create_pointer_linker_section): Use is_ppc_elf_target to
479 verify that the bfd before accessing target specific fields.
480 (ppc_elf_check_relocs): Likewise.
481 (elf_finish_pointer_linker_section): Likewise.
482 (elf_create_pointer_linker_section): Use elf_symtab_hdr.
483 (ppc_elf_check_relocs): Likewise.
484 (ppc_elf_gc_sweep_hook): Likewise.
485 (ppc_elf_tls_optimize): Likewise.
486 (ppc_elf_size_dynamic_sections): Likewise.
487 (ppc_elf_relax_section): Likewise.
488 (ppc_elf_relocate_section): Likewise.
489 * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment
490 reminding programmers to keep this structure in sync with the one
491 defined in elf64-s390.c.
492 (elf_s390_mkobject): Call bfd_elf_allocate_object.
493 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
494 ELF bfd.
495 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
496 being processed.
497 (elf_s390_size_dynamic_sections): Likewise.
498 (elf_s390_relocate_section): Likewise.
499 (elf_s390_check_relocs): Use elf_symtab_hdr.
500 (elf_s390_gc_sweep_hook): Likewise.
501 (elf_s390_size_dynamic_sections): Likewise.
0eb4a168 502 (elf_s390_relocate_section): Likewise.
0ffa91dd
NC
503 * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
504 (is_sh_elf): New macro. Checks a BFD to make sure that is an SH
505 ELF bfd.
506 (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the
507 bfd being processed.
508 (sh_elf_relocate_section): Likewise.
509 (sh_elf_check_relocs): Likewise.
510 (sh_elf_copy_private_data): Likewise.
511 (sh_elf_relax_section): Use elf_symtab_hdr.
512 (sh_elf_size_dynamic_sections): Likewise.
513 (sh_elf_relocate_section): Likewise.
514 (sh_elf_get_relocated_section_contents): Likewise.
515 (sh_elf_gc_sweep_hook): Likewise.
516 (sh_elf_check_relocs): Likewise.
517 * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object.
518 (is_alpha_elf): New macro. Checks a BFD to make sure that is an
519 Alpha ELF bfd.
520 (elf64_alpha_create_got_section): Use is_alpha_elf macro to check
521 the bfd being processed.
522 (elf64_alpha_create_dynamic_section): Likewise.
523 (elf64_alpha_check_relocs): Likewise.
524 (elf64_alpha_size_got_sections): Likewise.
525 (elf64_alpha_relax_section): Likewise.
526 (elf64_alpha_relocate_section): Likewise.
527 (elf64_alpha_final_link): Likewise.
528 (elf64_alpha_check_relocs): Use elf_symtab_hdr.
529 (elf64_alpha_relax_section): Likewise.
530 (elf64_alpha_relocate_section_r): Likewise.
531 (elf64_alpha_relocate_section): Likewise.
532 * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object.
533 (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd
534 being processed.
535 (opd_entry_value): Likewise.
536 (allocate_dynrelocs): Likewise.
537 (ppc64_elf_relocate_section): Likewise.
538 (ppc64_elf_check_relocs): Use elf_symtab_hdr.
539 (opd_entry_value): Likewise.
540 (ppc64_elf_gc_sweep_hook): Likewise.
541 (get_sym_h): Likewise.
542 (ppc64_elf_edit_opd): Likewise.
543 (ppc64_elf_tls_optimize): Likewise.
544 (ppc64_elf_edit_toc): Likewise.
545 (ppc64_elf_size_dynamic_sections): Likewise.
546 (toc_adjusting_stub_needed): Likewise.
547 (ppc64_elf_size_stubs): Likewise.
548 (ppc64_elf_relocate_section): Likewise.
549 * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment
550 reminding programmers to keep this structure in sync with the one
551 defined in elf32-s390.c.
552 (elf_s390_mkobject): Call bfd_elf_allocate_object.
553 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
554 ELF bfd.
555 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
556 being processed.
557 (elf_s390_size_dynamic_sections): Likewise.
0eb4a168 558 (elf_s390_relocate_section): Likewise.
0ffa91dd
NC
559 (elf_s390_check_relocs): Use elf_symtab_hdr.
560 (elf_s390_gc_sweep_hook): Likewise.
561 (elf_s390_size_dynamic_sections): Likewise.
562 (elf_s390_relocate_section): Likewise.
563 * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object.
564 (is_x86_64_elf): New macro. Checks a BFD to make sure that is an
565 x86_64 ELF bfd.
566 (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd
567 being processed.
568 (elf64_x86_64_size_dynamic_sections): Likewise.
569 (elf64_x86_64_relocate_section): Likewise.
570 (elf64_x86_64_check_relocs): Use elf_symtab_hdr.
571 (elf64_x86_64_gc_sweep_hook): Likewise.
572 (elf64_x86_64_size_dynamic_sections): Likewise.
573 (elf64_x86_64_relocate_section): Likewise.
574 * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object.
575 (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc
576 ELF bfd.
577 (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the
578 bfd being processed.
579 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
580 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
581 (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
582 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
583 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
0eb4a168 584 (_bfd_sparc_elf_relocate_section): Likewise.
0ffa91dd 585
be4291f1
AM
5862008-02-12 Alan Modra <amodra@bigpond.net.au>
587
588 PR 5303, 5755
589 * arange-set.c: Delete.
590 * arange-set.h: Delete.
591 * dwarf2.c: Revert 2007-09-21 changes.
592 * Makefile.am: Likewise.
593 * Makefile.in: Regenerate.
594 * po/SRC-POTFILES.in: Regenerate.
595
7a84e3da
BS
5962008-02-11 Bernd Schmidt <bernd.schmidt@analog.com>
597
598 * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
599 if necessary.
600 (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type
601 mismatches are detected.
602
ca889129
BS
603 * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
604 emit invalid relocs or rofixup entries for deleted .eh_frame entries.
605
662ed161
DJ
6062008-02-11 Daniel Jacobowitz <dan@codesourcery.com>
607
608 * cache.c (cache_bread): Set bfd_error_file_truncated if EOF
609 was reached.
610 * srec.c (srec_scan): Calculate the checksum. Complain on mismatch.
611
2e444bea
AM
6122008-02-07 Alan Modra <amodra@bigpond.net.au>
613
614 * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling
615 of _ovly_buf_table size.
616 (spu_elf_build_stubs): Use low bit of .size as "present" bit.
617 Adjust initialisations relating to _ovly_buf_table.
618
d9ab3f29 6192008-02-04 Bob Wilson <bob.wilson@acm.org>
0eb4a168 620
d9ab3f29
BW
621 * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
622 relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND
623 relocations against dynamic symbols.
624 (elf_xtensa_finish_dynamic_sections): Do not fail if there is no
625 .xt.lit section.
0eb4a168 626
bb8541b9
L
6272008-02-04 Kai Tietz <kai.tietz@onevision.com>
628 H.J. Lu <hongjiu.lu@intel.com>
629
630 PR 5715
631 * warning.m4: Enable -Wno-format by default when using gcc on
632 mingw.
633 * configure: Regenerated.
634
6f179bd0
AN
6352008-02-04 Adam Nemet <anemet@caviumnetworks.com>
636
637 * archures.c: Update copyright.
638 (bfd_mach_mips_octeon): New macro.
639 * bfd-in2.h: Regenerate.
640 * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon.
641 (mips_set_isa_flags): Likewise.
642 (mips_mach_extensions): Add Octeon.
643 * cpu-mips.c: Update copyright.
644 (I_mipsocteon): New enum constant.
645 (arch_info_struct): Add Octeon.
646
d16c7321
AM
6472008-02-04 Alan Modra <amodra@bigpond.net.au>
648
649 * elf32-spu.c (spu_elf_relocate_section): Correct return type.
650 Return error status on unexpected relocation errors.
651
e44a2c9c
AM
6522008-02-04 Alan Modra <amodra@bigpond.net.au>
653
654 PR ld/5692
655 * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort
656 on non-ELF input.
657 * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue
658 processing on non-ELF input.
659
f8a52b59
BW
6602008-01-31 Marc Gauthier <marc@tensilica.com>
661
662 * config.bfd (xtensa*-*-*): Recognize processor variants.
663
b7c368d0
NC
6642008-01-31 Nick Clifton <nickc@redhat.com>
665
666 PR ld/5692
667 * elf.c (bfd_elf_get_elf_syms): Check the return value of
668 get_elf_backend_data.
669
00b2bfc1
NC
6702008-01-28 Fabian Groffen <grobian@gentoo.org>
671
672 * config.bfd (x86_64-*-solaris2): Add support for this target.
673
47f6dab9
AM
6742008-01-28 Alan Modra <amodra@bigpond.net.au>
675
676 Rewrite SPU overlay handling code. Put overlay calls stubs in the
677 overlays where possible. Use a faster call stub, or optionally at
678 compile time, a more compact stub. Double size of _ovly_buf_table
679 so that low bit of _ovly_table.buf can be used as a "present" bit.
680 Reserve an extra _ovly_table entry for index zero.
681 * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields,
682 add new ones.
683 (struct got_entry): New.
684 (struct spu_stub_hash_entry): Delete.
685 (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete.
686 (spu_elf_link_hash_table_create): Adjust for struct changes.
687 (spu_stub_name): Delete.
688 (spu_elf_find_overlays): Don't track sections from overlay regions.
689 Instead set ovl_buf number in spu elf section data. Error if
690 overlays in one region don't start at the same address. Adjust
691 for struct _spu_elf_section_data changes.
692 (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete.
693 (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define.
694 (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes.
695 (enum _insn_type): New.
696 (count_stub, build_stub): New functions.
697 (allocate_spuear_stubs): Use count_stub.
698 (build_spuear_stubs): Use build_stub.
699 (populate_stubs, sort_stubs): Delete.
700 (process_stubs): New function.
701 (write_one_stub): Delete.
702 (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite.
703 (alloc_stack_info): Adjust for struct _spu_elf_section_data changes.
704 (maybe_insert_function, check_function_ranges): Likewise.
705 (find_function, pasted_function, build_call_tree): Likewise.
706 (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise.
707 (spu_elf_modify_program_headers): Likewise.
708 (interesting_section): Detect stub sections differently. Delete
709 htab param, adjust all callers.
710 (spu_elf_relocate_section): Rewrite stub handling.
711 (spu_elf_output_symbol_hook): Likewise.
712 (bfd_elf32_bfd_link_hash_table_free): Delete.
713 * elf32-spu.h (struct _spu_elf_section_data): Move input-only and
714 output-only fields into a union. Add ovl_buf.
715 (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes.
716
c006d697
DD
7172008-01-25 DJ Delorie <dj@redhat.com>
718
719 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
720
6e3d6dc1
NC
7212008-01-25 Kai Tietz <kai.tietz@onevision.com>
722
723 * bfd-in.h: Add mingw I64 support.
724 * bfd-in2.h: Regenerated.
725 * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64.
726
fbb3bb98
AM
7272008-01-21 Alan Modra <amodra@bigpond.net.au>
728
729 PR 4453
730 * format.c (bfd_check_format_matches): Don't accept archives as
731 fully matching unless they have a map.
732
297d8443
AM
7332008-01-21 Alan Modra <amodra@bigpond.net.au>
734
735 * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
736
66cd82b5
AM
7372008-01-21 Alan Modra <amodra@bigpond.net.au>
738
739 * ecoff.c (_bfd_ecoff_archive_p): Delete.
740 * libecoff.h (_bfd_ecoff_archive_p): Delete.
741 * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
742 * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
743 (ecoff_biglittle_vec): Likewise.
744
85f7a9cb
AM
7452008-01-19 Alan Modra <amodra@bigpond.net.au>
746
747 PR 5646
748 * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
749 non-NULL before dereferencing.
750
74f0fb50
AM
7512008-01-15 Alan Modra <amodra@bigpond.net.au>
752
753 PR 5604
754 * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param
755 names from others.
756 (_bfd_elf_gc_keep): Declare.
757 * elfxx-target.h (elf_backend_gc_keep): Define.
758 (elfNN_bed): Init new field.
759 * elflink.c (_bfd_elf_gc_keep): New function.
760 (bfd_elf_gc_sections): Call gc_keep.
761 * elf64-ppc.c (elf_backend_gc_keep): Define.
762 (struct _ppc64_elf_section_data): Move .opd related fields to
763 a struct so they don't occupy the same storage. Adjust accesses
764 throughout file.
765 (ppc64_elf_gc_keep): New function, split out from..
766 (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark
767 to mark .opd section, just set gc_mark.
768 (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust
769 unless we are changing .opd. Test non-NULL opd->adjust at all
770 accesses throughout file.
771 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
772
787daa7a
AM
7732008-01-15 Alan Modra <amodra@bigpond.net.au>
774
775 * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
776 * bfd-in2.h: Regenerate.
777
7dda2462
TG
7782008-01-11 Tristan Gingold <gingold@adacore.com>
779 Eric Botcazou <ebotcazou@adacore.com>
780
781 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
782 relocatable.
783 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
784 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
785 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
786 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
787 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
788 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
789 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
790 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
791 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
792 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
793 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
794 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
795 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
796 * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
797 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
798 * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
799 or executable output with relocations.
800
d2e2e649
NC
8012008-01-09 Nick Clifton <nickc@redhat.com>
802
803 PR gas/5552
804 * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field
805 to FALSE for all relocs.
806
184d07da
RS
8072008-01-09 Richard Sandiford <rsandifo@nildram.co.uk>
808
809 PR ld/5526
810 * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
811 fields. Rename u.cie.u.merged to u.cie.u.merged_with.
812 (eh_frame_sec_info): Add a cies field.
813 (eh_frame_hdr_info): Add a merge_cies field.
814 * elf-eh-frame.c (cie): Add a reloc_index member to the personality
815 union.
816 (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
817 of hdr_info->cies.
818 (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of
819 cie structures in all cases and use it instead of extended_cies.
820 If merging, store the cie array in sec_info->cies and point each
821 CIE's eh_fde_cie at the associated element. Do not try to
822 calculate the value of the personality routine here; record the
823 offset of the relocation instead. Do not merge CIEs here.
824 (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
825 (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
826 (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
827 (find_merged_cie): New function.
828 (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies.
829
780b2360
NC
8302008-01-07 Nick Clifton <nickc@redhat.com>
831
832 PR binutils/5535
833 * vms.c (vms_close_and_cleanup): Check for the presence of a
834 vms_private_data_struct before examining any of its fields.
835
ace79388
L
8362008-01-07 H.J. Lu <hongjiu.lu@intel.com>
837
838 PR ld/5522
839 * elflink.c (elf_link_input_bfd): Don't write out a section if
840 its output section is marked with SEC_NEVER_LOAD.
841
6c7ac64e 842For older changes see ChangeLog-2007
56882138
AM
843\f
844Local Variables:
845mode: change-log
846left-margin: 8
847fill-column: 74
848version-control: never
849End:
This page took 0.440785 seconds and 4 git commands to generate.