Document new --unwind option to readelf.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
81545d45
RH
12001-02-09 David Mosberger <davidm@hpl.hp.com>
2
3 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4 true if section name is an unwind table section name.
5 (elfNN_ia64_additional_program_headers): Count each unwind section
6 separately.
7 (elfNN_ia64_modify_segment_map): Install one unwind program header
8 for each unwind separate section. Note: normally the linker
9 script merges the unwind sections that go into a single segment,
10 so this still generates at most one unwind program header per
11 segment.
12
13 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
14 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
15 (elfNN_ia64_fake_sections): Mark sections with names that start
16 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
17 unwind section.
18
19 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
20 Use it to make sh_info in unwind section point to the text section
21 it applies to.
22
a85d7ed0
NC
232001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
24
25 * Makefile.am: Add linux target for S/390.
26 * archures.c: Likewise.
27 * bfd-in2.h: Likewise.
28 * config.bfd: Likewise.
29 * configure.in: Likewise.
30 * elf.c: Likewise.
31 * libbfd.h: Likewise.
32 * targets.c: Likewise.
33 * cpu-s390.c: New file.
34 * elf32-s390.c: New file.
35 * elf64-s390.c: New file.
36
356d255d
NC
372001-02-09 Nick Clifton <nickc@redhat.com>
38
39 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
40 ImageBase. This has already been done by coff_swap_hdr_in.
41
069f40e5
JJ
422001-02-09 Jakub Jelinek <jakub@redhat.com>
43
44 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
45
eadfa8ab
JJ
462001-02-09 Jakub Jelinek <jakub@redhat.com>
47
48 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
49 (sparc64_elf_relocate_section): Likewise.
50
9fc54e19
MK
512001-02-09 Mark Kettenis <kettenis@gnu.org>
52
53 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
54 similar to R_SPARC_32.
55 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
56
1f655a09
L
572001-02-08 H.J. Lu <hjl@gnu.org>
58
59 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
60 relocation entries for weak definitions when building DSO with
61 -Bsymbolic.
62
ca88208a
RH
632001-02-08 Richard Henderson <rth@redhat.com>
64
65 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
66 before visibility. Locally defined protected symbols are not
67 dynamic.
68
4603e845
GK
692001-02-08 Geoffrey Keating <geoffk@redhat.com>
70
71 * config.bfd: Enable coff64 for rs6000-*. Patch from
72 <hzoli@austin.ibm.com>.
73
4ca29a6a
NC
742001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
75
76 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
77 found, do not attempt to find dwarf2 info before returning.
78
7da9d88f
NC
792001-02-07 Jakub Jelinek <jakub@redhat.com>
80
81 * elflink.h (is_global_symbol_definition): Rename to
82 is_global_data_symbol_definition and have it reject function
83 symbols.
84 (elf_link_is_defined_archive_symbol): Use renamed function.
85
7340082d
NC
862001-02-07 Todd Vierling <tv@wasabisystems.com>
87
88 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
89 * libbfd.h (bfd_target_vector): Likewise.
90 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 91 make static; create pointer reference named bfd_target_vector.
7340082d
NC
92 (_bfd_target_vector_entries): Calculate this based on the array
93 typed _bfd_target_vector.
94
2719f880
L
952001-02-06 H.J. Lu <hjl@gnu.org>
96
97 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
98 internal symbols are not dynamic.
99 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
100
175aa013
NC
1012001-02-06 Nick Clifton <nickc@redhat.com>
102
103 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
104 that it will not be pulled into the list of files that make up
105 po/POTFILES.in.
106 * Makefile.in: Regenerate.
107 * po/bfd.pot: Regenerate.
108
15e0ecd9
L
1092001-02-06 H.J. Lu <hjl@gnu.org>
110
111 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
112 checking.
113 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
114 external_PEI_IMAGE_hdr.
115
27def10f
KH
1162001-02-06 Kazu Hirata <kazu@hxi.com>
117
118 * elf-m10200.c: Fix formatting.
119
a0f2e916
NC
1202001-02-04 Nick Clifton <nickc@redhat.com>
121
122 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
123 rel, it will be handled later on.
124
d96031fb
NC
1252001-02-02 Fred Fish <fnf@ninemoons.com>
126
127 * Makefile.in: Fix typo.
128
010ac81f
KH
1292001-02-01 Kazu Hirata <kazu@hxi.com>
130
131 * elf-m10300.c: Fix formatting.
132
3fab46d0
AM
1332001-01-30 Alan Modra <alan@linuxcare.com.au>
134
135 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
136 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
137 (elf64_hppa_object_p): Set architecture and machine from elf
138 header flags.
3fab46d0 139
95404643
RH
1402001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
141
142 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
143 before mdebug.
144
8fb35fed
RH
1452001-01-26 Richard Henderson <rth@redhat.com>
146
147 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
148 for non-default visibility.
149 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
150 delete ugly macro and replace with pretty function.
151
a4f68544
NC
1522001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
153
154 * coff-go32.c: Update copyright.
155 * coff-stgo32.c: Likewise.
156 * coff-go32.c (COFF_LONG_FILENAMES): Define.
157 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
158 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
159 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
160
c02e7c3e
KH
1612001-01-25 Kazu Hirata <kazu@hxi.com>
162
163 * bfd-in2.h: Rebuild.
164 * libbfd.h: Likewise.
165
541389e2
L
1662001-01-23 H.J. Lu <hjl@gnu.org>
167
168 * bfd-in2.h: Rebuild.
169
0007625f
L
1702001-01-23 H.J. Lu <hjl@gnu.org>
171
172 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
173 is NULL or PRIV(vms_rec) is outside of the buffer.
174
b653e1b1
KH
1752001-01-23 Kazu Hirata <kazu@hxi.com>
176
177 * coff64-rs6000.c: Fix formatting.
178 * coff-arm.c: Likewise.
179 * coffgen.c: Likewise.
180 * cofflink.c: Likewise.
181 * coff-mcore.c: Likewise.
182 * coff-mips.c: Likewise.
183 * coff-pmac.c: Likewise.
184 * coff-ppc.c: Likewise.
185 * coff-rs6000.c: Likewise.
186 * elf32.c: Likewise.
187 * elf32-fr30.c: Likewise.
188 * elf32-i370.c: Likewise.
189 * elf32-i860.c: Likewise.
190 * elf32-m32r.c: Likewise.
191 * elf32-m68k.c: Likewise.
192 * elf32-mcore.c: Likewise.
193 * elf32-ppc.c: Likewise.
194 * elf32-sh.c: Likewise.
195 * elf32-v850.c: Likewise.
196 * elf64-alpha.c: Likewise.
197 * elf64-sparc.c: Likewise.
198 * elflink.c: Likewise.
199 * elflink.h: Likewise.
200 * elf-m10200.c: Likewise.
201 * elf-m10300.c: Likewise.
202 * elfxx-ia64.c: Likewise.
203
3fde5a36
KH
204 * aoutx.h: Fix formatting.
205 * bfd.c: Likewise.
206 * bfd-in2.h: Likewise.
207 * bfd-in.h: Likewise.
208 * cpu-i386.c: Likewise.
209 * cpu-m68hc11.c: Likewise.
210 * dwarf2.c: Likewise.
211 * elf64-x86-64.c: Likewise.
212 * format.c: Likewise.
213 * freebsd.h: Likewise.
214 * hash.c: Likewise.
215 * hp300hpux.c: Likewise.
216 * hppabsd-core.c: Likewise.
217 * hpux-core.c: Likewise.
218
70256ad8
AJ
2192001-01-22 Bo Thorsen <bo@suse.de>
220
221 * elf64-x86-64.c: Added PIC support for X86-64.
222 (elf64_x86_64_link_hash_newfunc): Function added.
223 (elf64_x86_64_link_hash_table_create): Likewise.
224 (elf64_x86_64_check_relocs): Likewise.
225 (elf64_x86_64_gc_mark_hook): Likewise.
226 (elf64_x86_64_gc_sweep_hook): Likewise.
227 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
228 (elf64_x86_64_size_dynamic_sections): Likewise.
229 (elf64_x86_64_discard_copies): Likewise.
230 (elf64_x86_64_finish_dynamic_symbol): Likewise.
231 (elf64_x86_64_finish_dynamic_sections): Likewise.
232 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
233
ee0bebb8
AJ
2342001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
235
236 * Makefile.am (install-data-local): Make use of $(DESTDIR).
237 * Makefile.in: Regenerate.
238
2a38f751
KH
2392001-01-21 Kazu Hirata <kazu@hxi.com>
240
241 * coff-a29k.c: Fix formatting.
242
c8492176
L
2432001-01-19 H.J. Lu <hjl@gnu.org>
244
245 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
246 relocation section names.
247 (elf_i386_relocate_section): Report files with bad relocation
248 section names and return false.
249
a5377ec0
AJ
2502001-01-17 Bo Thorsen <bo@suse.de>
251
252 * targets.c: Alphabetize list of xvecs.
253
b352eebf
AM
2542001-01-14 Alan Modra <alan@linuxcare.com.au>
255
d952f17a
AM
256 * config.bfd: Add linux target variant for elfxx-hppa.
257 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
258 bfd_elf64_hppa_linux_vec.
259 * configure: Regenerate.
260 * elf64-hppa.c: Include elf64-target.h again to support linux
261 target variant.
262 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
263 * elf32-hppa.c: Include elf32-target.h again to support linux
264 target variant.
265 (elf32_hppa_post_process_headers): New function.
266 (elf_backend_post_process_headers): Define.
267 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
268 bfd_elf32_hppa_linux_vec.
269
c46b7515
AM
270 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
271 and data_segment_base fields.
272 (elf32_hppa_link_hash_table_create ): Init them.
273 (elf32_hppa_check_relocs): Update comments.
274 (hppa_record_segment_addr): New function.
275 (elf32_hppa_relocate_section): Call it.
276 (final_link_relocate): Handle R_PARISC_SEGREL32.
277 (elf32_hppa_final_link): New function.
278 (bfd_elf32_bfd_final_link): Define to call it.
279 (hppa_unwind_entry_compare): New function.
280 * cache.c (bfd_open_file): Create files in write+read mode.
281
282 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
283 SEGREL32 and numerous other relocs. Change duplicate
284 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
285
d768008d
AM
286 * opncls.c (bfd_fdopenr): Add parens like the comment says around
287 O_ACCMODE.
288
150ccafb
AM
289 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
290 .plt entries for DT_INIT and DT_FINI.
291 (elf32_hppa_finish_dynamic_sections): Remove special handling of
292 DT_INIT and DT_FINI.
293
b352eebf
AM
294 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
295 offsets for stub .plt access if wide mode. Check offset in range.
296
b3b9a062
NC
2972001-01-13 Nick Clifton <nickc@redhat.com>
298
b7ed8fad
NC
299 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
300 line.
301
b3b9a062
NC
302 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
303 line.
304
6e0b89ee
AM
3052001-01-12 Alan Modra <alan@linuxcare.com.au>
306
307 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
308 * configure: Regenerate.
309
0d2bcfaf
NC
3102001-01-11 Peter Targett <peter.targett@arccores.com>
311
312 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
313 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
314 * cpu-arc.c (arch_info_struct): Add entries for variants.
315 (bfd_arc_arch) Set default to bfd_mach_arc_5.
316 (arc_get_mach) Don't assume machine names prefixed arc- before
317 testing.
318 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
319 selections.
320 (arc_elf_final_write_processing) Likewise.
321 (ELF_MACHINE_CODE) Use EM_ARC.
322
c31c1f70
NC
3232001-01-10 Nick Clifton <nickc@redhat.com>
324
2758140b 325 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 326
5ad083e3
PB
3272001-01-07 Philip Blundell <philb@gnu.org>
328
329 * README: Replace `bug-gnu-utils@gnu.org' with
330 `bug-binutils@gnu.org'.
331
7eae7d22
KH
3322001-01-04 Kazu Hirata <kazu@hxi.com>
333
334 * som.c: Fix formatting.
335
509945ae
KH
3362001-01-03 Kazu Hirata <kazu@hxi.com>
337
3e932841
KH
338 * ecoffswap.h: Fix formatting.
339 * elf-bfd.h: Likewise.
340 * elfarm-nabi.c: Likewise.
341 * elfarm-oabi.c: Likewise.
342 * elfcode.h: Likewise.
343 * elfcore.h: Likewise.
344 * elflink.c: Likewise.
345 * elflink.h: Likewise.
346 * elfxx-ia64.c: Likewise.
347 * elfxx-target.h: Likewise.
348 * libbfd.c: Likewise
509945ae
KH
349 * linker.c: Likewise.
350 * lynx-core.c: Likewise.
351
892339ee
KH
3522001-01-02 Kazu Hirata <kazu@hxi.com>
353
354 * pc532-mach.c: Fix formatting.
355 * pe-arm.c: Likewise.
356 * pe-i386.c: Likewise.
357 * pe-mips.c: Likewise.
358 * pe-ppc.c: Likewise.
359 * pe-sh.c: Likewise.
360 * pei-mips.c: Likewise.
361 * pei-sh.c: Likewise.
ee91ed79 362 * peicode.h: Likewise.
892339ee
KH
363 * ppcboot.c: Likewise.
364 * ptrace-core.c: Likewise.
365
3d855632
KH
3662001-01-01 Kazu Hirata <kazu@hxi.com>
367
368 * reloc.c: Fix formatting.
369 * riscix.c: Likewise.
370 * rs6000-core.c: Likewise.
371 * xcoff-target.h: Likewise.
372
a77a9fef
HPN
3732000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
374
375 * elfcode.h (elf_object_p): Also restore the bfd mach field on
376 error, by calling bfd_default_set_arch_mach with incoming
377 values.
378
558e161f
KH
3792000-12-26 Kazu Hirata <kazu@hxi.com>
380
381 * vaxnetbsd.c: Fix formatting.
382 * versados.c: Likewise.
383 * vms-gsd.c: Likewise.
384 * vms-hdr.c: Likewise.
385 * vms-misc.c: Likewise.
386
3c579812
AO
3872000-12-25 Alexandre Oliva <aoliva@redhat.com>
388
389 * archive.c (coff_write_armap): Don't write more than symbol_count
390 `archive_member_file_ptr's.
391
672579e9
KH
3922000-12-25 Kazu Hirata <kazu@hxi.com>
393
394 * vms-tir.c: Fix formatting.
395
55f2d5ed
KH
3962000-12-23 Kazu Hirata <kazu@hxi.com>
397
398 * vms.c: Fix formatting.
399 * vms.h: Likewise.
400
23ccc829
NC
4012000-12-21 Santeri Paavolainen <santtu@ssh.com>
402
403 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
404
405 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
406
407 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
408 arithmetic.
409
410 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
411
412 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
413
8c603c85
NC
4142000-12-21 Richard Sandiford <rsandifo@redhat.com>
415
416 * libbfd.c (bfd_get_bits): Added
417 (bfd_put_bits): Likewise
418 * bfd-in.h: Declared the above.
419 * bfd-in2.h: Regenerated.
420
5bff4f56
KH
4212000-12-20 Kazu Hirata <kazu@hxi.com>
422
423 * targets.c: Fix formatting.
424 * tekhex.c: Likewise.
425 * trad-core.c: Likewise.
426
7b82c249
KH
4272000-12-19 Kazu Hirata <kazu@hxi.com>
428
429 * sco5-core.c: Fix formatting.
430 * section.c: Likewise.
431 * sparclinux.c: Likewise.
432 * sparclynx.c: Likewise.
433 * sparcnetbsd.c: Likewise.
434 * srec.c: Likewise.
435 * stabs.c: Likewise.
436 * stab-syms.c: Likewise.
437 * sunos.c: Likewise.
438 * syms.c: Likewise.
439 * sysdep.h: Likewise.
440
f78c5281
NC
4412000-12-18 Nick Clifton <nickc@redhat.com>
442
443 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
444 defined.
445 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
446 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
447
02b89dce
NC
4482000-12-18 Nick Clifton <nickc@redhat.com>
449
450 * vms-misc.c (_bfd_vms_get_record): Add default case to
451 file_format switch.
452
d20966a7
NC
4532000-12-15 Miloslav Trmac <mitr@volny.cz>
454
455 * elfcore.h (elf_core_file_p): Move to the start of the program
456 headers before attempting to read them.
457
6fa957a9
KH
4582000-12-14 Kazu Hirata <kazu@hxi.com>
459
460 * peigen.c: Fix formatting.
461 * som.c: Likewise.
462 * som.h: Likewise.
463
9602af51
KH
4642000-12-13 Kazu Hirata <kazu@hxi.com>
465
466 * peigen.c: Fix formatting.
467
514829c3
JW
4682000-12-12 Jim Wilson <wilson@redhat.com>
469
470 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
471
3a71aec8
NC
4722000-12-08 Mark Salter <msalter@redhat.com>
473
474 * binary.c (binary_set_section_contents): Ignore sections
475 with zero size.
476
1518639e
KH
4772000-12-12 Kazu Hirata <kazu@hxi.com>
478
479 * m68klinux.c: Fix formatting.
480 * m68knetbsd.c: Likewise.
481 * mipsbsd.c: Likewise.
482 * netbsd-core.c: Likewise.
483 * netbsd.h: Likewise.
484 * newsos3.c: Likewise.
485 * nlm32-alpha.c: Likewise.
486 * nlm32-i386.c: Likewise.
487 * nlm32-ppc.c: Likewise.
488 * nlm32-sparc.c: Likewise.
489 * nlmcode.h: Likewise.
490 * nlmswap.h: Likewise.
491 * nlm-target.h: Likewise.
492 * ns32knetbsd.c: Likewise.
493
b79e8c78
NC
4942000-12-10 Fred Fish <fnf@be.com>
495
d952f17a
AM
496 * elflink.h (elf_link_output_extsym): Don't complain about undefined
497 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 498
38b1a46c
NC
4992000-12-12 Nick Clifton <nickc@redhat.com>
500
501 * cpu-sh.c: Fix formattng.
502 * elf.c: Fix formattng.
503 * elf32-mips.c: Fix formattng.
504 * elf32-sh.c: Fix formattng.
505 * elf64-alpha.c: Fix formattng.
506
857ec808
NC
5072000-12-09 Nick Clifton <nickc@redhat.com>
508
509 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
510 dwarf2_find_line_info as last parameter to invocation of
511 _bfd_dwarf2_find_nearest_line.
512 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
513 dwarf2_find_line_info as last parameter to invocation of
514 _bfd_dwarf2_find_nearest_line.
515
51db3708
NC
5162000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
517
518 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
519 (BFD_LIBS): ...to here.
520 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
521 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
522 * Makefile.in: Regenerate.
523 * configure.in: Remove dwarf.lo from the elf shell variable.
524 * configure: Regenerate.
525 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
526 * libcoff.h: Regenerate.
d952f17a 527 * coffgen.c (coff_find_nearest_line): Call
857ec808 528 _bfd_dwarf2_find_nearest_line.
51db3708 529 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
530 accordingly.
531 (read_abbrevs): Likewise
532 (decode_line_info): Likewise.
533 (parse_comp_unit): Likewise.
534 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
535 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
536 * libbfd.h: Regenerate.
537 * elf.c (_bfd_elf_find_nearest_line): Update call.
538 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
539 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
540 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
541 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
542 (styp_to_sec_flags): Handle DWARF2 sections.
543 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
544 to _bfd_find_nearest_line.
545 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
546 call to _bfd_find_nearest_line.
d952f17a 547
435b1e90
KH
5482000-12-08 Kazu Hirata <kazu@hxi.com>
549
550 * coffgen.c: Fix formatting.
fe8bc63d 551 * elf-m10300.c: Likewise.
435b1e90
KH
552 * elf32-i386.c: Likewise.
553 * elf32-i960.c: Likewise.
554 * elf32-m68k.c: Likewise.
555 * elf32-mcore.c: Likewise.
556 * elf32-ppc.c: Likewise.
557 * elf32-sh.c: Likewise.
558 * elf32-sparc.c: Likewise.
559 * elf32-v850.c: Likewise.
fe8bc63d
KH
560 * elf64-alpha.c: Likewise.
561 * elf64-hppa.c: Likewise.
562 * elf64-mips.c: Likewise.
435b1e90 563 * elf64-sparc.c: Likewise.
435b1e90 564
8da6118f
KH
5652000-12-07 Kazu Hirata <kazu@hxi.com>
566
567 * elf32-ppc.c: Fix formatting.
568 * elf64-x86-64.c: Likewise.
569
a9922e52
UC
5702000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
571
572 From Ralf Baechle <ralf@gnu.org>
573
574 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
575 BFDs containing no sections or empty .text, .data or .bss sections
576 to be merged, regardless of their flags.
577
c3668558
KH
5782000-12-06 Kazu Hirata <kazu@hxi.com>
579
580 * elf32-m32r.c: Fix formatting.
581 * elf32-m68hc11.c: Likewise.
582 * elf32-m68hc12.c: Likewise.
583 * elf32-m68k.c: Likewise.
584 * elf32-mcore.c: Likewise.
585 * elf32-pj.c: Likewise.
586 * elf32-ppc.c: Likewise.
587
6609fa74
KH
5882000-12-05 Kazu Hirata <kazu@hxi.com>
589
590 * elf32-fr30.c: Fix formatting.
591 * elf32-hppa.c: Likewise.
592 * elf32-i370.c: Likewise.
593 * elf32-i386.c: Likewise.
594 * elf32-i860.c: Likewise.
595 * elf32-i960.c: Likewise.
596
a7c10850
KH
5972000-12-03 Kazu Hirata <kazu@hxi.com>
598
599 * elf32-arm.h: Fix formatting.
600 * elf32-avr.c: Likewise.
601 * elf32-cris.c: Likewise.
602 * elf32-d10v.c: Likewise.
603 * elf32-d30v.c: Likewise.
604 * elf-hppa.h: Likewise.
605 * elf-m10200.c: Likewise.
606 * elf-m10300.c: Likewise.
607
e7af610e
NC
6082000-12-01 Chris Demetriou <cgd@sibyte.com>
609
d952f17a
AM
610 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
611 bfd_mach_mips32_4k. Update FIXME comment.
612 * archures.c (bfd_mach_mips32): New constant.
613 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
614 the latter, renumber it.
615 * bfd-in2.h (bfd_mach_mips32): New constant.
616 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
617 the latter, renumber it.
618 * cpu-mips.c (I_mips32): New constant.
619 (I_mips4K, I_mips32_4k): Rename the former to the latter.
620 (arch_info_struct): Add bfd_mach_mips32 entry, replace
621 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
622 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
623 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
624 with E_MIPS_MACH_MIPS32_4K.
625 (_bfd_mips_elf_final_write_processing): Replace
626 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
627 bfd_mach_mips32 case.
628 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
629 comparison with support for MIPS32.
630 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
631 MIPS32.
632
633 * aoutx.h (NAME(aout,machine_type)): Add cases for
634 bfd_mach_mips5 and bfd_mach_mips64.
635 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
636 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
637 * cpu_mips.c (I_mips5, I_mips64): New definitions.
638 (arch_info_struct): Add entries for bfd_mach_mips5 and
639 bfd_mach_mips64.
640 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
641 _bfd_mips_elf_print_private_bfd_data): Add cases for
642 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
643 (_bfd_mips_elf_final_write_processing): Add cases for
644 bfd_mach_mips5 and bfd_mach_mips64.
645
646 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
647 bfd_mach_mips_sb1 case.
648 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
649 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
650 * bfd/cpu-mips.c (I_sb1): New constant.
651 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
652 * bfd/elf32-mips.c (elf_mips_mach): Add case for
653 E_MIPS_MACH_SB1.
654 (_bfd_mips_elf_final_write_processing): Add case for
655 bfd_mach_mips_sb1.
656
6572000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
658
659 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
660 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
661 (sparc*-*-rtems*): Switched from a.out to ELF.
662
8d88c4ca 6632000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
664
665 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
666 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
667 (elf64-x86-64.lo): Add dependencies.
668 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
669 bfd_mach_x86_64_intel_syntax.
670 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
671 * config.bfd (x86_64): Add.
672 * configure.in: Add support for bfd_elf64_x86_64_vec.
673 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
674 (bfd_i386_arch, i8086_ar): Link in.
675 * elf64-x86-64.c: New file.
676 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
677 * targets.c (bfd_elf64_x86_64_vec): Add.
678 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 679
fbc4fff4
KH
6802000-11-30 Kazu Hirata <kazu@hxi.com>
681
682 * xcofflink.c: Fix formatting.
683
e60b52c6
KH
6842000-11-28 Kazu Hirata <kazu@hxi.com>
685
686 * aoutx.h: Fix formatting.
687 * bfd-in.h: Likewise.
688 * bfd-in2.h: Likewise.
689 * cache.c: Likewise.
690 * cisco-core.c: Likewise.
691 * coff64-rs6000.c: Likewise.
692 * coffcode.h: Likewise.
693 * coffswap.h: Likewise.
694 * corefile.c: Likewise.
be3ccd9c 695 * elf32-mips.c: Likewise.
e60b52c6 696
336eced2
KH
6972000-11-27 Kazu Hirata <kazu@hxi.com>
698
699 * aout-adobe.c: Fix formatting.
244148ad
KH
700 * coff64-rs6000.c: Likewise.
701 * coffgen.c: Likewise.
702 * cofflink.c: Likewise.
336eced2 703
d71f672e
PB
7042000-11-27 Philip Blundell <pb@futuretv.com>
705
706 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
707 (obj_coff_strings_written): New accessor macro for above.
708 * libcoff.h: Regenerate.
709 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
710 strings.
711 * coffcode.h (coff_write_object_contents): No need to write out
712 the string table if it's already been done.
713
bc7a577d
PB
7142000-11-22 Philip Blundell <pb@futuretv.com>
715
d952f17a 716 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
717 weak undefined symbols.
718
077b8428
NC
7192000-11-24 Nick Clifton <nickc@redhat.com>
720
721 * archures.c (bfd_mach_arm_5TE): Define.
722 (bfd_mach_arm+XScale): Define.
723 * bfd-in2.h: Regenerate.
724
725 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
726 BFD_RELOC_ARM_PCREL_BLX.
727
728 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
729 XScale machine numbers.
730
731 * config.bfd (xscale-elf): Add target.
732 (xscale-coff): Add target.
733
734 * cpu-arm.c: Add xscale machine name.
735 Add v5t, v5te and XScale machine numbers.
736
e9e41bd9
KH
7372000-11-23 Kazu Hirata <kazu@hxi.com>
738
739 * aix386-core.c: Fix formatting.
740
64bf6ae6
JW
7412000-11-22 Jim Wilson <wilson@redhat.com>
742
743 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
744 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
745 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
746 (ins_imms_scaled): Initialize sign_bit at function entry.
747 (elf64_ia64_operands): Add missing initializers.
748 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
749 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
750 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
751 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
752 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
753 parameters.
754 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
755 and free_extsyms at function entry.
756 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
757 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
758 (get_got): Delete unused local srel.
759 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
760 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 761
1abaf976
KH
7622000-11-21 Kazu Hirata <kazu@hxi.com>
763
6e301b2b
KH
764 * coff-a29k.c: Fix formatting.
765 * coff-h8500.c: Likewise.
766 * coff-i960.c: Likewise.
767 * coff-ppc.c: Likewise.
768 * coff-rs6000.c: Likewise.
769 * coff-stgo32.c: Likewise.
770 * coff-tic54x.c: Likewise.
771 * coff-w65.c: Likewise.
772 * cpu-h8500.c: Likewise.
773 * cpu-hppa.c: Likewise.
774 * cpu-ns32k.c: Likewise.
775 * ecoff.c: Likewise.
1abaf976
KH
776 * ecofflink.c: Likewise.
777
a0fc8ba1
NC
7782000-11-21 Nick Clifton <nickc@redhat.com>
779
780 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
781 remove possibility of infinite loop.
782
beb0d161
KH
7832000-11-20 Kazu Hirata <kazu@hxi.com>
784
785 * aix386-core.c: Fix formatting.
786 * aout-adobe.c: Likewise.
787 * aout-arm.c: Likewise.
788 * aout-encap.c: Likewise.
789 * aout-ns32k.c: Likewise.
790 * aout-target.h: Likewise.
791 * aout-tic30.c: Likewise.
792 * aoutf1.h: Likewise.
793 * aoutx.h: Likewise.
794 * archive.c: Likewise.
eb6e10cb
KH
795 * bfd-in.h: Likewise.
796 * bfd-in2.h: Likewise.
797 * bfd.c: Likewise.
798 * bout.c: Likewise.
beb0d161 799
2c2475db
JW
8002000-11-17 H.J. Lu <hjl@gnu.org>
801
802 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
803 pltoff entries for DT_INIT and DT_FINI.
804 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
805 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
806 entries.
807
18b27f17
RH
8082000-11-16 Richard Henderson <rth@redhat.com>
809
810 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
811 (allocate_dynrel_entries): Likewise.
812 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
813 (set_pltoff_entry): Likewise.
814 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
815 (elfNN_ia64_reloc_type_lookup): Likewise.
816 (elfNN_ia64_install_value): Likewise.
817 (elfNN_ia64_relocate_section): Likewise.
818 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
819 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
820
98591c73
KH
8212000-11-16 Kazu Hirata <kazu@hxi.com>
822
71f6b586
KH
823 * cpu-a29k.c: Fix formatting.
824 * cpu-alpha.c: Likewise.
825 * cpu-arm.c: Likewise.
826 * cpu-avr.c: Likewise.
827 * cpu-d10v.c: Likewise.
828 * cpu-h8500.c: Likewise.
829 * cpu-hppa.c: Likewise.
830 * cpu-i370.c: Likewise.
831 * cpu-i386.c: Likewise.
832 * cpu-i960.c: Likewise.
833 * cpu-ia64-opc.c: Likewise.
834 * cpu-ia64.c: Likewise.
835 * cpu-m32r.c: Likewise.
836 * cpu-m68hc11.c: Likewise.
837 * cpu-m68hc12.c: Likewise.
838 * cpu-m68k.c: Likewise.
839 * cpu-m88k.c: Likewise.
840 * cpu-mips.c: Likewise.
841 * cpu-ns32k.c: Likewise.
842 * cpu-pj.c: Likewise.
843 * cpu-powerpc.c: Likewise.
844 * cpu-sh.c: Likewise.
845 * cpu-sparc.c: Likewise.
846 * cpu-tic54x.c: Likewise.
847 * cpu-v850.c: Likewise.
848 * cpu-vax.c: Likewise.
849 * cpu-w65.c: Likewise.
850 * cpu-we32k.c: Likewise.
851 * cpu-z8k.c: Likewise.
852 * dwarf1.c: Likewise.
98591c73
KH
853 * dwarf2.c: Likewise.
854
c5930ee6
KH
8552000-11-15 Kazu Hirata <kazu@hxi.com>
856
857 * coff-arm.c: Fix formatting.
858 * coff-ppc.c: Likewise.
859 * coff-rs6000.c: Likewise.
cbfe05c4
KH
860 * coff-sh.c: Likewise.
861 * coff-sparc.c: Likewise.
862 * coff-tic30.c: Likewise.
863 * coff-tic54x.c: Likewise.
864 * coff-tic80.c: Likewise.
865 * coff-w65.c: Likewise.
866 * coff-we32k.c: Likewise.
867 * coff-z8k.c: Likewise.
c5930ee6 868
dac544a8
RH
8692000-11-15 Richard Henderson <rth@redhat.com>
870
871 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
872 section with the same ALLOC|LOAD flags as the source section.
873
c810873d
JJ
8742000-11-14 Jakub Jelinek <jakub@redhat.com>
875
876 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
877 by STO_ALPHA constants.
878
43646c9d
KH
8792000-11-14 Kazu Hirata <kazu@hxi.com>
880
881 * coff-pmac.c: Fix formatting.
882 * coff-ppc.c: Likewise.
883
051b8577
L
8842000-11-13 H.J. Lu <hjl@gnu.org>
885
886 * elflink.h (elf_link_add_object_symbols): Also add indirect
887 symbols for common symbols with the default version.
888
90460d97
PB
8892000-11-09 Philip Blundell <pb@futuretv.com>
890
891 * section.c (STD_SECTION): Set gc_mark flag.
892
b48499ec
KH
8932000-11-11 Kazu Hirata <kazu@hxi.com>
894
895 * coff-i960.c: Likewise.
896 * coff-m68k.c: Likewise.
897 * coff-m88k.c: Likewise.
898 * coff-mcore.c: Likewise.
899 * coff-mips.c: Likewise.
900
c5aeb40f
AO
9012000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
902
903 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
904
5fcfd273
KH
9052000-11-10 Kazu Hirata <kazu@hxi.com>
906
907 * coff-h8300.c: Fix formatting.
908 * coff-h8500.c: Likewise.
909 * coff-i386.c: Likewise.
910 * coff-i860.c: Likewise.
911 * coff-i960.c: Likewise.
912 * coff-ia64.c: Likewise.
913
047066e1
KH
9142000-11-09 Kazu Hirata <kazu@hxi.com>
915
916 * archive.c: Fix formatting.
917 * archures.c: Likewise.
918
9a951beb
RH
9192000-11-07 Richard Henderson <rth@redhat.com>
920
921 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
922 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
923 * section.c (bfd_set_section_contents): Call memcpy if
924 section->contents set and location not equal to contents plus offset.
925
aebad5fe
KH
9262000-11-08 Kazu Hirata <kazu@hxi.com>
927
8546af74
KH
928 * bfd-in.h: Fix formatting.
929 * bfd-in2.h: Likewise.
930 * bfd.c: Likewise.
aebad5fe
KH
931 * binary.c: Likewise.
932 * bout.c: Likewise.
346ceb11
KH
933 * coff-a29k.c: Likewise.
934 * coff-alpha.c: Likewise.
935 * coff-apollo.c: Likewise.
936 * coff-aux.c: Likewise.
aebad5fe 937
0ef5a5bd
KH
9382000-11-07 Kazu Hirata <kazu@hxi.com>
939
940 * aix386-core.c: Fix formatting.
941 * aoutf1.h: Likewise.
942 * aoutx.h: Likewise.
943 * archures.c: Likewise.
944 * armnetbsd.c: Likewise.
945
d562d2fb
AM
9462000-11-07 Alan Modra <alan@linuxcare.com.au>
947
948 * coff-h8300.c (special): Adjust reloc address.
949
bbe66d08
JW
9502000-11-06 Steve Ellcey <sje@cup.hp.com>
951
4efc3e05 952 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
953 to differentiate elf32 and elf64 on ia64.
954 * bfd-in2.h: Regenerate.
955 * config.bfd: Add target for "ia64*-*-hpux*".
956 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
957 * configure: Regenerate.
4efc3e05 958 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
959 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
960
961 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
962 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
963 * Makefile.in: Regnerate.
4efc3e05 964 * elf64-ia64.c: Deleted.
bbe66d08
JW
965 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
966
c4dfa77f
KH
9672000-11-06 Kazu Hirata <kazu@hxi.com>
968
969 * aout-adobe.c: Fix formatting.
970 * aout-arm.c: Likewise.
971 * aout-cris.c: Likewise.
972 * aout-encap.c: Likewise.
973 * aout-ns32k.c: Likewise.
974 * aout-target.h: Likewise.
975 * aout-tic30.c: Likewise.
976
cf919dfd
PB
9772000-11-05 Philip Blundell <philb@gnu.org>
978
979 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
980 BFDs containing no sections to be merged, regardless of their flags.
981
9822000-11-04 Philip Blundell <philb@gnu.org>
983
984 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
985 if a relocation for an undefined symbol also results in an
986 overflow.
987
8d88c4ca 9882000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
989
990 * config.bfd: Add support for Sun Chorus.
991
46d59bfa
DB
9922000-11-05 David O'Brien <obrien@FreeBSD.org>
993
994 * configure.in: Recognize alpha-*-freebsd*.
995 * configure: Regenerate.
996
d952f17a 9972000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
998
999 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1000 (Chunk): New global variable set by a parameter in objcopy.c.
1001 (S3Forced): New global variable set by a parameter in
1002 objcopy.c.
1003 (srec_set_section_contents): If S3Forced is true, always generate
1004 S3 records.
1005 (srec_write_section): Use 'Chunk' to limit maximum length of S
1006 records.
1007
59ff2774
NC
10082000-11-02 Per Lundberg <plundis@chaosdev.org>
1009
1010 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1011 * Makefile.in: Regenerate.
1012 * bfd-in2.h: Regenerate.
1013 * po/bfd.pot: Regenerate.
d952f17a 1014
ee43f35e
PB
10152000-10-31 Philip Blundell <philb@gnu.org>
1016
1017 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1018 EF_SOFT_FLOAT if it is defined.
1019
1006ba19
PB
10202000-10-27 Philip Blundell <philb@gnu.org>
1021
1022 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1023 attempts to mix PIC code with non-PIC, just mark the output as
1024 being position dependent.
d952f17a
AM
1025 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1026 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 1027 all mismatches, not just the first one.
d952f17a 1028
c4920b97
NC
10292000-10-25 Chris Demetriou <cgd@sibyte.com>
1030
1031 * ieee.c (ieee_archive_p): Plug one of many possible
1032 memory leaks in error handling.
1033
19f7b010
JJ
10342000-10-20 Jakub Jelinek <jakub@redhat.com>
1035
1036 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1037 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1038 Support v8plusb.
1039 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1040 sparc64_elf_object_p): Support v9b.
1041 * archures.c: Declare v8plusb and v9b machines.
1042 * bfd-in2.h: Ditto.
1043 * cpu-sparc.c: Ditto.
1044
e1e0340b
GK
10452000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1046
ea5fbc67
GK
1047 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1048 of a GOT reloc.
1049
e1e0340b
GK
1050 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1051 (SYMBOL_CALLS_LOCAL): New macro.
1052 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1053 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1054 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1055 (ppc_elf_relocate_section): Use flag variable to determine
1056 whether the relocation refers to a local symbol.
1057 Test whether a PLTREL24 reloc will produce a reloc by looking
1058 to see whether a PLT entry was made.
1059
a4b120e1
GK
10602000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1061
1062 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1063 entries that could serve as a definition for a weak symbol.
1064
5af5b85b
UC
10652000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1066
1067 From Ralf Baechle <ralf@gnu.org>
1068
1069 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1070 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1071 against local symbols.
1072 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 1073
3ef20aaa
AM
10742000-10-12 Alan Modra <alan@linuxcare.com.au>
1075
24376d1b
AM
1076 * section.c (struct sec): Add kept_section.
1077 (struct bfd_comdat_info): Remove sec, we can use above.
1078 (STD_SECTION): Add initializer.
1079 (bfd_make_section_anyway): Init here too.
1080
1081 * bfd-in2.h: Regenerate.
1082
1083 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 1084 zeroing of `flags'.
24376d1b
AM
1085 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1086 fudge values for discarded link-once section symbols.
1087
3ef20aaa
AM
1088 * elf64-hppa.c: Include alloca-conf.h
1089
c0e219cc
AM
10902000-10-11 Alan Modra <alan@linuxcare.com.au>
1091
d01e2a23
AM
1092 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1093
c0e219cc
AM
1094 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1095
fe268b66
AM
10962000-10-10 Alan Modra <alan@linuxcare.com.au>
1097
1098 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1099
4d7ce4dd
AM
11002000-10-10 Tom Rix <trix@redhat.com>
1101
d952f17a 1102 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
1103 newsect->symbol fails to alloc. Use bfd_release instead of free.
1104
f3b6f7c3
RH
11052000-10-09 Richard Henderson <rth@cygnus.com
1106
1107 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1108 (elf64_ia64_unwind_entry_compare): New.
1109 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1110
44852b19
AM
11112000-10-07 Alan Modra <alan@linuxcare.com.au>
1112
fc8c40a0
AM
1113 * elflink.h (size_dynamic_sections): Don't create various tags if
1114 .dynstr is excluded from the link. Don't set first dynsym entry
1115 if dynsymcount is zero.
1116 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1117 .dynsym excluded from the link. Don't try to write any dynamic
1118 sections excluded from the link.
1119
44852b19
AM
1120 * elf.c (swap_out_syms): Handle global section symbols.
1121
3e4554a2
DD
11222000-10-05 DJ Delorie <dj@redhat.com>
1123
1124 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1125 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1126 (coff_write_relocs): write extended reloc count
1127 (coff_write_object_contents): account for extended relocs
1128
fa152c49
JW
11292000-10-05 Jim Wilson <wilson@cygnus.com>
1130
1131 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1132 field.
1133 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1134 elf_backend_section_flags function.
1135 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1136 code.
1137 (elf64_ia64_section_flags): New function containing flag conversion
1138 code.
1139 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1140 * elfxx-target.h (elf_backend_section_flags): Define.
1141 (elfNN_bed): Initialize elf_backend_section_flags field.
1142
36605136
AM
11432000-10-02 Alan Modra <alan@linuxcare.com.au>
1144
1145 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1146 _bfd_elf32_gc_record_vtable. Correct a comment.
1147
4b6609a0
UC
11482000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1149
1150 From Ralf Baechle <ralf@gnu.org>
1151
1152 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1153 produces binaries with got[1] = 0x80000001 to differenciate them
1154 for the dynamic linker from the broken binaries produced by old
1155 versions.
36605136 1156
f572a39d
AM
11572000-09-30 Petr Sorfa <petrs@sco.com>
1158
1159 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1160 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1161 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1162 * configure: Regenerate.
1163
4da81684
HPN
11642000-09-27 Hans-Peter Nilsson <hp@axis.com>
1165
1166 Define two bfd_targets for absence and presence of leading
1167 underscore on symbols. Make sure to only link same kind.
1168 * elf32-cris.c (cris_elf_object_p,
1169 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1170 cris_elf_merge_private_bfd_data): New.
1171 (elf_backend_object_p, elf_backend_final_write_processing,
1172 bfd_elf32_bfd_print_private_bfd_data,
1173 bfd_elf32_bfd_merge_private_bfd_data): Define.
1174 <Target vector definition>: Include elf32-target.h twice with
1175 different macro settings:
1176 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1177 bfd_elf32_us_cris_vec.
1178 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1179 (elf_symbol_leading_char): First as 0, then '_'.
1180 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1181 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1182 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1183 * configure: Regenerate.
1184 * targets.c: Declare bfd_elf32_us_cris_vec.
1185 * po/bfd.pot: Regenerate.
1186
9a5aca8c
AM
11872000-09-29 Momchil Velikov <velco@fadata.bg>
1188
1189 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1190 R_ARM_THM_PC22 relocations.
1191
512a2384
AM
11922000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1193
1194 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1195
6c99a5c3
AM
11962000-09-29 Momchil Velikov <velco@fadata.bg>
1197
1198 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1199 is has the SEC_HAS_CONTENTS flag set.
1200