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