Add MIPS r12k support
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
d1cf510e
NC
12001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2
3 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
4 * archures.c (bfd_mach_mips12000): Define.
5 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
6 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
7 support.
8 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
9 * bfd-in2.h: Regenerate.
10 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
11
6c426cf3
NC
122001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
13
14 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
15 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
16 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
17 that is used by GCC.
18
d9bc7a44
NC
192001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
20
21 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
22 of entries in a structured section.
23 * elf.c: Use new macro.
24 * elf32-i386.c: Use new macro.
25 * elf32-mips.c: Use new macro.
26 * elf64-alpha.c: Use new macro.
27 * elf64-sparc.c: Use new macro.
28 * elfcode.h: Use new macro.
29 * elflink.h: Use new macro.
30
312001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
32
33 * bfdint.texi: Replace -oformat with --oformat.
34
f5198f61
AJ
352001-05-21 Andreas Jaeger <aj@suse.de>
36
37 * dwarf2.c (decode_line_info): Fix error message.
38 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
39 adjust error message.
40
7913c838
L
412001-05-18 H.J. Lu <hjl@gnu.org>
42
43 * elflink.h (elf_link_add_object_symbols): Revert the last
44 change.
45
e0522e89
AM
462001-05-17 Alan Modra <amodra@one.net.au>
47
48 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
49 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
50 (hppa_build_one_stub): Add an assert to check plt.offset.
51
96fd004e
L
522001-05-17 H.J. Lu <hjl@gnu.org>
53
54 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
55 version definition to basename of the output filename.
56
f3876d8b
L
572001-05-17 H.J. Lu <hjl@gnu.org>
58
59 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
60 basename of the bfd filename.
61
d1778b88
AM
622001-05-16 Alan Modra <amodra@one.net.au>
63
64 * section.c (asection): Add linker_has_input field.
65 (STD_SECTION): Adjust initialization to suit.
66 * ecoff.c (bfd_debug_section): Likewise.
67 * bfd-in2.h: Regenerate.
68
2a0fa943
AO
692001-05-15 Alexandre Oliva <aoliva@redhat.com>
70
71 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
72 negative 32-bit operands to 16 operands when the operand is
73 going to be zero-extended by the modified opcode.
74
bcee8eb8
AM
752001-05-12 Peter Targett <peter.targett@arccores.com>
76
77 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
78 name for 'arc5' core versions.
79 (bfd_arc_arch): Make bfd_mach_arc_6 default.
80
81 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
82 architecture.
83 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
84
579f31ac
JJ
852001-05-11 Jakub Jelinek <jakub@redhat.com>
86
87 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
88 sections as well.
89 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
90 to .gnu.linkonce.t.FOO text section.
91
8550eb6e
JJ
922001-05-11 Jakub Jelinek <jakub@redhat.com>
93
94 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
95 fields, change sec into secinfo.
96 (struct sec_merge_info): Add chain, remove last fields.
97 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
98 (sec_merge_hash_lookup): If lookup could not use a string only
99 because it has bad alignment, mark the old string for deletion.
100 (sec_merge_add): Add secinfo argument. Don't compute entry's
101 position, instead record the section.
102 (sec_merge_emit): Update for the sec into secinfo change in
103 struct sec_merge_hash_entry.
104 (_bfd_merge_section): Only record the section for merging, defer
105 putting strings into the hash table.
106 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
107 _bfd_merge_sections): New functions.
108 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
109 changes.
110 * libbfd-in.h (_bfd_merge_sections): Add prototype.
111 (_bfd_nolink_bfd_merge_sections): Define.
112 * libbfd.h: Likewise.
113 (bfd_generic_merge_sections): Add prototype.
114 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
115 (struct bfd_target): Likewise.
116 * bfd.c (bfd_merge_sections): Define.
117 * bfd-in2.h: Rebuilt.
118 * elf.c (_bfd_elf_merge_sections): New function.
119 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
120 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
121 * reloc.c (bfd_generic_merge_sections): New function.
122 * vms.c (vms_bfd_merge_sections): New function.
123 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
124 * aout-target.h (MY_bfd_merge_sections): Define.
125 * aout-tic30.c (MY_bfd_merge_sections): Define.
126 * binary.c (binary_bfd_merge_sections): Define.
127 * bout.c (b_out_bfd_merge_sections): Define.
128 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
129 * coffcode.c (coff_bfd_merge_sections): Define.
130 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
131 * i386msdos.c (msdos_bfd_merge_sections): Define.
132 * i386os9k.c (os9k_bfd_merge_sections): Define.
133 * ieee.c (ieee_bfd_merge_sections): Define.
134 * ihex.c (ihex_bfd_merge_sections): Define.
135 * nlm-target.h (nlm_bfd_merge_sections): Define.
136 * oasys.c (oasys_bfd_merge_sections): Define.
137 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
138 * som.c (som_bfd_merge_sections): Define.
139 * srec.c (srec_bfd_merge_sections): Define.
140 * tekhex.c (tekhex_bfd_merge_sections): Define.
141 * versados.c (versados_bfd_merge_sections): Define.
142 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
143
1548c54f
NC
1442001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
145
146 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
147 to be unsigned long, in order to match its use.
148
689effed
L
1492001-05-10 H.J. Lu <hjl@gnu.org>
150
151 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
152 indirect symbols.
153
6e5222be
L
1542001-05-09 H.J. Lu <hjl@gnu.org>
155
156 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
157 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
158 Remove the unused veriable `dynver'.
159
8e191bd3
ILT
1602001-05-08 Ian Lance Taylor <ian@zembu.com>
161
162 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
163 NULL or is not COFF.
164 (coff_i386_rtype_to_howto): Don't dump core if output section
165 owner is not COFF.
166
062e2358
AM
1672001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
168
169 * ecoff.c (bfd_debug_section): Fix initialization.
170 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
171 is always a positive integer. Cast away sign mismatch.
172 * elf32-mips.c: Fix misleading comment and typo.
173 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
174 correct data type.
175 * elflink.c: Fix typo.
176 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
177 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
178
16b65e4e
RH
1792001-05-04 Richard Henderson <rth@redhat.com>
180
181 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
182
cac15327
NC
1832001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
184
185 * elf32-arm.h (elf32_arm_final_link_relocate): Set
186 EF_ARM_HASENTRY if the start address is set.
187
966b3e0b
NC
1882001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
189
190 * targets.c (_bfd_target_vector_entries): Compute value based on
191 the size of the _bfd_target_vector and not bfd_target_vector.
192
210ba1e8
L
1932001-05-03 H.J. Lu <hjl@gnu.org>
194
195 * elfcode.h: Include "libiberty.h".
196
197 * elflink.h (elf_link_add_object_symbols): Set
198 elf_dt_name (abfd) to basename of the bfd filename.
199 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
200 of the bfd filename.
201
56fc028e
AJ
2022001-05-03 Andreas Jaeger <aj@suse.de>
203
204 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
205 (elf_generic_info_to_howto_rel): Likewise.
206 * coff-alpha.c (reloc_nil): Likewise.
207 (alpha_ecoff_bad_format_hook): Likewise.
208 (alpha_adjust_reloc_out): Likewise.
209 (alpha_bfd_reloc_type_lookup): Likewise.
210 (alpha_convert_external_reloc): Likewise.
211 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
212 (elf64_alpha_reloc_bad): Likewise.
213 (elf64_alpha_reloc_gpdisp): Likewise.
214 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
215 (elf64_alpha_info_to_howto): Likewise.
216 (elf64_alpha_add_symbol_hook): Likewise.
217 (elf64_alpha_create_got_section): Likewise.
218 (elf64_alpha_is_local_label_name): Likewise.
219 (elf64_alpha_merge_ind_symbols): Likewise.
220 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
221 (mips_elf64_get_reloc_upper_bound): Likewise.
222 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
223 (nlm_alpha_get_public_offset): Likewise.
224
c7e40348
NC
2252001-05-02 Johan Rydberg <jrydberg@opencores.org>
226
227 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
228 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 229 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 230
5fba655a
L
2312001-04-30 H.J. Lu <hjl@gnu.org>
232
233 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
234 only for ELF_LINK_FORCED_LOCAL.
235 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
236 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
237 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
238
239 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
240 if the symbol has hidden or internal visibility.
241
db20fd76
AM
2422001-04-30 Alan Modra <amodra@one.net.au>
243
244 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
245 calls to undefined weak symbols.
246
6a2bda3f
AJ
2472001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
248
249 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
250 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
251
053579d7
AJ
2522001-04-27 Andreas Jaeger <aj@suse.de>
253
254 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
255 out handled entries.
256 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
257 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
258 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
259 GOT32.
260
87748b32
NC
2612001-04-27 Sean McNeil <sean@mcneil.com>
262
263 * config.bfd: Add arm-vxworks target.
264 * coff-arm (coff_arm_relocate_section): Add in symbol value to
265 addend (fro VXworks targets).
266
f5f31454
L
2672001-04-26 H.J. Lu <hjl@gnu.org>
268
269 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
270 valid.
271
d436a9b3
FCE
2722001-04-25 Frank Ch. Eigler <fche@redhat.com>
273
274 * bfd-in.h (bfd_cache_close): Declare newly exported function.
275 * bfd-in2.h: Regenerated.
276
a531bbd2
JJ
2772001-04-24 Jakub Jelinek <jakub@redhat.com>
278
279 * merge.c (struct sec_merge_hash_entry): Add alignment field.
280 (struct sec_merge_hash): Remove alignment_power.
281 (sec_merge_hash_newfunc): Clear alignment.
282 (sec_merge_hash_lookup): Pass alignment as argument.
283 Use hashp->root.next, not hashp->next to walk the hash chain.
284 If a string already in the hashtable does not have required
285 alignment, create a new hashtable entry.
286 (sec_merge_init): Remove alignment_power argument.
287 (sec_merge_add): Add alignment argument.
288 (sec_merge_emit): Alignment is now a per-entity thing, not per
289 section.
290 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
291 for proper alignment.
292 Pass alignment information to sec_merge_add.
293
6840198f
NC
2942001-04-24 Christian Groessler <cpg@aladdin.de>
295
296 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
297 and R_REL16 reloc types; accept odd values for R_REL16 type
298
b3baf5d0
NC
2992001-04-24 Johan Rydberg <jrydberg@opencores.org>
300
301 * cpu-openrisc.c: New file.
302 * elf32-openrisc.c: Likewise.
303
304 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
305 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
306 (BFD32_BACKENDS): Add elf32-openrisc.lo.
307 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
308 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
309 * Makefile.in: Regenerated.
310 * config.bfd: (openrisc-*-elf): New target.
053579d7 311 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
312 * configure: Regenerated.
313 * libbfd.h: Regenerated.
314 * bfd-in2.h: Regenerated.
315 * reloc.c: Add OpenRISC relocations.
053579d7 316 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
317 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
318 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
319 (bfd_openrisc_arch): Declare.
320 (bfd_archures_list): Add bfd_openrisc_arch.
321 * elf.c (prep_headers): Add bfd_arch_openrisc.
322
fe4770f4
AJ
3232001-04-23 Bo Thorsen <bo@suse.de>
324
325 * elf64-x86-64.c: Add c++ vtable hack.
326 Small whitespace and comment changes.
327
653165cc
AJ
3282001-04-19 Andreas Jaeger <aj@suse.de>
329
330 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
331 (elf64_x86_64_plt_entry): Likewise.
332 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
333 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
334
4d96d128
HPN
3352001-04-17 Hans-Peter Nilsson <hp@axis.com>
336
337 * elf32-cris.c: Tweak comments related to dynamic linking.
338 (cris_elf_relocate_section): When not creating shared object, fill
339 in the .got table for any symbol not in the dynamic symbol table.
340 (elf_cris_finish_dynamic_symbol): When not creating shared object,
341 only emit a .got.rela reloc if the symbol is in the dynamic symbol
342 table.
343 (cris_elf_check_relocs): Use variable r_type in all places rather
344 than the original expression. Add default case in switch for
345 reloc types.
346 (elf_cris_size_dynamic_sections): Iterate over
347 elf_cris_discard_excess_program_dynamics when not creating shared
348 library.
653165cc 349 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
350 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
351 (elf_cris_discard_excess_program_dynamics): New.
352
3ed30d29
DD
3532001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
354
355 * coffcode.h (coff_write_object_contents): Use
356 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
357
a80f6941
L
3582001-04-14 H.J. Lu <hjl@gnu.org>
359
360 * bfd-in2.h: Regenerate.
361
767e4b0d
JJ
3622001-04-14 Jakub Jelinek <jakub@redhat.com>
363
364 * section.c (STD_SECTION): Add entsize.
365
2dd439c5
L
3662001-04-13 H.J. Lu <hjl@gnu.org>
367
368 * section.c (SEC_MERGE): Define new flag for merging.
369 (SEC_STRINGS): Likewise.
370 (entsize): New field.
371
baf80c32
DD
3722001-04-13 Roger Sayle <roger@metaphorics.com>
373
374 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
375 flag on pe-i386 targets.
376
f5fa8ca2
JJ
3772001-04-13 Jakub Jelinek <jakub@redhat.com>
378
379 * libbfd-in.h (_bfd_merge_section): New.
380 (_bfd_write_merged_section): New.
381 (_bfd_merged_section_offset): New.
382 * libbfd.h: Rebuilt.
383 * linker.c (_bfd_generic_link_output_symbols): Handle
384 discard_sec_merge.
385 * aoutx.h (aout_link_write_symbols): Likewise.
386 * pdp11.c (aout_link_write_symbols): Likewise.
387 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
388 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
389 sections.
390 (elf_link_sec_merge_syms): New.
391 (elf_link_input_bfd): Call _bfd_merged_section_offset
392 and _bfd_write_merged_section.
393 Handle discard_sec_merge.
394 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
395 field.
396 (struct bfd_elf_section_data): Likewise.
397 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
398 SEC_STRINGS section flags and entsize from their ELF counterparts.
399 (_bfd_elf_link_hash_table_init): Initialize merge_info.
400 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
401 from their BFD counterparts.
402 * merge.c: New file.
403 * Makefile.am: Add strtab.lo.
404 * Makefile.in: Rebuilt.
405
d954b040
HPN
4062001-04-09 Hans-Peter Nilsson <hp@axis.com>
407
408 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
409 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
410
fdbafa10
L
4112001-04-05 Steven J. Hill <sjhill@cotw.com>
412
413 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
414 endian MIPS ELF target.
415 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
416 MIPS ELF target.
417
418 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
419 64bit big endian MIPS ELF target.
653165cc 420 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
421 endian MIPS ELF target.
422 * configure: Regenerated.
423
424 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
425 little endian targets.
426 (mips_elf_sym_is_global): Handle traditional targets.
427
428 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
429 64bit big endian MIPS ELF target.
430 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
431 endian MIPS ELF target.
432
433 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
434 and bfd_elf64_tradlittlemips_vec.
435
dd484e5c
L
4362001-04-05 David Mosberger <davidm@hpl.hp.com>
437
438 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
439 ordinary "progbits" section.
440
391a809a
AM
4412001-04-04 Alan Modra <alan@linuxcare.com.au>
442
443 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
444 when -Bsymbolic causes a symbol to no longer need a .plt entry.
445
5854c633
L
4462001-04-03 David Mosberger <davidm@hpl.hp.com>
447
448 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
449
8b4b0fac
L
4502001-03-30 H.J. Lu <hjl@gnu.org>
451
452 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
453 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
454
eb4a6e4f
L
4552001-03-26 H.J. Lu <hjl@gnu.org>
456
457 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
458 if there are any relocations for generic ELF.
459 (bfd_elf32_bfd_link_add_symbols): Defined to
460 elf32_generic_link_add_symbols.
461 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
462 if there are any relocations for generic ELF.
463 (bfd_elf64_bfd_link_add_symbols): Defined to
464 elf64_generic_link_add_symbols.
465
55c80943
NC
4662001-03-23 Nick Clifton <nickc@redhat.com>
467
468 * Makefile.am (BUILD_CFILES): New variable: List of C source
469 files created in build directory.
470 (BUILD_HFILES): New variable: List of header files created in
471 build directory.
472 (POTFILES): Delete.
473 (po/POTFILES.in): Replace rule with empty entry.
474 (po/SRC-POTFILES.in): New rule: Create a list of source files
475 in the source directory.
476 (po/BLD-POTFILES.in): New rule: Create a list of source files
477 in the build directory.
478 (MOSTLYCLEAN): Do not delete source files created in build
479 directory.
480 * Makefile.in: Regenerate.
481 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
482 into po/Makefile.
483 * configure: Regenerate.
484
485 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
486 and BLD_POTFILES.
487 Add .. to the search path when building bfd.pot.
488 Delete POTFILES when performing distclean.
489 Add comment describing why distclean is broken in maintainer mode.
490 * po/POTFILES.in: Delete.
491 * po/SRC-POTFILES.in: New file.
492 * po/BLD-POTFILES.in: New file.
493 * po/bfd.pot: Regenerate.
494
58d29fc3
HPN
4952001-03-22 Hans-Peter Nilsson <hp@axis.com>
496
915e5146
HPN
497 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
498 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
499 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
500 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
501 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
502 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
503 functions.
504 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
505 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
506 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
507 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
508 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
509 New HOWTO members for new relocs.
510 (cris_reloc_map): Map new relocs.
511 (ELF_DYNAMIC_INTERPRETER): Define.
512 (PLT_ENTRY_SIZE): Define.
513 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
514 elf_cris_pic_plt_entry): New, PLT templates.
515 (struct elf_cris_pcrel_relocs_copied, struct
516 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
517 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
518 (cris_final_link_relocate): Check that 16-bit GOT relocs have
519 positive values. Adjust PCREL relocs to be relative to location
520 after relocation.
521 (cris_elf_relocate_section): Handle relocations to dynamic
522 objects. Handle new relocations. Call error handler when seeing
523 non-PIC relocation for read-only sections while generating shared
524 object.
525 (cris_elf_check_relocs): Set reference counts for GOT and PLT
526 entries.
527 (bfd_elf32_bfd_link_hash_table_create,
528 elf_backend_adjust_dynamic_symbol,
529 elf_backend_size_dynamic_sections,
530 elf_backend_finish_dynamic_symbol,
531 elf_backend_finish_dynamic_sections,
532 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
533 elf_backend_hide_symbol, elf_backend_want_got_plt,
534 elf_backend_plt_readonly, elf_backend_want_plt_sym,
535 elf_backend_got_header_size, elf_backend_plt_header_size):
536 Define.
537
58d29fc3
HPN
538 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
539 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
540 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
541 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
542 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
543 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
544 * bfd-in2.h, libbfd.h: Regenerate.
545
7a65545d
DN
5462001-03-21 Diego Novillo <dnovillo@redhat.com>
547
548 (_bfd_mips_elf_relocate_section): Give a better error message when
549 a relocation is not recognized.
550
b32b5d6e
AM
5512001-03-21 Alan Modra <alan@linuxcare.com.au>
552
553 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
554 non-NULL before attempting to dereference.
555
f4fbb4a3
L
5562001-03-20 H.J. Lu <hjl@gnu.org>
557
558 * configure.in: Remove the redundent AC_ARG_PROGRAM.
559 * configure: Rebuild.
560
95fc45e6
AS
5612001-03-20 Andreas Schwab <schwab@suse.de>
562
563 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
564 relocation value when resolving a reference from a debugging
565 section.
566
03d411a9
NC
5672001-03-16 Scott Thomason <SThomaso@hii.com>
568
569 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
570 (xcoff64_swap_sym_out): Fix syntax errors.
571
d1659392
NC
5722001-03-16 Richard Sandiford <rsandifo@redhat.com>
573
574 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
575
12cca0d2
AM
5762001-03-15 Alan Modra <alan@linuxcare.com.au>
577
578 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
579 (hppa_link_hash_newfunc): Init it.
580 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
581 section appears to be non-PIC.
582 (final_link_relocate): Likewise.
583 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
584 possible candidate function, and set pic_call for those that will
585 only have a .plt entry for the PIC call stub.
586 (hppa_handle_PIC_calls): Set maybe_pic_call.
587
cd6ec716
DD
5882001-03-12 DJ Delorie <dj@redhat.com>
589
590 * elf32-sh.c (sh_elf_relocate_section): Only relocation
591 R_SH_DIR8WP* relocs if they're against external symbols, else
592 they're just for relaxing. Validate the reloc values.
593
43a0748c
NC
5942001-03-12 Stefan Geuken <mail@stefan-geuken.de>
595
596 * binary.c (bfd_external_binary_architecture): Declare.
597 (binary_object_p): If bfd_external_binary_architecture is defined,
598 set the architecture to this string.
599
d982ba73
PB
6002001-03-11 Philip Blundell <philb@gnu.org>
601
602 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
603 entries that could serve as a definition for a weak symbol.
604
7898deda
NC
6052001-03-08 Nick Clifton <nickc@redhat.com>
606
607 * Most files: Update copyright notices using Perl script created
608 by Kevin Buettner <kevinb@redhat.com>.
653165cc 609
df425bc0
NC
6102001-03-07 Nick Clifton <nickc@redhat.com>
611
612 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
613 prior patch on ! defined OLD_ARM_ABI.
614
bcdd92f3
AJ
6152001-03-07 Andreas Jaeger <aj@suse.de>
616
617 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
618 some relocation values.
619
4f3c3dbb
NC
6202001-03-06 Nick Clifton <nickc@redhat.com>
621
622 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
623 of offset in BLX(1) instruction.
624 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
625 offset in BLX(1) instruction.
626 Fix formatting.
627
f8f3c6cc
NC
6282001-03-06 Nick Clifton <nickc@redhat.com>
629
630 * coff-arm.c (coff_arm_reloc_type_lookup): Add
631 BFD_RELOC_THUMB_PCREL_BLX.
632
3cac17ae
NC
6332001-03-06 Igor Shevlyakov <igor@windriver.com>
634
635 * archures.c (bfd_default_scan): Add Coldfire CPUs.
636 * bfd-in2.h: Regenerate.
637 * cpu-m68k.c: Add Coldfire CPUs for arch table.
638 * ieee.c (ieee_write_processor): Set proper id for
639 Coldfire CPUs.
640
d1b17ab0
NC
6412001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
642
643 * configure.in: Add s390 target.
644 * configure: Regenerate.
645
5608e05b
AJ
6462001-02-28 Andreas Jaeger <aj@suse.de>
647
648 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
649 to addend.
650
fd2ec330
PB
6512001-02-28 Philip Blundell <pb@futuretv.com>
652
653 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 654 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 655
920581c5
L
6562001-02-27 H.J. Lu <hjl@gnu.org>
657
658 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
659 abfd->tdata.aout_data == NULL.
660
27b7e12d
AM
6612001-02-27 Alan Modra <alan@linuxcare.com.au>
662
3ee1d854
AM
663 * elf32-hppa.c: Correct field selector in stub comments.
664 (clobber_millicode_symbols): Formatting fix.
665
27b7e12d
AM
666 * configure.in: Bump version to 2.11.90.
667 * configure: Regenerate.
668 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
669 (CFILES): $SOURCE_CFILES + generated C files.
670 (POTFILES): Include $HFILES not $SOURCE_HFILES.
671 Run "make dep-am"
672 * Makefile.in: Regenerate.
673 * doc/Makefile.in: This too.
674
10d1e03a
TW
6752001-02-26 Timothy Wall <twall@cygnus.com>
676
677 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 678 comments.
10d1e03a 679
1276aefa
NC
6802001-02-26 Nick Clifton <nickc@redhat.com>
681
682 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
683 up, replacing multiple if statements with a switch.
684 (handle_COMDAT): New function.
685
6862001-02-26 H.J. Lu <hjl@gnu.org>
687
688 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
689 a warning for section flags we do not handle instead of
690 aborting.
691
4a73f21b
AJ
6922001-02-26 Andreas Jaeger <aj@suse.de>
693
694 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
695
7b6dab7f
TW
6962001-02-22 Timothy Wall <twall@cygnus.com>
697
698 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
699 * configure.in: Add objects for elf64_ia64_aix vectors.
700 * configure: Regenerated.
701 * configure.host: Recognize ia64-*-aix*.
702 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
703 for AIX. AIX5 requires most relocations to be dynamic (*all*
704 binaries are somewhat similar to shared libraries).
705 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 706
87f8eb97
JW
7072001-02-21 David Mosberger <davidm@hpl.hp.com>
708
709 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
710 C8 said "1" instead of "8". Clarify error string for IMM22:
711 "signed integer" instead of just "integer".
712
05aa1441
AJ
7132001-02-20 Andreas Jaeger <aj@suse.de>
714
715 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
716 PLT entries that could serve as a definition for a weak symbol.
717
8701c1bc
JJ
7182001-02-19 Jakub Jelinek <jakub@redhat.com>
719
720 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
721 entries that could serve as a definition for a weak symbol.
722 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
723
d4af9775
DB
7242001-02-18 David O'Brien <obrien@FreeBSD>
725
726 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
727 FreeBSD/i386-CURRENT differently until I can figure out the needed
728 corefile changes.
729 * configure: Regenerate.
730 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
731 FreeBSD/PowerPC, and FreeBSD/sparc64.
732
e135f41b
NC
7332001-02-18 lars brinkhoff <lars@nocrew.org>
734
735 * Makefile.am: Add PDP-11 a.out target.
736 * config.bfd: Likewise.
737 * configure.in: Likewise.
738 * targets.c: Likewise.
739 * archures.c: Likewise.
740 * bfd-in2.h: Likewise. Add PDP-11 relocations.
741 * libbfd.h: Add PDP-11 relocations.
742 * reloc.c: Likewise.
743 * cpu-pdp11.c: New file.
744 * pdp11.c: New file.
745
746 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
747 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
748 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
749 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
750 (GET_MAGIC): New macro.
751 (PUT_MAGIC): Likewise.
752 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
753
dc3febfa
NC
7542001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
755
756 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
757 multiarch needs it).
758
ea412e04
L
7592001-02-18 H.J. Lu <hjl@gnu.org>
760
761 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
762 index.
763
47eee8a9
KH
7642001-02-18 Kazu Hirata <kazu@hxi.com>
765
766 * vms-misc.c: Fix formatting.
767
8a0c27cd
KH
7682001-02-16 Kazu Hirata <kazu@hxi.com>
769
770 * vms.c: Fix formatting.
771
d1fad7c6
NC
7722001-02-14 H.J. Lu <hjl@gnu.org>
773
774 * elf.c (elf_find_function): New function.
775 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
776 the file name and function name.
777
825b47db
NC
7782001-02-14 Nick Clifton <nickc@redhat.com>
779
51d7ee16
NC
780 * ecoff.c (bfd_debug_section): Update to initialise new fields in
781 asection structure.
782
825b47db
NC
783 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
784 (BFD64_BACKENDS): Add pepigen.c
785 Add rules to create peigen.c and pepigen.c from peXXigen.c.
786
787 * Makefile.in: Regenerate.
788 * configure: Regenerate.
789 * po/POTFILES.in: Regenerate.
790 * po/bfd.pot: Regenerate.
791
ea36a178
L
7922001-02-14 H.J. Lu <hjl@gnu.org>
793
794 * libcoff-in.h (pe_tdata): Add members target_subsystem and
795 force_minimum_alignment.
796
407443a3
AJ
7972001-02-14 Bo Thorsen <bo@suse.de>
798
799 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
800 (elf64_86_64_size_info): Struct added to fix a problem
801 with the hashtable string entries.
802 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
803 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
804 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
805 remove the FIXME for this.
806 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
807 section. Also removed the FIXME for it.
808 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
809 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
810 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
811
b4adccfd
RH
8122001-02-13 Richard Henderson <rth@redhat.com>
813
814 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
815 and not user provided.
816
9635981a
KH
8172001-02-13 Kazu Hirata <kazu@hxi.com>
818
819 * vms.c (vms_print_symbol): Remove unreachable code.
820
6a125b16
KH
821 * rs6000-core.c: Fix formatting.
822
cbff5e0d
DD
8232001-02-13 David Mosberger <davidm@hpl.hp.com>
824
825 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
826 as _bfd_XXi_only_swap_filehdr_out.
827 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
828 pe->force_minimum_alignment to TRUE.
829 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
830 PEI_TARGET_SUBSYSTEM.
831 (pe_print_private_bfd_data): Call
832 _bfd_XX_print_private_bfd_data_common() instead of
833 _bfd_pe_print_private_bfd_data_common().
834 (pe_bfd_copy_private_bfd_data): Call
835 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
836 _bfd_pe_bfd_copy_private_bfd_data_common().
837 (coff_bfd_copy_private_section_data): Define as
838 _bfd_XX_bfd_copy_private_section_data instead of
839 _bfd_pe_bfd_copy_private_section_data.
840 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
841 of a _bfd_pe_get_symbol_info.
842
843 * peigen.c: Delete.
844
845 * peXXigen.c: Renamed from peigen.c.
846 (COFF_WITH_XX): Define this macro (will get expanded into
847 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
848 compiled as peigen.c or pepigen.c.
849 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
850 define the canonical PEP structures and definitions.
851 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
852 effect, enforce minimum file and section alignments. If
853 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
854 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
855 so, by default, this is a no-op).
856
857 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
858 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
859 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
860 _bfd_pefoo if it's not defined. Use these macros to define
861 coff swap macros.
862
863 * libcoff.h (pe_tdata): Add members target_subsystem and
864 force_minimum_alignment.
865
866 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
867 COFF_WITH_pep.
868 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
869
870 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
871 peigen.lo.
872
873 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
874 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
875 PEPAOUTHDR.
876
877 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
878 (BFD64_BACKENDS_CFILES): Mention pepigen.c
879 (peigen.c): Add rule to generate from peXXigen.c.
880 (pepigen.c): Ditto.
881 (pepigen.lo): List dependencies for pepigen.lo.
882
df8634e3
AM
8832001-02-13 Alan Modra <alan@linuxcare.com.au>
884
885 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
886 $global$ referenced but not defined, set its value here.
887
51e0a107
JH
8882001-02-09 Bo Thorsen <bo@suse.de>
889
890 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
891 alignment to 3.
892 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
893 and relocation.
894 (elf64_x86_64_relocate_section): Fix formatting.
895 (elf64_x86_64_relocate_section): Fix addend for relocation of
896 R_X86_64_(8|16|32|PC8|PC16|PC32).
897
d1fad7c6 8982001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
899
900 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
901
f0e1d18a
L
9022001-02-11 H.J. Lu <hjl@gnu.org>
903
6757257f 904 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
905 alignment.
906
9117d219
NC
9072001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
908
909 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
910 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
911 relocations against dynsym symbols.
912
913 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
914 the R_MIPS_26 relocation.
915 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
916 the R_MIPS_26 relocation.
917 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
918 relocation.
919 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
920 the R_MIPS_26 relocation.
921 (mips_elf64_howto_table_rela): Likewise.
922
923 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
924 member to mark symbols that have non-CALL relocations against
925 them.
926 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
927 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
928 R_MIPS_GOT16.
929 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
930 non-CALL relocation against it is encountered.
931 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
932 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
933 no_fn_stub is not set.
934
935 * elf32-mips.c (mips_elf_output_extsym): Get the output section
936 information from the real symbol for indirect ones.
937 Check no_fn_stub to find out if a symbol has a function stub
938 indeed.
939
9f93bca5
MS
9402001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
941
942 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
943 * Makefile.in: Regenerate.
944
81545d45
RH
9452001-02-09 David Mosberger <davidm@hpl.hp.com>
946
947 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
948 true if section name is an unwind table section name.
949 (elfNN_ia64_additional_program_headers): Count each unwind section
950 separately.
951 (elfNN_ia64_modify_segment_map): Install one unwind program header
952 for each unwind separate section. Note: normally the linker
953 script merges the unwind sections that go into a single segment,
954 so this still generates at most one unwind program header per
955 segment.
956
957 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
958 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
959 (elfNN_ia64_fake_sections): Mark sections with names that start
960 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
961 unwind section.
962
963 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
964 Use it to make sh_info in unwind section point to the text section
965 it applies to.
966
a85d7ed0
NC
9672001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
968
969 * Makefile.am: Add linux target for S/390.
970 * archures.c: Likewise.
971 * bfd-in2.h: Likewise.
972 * config.bfd: Likewise.
973 * configure.in: Likewise.
974 * elf.c: Likewise.
975 * libbfd.h: Likewise.
976 * targets.c: Likewise.
977 * cpu-s390.c: New file.
978 * elf32-s390.c: New file.
979 * elf64-s390.c: New file.
980
356d255d
NC
9812001-02-09 Nick Clifton <nickc@redhat.com>
982
983 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
984 ImageBase. This has already been done by coff_swap_hdr_in.
985
069f40e5
JJ
9862001-02-09 Jakub Jelinek <jakub@redhat.com>
987
988 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
989
eadfa8ab
JJ
9902001-02-09 Jakub Jelinek <jakub@redhat.com>
991
992 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
993 (sparc64_elf_relocate_section): Likewise.
994
9fc54e19
MK
9952001-02-09 Mark Kettenis <kettenis@gnu.org>
996
997 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
998 similar to R_SPARC_32.
999 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1000
1f655a09
L
10012001-02-08 H.J. Lu <hjl@gnu.org>
1002
1003 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1004 relocation entries for weak definitions when building DSO with
1005 -Bsymbolic.
1006
ca88208a
RH
10072001-02-08 Richard Henderson <rth@redhat.com>
1008
1009 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1010 before visibility. Locally defined protected symbols are not
1011 dynamic.
1012
4603e845
GK
10132001-02-08 Geoffrey Keating <geoffk@redhat.com>
1014
1015 * config.bfd: Enable coff64 for rs6000-*. Patch from
1016 <hzoli@austin.ibm.com>.
1017
4ca29a6a
NC
10182001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1019
1020 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1021 found, do not attempt to find dwarf2 info before returning.
1022
7da9d88f
NC
10232001-02-07 Jakub Jelinek <jakub@redhat.com>
1024
1025 * elflink.h (is_global_symbol_definition): Rename to
1026 is_global_data_symbol_definition and have it reject function
1027 symbols.
1028 (elf_link_is_defined_archive_symbol): Use renamed function.
1029
7340082d
NC
10302001-02-07 Todd Vierling <tv@wasabisystems.com>
1031
1032 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1033 * libbfd.h (bfd_target_vector): Likewise.
1034 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 1035 make static; create pointer reference named bfd_target_vector.
7340082d
NC
1036 (_bfd_target_vector_entries): Calculate this based on the array
1037 typed _bfd_target_vector.
1038
2719f880
L
10392001-02-06 H.J. Lu <hjl@gnu.org>
1040
1041 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1042 internal symbols are not dynamic.
1043 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1044
175aa013
NC
10452001-02-06 Nick Clifton <nickc@redhat.com>
1046
1047 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1048 that it will not be pulled into the list of files that make up
1049 po/POTFILES.in.
1050 * Makefile.in: Regenerate.
1051 * po/bfd.pot: Regenerate.
1052
15e0ecd9
L
10532001-02-06 H.J. Lu <hjl@gnu.org>
1054
7898deda 1055 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
1056 checking.
1057 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1058 external_PEI_IMAGE_hdr.
1059
27def10f
KH
10602001-02-06 Kazu Hirata <kazu@hxi.com>
1061
1062 * elf-m10200.c: Fix formatting.
1063
a0f2e916
NC
10642001-02-04 Nick Clifton <nickc@redhat.com>
1065
1066 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1067 rel, it will be handled later on.
1068
d96031fb
NC
10692001-02-02 Fred Fish <fnf@ninemoons.com>
1070
1071 * Makefile.in: Fix typo.
1072
010ac81f
KH
10732001-02-01 Kazu Hirata <kazu@hxi.com>
1074
1075 * elf-m10300.c: Fix formatting.
1076
3fab46d0
AM
10772001-01-30 Alan Modra <alan@linuxcare.com.au>
1078
1079 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1080 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
1081 (elf64_hppa_object_p): Set architecture and machine from elf
1082 header flags.
3fab46d0 1083
95404643
RH
10842001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1085
1086 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1087 before mdebug.
1088
8fb35fed
RH
10892001-01-26 Richard Henderson <rth@redhat.com>
1090
1091 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1092 for non-default visibility.
1093 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1094 delete ugly macro and replace with pretty function.
1095
a4f68544
NC
10962001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1097
1098 * coff-go32.c: Update copyright.
1099 * coff-stgo32.c: Likewise.
1100 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1101 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1102 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1103 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1104
c02e7c3e
KH
11052001-01-25 Kazu Hirata <kazu@hxi.com>
1106
1107 * bfd-in2.h: Rebuild.
1108 * libbfd.h: Likewise.
1109
541389e2
L
11102001-01-23 H.J. Lu <hjl@gnu.org>
1111
1112 * bfd-in2.h: Rebuild.
1113
0007625f
L
11142001-01-23 H.J. Lu <hjl@gnu.org>
1115
1116 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1117 is NULL or PRIV(vms_rec) is outside of the buffer.
1118
b653e1b1
KH
11192001-01-23 Kazu Hirata <kazu@hxi.com>
1120
1121 * coff64-rs6000.c: Fix formatting.
1122 * coff-arm.c: Likewise.
1123 * coffgen.c: Likewise.
1124 * cofflink.c: Likewise.
1125 * coff-mcore.c: Likewise.
1126 * coff-mips.c: Likewise.
1127 * coff-pmac.c: Likewise.
1128 * coff-ppc.c: Likewise.
1129 * coff-rs6000.c: Likewise.
1130 * elf32.c: Likewise.
1131 * elf32-fr30.c: Likewise.
1132 * elf32-i370.c: Likewise.
1133 * elf32-i860.c: Likewise.
1134 * elf32-m32r.c: Likewise.
1135 * elf32-m68k.c: Likewise.
1136 * elf32-mcore.c: Likewise.
1137 * elf32-ppc.c: Likewise.
1138 * elf32-sh.c: Likewise.
1139 * elf32-v850.c: Likewise.
1140 * elf64-alpha.c: Likewise.
1141 * elf64-sparc.c: Likewise.
1142 * elflink.c: Likewise.
1143 * elflink.h: Likewise.
1144 * elf-m10200.c: Likewise.
1145 * elf-m10300.c: Likewise.
1146 * elfxx-ia64.c: Likewise.
1147
3fde5a36
KH
1148 * aoutx.h: Fix formatting.
1149 * bfd.c: Likewise.
1150 * bfd-in2.h: Likewise.
1151 * bfd-in.h: Likewise.
1152 * cpu-i386.c: Likewise.
1153 * cpu-m68hc11.c: Likewise.
1154 * dwarf2.c: Likewise.
1155 * elf64-x86-64.c: Likewise.
1156 * format.c: Likewise.
1157 * freebsd.h: Likewise.
1158 * hash.c: Likewise.
1159 * hp300hpux.c: Likewise.
1160 * hppabsd-core.c: Likewise.
1161 * hpux-core.c: Likewise.
1162
70256ad8
AJ
11632001-01-22 Bo Thorsen <bo@suse.de>
1164
1165 * elf64-x86-64.c: Added PIC support for X86-64.
1166 (elf64_x86_64_link_hash_newfunc): Function added.
1167 (elf64_x86_64_link_hash_table_create): Likewise.
1168 (elf64_x86_64_check_relocs): Likewise.
1169 (elf64_x86_64_gc_mark_hook): Likewise.
1170 (elf64_x86_64_gc_sweep_hook): Likewise.
1171 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1172 (elf64_x86_64_size_dynamic_sections): Likewise.
1173 (elf64_x86_64_discard_copies): Likewise.
1174 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1175 (elf64_x86_64_finish_dynamic_sections): Likewise.
1176 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1177
ee0bebb8
AJ
11782001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1179
1180 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1181 * Makefile.in: Regenerate.
1182
2a38f751
KH
11832001-01-21 Kazu Hirata <kazu@hxi.com>
1184
1185 * coff-a29k.c: Fix formatting.
1186
c8492176
L
11872001-01-19 H.J. Lu <hjl@gnu.org>
1188
1189 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1190 relocation section names.
1191 (elf_i386_relocate_section): Report files with bad relocation
1192 section names and return false.
1193
a5377ec0
AJ
11942001-01-17 Bo Thorsen <bo@suse.de>
1195
1196 * targets.c: Alphabetize list of xvecs.
1197
b352eebf
AM
11982001-01-14 Alan Modra <alan@linuxcare.com.au>
1199
d952f17a
AM
1200 * config.bfd: Add linux target variant for elfxx-hppa.
1201 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1202 bfd_elf64_hppa_linux_vec.
1203 * configure: Regenerate.
1204 * elf64-hppa.c: Include elf64-target.h again to support linux
1205 target variant.
1206 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1207 * elf32-hppa.c: Include elf32-target.h again to support linux
1208 target variant.
1209 (elf32_hppa_post_process_headers): New function.
1210 (elf_backend_post_process_headers): Define.
1211 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1212 bfd_elf32_hppa_linux_vec.
1213
c46b7515
AM
1214 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1215 and data_segment_base fields.
1216 (elf32_hppa_link_hash_table_create ): Init them.
1217 (elf32_hppa_check_relocs): Update comments.
1218 (hppa_record_segment_addr): New function.
1219 (elf32_hppa_relocate_section): Call it.
1220 (final_link_relocate): Handle R_PARISC_SEGREL32.
1221 (elf32_hppa_final_link): New function.
1222 (bfd_elf32_bfd_final_link): Define to call it.
1223 (hppa_unwind_entry_compare): New function.
1224 * cache.c (bfd_open_file): Create files in write+read mode.
1225
1226 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1227 SEGREL32 and numerous other relocs. Change duplicate
1228 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1229
d768008d
AM
1230 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1231 O_ACCMODE.
1232
150ccafb
AM
1233 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1234 .plt entries for DT_INIT and DT_FINI.
1235 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1236 DT_INIT and DT_FINI.
1237
b352eebf
AM
1238 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1239 offsets for stub .plt access if wide mode. Check offset in range.
1240
b3b9a062
NC
12412001-01-13 Nick Clifton <nickc@redhat.com>
1242
b7ed8fad
NC
1243 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1244 line.
1245
b3b9a062
NC
1246 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1247 line.
1248
6e0b89ee
AM
12492001-01-12 Alan Modra <alan@linuxcare.com.au>
1250
1251 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1252 * configure: Regenerate.
1253
0d2bcfaf
NC
12542001-01-11 Peter Targett <peter.targett@arccores.com>
1255
1256 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1257 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1258 * cpu-arc.c (arch_info_struct): Add entries for variants.
1259 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1260 (arc_get_mach) Don't assume machine names prefixed arc- before
1261 testing.
1262 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1263 selections.
1264 (arc_elf_final_write_processing) Likewise.
1265 (ELF_MACHINE_CODE) Use EM_ARC.
1266
c31c1f70
NC
12672001-01-10 Nick Clifton <nickc@redhat.com>
1268
2758140b 1269 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 1270
5ad083e3
PB
12712001-01-07 Philip Blundell <philb@gnu.org>
1272
1273 * README: Replace `bug-gnu-utils@gnu.org' with
1274 `bug-binutils@gnu.org'.
1275
7eae7d22
KH
12762001-01-04 Kazu Hirata <kazu@hxi.com>
1277
1278 * som.c: Fix formatting.
1279
509945ae
KH
12802001-01-03 Kazu Hirata <kazu@hxi.com>
1281
3e932841
KH
1282 * ecoffswap.h: Fix formatting.
1283 * elf-bfd.h: Likewise.
1284 * elfarm-nabi.c: Likewise.
1285 * elfarm-oabi.c: Likewise.
1286 * elfcode.h: Likewise.
1287 * elfcore.h: Likewise.
1288 * elflink.c: Likewise.
1289 * elflink.h: Likewise.
1290 * elfxx-ia64.c: Likewise.
1291 * elfxx-target.h: Likewise.
1292 * libbfd.c: Likewise
509945ae
KH
1293 * linker.c: Likewise.
1294 * lynx-core.c: Likewise.
1295
892339ee
KH
12962001-01-02 Kazu Hirata <kazu@hxi.com>
1297
1298 * pc532-mach.c: Fix formatting.
1299 * pe-arm.c: Likewise.
1300 * pe-i386.c: Likewise.
1301 * pe-mips.c: Likewise.
1302 * pe-ppc.c: Likewise.
1303 * pe-sh.c: Likewise.
1304 * pei-mips.c: Likewise.
1305 * pei-sh.c: Likewise.
ee91ed79 1306 * peicode.h: Likewise.
892339ee
KH
1307 * ppcboot.c: Likewise.
1308 * ptrace-core.c: Likewise.
1309
3d855632
KH
13102001-01-01 Kazu Hirata <kazu@hxi.com>
1311
1312 * reloc.c: Fix formatting.
1313 * riscix.c: Likewise.
1314 * rs6000-core.c: Likewise.
1315 * xcoff-target.h: Likewise.
1316
a77a9fef
HPN
13172000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1318
1319 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1320 error, by calling bfd_default_set_arch_mach with incoming
1321 values.
1322
558e161f
KH
13232000-12-26 Kazu Hirata <kazu@hxi.com>
1324
1325 * vaxnetbsd.c: Fix formatting.
1326 * versados.c: Likewise.
1327 * vms-gsd.c: Likewise.
1328 * vms-hdr.c: Likewise.
1329 * vms-misc.c: Likewise.
1330
3c579812
AO
13312000-12-25 Alexandre Oliva <aoliva@redhat.com>
1332
1333 * archive.c (coff_write_armap): Don't write more than symbol_count
1334 `archive_member_file_ptr's.
1335
672579e9
KH
13362000-12-25 Kazu Hirata <kazu@hxi.com>
1337
1338 * vms-tir.c: Fix formatting.
1339
55f2d5ed
KH
13402000-12-23 Kazu Hirata <kazu@hxi.com>
1341
1342 * vms.c: Fix formatting.
1343 * vms.h: Likewise.
1344
23ccc829
NC
13452000-12-21 Santeri Paavolainen <santtu@ssh.com>
1346
1347 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1348
1349 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1350
1351 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1352 arithmetic.
1353
1354 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1355
1356 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1357
8c603c85
NC
13582000-12-21 Richard Sandiford <rsandifo@redhat.com>
1359
1360 * libbfd.c (bfd_get_bits): Added
1361 (bfd_put_bits): Likewise
1362 * bfd-in.h: Declared the above.
1363 * bfd-in2.h: Regenerated.
1364
5bff4f56
KH
13652000-12-20 Kazu Hirata <kazu@hxi.com>
1366
1367 * targets.c: Fix formatting.
1368 * tekhex.c: Likewise.
1369 * trad-core.c: Likewise.
1370
7b82c249
KH
13712000-12-19 Kazu Hirata <kazu@hxi.com>
1372
1373 * sco5-core.c: Fix formatting.
1374 * section.c: Likewise.
1375 * sparclinux.c: Likewise.
1376 * sparclynx.c: Likewise.
1377 * sparcnetbsd.c: Likewise.
1378 * srec.c: Likewise.
1379 * stabs.c: Likewise.
1380 * stab-syms.c: Likewise.
1381 * sunos.c: Likewise.
1382 * syms.c: Likewise.
1383 * sysdep.h: Likewise.
1384
f78c5281
NC
13852000-12-18 Nick Clifton <nickc@redhat.com>
1386
1387 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1388 defined.
1389 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1390 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1391
02b89dce
NC
13922000-12-18 Nick Clifton <nickc@redhat.com>
1393
1394 * vms-misc.c (_bfd_vms_get_record): Add default case to
1395 file_format switch.
1396
d20966a7
NC
13972000-12-15 Miloslav Trmac <mitr@volny.cz>
1398
1399 * elfcore.h (elf_core_file_p): Move to the start of the program
1400 headers before attempting to read them.
1401
6fa957a9
KH
14022000-12-14 Kazu Hirata <kazu@hxi.com>
1403
1404 * peigen.c: Fix formatting.
1405 * som.c: Likewise.
1406 * som.h: Likewise.
1407
9602af51
KH
14082000-12-13 Kazu Hirata <kazu@hxi.com>
1409
1410 * peigen.c: Fix formatting.
1411
514829c3
JW
14122000-12-12 Jim Wilson <wilson@redhat.com>
1413
1414 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1415
3a71aec8
NC
14162000-12-08 Mark Salter <msalter@redhat.com>
1417
1418 * binary.c (binary_set_section_contents): Ignore sections
1419 with zero size.
1420
1518639e
KH
14212000-12-12 Kazu Hirata <kazu@hxi.com>
1422
1423 * m68klinux.c: Fix formatting.
1424 * m68knetbsd.c: Likewise.
1425 * mipsbsd.c: Likewise.
1426 * netbsd-core.c: Likewise.
1427 * netbsd.h: Likewise.
1428 * newsos3.c: Likewise.
1429 * nlm32-alpha.c: Likewise.
1430 * nlm32-i386.c: Likewise.
1431 * nlm32-ppc.c: Likewise.
1432 * nlm32-sparc.c: Likewise.
1433 * nlmcode.h: Likewise.
1434 * nlmswap.h: Likewise.
1435 * nlm-target.h: Likewise.
1436 * ns32knetbsd.c: Likewise.
1437
b79e8c78
NC
14382000-12-10 Fred Fish <fnf@be.com>
1439
d952f17a
AM
1440 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1441 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 1442
38b1a46c
NC
14432000-12-12 Nick Clifton <nickc@redhat.com>
1444
1445 * cpu-sh.c: Fix formattng.
1446 * elf.c: Fix formattng.
1447 * elf32-mips.c: Fix formattng.
1448 * elf32-sh.c: Fix formattng.
1449 * elf64-alpha.c: Fix formattng.
1450
857ec808
NC
14512000-12-09 Nick Clifton <nickc@redhat.com>
1452
1453 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1454 dwarf2_find_line_info as last parameter to invocation of
1455 _bfd_dwarf2_find_nearest_line.
1456 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1457 dwarf2_find_line_info as last parameter to invocation of
1458 _bfd_dwarf2_find_nearest_line.
1459
51db3708
NC
14602000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1461
1462 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
1463 (BFD_LIBS): ...to here.
1464 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1465 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
1466 * Makefile.in: Regenerate.
1467 * configure.in: Remove dwarf.lo from the elf shell variable.
1468 * configure: Regenerate.
1469 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1470 * libcoff.h: Regenerate.
d952f17a 1471 * coffgen.c (coff_find_nearest_line): Call
857ec808 1472 _bfd_dwarf2_find_nearest_line.
51db3708 1473 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
1474 accordingly.
1475 (read_abbrevs): Likewise
1476 (decode_line_info): Likewise.
1477 (parse_comp_unit): Likewise.
1478 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
1479 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1480 * libbfd.h: Regenerate.
1481 * elf.c (_bfd_elf_find_nearest_line): Update call.
1482 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1483 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1484 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
1485 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1486 (styp_to_sec_flags): Handle DWARF2 sections.
1487 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1488 to _bfd_find_nearest_line.
1489 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1490 call to _bfd_find_nearest_line.
d952f17a 1491
435b1e90
KH
14922000-12-08 Kazu Hirata <kazu@hxi.com>
1493
1494 * coffgen.c: Fix formatting.
fe8bc63d 1495 * elf-m10300.c: Likewise.
435b1e90
KH
1496 * elf32-i386.c: Likewise.
1497 * elf32-i960.c: Likewise.
1498 * elf32-m68k.c: Likewise.
1499 * elf32-mcore.c: Likewise.
1500 * elf32-ppc.c: Likewise.
1501 * elf32-sh.c: Likewise.
1502 * elf32-sparc.c: Likewise.
1503 * elf32-v850.c: Likewise.
fe8bc63d
KH
1504 * elf64-alpha.c: Likewise.
1505 * elf64-hppa.c: Likewise.
1506 * elf64-mips.c: Likewise.
435b1e90 1507 * elf64-sparc.c: Likewise.
435b1e90 1508
8da6118f
KH
15092000-12-07 Kazu Hirata <kazu@hxi.com>
1510
1511 * elf32-ppc.c: Fix formatting.
1512 * elf64-x86-64.c: Likewise.
1513
a9922e52
UC
15142000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1515
1516 From Ralf Baechle <ralf@gnu.org>
1517
1518 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1519 BFDs containing no sections or empty .text, .data or .bss sections
1520 to be merged, regardless of their flags.
1521
c3668558
KH
15222000-12-06 Kazu Hirata <kazu@hxi.com>
1523
1524 * elf32-m32r.c: Fix formatting.
1525 * elf32-m68hc11.c: Likewise.
1526 * elf32-m68hc12.c: Likewise.
1527 * elf32-m68k.c: Likewise.
1528 * elf32-mcore.c: Likewise.
1529 * elf32-pj.c: Likewise.
1530 * elf32-ppc.c: Likewise.
1531
6609fa74
KH
15322000-12-05 Kazu Hirata <kazu@hxi.com>
1533
1534 * elf32-fr30.c: Fix formatting.
1535 * elf32-hppa.c: Likewise.
1536 * elf32-i370.c: Likewise.
1537 * elf32-i386.c: Likewise.
1538 * elf32-i860.c: Likewise.
1539 * elf32-i960.c: Likewise.
1540
a7c10850
KH
15412000-12-03 Kazu Hirata <kazu@hxi.com>
1542
1543 * elf32-arm.h: Fix formatting.
1544 * elf32-avr.c: Likewise.
1545 * elf32-cris.c: Likewise.
1546 * elf32-d10v.c: Likewise.
1547 * elf32-d30v.c: Likewise.
1548 * elf-hppa.h: Likewise.
1549 * elf-m10200.c: Likewise.
1550 * elf-m10300.c: Likewise.
1551
e7af610e
NC
15522000-12-01 Chris Demetriou <cgd@sibyte.com>
1553
d952f17a
AM
1554 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1555 bfd_mach_mips32_4k. Update FIXME comment.
1556 * archures.c (bfd_mach_mips32): New constant.
1557 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1558 the latter, renumber it.
1559 * bfd-in2.h (bfd_mach_mips32): New constant.
1560 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1561 the latter, renumber it.
1562 * cpu-mips.c (I_mips32): New constant.
1563 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1564 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1565 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1566 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1567 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1568 with E_MIPS_MACH_MIPS32_4K.
1569 (_bfd_mips_elf_final_write_processing): Replace
1570 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1571 bfd_mach_mips32 case.
1572 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1573 comparison with support for MIPS32.
1574 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1575 MIPS32.
1576
1577 * aoutx.h (NAME(aout,machine_type)): Add cases for
1578 bfd_mach_mips5 and bfd_mach_mips64.
1579 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1580 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1581 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1582 (arch_info_struct): Add entries for bfd_mach_mips5 and
1583 bfd_mach_mips64.
1584 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1585 _bfd_mips_elf_print_private_bfd_data): Add cases for
1586 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1587 (_bfd_mips_elf_final_write_processing): Add cases for
1588 bfd_mach_mips5 and bfd_mach_mips64.
1589
7898deda 1590 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 1591 bfd_mach_mips_sb1 case.
7898deda
NC
1592 * archures.c (bfd_mach_mips_sb1): New constant.
1593 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1594 * cpu-mips.c (I_sb1): New constant.
d952f17a 1595 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 1596 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
1597 E_MIPS_MACH_SB1.
1598 (_bfd_mips_elf_final_write_processing): Add case for
1599 bfd_mach_mips_sb1.
1600
16012000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
1602
1603 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1604 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1605 (sparc*-*-rtems*): Switched from a.out to ELF.
1606
8d88c4ca 16072000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
1608
1609 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1610 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1611 (elf64-x86-64.lo): Add dependencies.
1612 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1613 bfd_mach_x86_64_intel_syntax.
1614 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1615 * config.bfd (x86_64): Add.
1616 * configure.in: Add support for bfd_elf64_x86_64_vec.
1617 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1618 (bfd_i386_arch, i8086_ar): Link in.
1619 * elf64-x86-64.c: New file.
1620 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1621 * targets.c (bfd_elf64_x86_64_vec): Add.
1622 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 1623
fbc4fff4
KH
16242000-11-30 Kazu Hirata <kazu@hxi.com>
1625
1626 * xcofflink.c: Fix formatting.
1627
e60b52c6
KH
16282000-11-28 Kazu Hirata <kazu@hxi.com>
1629
1630 * aoutx.h: Fix formatting.
1631 * bfd-in.h: Likewise.
1632 * bfd-in2.h: Likewise.
1633 * cache.c: Likewise.
1634 * cisco-core.c: Likewise.
1635 * coff64-rs6000.c: Likewise.
1636 * coffcode.h: Likewise.
1637 * coffswap.h: Likewise.
1638 * corefile.c: Likewise.
be3ccd9c 1639 * elf32-mips.c: Likewise.
e60b52c6 1640
336eced2
KH
16412000-11-27 Kazu Hirata <kazu@hxi.com>
1642
1643 * aout-adobe.c: Fix formatting.
244148ad
KH
1644 * coff64-rs6000.c: Likewise.
1645 * coffgen.c: Likewise.
1646 * cofflink.c: Likewise.
336eced2 1647
d71f672e
PB
16482000-11-27 Philip Blundell <pb@futuretv.com>
1649
1650 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1651 (obj_coff_strings_written): New accessor macro for above.
1652 * libcoff.h: Regenerate.
1653 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1654 strings.
1655 * coffcode.h (coff_write_object_contents): No need to write out
1656 the string table if it's already been done.
1657
bc7a577d
PB
16582000-11-22 Philip Blundell <pb@futuretv.com>
1659
d952f17a 1660 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
1661 weak undefined symbols.
1662
077b8428
NC
16632000-11-24 Nick Clifton <nickc@redhat.com>
1664
1665 * archures.c (bfd_mach_arm_5TE): Define.
1666 (bfd_mach_arm+XScale): Define.
1667 * bfd-in2.h: Regenerate.
1668
1669 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1670 BFD_RELOC_ARM_PCREL_BLX.
1671
1672 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1673 XScale machine numbers.
1674
1675 * config.bfd (xscale-elf): Add target.
1676 (xscale-coff): Add target.
1677
1678 * cpu-arm.c: Add xscale machine name.
1679 Add v5t, v5te and XScale machine numbers.
1680
e9e41bd9
KH
16812000-11-23 Kazu Hirata <kazu@hxi.com>
1682
1683 * aix386-core.c: Fix formatting.
1684
64bf6ae6
JW
16852000-11-22 Jim Wilson <wilson@redhat.com>
1686
1687 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1688 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1689 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1690 (ins_imms_scaled): Initialize sign_bit at function entry.
1691 (elf64_ia64_operands): Add missing initializers.
1692 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1693 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1694 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1695 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1696 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1697 parameters.
1698 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1699 and free_extsyms at function entry.
1700 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1701 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1702 (get_got): Delete unused local srel.
1703 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1704 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 1705
1abaf976
KH
17062000-11-21 Kazu Hirata <kazu@hxi.com>
1707
6e301b2b
KH
1708 * coff-a29k.c: Fix formatting.
1709 * coff-h8500.c: Likewise.
1710 * coff-i960.c: Likewise.
1711 * coff-ppc.c: Likewise.
1712 * coff-rs6000.c: Likewise.
1713 * coff-stgo32.c: Likewise.
1714 * coff-tic54x.c: Likewise.
1715 * coff-w65.c: Likewise.
1716 * cpu-h8500.c: Likewise.
1717 * cpu-hppa.c: Likewise.
1718 * cpu-ns32k.c: Likewise.
1719 * ecoff.c: Likewise.
1abaf976
KH
1720 * ecofflink.c: Likewise.
1721
a0fc8ba1
NC
17222000-11-21 Nick Clifton <nickc@redhat.com>
1723
1724 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1725 remove possibility of infinite loop.
1726
beb0d161
KH
17272000-11-20 Kazu Hirata <kazu@hxi.com>
1728
1729 * aix386-core.c: Fix formatting.
1730 * aout-adobe.c: Likewise.
1731 * aout-arm.c: Likewise.
1732 * aout-encap.c: Likewise.
1733 * aout-ns32k.c: Likewise.
1734 * aout-target.h: Likewise.
1735 * aout-tic30.c: Likewise.
1736 * aoutf1.h: Likewise.
1737 * aoutx.h: Likewise.
1738 * archive.c: Likewise.
eb6e10cb
KH
1739 * bfd-in.h: Likewise.
1740 * bfd-in2.h: Likewise.
1741 * bfd.c: Likewise.
1742 * bout.c: Likewise.
beb0d161 1743
2c2475db
JW
17442000-11-17 H.J. Lu <hjl@gnu.org>
1745
1746 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1747 pltoff entries for DT_INIT and DT_FINI.
1748 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1749 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1750 entries.
1751
18b27f17
RH
17522000-11-16 Richard Henderson <rth@redhat.com>
1753
1754 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1755 (allocate_dynrel_entries): Likewise.
1756 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1757 (set_pltoff_entry): Likewise.
1758 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1759 (elfNN_ia64_reloc_type_lookup): Likewise.
1760 (elfNN_ia64_install_value): Likewise.
1761 (elfNN_ia64_relocate_section): Likewise.
1762 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1763 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1764
98591c73
KH
17652000-11-16 Kazu Hirata <kazu@hxi.com>
1766
71f6b586
KH
1767 * cpu-a29k.c: Fix formatting.
1768 * cpu-alpha.c: Likewise.
1769 * cpu-arm.c: Likewise.
1770 * cpu-avr.c: Likewise.
1771 * cpu-d10v.c: Likewise.
1772 * cpu-h8500.c: Likewise.
1773 * cpu-hppa.c: Likewise.
1774 * cpu-i370.c: Likewise.
1775 * cpu-i386.c: Likewise.
1776 * cpu-i960.c: Likewise.
1777 * cpu-ia64-opc.c: Likewise.
1778 * cpu-ia64.c: Likewise.
1779 * cpu-m32r.c: Likewise.
1780 * cpu-m68hc11.c: Likewise.
1781 * cpu-m68hc12.c: Likewise.
1782 * cpu-m68k.c: Likewise.
1783 * cpu-m88k.c: Likewise.
1784 * cpu-mips.c: Likewise.
1785 * cpu-ns32k.c: Likewise.
1786 * cpu-pj.c: Likewise.
1787 * cpu-powerpc.c: Likewise.
1788 * cpu-sh.c: Likewise.
1789 * cpu-sparc.c: Likewise.
1790 * cpu-tic54x.c: Likewise.
1791 * cpu-v850.c: Likewise.
1792 * cpu-vax.c: Likewise.
1793 * cpu-w65.c: Likewise.
1794 * cpu-we32k.c: Likewise.
1795 * cpu-z8k.c: Likewise.
1796 * dwarf1.c: Likewise.
98591c73
KH
1797 * dwarf2.c: Likewise.
1798
c5930ee6
KH
17992000-11-15 Kazu Hirata <kazu@hxi.com>
1800
1801 * coff-arm.c: Fix formatting.
1802 * coff-ppc.c: Likewise.
1803 * coff-rs6000.c: Likewise.
cbfe05c4
KH
1804 * coff-sh.c: Likewise.
1805 * coff-sparc.c: Likewise.
1806 * coff-tic30.c: Likewise.
1807 * coff-tic54x.c: Likewise.
1808 * coff-tic80.c: Likewise.
1809 * coff-w65.c: Likewise.
1810 * coff-we32k.c: Likewise.
1811 * coff-z8k.c: Likewise.
c5930ee6 1812
dac544a8
RH
18132000-11-15 Richard Henderson <rth@redhat.com>
1814
1815 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1816 section with the same ALLOC|LOAD flags as the source section.
1817
c810873d
JJ
18182000-11-14 Jakub Jelinek <jakub@redhat.com>
1819
1820 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1821 by STO_ALPHA constants.
1822
43646c9d
KH
18232000-11-14 Kazu Hirata <kazu@hxi.com>
1824
1825 * coff-pmac.c: Fix formatting.
1826 * coff-ppc.c: Likewise.
1827
051b8577
L
18282000-11-13 H.J. Lu <hjl@gnu.org>
1829
1830 * elflink.h (elf_link_add_object_symbols): Also add indirect
1831 symbols for common symbols with the default version.
1832
90460d97
PB
18332000-11-09 Philip Blundell <pb@futuretv.com>
1834
1835 * section.c (STD_SECTION): Set gc_mark flag.
1836
b48499ec
KH
18372000-11-11 Kazu Hirata <kazu@hxi.com>
1838
1839 * coff-i960.c: Likewise.
1840 * coff-m68k.c: Likewise.
1841 * coff-m88k.c: Likewise.
1842 * coff-mcore.c: Likewise.
1843 * coff-mips.c: Likewise.
1844
c5aeb40f
AO
18452000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1846
1847 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1848
5fcfd273
KH
18492000-11-10 Kazu Hirata <kazu@hxi.com>
1850
1851 * coff-h8300.c: Fix formatting.
1852 * coff-h8500.c: Likewise.
1853 * coff-i386.c: Likewise.
1854 * coff-i860.c: Likewise.
1855 * coff-i960.c: Likewise.
1856 * coff-ia64.c: Likewise.
1857
047066e1
KH
18582000-11-09 Kazu Hirata <kazu@hxi.com>
1859
1860 * archive.c: Fix formatting.
1861 * archures.c: Likewise.
1862
9a951beb
RH
18632000-11-07 Richard Henderson <rth@redhat.com>
1864
1865 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1866 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1867 * section.c (bfd_set_section_contents): Call memcpy if
1868 section->contents set and location not equal to contents plus offset.
1869
aebad5fe
KH
18702000-11-08 Kazu Hirata <kazu@hxi.com>
1871
8546af74
KH
1872 * bfd-in.h: Fix formatting.
1873 * bfd-in2.h: Likewise.
1874 * bfd.c: Likewise.
aebad5fe
KH
1875 * binary.c: Likewise.
1876 * bout.c: Likewise.
346ceb11
KH
1877 * coff-a29k.c: Likewise.
1878 * coff-alpha.c: Likewise.
1879 * coff-apollo.c: Likewise.
1880 * coff-aux.c: Likewise.
aebad5fe 1881
0ef5a5bd
KH
18822000-11-07 Kazu Hirata <kazu@hxi.com>
1883
1884 * aix386-core.c: Fix formatting.
1885 * aoutf1.h: Likewise.
1886 * aoutx.h: Likewise.
1887 * archures.c: Likewise.
1888 * armnetbsd.c: Likewise.
1889
d562d2fb
AM
18902000-11-07 Alan Modra <alan@linuxcare.com.au>
1891
1892 * coff-h8300.c (special): Adjust reloc address.
1893
bbe66d08
JW
18942000-11-06 Steve Ellcey <sje@cup.hp.com>
1895
4efc3e05 1896 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
1897 to differentiate elf32 and elf64 on ia64.
1898 * bfd-in2.h: Regenerate.
1899 * config.bfd: Add target for "ia64*-*-hpux*".
1900 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1901 * configure: Regenerate.
4efc3e05 1902 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
1903 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1904
1905 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1906 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1907 * Makefile.in: Regnerate.
4efc3e05 1908 * elf64-ia64.c: Deleted.
bbe66d08
JW
1909 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1910
c4dfa77f
KH
19112000-11-06 Kazu Hirata <kazu@hxi.com>
1912
1913 * aout-adobe.c: Fix formatting.
1914 * aout-arm.c: Likewise.
1915 * aout-cris.c: Likewise.
1916 * aout-encap.c: Likewise.
1917 * aout-ns32k.c: Likewise.
1918 * aout-target.h: Likewise.
1919 * aout-tic30.c: Likewise.
1920
cf919dfd
PB
19212000-11-05 Philip Blundell <philb@gnu.org>
1922
1923 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1924 BFDs containing no sections to be merged, regardless of their flags.
1925
19262000-11-04 Philip Blundell <philb@gnu.org>
1927
1928 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1929 if a relocation for an undefined symbol also results in an
1930 overflow.
1931
8d88c4ca 19322000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
1933
1934 * config.bfd: Add support for Sun Chorus.
1935
46d59bfa
DB
19362000-11-05 David O'Brien <obrien@FreeBSD.org>
1937
1938 * configure.in: Recognize alpha-*-freebsd*.
1939 * configure: Regenerate.
1940
d952f17a 19412000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
1942
1943 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1944 (Chunk): New global variable set by a parameter in objcopy.c.
1945 (S3Forced): New global variable set by a parameter in
1946 objcopy.c.
1947 (srec_set_section_contents): If S3Forced is true, always generate
1948 S3 records.
1949 (srec_write_section): Use 'Chunk' to limit maximum length of S
1950 records.
1951
59ff2774
NC
19522000-11-02 Per Lundberg <plundis@chaosdev.org>
1953
1954 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1955 * Makefile.in: Regenerate.
1956 * bfd-in2.h: Regenerate.
1957 * po/bfd.pot: Regenerate.
d952f17a 1958
ee43f35e
PB
19592000-10-31 Philip Blundell <philb@gnu.org>
1960
1961 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1962 EF_SOFT_FLOAT if it is defined.
1963
1006ba19
PB
19642000-10-27 Philip Blundell <philb@gnu.org>
1965
1966 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1967 attempts to mix PIC code with non-PIC, just mark the output as
1968 being position dependent.
d952f17a
AM
1969 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1970 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 1971 all mismatches, not just the first one.
d952f17a 1972
c4920b97
NC
19732000-10-25 Chris Demetriou <cgd@sibyte.com>
1974
1975 * ieee.c (ieee_archive_p): Plug one of many possible
1976 memory leaks in error handling.
1977
19f7b010
JJ
19782000-10-20 Jakub Jelinek <jakub@redhat.com>
1979
1980 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1981 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1982 Support v8plusb.
1983 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1984 sparc64_elf_object_p): Support v9b.
1985 * archures.c: Declare v8plusb and v9b machines.
1986 * bfd-in2.h: Ditto.
1987 * cpu-sparc.c: Ditto.
1988
e1e0340b
GK
19892000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1990
ea5fbc67
GK
1991 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1992 of a GOT reloc.
1993
e1e0340b
GK
1994 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1995 (SYMBOL_CALLS_LOCAL): New macro.
1996 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1997 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1998 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1999 (ppc_elf_relocate_section): Use flag variable to determine
2000 whether the relocation refers to a local symbol.
2001 Test whether a PLTREL24 reloc will produce a reloc by looking
2002 to see whether a PLT entry was made.
2003
a4b120e1
GK
20042000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2005
2006 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2007 entries that could serve as a definition for a weak symbol.
2008
5af5b85b
UC
20092000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2010
2011 From Ralf Baechle <ralf@gnu.org>
2012
2013 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2014 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2015 against local symbols.
2016 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 2017
3ef20aaa
AM
20182000-10-12 Alan Modra <alan@linuxcare.com.au>
2019
24376d1b
AM
2020 * section.c (struct sec): Add kept_section.
2021 (struct bfd_comdat_info): Remove sec, we can use above.
2022 (STD_SECTION): Add initializer.
2023 (bfd_make_section_anyway): Init here too.
2024
2025 * bfd-in2.h: Regenerate.
2026
2027 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 2028 zeroing of `flags'.
24376d1b
AM
2029 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2030 fudge values for discarded link-once section symbols.
2031
3ef20aaa
AM
2032 * elf64-hppa.c: Include alloca-conf.h
2033
c0e219cc
AM
20342000-10-11 Alan Modra <alan@linuxcare.com.au>
2035
d01e2a23
AM
2036 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2037
c0e219cc
AM
2038 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2039
fe268b66
AM
20402000-10-10 Alan Modra <alan@linuxcare.com.au>
2041
2042 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2043
4d7ce4dd
AM
20442000-10-10 Tom Rix <trix@redhat.com>
2045
d952f17a 2046 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
2047 newsect->symbol fails to alloc. Use bfd_release instead of free.
2048
f3b6f7c3
RH
20492000-10-09 Richard Henderson <rth@cygnus.com
2050
2051 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2052 (elf64_ia64_unwind_entry_compare): New.
2053 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2054
44852b19
AM
20552000-10-07 Alan Modra <alan@linuxcare.com.au>
2056
fc8c40a0
AM
2057 * elflink.h (size_dynamic_sections): Don't create various tags if
2058 .dynstr is excluded from the link. Don't set first dynsym entry
2059 if dynsymcount is zero.
2060 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2061 .dynsym excluded from the link. Don't try to write any dynamic
2062 sections excluded from the link.
2063
44852b19
AM
2064 * elf.c (swap_out_syms): Handle global section symbols.
2065
3e4554a2
DD
20662000-10-05 DJ Delorie <dj@redhat.com>
2067
2068 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2069 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2070 (coff_write_relocs): write extended reloc count
2071 (coff_write_object_contents): account for extended relocs
2072
fa152c49
JW
20732000-10-05 Jim Wilson <wilson@cygnus.com>
2074
2075 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2076 field.
2077 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2078 elf_backend_section_flags function.
2079 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2080 code.
2081 (elf64_ia64_section_flags): New function containing flag conversion
2082 code.
2083 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2084 * elfxx-target.h (elf_backend_section_flags): Define.
2085 (elfNN_bed): Initialize elf_backend_section_flags field.
2086
36605136
AM
20872000-10-02 Alan Modra <alan@linuxcare.com.au>
2088
2089 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2090 _bfd_elf32_gc_record_vtable. Correct a comment.
2091
4b6609a0
UC
20922000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2093
2094 From Ralf Baechle <ralf@gnu.org>
2095
2096 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2097 produces binaries with got[1] = 0x80000001 to differenciate them
2098 for the dynamic linker from the broken binaries produced by old
2099 versions.
36605136 2100
f572a39d
AM
21012000-09-30 Petr Sorfa <petrs@sco.com>
2102
2103 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2104 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2105 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2106 * configure: Regenerate.
2107
4da81684
HPN
21082000-09-27 Hans-Peter Nilsson <hp@axis.com>
2109
2110 Define two bfd_targets for absence and presence of leading
2111 underscore on symbols. Make sure to only link same kind.
2112 * elf32-cris.c (cris_elf_object_p,
2113 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2114 cris_elf_merge_private_bfd_data): New.
2115 (elf_backend_object_p, elf_backend_final_write_processing,
2116 bfd_elf32_bfd_print_private_bfd_data,
2117 bfd_elf32_bfd_merge_private_bfd_data): Define.
2118 <Target vector definition>: Include elf32-target.h twice with
2119 different macro settings:
2120 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2121 bfd_elf32_us_cris_vec.
2122 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2123 (elf_symbol_leading_char): First as 0, then '_'.
2124 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2125 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2126 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2127 * configure: Regenerate.
2128 * targets.c: Declare bfd_elf32_us_cris_vec.
2129 * po/bfd.pot: Regenerate.
2130
9a5aca8c
AM
21312000-09-29 Momchil Velikov <velco@fadata.bg>
2132
2133 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2134 R_ARM_THM_PC22 relocations.
2135
512a2384
AM
21362000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2137
2138 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2139
6c99a5c3
AM
21402000-09-29 Momchil Velikov <velco@fadata.bg>
2141
2142 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2143 is has the SEC_HAS_CONTENTS flag set.
2144