2002-02-06 H.J. Lu (hjl@gnu.org)
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2002-02-06 H.J. Lu (hjl@gnu.org)
2
3 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
4 the mach and ISA fields if necessary.
5
6 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7
8 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
9 ARM architecture when an F_ARM_5 flag is detected, since we cannot
10 be sure exactly which architecture this represents.
11
12 2002-02-05 Nick Clifton <nickc@redhat.com>
13
14 * po/tr.po: Updated translation.
15
16 2002-02-05 Alan Modra <amodra@bigpond.net.au>
17
18 From Jimi X <jimix@watson.ibm.com>
19 * archures (bfd_mach_ppc64): Define.
20 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
21 (bfd_powerpc_arch): Define.
22 * bfd-in2.h: Regenerate.
23 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
24 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
25 (bfd_powerpc_archs): Add default powerpc64 arch.
26
27 2002-02-05 Alan Modra <amodra@bigpond.net.au>
28
29 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
30 against section syms in readonly sections. Don't do the global
31 sym check if we find one.
32 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
33 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
34 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
35 (elf_s390_grok_prstatus): Add missing prototype.
36
37 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
38
39 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
40 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
41 Call bfd_get_section_by_name only once. Initialize
42 bpodata->n_bpo_relocs_this_section.
43 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
44 referring to DSOs.
45 (bpo_reloc_request_sort_fn): Don't use difference of values as
46 return-value.
47
48 2002-02-02 David O'Brien <obrien@FreeBSD>
49
50 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
51 version 4.5 and later the same as 5-CURRENT.
52 * configure: Re-generate.
53
54 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
55
56 * config.bfd (hppa*-*-netbsd*): New target.
57
58 2002-01-31 Philipp Thomas <pthomas@suse.de>
59
60 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
61 to front of message. Unify messages with elf32-arm.h. Use
62 commas where neccessary.
63 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
64 ERROR in messages. Unify messages with coff-arm.c. Correct
65 VFP/FPA error message.
66 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
67 APCS-32 for translation.
68
69 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
70
71 Perform on-demand global register allocation from
72 R_MMIX_BASE_PLUS_OFFSET relocs.
73 * elf64-mmix.c (struct bpo_reloc_section_info, struct
74 bpo_reloc_request, struct bpo_greg_section_info): New.
75 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
76 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
77 _bfd_mmix_check_all_relocs,
78 _bfd_mmix_prepare_linker_allocated_gregs,
79 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
80 (elf_mmix_howto_table): Correct src_mask for most relocs.
81 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
82 case.
83 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
84 case. Fix typo in comment. New label do_mmix_reloc.
85 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
86 store first object file with a base-plus-offset reloc. Call
87 mmix_elf_check_common_relocs for the part common with mmo.
88 (mmix_elf_final_link): Write out linker-allocated register
89 contents section.
90 (elf_backend_gc_sweep_hook): Define.
91 (bfd_elf64_bfd_relax_section): Define.
92
93 * mmo.c: Don't include <ctype.h>
94 (mmo_init): Correct init-once logic.
95
96 2002-02-01 Tom Rix <trix@redhat.com>
97
98 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
99
100 2002-02-01 Alan Modra <amodra@bigpond.net.au>
101
102 * Makefile.am: Run "make dep-am"
103 * Makefile.in: Regenerate.
104
105 2002-01-31 David O'Brien <obrien@FreeBSD>
106
107 * configure.in: Recognize the differences in core files from FreeBSD
108 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
109 5-CURRENT.
110 * configure: Regenerate.
111
112 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
113
114 * coff-or32.c: New file.
115 * cpu-or32.c: New file.
116 * elf32-or32.c: New file.
117 * archures.c: Add support for or32.
118 * targets.c: Add support for or32.
119 * bfd-in2.h: Regenerate.
120 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
121 coff_write_object_contents): Add support for or32.
122 * config.bfd: Add target.
123 * configure.in: Add support for or32.
124 * configure: Regenerate.
125 * Makefile.am: Add support for or32.
126 * Makefile.in: Regenerate.
127 * po/SRC-POTFILES.in: Add or32 files.
128 * po/bfd.pot: Regenerate.
129
130 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
131 Don Lindsay <lindsayd@cisco.com>
132
133 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
134 false' with a return of a bfd_reloc_ error code.
135
136 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
137
138 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
139 unexport unreferenced symbols when --export-dynamic. Call
140 _bfd_elf_strtab_delref when unexporting.
141
142 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
143
144 * bfd-in.h: Include <stdbool.h> if it is available.
145 * bfd-in2.h: Regenerated.
146
147 2002-01-31 Alan Modra <amodra@bigpond.net.au>
148
149 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
150 not go via the plt.
151
152 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
153
154 * archures.c: Tidy up formatting of embedded comments.
155 * bfd.c: Tidy up formatting of embedded comments.
156 * bfd-in.h: Fix formatting of comments.
157 * reloc.c: Tidy up formatting of ordinary & embedded comments.
158 * section.c: Tidy up formatting of embedded comments.
159 * syms.c: Tidy up formatting of embedded comments.
160 * targets.c: Tidy up formatting of embedded comments.
161
162 * bfd-in2.h: Regenerate.
163
164 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
165
166 * vms-tir.c (cmd_name): New function.
167 (tir_cmd_name): New function.
168 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
169 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
170 Fix formatting.
171
172 * peXXigen.c (pe_print_idata): Rearrange message to aid in
173 translation.
174 (pe_print_pdata): Rearrange message to aid in translation.
175
176 * libbfd.c (warn_deprecated): Rearrange error message to aid in
177 translation.
178
179 * ihex.c (ihex_write_object_contents): Fix spelling typo.
180
181 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
182
183 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
184 message to aid in translation.
185
186 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
187 to aid in translation.
188
189 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
190
191 2002-01-30 Philipp Thomas <pthomas@suse.de>
192
193 * coff-arm.c, elf32-elf.h: Unify messages.
194
195 2002-01-30 Nick Clifton <nickc@redhat.com>
196
197 * po/sv.po: Updated translation.
198
199 2002-01-30 Philipp Thomas <pthomas@suse.de>
200
201 * dwarf2.c (read_abbrev): Use full section name in error message.
202 (decode_line_info): Likewise.
203
204 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
205 message.
206
207 2002-01-30 Alan Modra <amodra@bigpond.net.au>
208
209 * elf64-ppc.c (func_desc_adjust): Only provide missing function
210 descriptor symbols for undefined function code syms. Clear
211 ELF_LINK_NON_ELF so that they can stay weak.
212
213 2002-01-29 Chris Demetriou <cgd@broadcom.com>
214 Mitch Lichtenberg <mpl@broadcom.com>
215
216 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
217 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
218 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
219 generation.
220 * bfd-in2.h: Regenerate.
221
222 2002-01-29 Chris Demetriou <cgd@broadcom.com>
223
224 * elf32-mips.c: Add additional comments about HI16 relocation
225 processing.
226 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
227 pc-relative relocations. (Reverts change made on 2001-10-31.)
228 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
229 for pc-relative relocations.
230 (mips_elf_calculate_relocation): Add a comment about a kludge
231 in the R_MIPS_GNU_REL_HI16 handling.
232 (_bfd_mips_elf_relocate_section): Implement that kludge;
233 adjust pc-relative HI16 relocation for difference in HI16 and
234 LO16 addresses, since it can't easily be done in
235 mips_elf_calculate_relocation.
236
237 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
238
239 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
240 relocations with PC32 relocations for undefined or weak symbols.
241 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
242 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
243
244 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
245
246 * elfcore.h (elf_core_file_p): Improve comment for last change.
247
248 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
249
250 * configure: Regenerated.
251
252 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
253
254 * elfcore.h (elf_core_file_p): Set the machine architecture
255 before processing the program headers.
256
257 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
258
259 * configure.in <64-bit configuration>: If using gcc, check and
260 emit error for egcs-1.1.2.
261 * configure: Regenerate.
262
263 2002-01-26 Egor Duda <deo@logos-m.ru>
264
265 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
266 as possible to avoid stack corruption.
267
268 2002-01-26 Richard Henderson <rth@redhat.com>
269
270 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
271 for non-allocated sections.
272
273 2002-01-25 Mark Kettenis <kettenis@gnu.org>
274
275 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
276 prstat.pr_reg even if it is a struct.
277
278 2002-01-25 Steve Ellcey <sje@cup.hp.com>
279
280 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
281
282 2002-01-25 Philipp Thomas <pthomas@suse.de>
283
284 * coffgen.c (coff_print_symbol): Don't mark info message
285 for translation.
286
287 2002-01-25 Nick Clifton <nickc@redhat.com>
288
289 * po/fr.po: Updated translation.
290 * po/es.po: Updated translation.
291
292 2002-01-25 Philipp Thomas <pthomas@suse.de>
293
294 * coff-alpha.c (alpha_relocate_section): Unify warning message
295 for GP relative relocations without GP defined.
296 * coff-mips.c (mips_relocate_section): Likewise.
297
298 2002-01-25 Alan Modra <amodra@bigpond.net.au>
299
300 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
301 unsigned overflow when new_offset < old_offset.
302
303 2002-01-24 Philipp Thomas <pthomas@suse.de>
304
305 * bfd.c (_bfd_abort): Fix typo.
306
307 2002-01-23 Richard Henderson <rth@redhat.com>
308
309 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
310 plt entries for undefweak symbols.
311
312 2002-01-23 Steve Ellcey <sje@cup.hp.com>
313
314 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
315 DEFAULT_VECTOR.
316 (bfd_elf64_ia64_hpux_big_vec): Ditto.
317 (bfd_elf32_h8300_vec): Ditto.
318
319 2002-01-23 Alan Modra <amodra@bigpond.net.au>
320
321 * elf64-ppc.c: Remove stale part of ABI comment.
322 (NO_OPD_RELOCS): Define.
323 (ppc64_elf_check_relocs): Use it.
324 (ppc64_elf_relocate_section): Here too.
325 (build_one_stub): Don't point function syms at the stub. Instead,
326 hijack plt.offset.
327 (ppc64_elf_relocate_section): Check whether REL24 relocs should
328 really go to the stub. Make all dynamic relocs in opd against
329 locals.
330 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
331 plt.offset.
332
333 2002-01-22 Richard Henderson <rth@redhat.com>
334
335 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
336
337 2002-01-22 Alan Modra <amodra@bigpond.net.au>
338
339 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
340 TOC_BASE_OFF adjustment.
341
342 * Makefile.am: Run "make dep-am".
343 * Makefile.in: Regenerate.
344 * po/SRC-POTFILES.in: Regenerate.
345
346 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
347
348 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
349 host defines.
350
351 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
352
353 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
354 Check for and emit error if sgot is NULL at this point.
355
356 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
357
358 * config.bfd (ia64*-*-netbsd*): New target.
359
360 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
361
362 * som.c (som_write_space_strings): Comment typo fix.
363
364 2002-01-21 Alan Modra <amodra@bigpond.net.au>
365
366 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
367 is_func_descriptor fields.
368 (link_hash_newfunc): Init them.
369 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
370 dot are candidates for plt entries. When processing .opd relocs,
371 set function descriptor strings to point inside function code
372 string, and set new ppc_link_hash_entry fields.
373 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
374 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
375 function descriptors. It's now done in..
376 (func_desc_adjust): New.
377 (ppc64_elf_func_desc_adjust): New.
378 (define elf_backend_always_size_sections): Define.
379 (ppc64_elf_hide_symbol): New.
380 (define elf_backend_hide_symbol): Define.
381 (allocate_dynrelocs): Remove code looking up function descriptors
382 as that has been done earlier.
383 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
384 table.
385 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
386 up function descriptor.
387 (build_one_stub): Look up the function code sym. Check for
388 invalid plt offsets.
389 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
390 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
391
392 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
393 boolean param.
394 (_bfd_elf_link_hash_hide_symbol): Likewise.
395 * elflink.h (elf_link_add_object_symbols): Adjust call to
396 elf_backend_hide_symbol.
397 (elf_fix_symbol_flags): Likewise.
398 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
399 than bfd_alloc.
400 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
401 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
402 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
403 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
404 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
405 and adjust to suit.
406 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
407 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
408 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
409
410 2002-01-18 Alan Modra <amodra@bigpond.net.au>
411
412 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
413 dynamic function descriptor symbol, not the associated function
414 symbol.
415
416 2002-01-17 Eric Christopher <echristo@redhat.com>
417
418 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
419
420 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
421
422 * po/bfd.pot: Regenerate.
423 * po/fr.po: Regenerate.
424
425 2002-01-17 Alan Modra <amodra@bigpond.net.au>
426
427 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
428 Remove "Elf_Internal_Shdr *" param.
429 (_bfd_mips_elf_section_from_bfd_section): Ditto.
430 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
431 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
432 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
433 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
434 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
435 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
436 function to override special sections. Remove hdr arg from
437 backend call, and don't loop.
438
439 2002-01-16 Eric Christopher <echristo@redhat.com>
440
441 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
442 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
443 relocations requiring gp0 and gp.
444
445 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
446
447 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
448 EF_ARM_VFP_FLOAT.
449 (elf32_arm_print_private_bfd_data): Likewise.
450
451 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
452
453 * po/tr.po: Import new version.
454
455 2002-01-16 Alan Modra <amodra@bigpond.net.au>
456
457 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
458 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
459 (ORI_R0_R0_0): Correct.
460
461 2002-01-16 Alan Modra <amodra@bigpond.net.au>
462
463 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
464 when plt_not_loaded.
465 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
466 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
467 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
468 (ppc64_elf_glink_code): Delete.
469 (PPC64_ELF_GLINK_SIZE): Delete.
470 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
471 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
472 ORI_R0_R0_0): Define.
473 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
474 (struct ppc_link_hash_table): Add sstub and plt_overflow.
475 (ppc64_elf_link_hash_table_create): Init them.
476 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
477 Don't copy to shared lib.
478 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
479 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
480 (allocate_dynrelocs <plt>): Don't change function sym here. Make
481 room for .stub and .glink code.
482 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
483 DT_PPC64_GLINK.
484 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
485 bfd_elf64_bfd_final_link.
486 (bfd_elf64_bfd_final_link): Don't define.
487 (ppc64_elf_size_stubs): New.
488 (build_plt_stub): New.
489 (build_one_stub): New.
490 (ppc64_elf_build_stubs): New.
491 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
492 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
493 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
494 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
495 case output sections not separate. Adjust DT_RELASZ to not
496 include plt relocs. Set reserved got entry. Set got and plt
497 entry size.
498 (elf_backend_got_header_size): Set to 8.
499 * elf64-ppc.h: New file.
500
501 2002-01-16 Alan Modra <amodra@bigpond.net.au>
502
503 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
504 sections, use bfd_section_list_remove.
505 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
506 * elflink.h (elf_link_add_object_symbols): When removing all
507 sections, use bfd_section_list_clear.
508
509 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
510
511 * po/sv.po: New file: Swedish translation.
512 * configure.in (ALL_LINGUAS): Add sv.
513 * configure: Regenerate.
514
515 2002-01-15 Jakub Jelinek <jakub@redhat.com>
516
517 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
518 * elf.c (merge_sections_remove_hook): New function.
519 (_bfd_elf_merge_sections): Pass it as 3rd argument to
520 _bfd_merge_sections.
521 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
522 * libbfd.h: Rebuilt.
523 * merge.c (_bfd_merge_sections): Add remove_hook argument.
524 Call remove_hook if a SEC_EXCLUDE section is encountered.
525
526 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
527
528 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
529 (xstormy16_reloc_map): Initialise new field with correct howto
530 table.
531 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
532 howto entry.
533
534 2002-01-10 Michael Snyder <msnyder@redhat.com>
535
536 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
537 (elfcore_write_pstatus): Use long instead of pid_t;
538 * elf-bfd.h: Change prototypes to use long instead of pid_t;
539
540 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
541
542 * elf.c: Update copyright years.
543 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
544 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
545
546 2002-01-08 Michael Snyder <msnyder@redhat.com>
547
548 Add capability to write corefile note sections, for gdb.
549 * elf.c (elfcore_write_note): New function.
550 (elfcore_write_prpsinfo): New function.
551 (elfcore_write_prstatus): New function.
552 (elfcore_write_pstatus): New function.
553 (elfcore_write_prfpreg): New function.
554 (elfcore_write_prxfpreg): New function.
555 * elf-bfd.h: Add prototypes for above functions.
556
557 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
558
559 * elf.c (elf_fake_sections): Propagate errors from
560 elf_backend_fake_section.
561
562 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
563
564 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
565 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
566 (elf32-sh-nbsd.lo): New rule.
567 * Makefile.in: Regenerate.
568 * config.bfd (sh*le-*-netbsdelf*): New target.
569 (sh*-*-netbsdelf*): New target.
570 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
571 (bfd_elf32_shnbsd_vec): New vector.
572 (bfd_elf32_shlnbsd_vec): New vector.
573 * configure: Regenerate.
574 * elf32-sh-nbsd.c: New file.
575 * targets.c: Update copyright years.
576 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
577 bfd_elf32_shnbsd_vec.
578
579 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
580
581 * coff-rs6000.c (READ20): Use bfd_scan_vma.
582
583 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
584
585 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
586 of a symbol in a section that will be deleted.
587
588 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
589
590 * po/es.po: New file: Spanish translation.
591 * configure.in (ALL_LINGUAS): Add es.
592 * configure: Regenerate.
593
594 2002-01-06 Steve Ellcey <sje@cup.hp.com>
595
596 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
597 argument so we can handle HP-UX specially.
598 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
599 (elfNN_hpux_backend_section_from_bfd_section): New for support
600 of SHN_IA_64_ANSI_COMMON.
601 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
602 (is_unwind_section_name): Add special HP-UX support.
603 (elfNN_ia64_section_from_shdr): Add support for more sections.
604 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
605 add support for more sections.
606 (elfNN_ia64_additional_program_headers): Modify
607 is_unwind_section_name call.
608 (elfNN_ia64_modify_segment_map): Remove assumption that there is
609 only one unwind section in segment.
610
611 2002-01-06 Alan Modra <amodra@bigpond.net.au>
612
613 * syms.c (_bfd_generic_make_empty_symbol): New function.
614 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
615 _bfd_generic_make_empty_symbol.
616 * libbfd.h: Regenerate.
617 * bfd-in2.h: Regenerate.
618 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
619 (hppabsd_core_get_symtab_upper_bound): Don't define.
620 (hppabsd_core_get_symtab): Likewise.
621 (hppabsd_core_print_symbol): Likewise.
622 (hppabsd_core_get_symbol_info): Likewise.
623 (hppabsd_core_bfd_is_local_label_name): Likewise.
624 (hppabsd_core_get_lineno): Likewise.
625 (hppabsd_core_find_nearest_line): Likewise.
626 (hppabsd_core_bfd_make_debug_symbol): Likewise.
627 (hppabsd_core_read_minisymbols): Likewise.
628 (hppabsd_core_minisymbol_to_symbol): Likewise.
629 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
630 Formatting fixes.
631 * hpux-core.c: Similarly.
632 * irix-core.c: Similarly.
633 * osf-core.c: Similarly.
634 * sco5-core.c: Similarly.
635 * binary.c (binary_make_empty_symbol): Remove function, define as
636 _bfd_generic_make_empty_symbol.
637 * ihex.c (ihex_make_empty_symbol): Likewise.
638 * mmo.c (mmo_make_empty_symbol): Likewise.
639 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
640 * srec.c (srec_make_empty_symbol): Likewise.
641 * versados.c (versados_make_empty_symbol): Likewise.
642 * vms.c (_bfd_vms_make_empty_symbol): Remove.
643 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
644 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
645 rather than _bfd_vms_make_empty_symbol.
646 * vms-misc.c (new_symbol): Likewise.
647
648 2002-01-05 Alan Modra <amodra@bigpond.net.au>
649
650 * section.c (bfd_section_init): Remove unnecessary initialisations.
651 (bfd_section_list_clear): New function.
652 (bfd_section_list_remove, bfd_section_list_insert): New macros.
653 (_bfd_strip_section_from_output): Use them.
654 * coffcode.h (coff_set_alignment_hook): Likewise.
655 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
656 * elf64-mips.c (mips_elf64_final_link): Likewise.
657 * elf64-mmix.c (mmix_elf_final_link): Likewise.
658 * sunos.c (sunos_add_dynamic_symbols): Likewise.
659 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
660 * bfd-in2.h: Regenerate.
661
662 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
663 rather than doing our own section handling. Clean up after errors
664 with bfd_release and bfd_section_list_clear. Handle unexpected
665 flags.
666 * aoutf1.h (sunos4_core_file_p): Likewise.
667 * aix386-core.c (aix386_core_file_p): Likewise.
668 * cisco-core.c (cisco_core_file_validate): Likewise.
669 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
670 * trad-core.c (trad_unix_core_file_p): Likewise.
671
672 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
673 with bfd_release and bfd_section_list_clear.
674 * hpux-core.c (hpux_core_core_file_p): Likewise.
675 * irix-core.c (irix_core_core_file_p): Likewise.
676 * lynx-core.c (lynx_core_file_p): Likewise.
677 * osf-core.c (osf_core_core_file_p): Likewise.
678 * rs6000-core.c (rs6000coff_core_p): Likewise.
679 * sco5-core.c (sco5_core_file_p): Likewise.
680
681 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
682 sign extension adjustments without conditionals.
683
684 2002-01-04 Jakub Jelinek <jakub@redhat.com>
685
686 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
687 CIE at .eh_frame start is removed due to no FDEs referencing it.
688
689 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
690
691 * config.bfd (x86_64-*-netbsd*): New target.
692 * configure.in (x86_64-*-netbsd*): Set COREFILE
693 to netbsd-core.lo.
694 * configure: Regenerated.
695
696 2002-01-03 Tom Rix <trix@redhat.com>
697
698 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
699 for recent bfd_make_section_anyway change.
700
701 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
702
703 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
704 R_ARM_THM_PC11 reloc.
705
706 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
707
708 * configure.in (LINGUAS): Add ja.
709 * configure: Regenerate.
710 * po/ja.po: Import from translation project's web site.
711
712 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
713
714 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
715 messages to ease translation into other languages.
716
717 For older changes see ChangeLog-0001
718 \f
719 Local Variables:
720 mode: change-log
721 left-margin: 8
722 fill-column: 74
723 version-control: never
724 End:
This page took 0.0447 seconds and 5 git commands to generate.