* elfcore.h (elf_core_file_p): Improve comment for last change.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * elfcore.h (elf_core_file_p): Improve comment for last change.
4
5 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6
7 * configure: Regenerated.
8
9 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
10
11 * elfcore.h (elf_core_file_p): Set the machine architecture
12 before processing the program headers.
13
14 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
15
16 * configure.in <64-bit configuration>: If using gcc, check and
17 emit error for egcs-1.1.2.
18 * configure: Regenerate.
19
20 * doc/Makefile.am (install): Depend on install-info.
21 * doc/Makefile.in: Regenerate.
22
23 2002-01-26 Egor Duda <deo@logos-m.ru>
24
25 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
26 as possible to avoid stack corruption.
27
28 2002-01-26 Richard Henderson <rth@redhat.com>
29
30 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
31 for non-allocated sections.
32
33 2002-01-25 Mark Kettenis <kettenis@gnu.org>
34
35 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
36 prstat.pr_reg even if it is a struct.
37
38 2002-01-25 Steve Ellcey <sje@cup.hp.com>
39
40 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
41
42 2002-01-25 Philipp Thomas <pthomas@suse.de>
43
44 * coffgen.c (coff_print_symbol): Don't mark info message
45 for translation.
46
47 2002-01-25 Nick Clifton <nickc@redhat.com>
48
49 * po/fr.po: Updated translation.
50 * po/es.po: Updated translation.
51
52 2002-01-25 Philipp Thomas <pthomas@suse.de>
53
54 * coff-alpha.c (alpha_relocate_section): Unify warning message
55 for GP relative relocations without GP defined.
56 * coff-mips.c (mips_relocate_section): Likewise.
57
58 2002-01-25 Alan Modra <amodra@bigpond.net.au>
59
60 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
61 unsigned overflow when new_offset < old_offset.
62
63 2002-01-24 Philipp Thomas <pthomas@suse.de>
64
65 * bfd.c (_bfd_abort): Fix typo.
66
67 2002-01-23 Richard Henderson <rth@redhat.com>
68
69 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
70 plt entries for undefweak symbols.
71
72 2002-01-23 Steve Ellcey <sje@cup.hp.com>
73
74 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
75 DEFAULT_VECTOR.
76 (bfd_elf64_ia64_hpux_big_vec): Ditto.
77 (bfd_elf32_h8300_vec): Ditto.
78
79 2002-01-23 Alan Modra <amodra@bigpond.net.au>
80
81 * elf64-ppc.c: Remove stale part of ABI comment.
82 (NO_OPD_RELOCS): Define.
83 (ppc64_elf_check_relocs): Use it.
84 (ppc64_elf_relocate_section): Here too.
85 (build_one_stub): Don't point function syms at the stub. Instead,
86 hijack plt.offset.
87 (ppc64_elf_relocate_section): Check whether REL24 relocs should
88 really go to the stub. Make all dynamic relocs in opd against
89 locals.
90 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
91 plt.offset.
92
93 2002-01-22 Richard Henderson <rth@redhat.com>
94
95 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
96
97 2002-01-22 Alan Modra <amodra@bigpond.net.au>
98
99 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
100 TOC_BASE_OFF adjustment.
101
102 * Makefile.am: Run "make dep-am".
103 * Makefile.in: Regenerate.
104 * po/SRC-POTFILES.in: Regenerate.
105
106 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
107
108 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
109 host defines.
110
111 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
112
113 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
114 Check for and emit error if sgot is NULL at this point.
115
116 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
117
118 * config.bfd (ia64*-*-netbsd*): New target.
119
120 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
121
122 * som.c (som_write_space_strings): Comment typo fix.
123
124 2002-01-21 Alan Modra <amodra@bigpond.net.au>
125
126 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
127 is_func_descriptor fields.
128 (link_hash_newfunc): Init them.
129 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
130 dot are candidates for plt entries. When processing .opd relocs,
131 set function descriptor strings to point inside function code
132 string, and set new ppc_link_hash_entry fields.
133 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
134 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
135 function descriptors. It's now done in..
136 (func_desc_adjust): New.
137 (ppc64_elf_func_desc_adjust): New.
138 (define elf_backend_always_size_sections): Define.
139 (ppc64_elf_hide_symbol): New.
140 (define elf_backend_hide_symbol): Define.
141 (allocate_dynrelocs): Remove code looking up function descriptors
142 as that has been done earlier.
143 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
144 table.
145 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
146 up function descriptor.
147 (build_one_stub): Look up the function code sym. Check for
148 invalid plt offsets.
149 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
150 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
151
152 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
153 boolean param.
154 (_bfd_elf_link_hash_hide_symbol): Likewise.
155 * elflink.h (elf_link_add_object_symbols): Adjust call to
156 elf_backend_hide_symbol.
157 (elf_fix_symbol_flags): Likewise.
158 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
159 than bfd_alloc.
160 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
161 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
162 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
163 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
164 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
165 and adjust to suit.
166 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
167 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
168 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
169
170 2002-01-18 Alan Modra <amodra@bigpond.net.au>
171
172 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
173 dynamic function descriptor symbol, not the associated function
174 symbol.
175
176 2002-01-17 Eric Christopher <echristo@redhat.com>
177
178 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
179
180 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
181
182 * po/bfd.pot: Regenerate.
183 * po/fr.po: Regenerate.
184
185 2002-01-17 Alan Modra <amodra@bigpond.net.au>
186
187 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
188 Remove "Elf_Internal_Shdr *" param.
189 (_bfd_mips_elf_section_from_bfd_section): Ditto.
190 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
191 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
192 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
193 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
194 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
195 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
196 function to override special sections. Remove hdr arg from
197 backend call, and don't loop.
198
199 2002-01-16 Eric Christopher <echristo@redhat.com>
200
201 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
202 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
203 relocations requiring gp0 and gp.
204
205 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
206
207 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
208 EF_ARM_VFP_FLOAT.
209 (elf32_arm_print_private_bfd_data): Likewise.
210
211 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
212
213 * po/tr.po: Import new version.
214
215 2002-01-16 Alan Modra <amodra@bigpond.net.au>
216
217 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
218 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
219 (ORI_R0_R0_0): Correct.
220
221 2002-01-16 Alan Modra <amodra@bigpond.net.au>
222
223 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
224 when plt_not_loaded.
225 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
226 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
227 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
228 (ppc64_elf_glink_code): Delete.
229 (PPC64_ELF_GLINK_SIZE): Delete.
230 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
231 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
232 ORI_R0_R0_0): Define.
233 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
234 (struct ppc_link_hash_table): Add sstub and plt_overflow.
235 (ppc64_elf_link_hash_table_create): Init them.
236 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
237 Don't copy to shared lib.
238 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
239 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
240 (allocate_dynrelocs <plt>): Don't change function sym here. Make
241 room for .stub and .glink code.
242 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
243 DT_PPC64_GLINK.
244 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
245 bfd_elf64_bfd_final_link.
246 (bfd_elf64_bfd_final_link): Don't define.
247 (ppc64_elf_size_stubs): New.
248 (build_plt_stub): New.
249 (build_one_stub): New.
250 (ppc64_elf_build_stubs): New.
251 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
252 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
253 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
254 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
255 case output sections not separate. Adjust DT_RELASZ to not
256 include plt relocs. Set reserved got entry. Set got and plt
257 entry size.
258 (elf_backend_got_header_size): Set to 8.
259 * elf64-ppc.h: New file.
260
261 2002-01-16 Alan Modra <amodra@bigpond.net.au>
262
263 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
264 sections, use bfd_section_list_remove.
265 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
266 * elflink.h (elf_link_add_object_symbols): When removing all
267 sections, use bfd_section_list_clear.
268
269 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
270
271 * po/sv.po: New file: Swedish translation.
272 * configure.in (ALL_LINGUAS): Add sv.
273 * configure: Regenerate.
274
275 2002-01-15 Jakub Jelinek <jakub@redhat.com>
276
277 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
278 * elf.c (merge_sections_remove_hook): New function.
279 (_bfd_elf_merge_sections): Pass it as 3rd argument to
280 _bfd_merge_sections.
281 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
282 * libbfd.h: Rebuilt.
283 * merge.c (_bfd_merge_sections): Add remove_hook argument.
284 Call remove_hook if a SEC_EXCLUDE section is encountered.
285
286 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
287
288 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
289 (xstormy16_reloc_map): Initialise new field with correct howto
290 table.
291 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
292 howto entry.
293
294 2002-01-10 Michael Snyder <msnyder@redhat.com>
295
296 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
297 (elfcore_write_pstatus): Use long instead of pid_t;
298 * elf-bfd.h: Change prototypes to use long instead of pid_t;
299
300 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
301
302 * elf.c: Update copyright years.
303 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
304 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
305
306 2002-01-08 Michael Snyder <msnyder@redhat.com>
307
308 Add capability to write corefile note sections, for gdb.
309 * elf.c (elfcore_write_note): New function.
310 (elfcore_write_prpsinfo): New function.
311 (elfcore_write_prstatus): New function.
312 (elfcore_write_pstatus): New function.
313 (elfcore_write_prfpreg): New function.
314 (elfcore_write_prxfpreg): New function.
315 * elf-bfd.h: Add prototypes for above functions.
316
317 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
318
319 * elf.c (elf_fake_sections): Propagate errors from
320 elf_backend_fake_section.
321
322 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
323
324 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
325 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
326 (elf32-sh-nbsd.lo): New rule.
327 * Makefile.in: Regenerate.
328 * config.bfd (sh*le-*-netbsdelf*): New target.
329 (sh*-*-netbsdelf*): New target.
330 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
331 (bfd_elf32_shnbsd_vec): New vector.
332 (bfd_elf32_shlnbsd_vec): New vector.
333 * configure: Regenerate.
334 * elf32-sh-nbsd.c: New file.
335 * targets.c: Update copyright years.
336 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
337 bfd_elf32_shnbsd_vec.
338
339 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
340
341 * coff-rs6000.c (READ20): Use bfd_scan_vma.
342
343 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
344
345 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
346 of a symbol in a section that will be deleted.
347
348 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
349
350 * po/es.po: New file: Spanish translation.
351 * configure.in (ALL_LINGUAS): Add es.
352 * configure: Regenerate.
353
354 2002-01-06 Steve Ellcey <sje@cup.hp.com>
355
356 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
357 argument so we can handle HP-UX specially.
358 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
359 (elfNN_hpux_backend_section_from_bfd_section): New for support
360 of SHN_IA_64_ANSI_COMMON.
361 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
362 (is_unwind_section_name): Add special HP-UX support.
363 (elfNN_ia64_section_from_shdr): Add support for more sections.
364 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
365 add support for more sections.
366 (elfNN_ia64_additional_program_headers): Modify
367 is_unwind_section_name call.
368 (elfNN_ia64_modify_segment_map): Remove assumption that there is
369 only one unwind section in segment.
370
371 2002-01-06 Alan Modra <amodra@bigpond.net.au>
372
373 * syms.c (_bfd_generic_make_empty_symbol): New function.
374 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
375 _bfd_generic_make_empty_symbol.
376 * libbfd.h: Regenerate.
377 * bfd-in2.h: Regenerate.
378 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
379 (hppabsd_core_get_symtab_upper_bound): Don't define.
380 (hppabsd_core_get_symtab): Likewise.
381 (hppabsd_core_print_symbol): Likewise.
382 (hppabsd_core_get_symbol_info): Likewise.
383 (hppabsd_core_bfd_is_local_label_name): Likewise.
384 (hppabsd_core_get_lineno): Likewise.
385 (hppabsd_core_find_nearest_line): Likewise.
386 (hppabsd_core_bfd_make_debug_symbol): Likewise.
387 (hppabsd_core_read_minisymbols): Likewise.
388 (hppabsd_core_minisymbol_to_symbol): Likewise.
389 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
390 Formatting fixes.
391 * hpux-core.c: Similarly.
392 * irix-core.c: Similarly.
393 * osf-core.c: Similarly.
394 * sco5-core.c: Similarly.
395 * binary.c (binary_make_empty_symbol): Remove function, define as
396 _bfd_generic_make_empty_symbol.
397 * ihex.c (ihex_make_empty_symbol): Likewise.
398 * mmo.c (mmo_make_empty_symbol): Likewise.
399 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
400 * srec.c (srec_make_empty_symbol): Likewise.
401 * versados.c (versados_make_empty_symbol): Likewise.
402 * vms.c (_bfd_vms_make_empty_symbol): Remove.
403 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
404 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
405 rather than _bfd_vms_make_empty_symbol.
406 * vms-misc.c (new_symbol): Likewise.
407
408 2002-01-05 Alan Modra <amodra@bigpond.net.au>
409
410 * section.c (bfd_section_init): Remove unnecessary initialisations.
411 (bfd_section_list_clear): New function.
412 (bfd_section_list_remove, bfd_section_list_insert): New macros.
413 (_bfd_strip_section_from_output): Use them.
414 * coffcode.h (coff_set_alignment_hook): Likewise.
415 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
416 * elf64-mips.c (mips_elf64_final_link): Likewise.
417 * elf64-mmix.c (mmix_elf_final_link): Likewise.
418 * sunos.c (sunos_add_dynamic_symbols): Likewise.
419 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
420 * bfd-in2.h: Regenerate.
421
422 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
423 rather than doing our own section handling. Clean up after errors
424 with bfd_release and bfd_section_list_clear. Handle unexpected
425 flags.
426 * aoutf1.h (sunos4_core_file_p): Likewise.
427 * aix386-core.c (aix386_core_file_p): Likewise.
428 * cisco-core.c (cisco_core_file_validate): Likewise.
429 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
430 * trad-core.c (trad_unix_core_file_p): Likewise.
431
432 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
433 with bfd_release and bfd_section_list_clear.
434 * hpux-core.c (hpux_core_core_file_p): Likewise.
435 * irix-core.c (irix_core_core_file_p): Likewise.
436 * lynx-core.c (lynx_core_file_p): Likewise.
437 * osf-core.c (osf_core_core_file_p): Likewise.
438 * rs6000-core.c (rs6000coff_core_p): Likewise.
439 * sco5-core.c (sco5_core_file_p): Likewise.
440
441 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
442 sign extension adjustments without conditionals.
443
444 2002-01-04 Jakub Jelinek <jakub@redhat.com>
445
446 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
447 CIE at .eh_frame start is removed due to no FDEs referencing it.
448
449 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
450
451 * config.bfd (x86_64-*-netbsd*): New target.
452 * configure.in (x86_64-*-netbsd*): Set COREFILE
453 to netbsd-core.lo.
454 * configure: Regenerated.
455
456 2002-01-03 Tom Rix <trix@redhat.com>
457
458 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
459 for recent bfd_make_section_anyway change.
460
461 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
462
463 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
464 R_ARM_THM_PC11 reloc.
465
466 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
467
468 * configure.in (LINGUAS): Add ja.
469 * configure: Regenerate.
470 * po/ja.po: Import from translation project's web site.
471
472 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
473
474 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
475 messages to ease translation into other languages.
476
477 For older changes see ChangeLog-0001
478 \f
479 Local Variables:
480 mode: change-log
481 left-margin: 8
482 fill-column: 74
483 version-control: never
484 End:
This page took 0.059831 seconds and 5 git commands to generate.