2001-05-18 H.J. Lu <hjl@gnu.org>
[binutils-gdb.git] / bfd / ChangeLog
1 2001-05-18 H.J. Lu <hjl@gnu.org>
2
3 * elflink.h (elf_link_add_object_symbols): Revert the last
4 change.
5
6 2001-05-17 Alan Modra <amodra@one.net.au>
7
8 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
9 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
10 (hppa_build_one_stub): Add an assert to check plt.offset.
11
12 2001-05-17 H.J. Lu <hjl@gnu.org>
13
14 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
15 version definition to basename of the output filename.
16
17 2001-05-17 H.J. Lu <hjl@gnu.org>
18
19 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
20 basename of the bfd filename.
21
22 2001-05-16 Alan Modra <amodra@one.net.au>
23
24 * section.c (asection): Add linker_has_input field.
25 (STD_SECTION): Adjust initialization to suit.
26 * ecoff.c (bfd_debug_section): Likewise.
27 * bfd-in2.h: Regenerate.
28
29 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
30
31 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
32 negative 32-bit operands to 16 operands when the operand is
33 going to be zero-extended by the modified opcode.
34
35 2001-05-12 Peter Targett <peter.targett@arccores.com>
36
37 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
38 name for 'arc5' core versions.
39 (bfd_arc_arch): Make bfd_mach_arc_6 default.
40
41 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
42 architecture.
43 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
44
45 2001-05-11 Jakub Jelinek <jakub@redhat.com>
46
47 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
48 sections as well.
49 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
50 to .gnu.linkonce.t.FOO text section.
51
52 2001-05-11 Jakub Jelinek <jakub@redhat.com>
53
54 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
55 fields, change sec into secinfo.
56 (struct sec_merge_info): Add chain, remove last fields.
57 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
58 (sec_merge_hash_lookup): If lookup could not use a string only
59 because it has bad alignment, mark the old string for deletion.
60 (sec_merge_add): Add secinfo argument. Don't compute entry's
61 position, instead record the section.
62 (sec_merge_emit): Update for the sec into secinfo change in
63 struct sec_merge_hash_entry.
64 (_bfd_merge_section): Only record the section for merging, defer
65 putting strings into the hash table.
66 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
67 _bfd_merge_sections): New functions.
68 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
69 changes.
70 * libbfd-in.h (_bfd_merge_sections): Add prototype.
71 (_bfd_nolink_bfd_merge_sections): Define.
72 * libbfd.h: Likewise.
73 (bfd_generic_merge_sections): Add prototype.
74 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
75 (struct bfd_target): Likewise.
76 * bfd.c (bfd_merge_sections): Define.
77 * bfd-in2.h: Rebuilt.
78 * elf.c (_bfd_elf_merge_sections): New function.
79 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
80 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
81 * reloc.c (bfd_generic_merge_sections): New function.
82 * vms.c (vms_bfd_merge_sections): New function.
83 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
84 * aout-target.h (MY_bfd_merge_sections): Define.
85 * aout-tic30.c (MY_bfd_merge_sections): Define.
86 * binary.c (binary_bfd_merge_sections): Define.
87 * bout.c (b_out_bfd_merge_sections): Define.
88 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
89 * coffcode.c (coff_bfd_merge_sections): Define.
90 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
91 * i386msdos.c (msdos_bfd_merge_sections): Define.
92 * i386os9k.c (os9k_bfd_merge_sections): Define.
93 * ieee.c (ieee_bfd_merge_sections): Define.
94 * ihex.c (ihex_bfd_merge_sections): Define.
95 * nlm-target.h (nlm_bfd_merge_sections): Define.
96 * oasys.c (oasys_bfd_merge_sections): Define.
97 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
98 * som.c (som_bfd_merge_sections): Define.
99 * srec.c (srec_bfd_merge_sections): Define.
100 * tekhex.c (tekhex_bfd_merge_sections): Define.
101 * versados.c (versados_bfd_merge_sections): Define.
102 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
103
104 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
105
106 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
107 to be unsigned long, in order to match its use.
108
109 2001-05-10 H.J. Lu <hjl@gnu.org>
110
111 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
112 indirect symbols.
113
114 2001-05-09 H.J. Lu <hjl@gnu.org>
115
116 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
117 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
118 Remove the unused veriable `dynver'.
119
120 2001-05-08 Ian Lance Taylor <ian@zembu.com>
121
122 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
123 NULL or is not COFF.
124 (coff_i386_rtype_to_howto): Don't dump core if output section
125 owner is not COFF.
126
127 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
128
129 * ecoff.c (bfd_debug_section): Fix initialization.
130 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
131 is always a positive integer. Cast away sign mismatch.
132 * elf32-mips.c: Fix misleading comment and typo.
133 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
134 correct data type.
135 * elflink.c: Fix typo.
136 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
137 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
138
139 2001-05-04 Richard Henderson <rth@redhat.com>
140
141 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
142
143 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
144
145 * elf32-arm.h (elf32_arm_final_link_relocate): Set
146 EF_ARM_HASENTRY if the start address is set.
147
148 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
149
150 * targets.c (_bfd_target_vector_entries): Compute value based on
151 the size of the _bfd_target_vector and not bfd_target_vector.
152
153 2001-05-03 H.J. Lu <hjl@gnu.org>
154
155 * elfcode.h: Include "libiberty.h".
156
157 * elflink.h (elf_link_add_object_symbols): Set
158 elf_dt_name (abfd) to basename of the bfd filename.
159 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
160 of the bfd filename.
161
162 2001-05-03 Andreas Jaeger <aj@suse.de>
163
164 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
165 (elf_generic_info_to_howto_rel): Likewise.
166 * coff-alpha.c (reloc_nil): Likewise.
167 (alpha_ecoff_bad_format_hook): Likewise.
168 (alpha_adjust_reloc_out): Likewise.
169 (alpha_bfd_reloc_type_lookup): Likewise.
170 (alpha_convert_external_reloc): Likewise.
171 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
172 (elf64_alpha_reloc_bad): Likewise.
173 (elf64_alpha_reloc_gpdisp): Likewise.
174 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
175 (elf64_alpha_info_to_howto): Likewise.
176 (elf64_alpha_add_symbol_hook): Likewise.
177 (elf64_alpha_create_got_section): Likewise.
178 (elf64_alpha_is_local_label_name): Likewise.
179 (elf64_alpha_merge_ind_symbols): Likewise.
180 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
181 (mips_elf64_get_reloc_upper_bound): Likewise.
182 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
183 (nlm_alpha_get_public_offset): Likewise.
184
185 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
186
187 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
188 about overflow in R_OPENRISC_LO_16_IN_INSN and
189 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
190
191 2001-04-30 H.J. Lu <hjl@gnu.org>
192
193 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
194 only for ELF_LINK_FORCED_LOCAL.
195 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
196 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
197 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
198
199 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
200 if the symbol has hidden or internal visibility.
201
202 2001-04-30 Alan Modra <amodra@one.net.au>
203
204 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
205 calls to undefined weak symbols.
206
207 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
208
209 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
210 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
211
212 2001-04-27 Andreas Jaeger <aj@suse.de>
213
214 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
215 out handled entries.
216 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
217 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
218 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
219 GOT32.
220
221 2001-04-27 Sean McNeil <sean@mcneil.com>
222
223 * config.bfd: Add arm-vxworks target.
224 * coff-arm (coff_arm_relocate_section): Add in symbol value to
225 addend (fro VXworks targets).
226
227 2001-04-26 H.J. Lu <hjl@gnu.org>
228
229 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
230 valid.
231
232 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
233
234 * bfd-in.h (bfd_cache_close): Declare newly exported function.
235 * bfd-in2.h: Regenerated.
236
237 2001-04-24 Jakub Jelinek <jakub@redhat.com>
238
239 * merge.c (struct sec_merge_hash_entry): Add alignment field.
240 (struct sec_merge_hash): Remove alignment_power.
241 (sec_merge_hash_newfunc): Clear alignment.
242 (sec_merge_hash_lookup): Pass alignment as argument.
243 Use hashp->root.next, not hashp->next to walk the hash chain.
244 If a string already in the hashtable does not have required
245 alignment, create a new hashtable entry.
246 (sec_merge_init): Remove alignment_power argument.
247 (sec_merge_add): Add alignment argument.
248 (sec_merge_emit): Alignment is now a per-entity thing, not per
249 section.
250 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
251 for proper alignment.
252 Pass alignment information to sec_merge_add.
253
254 2001-04-24 Christian Groessler <cpg@aladdin.de>
255
256 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
257 and R_REL16 reloc types; accept odd values for R_REL16 type
258
259 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
260
261 * cpu-openrisc.c: New file.
262 * elf32-openrisc.c: Likewise.
263
264 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
265 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
266 (BFD32_BACKENDS): Add elf32-openrisc.lo.
267 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
268 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
269 * Makefile.in: Regenerated.
270 * config.bfd: (openrisc-*-elf): New target.
271 * configure.in (bfd_elf32_openrisc_vec): New vector.
272 * configure: Regenerated.
273 * libbfd.h: Regenerated.
274 * bfd-in2.h: Regenerated.
275 * reloc.c: Add OpenRISC relocations.
276 * targets.c (bfd_elf32_openrisc_vec): Declare.
277 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
278 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
279 (bfd_openrisc_arch): Declare.
280 (bfd_archures_list): Add bfd_openrisc_arch.
281 * elf.c (prep_headers): Add bfd_arch_openrisc.
282
283 2001-04-23 Bo Thorsen <bo@suse.de>
284
285 * elf64-x86-64.c: Add c++ vtable hack.
286 Small whitespace and comment changes.
287
288 2001-04-19 Andreas Jaeger <aj@suse.de>
289
290 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
291 (elf64_x86_64_plt_entry): Likewise.
292 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
293 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
294
295 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
296
297 * elf32-cris.c: Tweak comments related to dynamic linking.
298 (cris_elf_relocate_section): When not creating shared object, fill
299 in the .got table for any symbol not in the dynamic symbol table.
300 (elf_cris_finish_dynamic_symbol): When not creating shared object,
301 only emit a .got.rela reloc if the symbol is in the dynamic symbol
302 table.
303 (cris_elf_check_relocs): Use variable r_type in all places rather
304 than the original expression. Add default case in switch for
305 reloc types.
306 (elf_cris_size_dynamic_sections): Iterate over
307 elf_cris_discard_excess_program_dynamics when not creating shared
308 library.
309 (elf_cris_discard_excess_dso_dynamics): Renamed from
310 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
311 (elf_cris_discard_excess_program_dynamics): New.
312
313 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
314
315 * coffcode.h (coff_write_object_contents): Use
316 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
317
318 2001-04-14 H.J. Lu <hjl@gnu.org>
319
320 * bfd-in2.h: Regenerate.
321
322 2001-04-14 Jakub Jelinek <jakub@redhat.com>
323
324 * section.c (STD_SECTION): Add entsize.
325
326 2001-04-13 H.J. Lu <hjl@gnu.org>
327
328 * section.c (SEC_MERGE): Define new flag for merging.
329 (SEC_STRINGS): Likewise.
330 (entsize): New field.
331
332 2001-04-13 Roger Sayle <roger@metaphorics.com>
333
334 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
335 flag on pe-i386 targets.
336
337 2001-04-13 Jakub Jelinek <jakub@redhat.com>
338
339 * libbfd-in.h (_bfd_merge_section): New.
340 (_bfd_write_merged_section): New.
341 (_bfd_merged_section_offset): New.
342 * libbfd.h: Rebuilt.
343 * linker.c (_bfd_generic_link_output_symbols): Handle
344 discard_sec_merge.
345 * aoutx.h (aout_link_write_symbols): Likewise.
346 * pdp11.c (aout_link_write_symbols): Likewise.
347 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
348 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
349 sections.
350 (elf_link_sec_merge_syms): New.
351 (elf_link_input_bfd): Call _bfd_merged_section_offset
352 and _bfd_write_merged_section.
353 Handle discard_sec_merge.
354 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
355 field.
356 (struct bfd_elf_section_data): Likewise.
357 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
358 SEC_STRINGS section flags and entsize from their ELF counterparts.
359 (_bfd_elf_link_hash_table_init): Initialize merge_info.
360 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
361 from their BFD counterparts.
362 * merge.c: New file.
363 * Makefile.am: Add strtab.lo.
364 * Makefile.in: Rebuilt.
365
366 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
367
368 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
369 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
370
371 2001-04-05 Steven J. Hill <sjhill@cotw.com>
372
373 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
374 endian MIPS ELF target.
375 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
376 MIPS ELF target.
377
378 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
379 64bit big endian MIPS ELF target.
380 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
381 endian MIPS ELF target.
382 * configure: Regenerated.
383
384 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
385 little endian targets.
386 (mips_elf_sym_is_global): Handle traditional targets.
387
388 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
389 64bit big endian MIPS ELF target.
390 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
391 endian MIPS ELF target.
392
393 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
394 and bfd_elf64_tradlittlemips_vec.
395
396 2001-04-05 David Mosberger <davidm@hpl.hp.com>
397
398 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
399 ordinary "progbits" section.
400
401 2001-04-04 Alan Modra <alan@linuxcare.com.au>
402
403 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
404 when -Bsymbolic causes a symbol to no longer need a .plt entry.
405
406 2001-04-03 David Mosberger <davidm@hpl.hp.com>
407
408 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
409
410 2001-03-30 H.J. Lu <hjl@gnu.org>
411
412 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
413 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
414
415 2001-03-26 H.J. Lu <hjl@gnu.org>
416
417 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
418 if there are any relocations for generic ELF.
419 (bfd_elf32_bfd_link_add_symbols): Defined to
420 elf32_generic_link_add_symbols.
421 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
422 if there are any relocations for generic ELF.
423 (bfd_elf64_bfd_link_add_symbols): Defined to
424 elf64_generic_link_add_symbols.
425
426 2001-03-23 Nick Clifton <nickc@redhat.com>
427
428 * Makefile.am (BUILD_CFILES): New variable: List of C source
429 files created in build directory.
430 (BUILD_HFILES): New variable: List of header files created in
431 build directory.
432 (POTFILES): Delete.
433 (po/POTFILES.in): Replace rule with empty entry.
434 (po/SRC-POTFILES.in): New rule: Create a list of source files
435 in the source directory.
436 (po/BLD-POTFILES.in): New rule: Create a list of source files
437 in the build directory.
438 (MOSTLYCLEAN): Do not delete source files created in build
439 directory.
440 * Makefile.in: Regenerate.
441 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
442 into po/Makefile.
443 * configure: Regenerate.
444
445 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
446 and BLD_POTFILES.
447 Add .. to the search path when building bfd.pot.
448 Delete POTFILES when performing distclean.
449 Add comment describing why distclean is broken in maintainer mode.
450 * po/POTFILES.in: Delete.
451 * po/SRC-POTFILES.in: New file.
452 * po/BLD-POTFILES.in: New file.
453 * po/bfd.pot: Regenerate.
454
455 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
456
457 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
458 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
459 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
460 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
461 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
462 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
463 functions.
464 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
465 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
466 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
467 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
468 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
469 New HOWTO members for new relocs.
470 (cris_reloc_map): Map new relocs.
471 (ELF_DYNAMIC_INTERPRETER): Define.
472 (PLT_ENTRY_SIZE): Define.
473 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
474 elf_cris_pic_plt_entry): New, PLT templates.
475 (struct elf_cris_pcrel_relocs_copied, struct
476 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
477 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
478 (cris_final_link_relocate): Check that 16-bit GOT relocs have
479 positive values. Adjust PCREL relocs to be relative to location
480 after relocation.
481 (cris_elf_relocate_section): Handle relocations to dynamic
482 objects. Handle new relocations. Call error handler when seeing
483 non-PIC relocation for read-only sections while generating shared
484 object.
485 (cris_elf_check_relocs): Set reference counts for GOT and PLT
486 entries.
487 (bfd_elf32_bfd_link_hash_table_create,
488 elf_backend_adjust_dynamic_symbol,
489 elf_backend_size_dynamic_sections,
490 elf_backend_finish_dynamic_symbol,
491 elf_backend_finish_dynamic_sections,
492 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
493 elf_backend_hide_symbol, elf_backend_want_got_plt,
494 elf_backend_plt_readonly, elf_backend_want_plt_sym,
495 elf_backend_got_header_size, elf_backend_plt_header_size):
496 Define.
497
498 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
499 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
500 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
501 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
502 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
503 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
504 * bfd-in2.h, libbfd.h: Regenerate.
505
506 2001-03-21 Diego Novillo <dnovillo@redhat.com>
507
508 (_bfd_mips_elf_relocate_section): Give a better error message when
509 a relocation is not recognized.
510
511 2001-03-21 Alan Modra <alan@linuxcare.com.au>
512
513 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
514 non-NULL before attempting to dereference.
515
516 2001-03-20 H.J. Lu <hjl@gnu.org>
517
518 * configure.in: Remove the redundent AC_ARG_PROGRAM.
519 * configure: Rebuild.
520
521 2001-03-20 Andreas Schwab <schwab@suse.de>
522
523 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
524 relocation value when resolving a reference from a debugging
525 section.
526
527 2001-03-16 Scott Thomason <SThomaso@hii.com>
528
529 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
530 (xcoff64_swap_sym_out): Fix syntax errors.
531
532 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
533
534 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
535
536 2001-03-15 Alan Modra <alan@linuxcare.com.au>
537
538 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
539 (hppa_link_hash_newfunc): Init it.
540 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
541 section appears to be non-PIC.
542 (final_link_relocate): Likewise.
543 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
544 possible candidate function, and set pic_call for those that will
545 only have a .plt entry for the PIC call stub.
546 (hppa_handle_PIC_calls): Set maybe_pic_call.
547
548 2001-03-12 DJ Delorie <dj@redhat.com>
549
550 * elf32-sh.c (sh_elf_relocate_section): Only relocation
551 R_SH_DIR8WP* relocs if they're against external symbols, else
552 they're just for relaxing. Validate the reloc values.
553
554 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
555
556 * binary.c (bfd_external_binary_architecture): Declare.
557 (binary_object_p): If bfd_external_binary_architecture is defined,
558 set the architecture to this string.
559
560 2001-03-11 Philip Blundell <philb@gnu.org>
561
562 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
563 entries that could serve as a definition for a weak symbol.
564
565 2001-03-08 Nick Clifton <nickc@redhat.com>
566
567 * Most files: Update copyright notices using Perl script created
568 by Kevin Buettner <kevinb@redhat.com>.
569
570 2001-03-07 Nick Clifton <nickc@redhat.com>
571
572 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
573 prior patch on ! defined OLD_ARM_ABI.
574
575 2001-03-07 Andreas Jaeger <aj@suse.de>
576
577 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
578 some relocation values.
579
580 2001-03-06 Nick Clifton <nickc@redhat.com>
581
582 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
583 of offset in BLX(1) instruction.
584 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
585 offset in BLX(1) instruction.
586 Fix formatting.
587
588 2001-03-06 Nick Clifton <nickc@redhat.com>
589
590 * coff-arm.c (coff_arm_reloc_type_lookup): Add
591 BFD_RELOC_THUMB_PCREL_BLX.
592
593 2001-03-06 Igor Shevlyakov <igor@windriver.com>
594
595 * archures.c (bfd_default_scan): Add Coldfire CPUs.
596 * bfd-in2.h: Regenerate.
597 * cpu-m68k.c: Add Coldfire CPUs for arch table.
598 * ieee.c (ieee_write_processor): Set proper id for
599 Coldfire CPUs.
600
601 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
602
603 * configure.in: Add s390 target.
604 * configure: Regenerate.
605
606 2001-02-28 Andreas Jaeger <aj@suse.de>
607
608 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
609 to addend.
610
611 2001-02-28 Philip Blundell <pb@futuretv.com>
612
613 * elf32-arm.h: Update mentions of renamed EF_xx constants.
614 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
615
616 2001-02-27 H.J. Lu <hjl@gnu.org>
617
618 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
619 abfd->tdata.aout_data == NULL.
620
621 2001-02-27 Alan Modra <alan@linuxcare.com.au>
622
623 * elf32-hppa.c: Correct field selector in stub comments.
624 (clobber_millicode_symbols): Formatting fix.
625
626 * configure.in: Bump version to 2.11.90.
627 * configure: Regenerate.
628 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
629 (CFILES): $SOURCE_CFILES + generated C files.
630 (POTFILES): Include $HFILES not $SOURCE_HFILES.
631 Run "make dep-am"
632 * Makefile.in: Regenerate.
633 * doc/Makefile.in: This too.
634
635 2001-02-26 Timothy Wall <twall@cygnus.com>
636
637 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
638 comments.
639
640 2001-02-26 Nick Clifton <nickc@redhat.com>
641
642 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
643 up, replacing multiple if statements with a switch.
644 (handle_COMDAT): New function.
645
646 2001-02-26 H.J. Lu <hjl@gnu.org>
647
648 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
649 a warning for section flags we do not handle instead of
650 aborting.
651
652 2001-02-26 Andreas Jaeger <aj@suse.de>
653
654 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
655
656 2001-02-22 Timothy Wall <twall@cygnus.com>
657
658 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
659 * configure.in: Add objects for elf64_ia64_aix vectors.
660 * configure: Regenerated.
661 * configure.host: Recognize ia64-*-aix*.
662 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
663 for AIX. AIX5 requires most relocations to be dynamic (*all*
664 binaries are somewhat similar to shared libraries).
665 * targets.c: Add elf64_ia64_aix vectors.
666
667 2001-02-21 David Mosberger <davidm@hpl.hp.com>
668
669 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
670 C8 said "1" instead of "8". Clarify error string for IMM22:
671 "signed integer" instead of just "integer".
672
673 2001-02-20 Andreas Jaeger <aj@suse.de>
674
675 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
676 PLT entries that could serve as a definition for a weak symbol.
677
678 2001-02-19 Jakub Jelinek <jakub@redhat.com>
679
680 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
681 entries that could serve as a definition for a weak symbol.
682 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
683
684 2001-02-18 David O'Brien <obrien@FreeBSD>
685
686 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
687 FreeBSD/i386-CURRENT differently until I can figure out the needed
688 corefile changes.
689 * configure: Regenerate.
690 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
691 FreeBSD/PowerPC, and FreeBSD/sparc64.
692
693 2001-02-18 lars brinkhoff <lars@nocrew.org>
694
695 * Makefile.am: Add PDP-11 a.out target.
696 * config.bfd: Likewise.
697 * configure.in: Likewise.
698 * targets.c: Likewise.
699 * archures.c: Likewise.
700 * bfd-in2.h: Likewise. Add PDP-11 relocations.
701 * libbfd.h: Add PDP-11 relocations.
702 * reloc.c: Likewise.
703 * cpu-pdp11.c: New file.
704 * pdp11.c: New file.
705
706 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
707 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
708 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
709 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
710 (GET_MAGIC): New macro.
711 (PUT_MAGIC): Likewise.
712 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
713
714 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
715
716 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
717 multiarch needs it).
718
719 2001-02-18 H.J. Lu <hjl@gnu.org>
720
721 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
722 index.
723
724 2001-02-18 Kazu Hirata <kazu@hxi.com>
725
726 * vms-misc.c: Fix formatting.
727
728 2001-02-16 Kazu Hirata <kazu@hxi.com>
729
730 * vms.c: Fix formatting.
731
732 2001-02-14 H.J. Lu <hjl@gnu.org>
733
734 * elf.c (elf_find_function): New function.
735 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
736 the file name and function name.
737
738 2001-02-14 Nick Clifton <nickc@redhat.com>
739
740 * ecoff.c (bfd_debug_section): Update to initialise new fields in
741 asection structure.
742
743 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
744 (BFD64_BACKENDS): Add pepigen.c
745 Add rules to create peigen.c and pepigen.c from peXXigen.c.
746
747 * Makefile.in: Regenerate.
748 * configure: Regenerate.
749 * po/POTFILES.in: Regenerate.
750 * po/bfd.pot: Regenerate.
751
752 2001-02-14 H.J. Lu <hjl@gnu.org>
753
754 * libcoff-in.h (pe_tdata): Add members target_subsystem and
755 force_minimum_alignment.
756
757 2001-02-14 Bo Thorsen <bo@suse.de>
758
759 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
760 (elf64_86_64_size_info): Struct added to fix a problem
761 with the hashtable string entries.
762 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
763 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
764 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
765 remove the FIXME for this.
766 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
767 section. Also removed the FIXME for it.
768 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
769 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
770 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
771
772 2001-02-13 Richard Henderson <rth@redhat.com>
773
774 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
775 and not user provided.
776
777 2001-02-13 Kazu Hirata <kazu@hxi.com>
778
779 * vms.c (vms_print_symbol): Remove unreachable code.
780
781 * rs6000-core.c: Fix formatting.
782
783 2001-02-13 David Mosberger <davidm@hpl.hp.com>
784
785 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
786 as _bfd_XXi_only_swap_filehdr_out.
787 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
788 pe->force_minimum_alignment to TRUE.
789 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
790 PEI_TARGET_SUBSYSTEM.
791 (pe_print_private_bfd_data): Call
792 _bfd_XX_print_private_bfd_data_common() instead of
793 _bfd_pe_print_private_bfd_data_common().
794 (pe_bfd_copy_private_bfd_data): Call
795 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
796 _bfd_pe_bfd_copy_private_bfd_data_common().
797 (coff_bfd_copy_private_section_data): Define as
798 _bfd_XX_bfd_copy_private_section_data instead of
799 _bfd_pe_bfd_copy_private_section_data.
800 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
801 of a _bfd_pe_get_symbol_info.
802
803 * peigen.c: Delete.
804
805 * peXXigen.c: Renamed from peigen.c.
806 (COFF_WITH_XX): Define this macro (will get expanded into
807 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
808 compiled as peigen.c or pepigen.c.
809 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
810 define the canonical PEP structures and definitions.
811 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
812 effect, enforce minimum file and section alignments. If
813 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
814 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
815 so, by default, this is a no-op).
816
817 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
818 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
819 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
820 _bfd_pefoo if it's not defined. Use these macros to define
821 coff swap macros.
822
823 * libcoff.h (pe_tdata): Add members target_subsystem and
824 force_minimum_alignment.
825
826 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
827 COFF_WITH_pep.
828 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
829
830 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
831 peigen.lo.
832
833 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
834 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
835 PEPAOUTHDR.
836
837 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
838 (BFD64_BACKENDS_CFILES): Mention pepigen.c
839 (peigen.c): Add rule to generate from peXXigen.c.
840 (pepigen.c): Ditto.
841 (pepigen.lo): List dependencies for pepigen.lo.
842
843 2001-02-13 Alan Modra <alan@linuxcare.com.au>
844
845 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
846 $global$ referenced but not defined, set its value here.
847
848 2001-02-09 Bo Thorsen <bo@suse.de>
849
850 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
851 alignment to 3.
852 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
853 and relocation.
854 (elf64_x86_64_relocate_section): Fix formatting.
855 (elf64_x86_64_relocate_section): Fix addend for relocation of
856 R_X86_64_(8|16|32|PC8|PC16|PC32).
857
858 2001-02-12 Jan Hubicka <jh@suse.cz>
859
860 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
861
862 2001-02-11 H.J. Lu <hjl@gnu.org>
863
864 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
865 alignment.
866
867 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
868
869 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
870 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
871 relocations against dynsym symbols.
872
873 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
874 the R_MIPS_26 relocation.
875 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
876 the R_MIPS_26 relocation.
877 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
878 relocation.
879 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
880 the R_MIPS_26 relocation.
881 (mips_elf64_howto_table_rela): Likewise.
882
883 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
884 member to mark symbols that have non-CALL relocations against
885 them.
886 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
887 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
888 R_MIPS_GOT16.
889 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
890 non-CALL relocation against it is encountered.
891 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
892 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
893 no_fn_stub is not set.
894
895 * elf32-mips.c (mips_elf_output_extsym): Get the output section
896 information from the real symbol for indirect ones.
897 Check no_fn_stub to find out if a symbol has a function stub
898 indeed.
899
900 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
901
902 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
903 * Makefile.in: Regenerate.
904
905 2001-02-09 David Mosberger <davidm@hpl.hp.com>
906
907 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
908 true if section name is an unwind table section name.
909 (elfNN_ia64_additional_program_headers): Count each unwind section
910 separately.
911 (elfNN_ia64_modify_segment_map): Install one unwind program header
912 for each unwind separate section. Note: normally the linker
913 script merges the unwind sections that go into a single segment,
914 so this still generates at most one unwind program header per
915 segment.
916
917 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
918 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
919 (elfNN_ia64_fake_sections): Mark sections with names that start
920 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
921 unwind section.
922
923 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
924 Use it to make sh_info in unwind section point to the text section
925 it applies to.
926
927 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
928
929 * Makefile.am: Add linux target for S/390.
930 * archures.c: Likewise.
931 * bfd-in2.h: Likewise.
932 * config.bfd: Likewise.
933 * configure.in: Likewise.
934 * elf.c: Likewise.
935 * libbfd.h: Likewise.
936 * targets.c: Likewise.
937 * cpu-s390.c: New file.
938 * elf32-s390.c: New file.
939 * elf64-s390.c: New file.
940
941 2001-02-09 Nick Clifton <nickc@redhat.com>
942
943 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
944 ImageBase. This has already been done by coff_swap_hdr_in.
945
946 2001-02-09 Jakub Jelinek <jakub@redhat.com>
947
948 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
949
950 2001-02-09 Jakub Jelinek <jakub@redhat.com>
951
952 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
953 (sparc64_elf_relocate_section): Likewise.
954
955 2001-02-09 Mark Kettenis <kettenis@gnu.org>
956
957 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
958 similar to R_SPARC_32.
959 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
960
961 2001-02-08 H.J. Lu <hjl@gnu.org>
962
963 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
964 relocation entries for weak definitions when building DSO with
965 -Bsymbolic.
966
967 2001-02-08 Richard Henderson <rth@redhat.com>
968
969 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
970 before visibility. Locally defined protected symbols are not
971 dynamic.
972
973 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
974
975 * config.bfd: Enable coff64 for rs6000-*. Patch from
976 <hzoli@austin.ibm.com>.
977
978 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
979
980 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
981 found, do not attempt to find dwarf2 info before returning.
982
983 2001-02-07 Jakub Jelinek <jakub@redhat.com>
984
985 * elflink.h (is_global_symbol_definition): Rename to
986 is_global_data_symbol_definition and have it reject function
987 symbols.
988 (elf_link_is_defined_archive_symbol): Use renamed function.
989
990 2001-02-07 Todd Vierling <tv@wasabisystems.com>
991
992 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
993 * libbfd.h (bfd_target_vector): Likewise.
994 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
995 make static; create pointer reference named bfd_target_vector.
996 (_bfd_target_vector_entries): Calculate this based on the array
997 typed _bfd_target_vector.
998
999 2001-02-06 H.J. Lu <hjl@gnu.org>
1000
1001 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1002 internal symbols are not dynamic.
1003 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1004
1005 2001-02-06 Nick Clifton <nickc@redhat.com>
1006
1007 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1008 that it will not be pulled into the list of files that make up
1009 po/POTFILES.in.
1010 * Makefile.in: Regenerate.
1011 * po/bfd.pot: Regenerate.
1012
1013 2001-02-06 H.J. Lu <hjl@gnu.org>
1014
1015 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1016 checking.
1017 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1018 external_PEI_IMAGE_hdr.
1019
1020 2001-02-06 Kazu Hirata <kazu@hxi.com>
1021
1022 * elf-m10200.c: Fix formatting.
1023
1024 2001-02-04 Nick Clifton <nickc@redhat.com>
1025
1026 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1027 rel, it will be handled later on.
1028
1029 2001-02-02 Fred Fish <fnf@ninemoons.com>
1030
1031 * Makefile.in: Fix typo.
1032
1033 2001-02-01 Kazu Hirata <kazu@hxi.com>
1034
1035 * elf-m10300.c: Fix formatting.
1036
1037 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1038
1039 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1040 (elf_backend_get_symbol_type): Define.
1041 (elf64_hppa_object_p): Set architecture and machine from elf
1042 header flags.
1043
1044 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1045
1046 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1047 before mdebug.
1048
1049 2001-01-26 Richard Henderson <rth@redhat.com>
1050
1051 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1052 for non-default visibility.
1053 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1054 delete ugly macro and replace with pretty function.
1055
1056 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1057
1058 * coff-go32.c: Update copyright.
1059 * coff-stgo32.c: Likewise.
1060 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1061 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1062 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1063 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1064
1065 2001-01-25 Kazu Hirata <kazu@hxi.com>
1066
1067 * bfd-in2.h: Rebuild.
1068 * libbfd.h: Likewise.
1069
1070 2001-01-23 H.J. Lu <hjl@gnu.org>
1071
1072 * bfd-in2.h: Rebuild.
1073
1074 2001-01-23 H.J. Lu <hjl@gnu.org>
1075
1076 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1077 is NULL or PRIV(vms_rec) is outside of the buffer.
1078
1079 2001-01-23 Kazu Hirata <kazu@hxi.com>
1080
1081 * coff64-rs6000.c: Fix formatting.
1082 * coff-arm.c: Likewise.
1083 * coffgen.c: Likewise.
1084 * cofflink.c: Likewise.
1085 * coff-mcore.c: Likewise.
1086 * coff-mips.c: Likewise.
1087 * coff-pmac.c: Likewise.
1088 * coff-ppc.c: Likewise.
1089 * coff-rs6000.c: Likewise.
1090 * elf32.c: Likewise.
1091 * elf32-fr30.c: Likewise.
1092 * elf32-i370.c: Likewise.
1093 * elf32-i860.c: Likewise.
1094 * elf32-m32r.c: Likewise.
1095 * elf32-m68k.c: Likewise.
1096 * elf32-mcore.c: Likewise.
1097 * elf32-ppc.c: Likewise.
1098 * elf32-sh.c: Likewise.
1099 * elf32-v850.c: Likewise.
1100 * elf64-alpha.c: Likewise.
1101 * elf64-sparc.c: Likewise.
1102 * elflink.c: Likewise.
1103 * elflink.h: Likewise.
1104 * elf-m10200.c: Likewise.
1105 * elf-m10300.c: Likewise.
1106 * elfxx-ia64.c: Likewise.
1107
1108 * aoutx.h: Fix formatting.
1109 * bfd.c: Likewise.
1110 * bfd-in2.h: Likewise.
1111 * bfd-in.h: Likewise.
1112 * cpu-i386.c: Likewise.
1113 * cpu-m68hc11.c: Likewise.
1114 * dwarf2.c: Likewise.
1115 * elf64-x86-64.c: Likewise.
1116 * format.c: Likewise.
1117 * freebsd.h: Likewise.
1118 * hash.c: Likewise.
1119 * hp300hpux.c: Likewise.
1120 * hppabsd-core.c: Likewise.
1121 * hpux-core.c: Likewise.
1122
1123 2001-01-22 Bo Thorsen <bo@suse.de>
1124
1125 * elf64-x86-64.c: Added PIC support for X86-64.
1126 (elf64_x86_64_link_hash_newfunc): Function added.
1127 (elf64_x86_64_link_hash_table_create): Likewise.
1128 (elf64_x86_64_check_relocs): Likewise.
1129 (elf64_x86_64_gc_mark_hook): Likewise.
1130 (elf64_x86_64_gc_sweep_hook): Likewise.
1131 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1132 (elf64_x86_64_size_dynamic_sections): Likewise.
1133 (elf64_x86_64_discard_copies): Likewise.
1134 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1135 (elf64_x86_64_finish_dynamic_sections): Likewise.
1136 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1137
1138 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1139
1140 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1141 * Makefile.in: Regenerate.
1142
1143 2001-01-21 Kazu Hirata <kazu@hxi.com>
1144
1145 * coff-a29k.c: Fix formatting.
1146
1147 2001-01-19 H.J. Lu <hjl@gnu.org>
1148
1149 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1150 relocation section names.
1151 (elf_i386_relocate_section): Report files with bad relocation
1152 section names and return false.
1153
1154 2001-01-17 Bo Thorsen <bo@suse.de>
1155
1156 * targets.c: Alphabetize list of xvecs.
1157
1158 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1159
1160 * config.bfd: Add linux target variant for elfxx-hppa.
1161 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1162 bfd_elf64_hppa_linux_vec.
1163 * configure: Regenerate.
1164 * elf64-hppa.c: Include elf64-target.h again to support linux
1165 target variant.
1166 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1167 * elf32-hppa.c: Include elf32-target.h again to support linux
1168 target variant.
1169 (elf32_hppa_post_process_headers): New function.
1170 (elf_backend_post_process_headers): Define.
1171 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1172 bfd_elf32_hppa_linux_vec.
1173
1174 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1175 and data_segment_base fields.
1176 (elf32_hppa_link_hash_table_create ): Init them.
1177 (elf32_hppa_check_relocs): Update comments.
1178 (hppa_record_segment_addr): New function.
1179 (elf32_hppa_relocate_section): Call it.
1180 (final_link_relocate): Handle R_PARISC_SEGREL32.
1181 (elf32_hppa_final_link): New function.
1182 (bfd_elf32_bfd_final_link): Define to call it.
1183 (hppa_unwind_entry_compare): New function.
1184 * cache.c (bfd_open_file): Create files in write+read mode.
1185
1186 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1187 SEGREL32 and numerous other relocs. Change duplicate
1188 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1189
1190 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1191 O_ACCMODE.
1192
1193 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1194 .plt entries for DT_INIT and DT_FINI.
1195 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1196 DT_INIT and DT_FINI.
1197
1198 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1199 offsets for stub .plt access if wide mode. Check offset in range.
1200
1201 2001-01-13 Nick Clifton <nickc@redhat.com>
1202
1203 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1204 line.
1205
1206 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1207 line.
1208
1209 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1210
1211 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1212 * configure: Regenerate.
1213
1214 2001-01-11 Peter Targett <peter.targett@arccores.com>
1215
1216 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1217 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1218 * cpu-arc.c (arch_info_struct): Add entries for variants.
1219 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1220 (arc_get_mach) Don't assume machine names prefixed arc- before
1221 testing.
1222 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1223 selections.
1224 (arc_elf_final_write_processing) Likewise.
1225 (ELF_MACHINE_CODE) Use EM_ARC.
1226
1227 2001-01-10 Nick Clifton <nickc@redhat.com>
1228
1229 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1230
1231 2001-01-07 Philip Blundell <philb@gnu.org>
1232
1233 * README: Replace `bug-gnu-utils@gnu.org' with
1234 `bug-binutils@gnu.org'.
1235
1236 2001-01-04 Kazu Hirata <kazu@hxi.com>
1237
1238 * som.c: Fix formatting.
1239
1240 2001-01-03 Kazu Hirata <kazu@hxi.com>
1241
1242 * ecoffswap.h: Fix formatting.
1243 * elf-bfd.h: Likewise.
1244 * elfarm-nabi.c: Likewise.
1245 * elfarm-oabi.c: Likewise.
1246 * elfcode.h: Likewise.
1247 * elfcore.h: Likewise.
1248 * elflink.c: Likewise.
1249 * elflink.h: Likewise.
1250 * elfxx-ia64.c: Likewise.
1251 * elfxx-target.h: Likewise.
1252 * libbfd.c: Likewise
1253 * linker.c: Likewise.
1254 * lynx-core.c: Likewise.
1255
1256 2001-01-02 Kazu Hirata <kazu@hxi.com>
1257
1258 * pc532-mach.c: Fix formatting.
1259 * pe-arm.c: Likewise.
1260 * pe-i386.c: Likewise.
1261 * pe-mips.c: Likewise.
1262 * pe-ppc.c: Likewise.
1263 * pe-sh.c: Likewise.
1264 * pei-mips.c: Likewise.
1265 * pei-sh.c: Likewise.
1266 * peicode.h: Likewise.
1267 * ppcboot.c: Likewise.
1268 * ptrace-core.c: Likewise.
1269
1270 2001-01-01 Kazu Hirata <kazu@hxi.com>
1271
1272 * reloc.c: Fix formatting.
1273 * riscix.c: Likewise.
1274 * rs6000-core.c: Likewise.
1275 * xcoff-target.h: Likewise.
1276
1277 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1278
1279 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1280 error, by calling bfd_default_set_arch_mach with incoming
1281 values.
1282
1283 2000-12-26 Kazu Hirata <kazu@hxi.com>
1284
1285 * vaxnetbsd.c: Fix formatting.
1286 * versados.c: Likewise.
1287 * vms-gsd.c: Likewise.
1288 * vms-hdr.c: Likewise.
1289 * vms-misc.c: Likewise.
1290
1291 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1292
1293 * archive.c (coff_write_armap): Don't write more than symbol_count
1294 `archive_member_file_ptr's.
1295
1296 2000-12-25 Kazu Hirata <kazu@hxi.com>
1297
1298 * vms-tir.c: Fix formatting.
1299
1300 2000-12-23 Kazu Hirata <kazu@hxi.com>
1301
1302 * vms.c: Fix formatting.
1303 * vms.h: Likewise.
1304
1305 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1306
1307 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1308
1309 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1310
1311 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1312 arithmetic.
1313
1314 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1315
1316 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1317
1318 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1319
1320 * libbfd.c (bfd_get_bits): Added
1321 (bfd_put_bits): Likewise
1322 * bfd-in.h: Declared the above.
1323 * bfd-in2.h: Regenerated.
1324
1325 2000-12-20 Kazu Hirata <kazu@hxi.com>
1326
1327 * targets.c: Fix formatting.
1328 * tekhex.c: Likewise.
1329 * trad-core.c: Likewise.
1330
1331 2000-12-19 Kazu Hirata <kazu@hxi.com>
1332
1333 * sco5-core.c: Fix formatting.
1334 * section.c: Likewise.
1335 * sparclinux.c: Likewise.
1336 * sparclynx.c: Likewise.
1337 * sparcnetbsd.c: Likewise.
1338 * srec.c: Likewise.
1339 * stabs.c: Likewise.
1340 * stab-syms.c: Likewise.
1341 * sunos.c: Likewise.
1342 * syms.c: Likewise.
1343 * sysdep.h: Likewise.
1344
1345 2000-12-18 Nick Clifton <nickc@redhat.com>
1346
1347 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1348 defined.
1349 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1350 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1351
1352 2000-12-18 Nick Clifton <nickc@redhat.com>
1353
1354 * vms-misc.c (_bfd_vms_get_record): Add default case to
1355 file_format switch.
1356
1357 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1358
1359 * elfcore.h (elf_core_file_p): Move to the start of the program
1360 headers before attempting to read them.
1361
1362 2000-12-14 Kazu Hirata <kazu@hxi.com>
1363
1364 * peigen.c: Fix formatting.
1365 * som.c: Likewise.
1366 * som.h: Likewise.
1367
1368 2000-12-13 Kazu Hirata <kazu@hxi.com>
1369
1370 * peigen.c: Fix formatting.
1371
1372 2000-12-12 Jim Wilson <wilson@redhat.com>
1373
1374 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1375
1376 2000-12-08 Mark Salter <msalter@redhat.com>
1377
1378 * binary.c (binary_set_section_contents): Ignore sections
1379 with zero size.
1380
1381 2000-12-12 Kazu Hirata <kazu@hxi.com>
1382
1383 * m68klinux.c: Fix formatting.
1384 * m68knetbsd.c: Likewise.
1385 * mipsbsd.c: Likewise.
1386 * netbsd-core.c: Likewise.
1387 * netbsd.h: Likewise.
1388 * newsos3.c: Likewise.
1389 * nlm32-alpha.c: Likewise.
1390 * nlm32-i386.c: Likewise.
1391 * nlm32-ppc.c: Likewise.
1392 * nlm32-sparc.c: Likewise.
1393 * nlmcode.h: Likewise.
1394 * nlmswap.h: Likewise.
1395 * nlm-target.h: Likewise.
1396 * ns32knetbsd.c: Likewise.
1397
1398 2000-12-10 Fred Fish <fnf@be.com>
1399
1400 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1401 symbols in shared objects if allow_shlib_undefined is true.
1402
1403 2000-12-12 Nick Clifton <nickc@redhat.com>
1404
1405 * cpu-sh.c: Fix formattng.
1406 * elf.c: Fix formattng.
1407 * elf32-mips.c: Fix formattng.
1408 * elf32-sh.c: Fix formattng.
1409 * elf64-alpha.c: Fix formattng.
1410
1411 2000-12-09 Nick Clifton <nickc@redhat.com>
1412
1413 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1414 dwarf2_find_line_info as last parameter to invocation of
1415 _bfd_dwarf2_find_nearest_line.
1416 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1417 dwarf2_find_line_info as last parameter to invocation of
1418 _bfd_dwarf2_find_nearest_line.
1419
1420 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1421
1422 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1423 (BFD_LIBS): ...to here.
1424 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1425 (BFD_LIBS_CFILES): ...to here.
1426 * Makefile.in: Regenerate.
1427 * configure.in: Remove dwarf.lo from the elf shell variable.
1428 * configure: Regenerate.
1429 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1430 * libcoff.h: Regenerate.
1431 * coffgen.c (coff_find_nearest_line): Call
1432 _bfd_dwarf2_find_nearest_line.
1433 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1434 accordingly.
1435 (read_abbrevs): Likewise
1436 (decode_line_info): Likewise.
1437 (parse_comp_unit): Likewise.
1438 (comp_unit_find_nearest_line): Likewise.
1439 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1440 * libbfd.h: Regenerate.
1441 * elf.c (_bfd_elf_find_nearest_line): Update call.
1442 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1443 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1444 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1445 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1446 (styp_to_sec_flags): Handle DWARF2 sections.
1447 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1448 to _bfd_find_nearest_line.
1449 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1450 call to _bfd_find_nearest_line.
1451
1452 2000-12-08 Kazu Hirata <kazu@hxi.com>
1453
1454 * coffgen.c: Fix formatting.
1455 * elf-m10300.c: Likewise.
1456 * elf32-i386.c: Likewise.
1457 * elf32-i960.c: Likewise.
1458 * elf32-m68k.c: Likewise.
1459 * elf32-mcore.c: Likewise.
1460 * elf32-ppc.c: Likewise.
1461 * elf32-sh.c: Likewise.
1462 * elf32-sparc.c: Likewise.
1463 * elf32-v850.c: Likewise.
1464 * elf64-alpha.c: Likewise.
1465 * elf64-hppa.c: Likewise.
1466 * elf64-mips.c: Likewise.
1467 * elf64-sparc.c: Likewise.
1468
1469 2000-12-07 Kazu Hirata <kazu@hxi.com>
1470
1471 * elf32-ppc.c: Fix formatting.
1472 * elf64-x86-64.c: Likewise.
1473
1474 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1475
1476 From Ralf Baechle <ralf@gnu.org>
1477
1478 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1479 BFDs containing no sections or empty .text, .data or .bss sections
1480 to be merged, regardless of their flags.
1481
1482 2000-12-06 Kazu Hirata <kazu@hxi.com>
1483
1484 * elf32-m32r.c: Fix formatting.
1485 * elf32-m68hc11.c: Likewise.
1486 * elf32-m68hc12.c: Likewise.
1487 * elf32-m68k.c: Likewise.
1488 * elf32-mcore.c: Likewise.
1489 * elf32-pj.c: Likewise.
1490 * elf32-ppc.c: Likewise.
1491
1492 2000-12-05 Kazu Hirata <kazu@hxi.com>
1493
1494 * elf32-fr30.c: Fix formatting.
1495 * elf32-hppa.c: Likewise.
1496 * elf32-i370.c: Likewise.
1497 * elf32-i386.c: Likewise.
1498 * elf32-i860.c: Likewise.
1499 * elf32-i960.c: Likewise.
1500
1501 2000-12-03 Kazu Hirata <kazu@hxi.com>
1502
1503 * elf32-arm.h: Fix formatting.
1504 * elf32-avr.c: Likewise.
1505 * elf32-cris.c: Likewise.
1506 * elf32-d10v.c: Likewise.
1507 * elf32-d30v.c: Likewise.
1508 * elf-hppa.h: Likewise.
1509 * elf-m10200.c: Likewise.
1510 * elf-m10300.c: Likewise.
1511
1512 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1513
1514 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1515 bfd_mach_mips32_4k. Update FIXME comment.
1516 * archures.c (bfd_mach_mips32): New constant.
1517 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1518 the latter, renumber it.
1519 * bfd-in2.h (bfd_mach_mips32): New constant.
1520 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1521 the latter, renumber it.
1522 * cpu-mips.c (I_mips32): New constant.
1523 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1524 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1525 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1526 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1527 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1528 with E_MIPS_MACH_MIPS32_4K.
1529 (_bfd_mips_elf_final_write_processing): Replace
1530 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1531 bfd_mach_mips32 case.
1532 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1533 comparison with support for MIPS32.
1534 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1535 MIPS32.
1536
1537 * aoutx.h (NAME(aout,machine_type)): Add cases for
1538 bfd_mach_mips5 and bfd_mach_mips64.
1539 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1540 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1541 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1542 (arch_info_struct): Add entries for bfd_mach_mips5 and
1543 bfd_mach_mips64.
1544 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1545 _bfd_mips_elf_print_private_bfd_data): Add cases for
1546 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1547 (_bfd_mips_elf_final_write_processing): Add cases for
1548 bfd_mach_mips5 and bfd_mach_mips64.
1549
1550 * aoutx.h (NAME(aout,machine_type)): Add a
1551 bfd_mach_mips_sb1 case.
1552 * archures.c (bfd_mach_mips_sb1): New constant.
1553 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1554 * cpu-mips.c (I_sb1): New constant.
1555 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1556 * elf32-mips.c (elf_mips_mach): Add case for
1557 E_MIPS_MACH_SB1.
1558 (_bfd_mips_elf_final_write_processing): Add case for
1559 bfd_mach_mips_sb1.
1560
1561 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1562
1563 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1564 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1565 (sparc*-*-rtems*): Switched from a.out to ELF.
1566
1567 2000-11-30 Jan Hubicka <jh@suse.cz>
1568
1569 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1570 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1571 (elf64-x86-64.lo): Add dependencies.
1572 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1573 bfd_mach_x86_64_intel_syntax.
1574 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1575 * config.bfd (x86_64): Add.
1576 * configure.in: Add support for bfd_elf64_x86_64_vec.
1577 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1578 (bfd_i386_arch, i8086_ar): Link in.
1579 * elf64-x86-64.c: New file.
1580 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1581 * targets.c (bfd_elf64_x86_64_vec): Add.
1582 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1583
1584 2000-11-30 Kazu Hirata <kazu@hxi.com>
1585
1586 * xcofflink.c: Fix formatting.
1587
1588 2000-11-28 Kazu Hirata <kazu@hxi.com>
1589
1590 * aoutx.h: Fix formatting.
1591 * bfd-in.h: Likewise.
1592 * bfd-in2.h: Likewise.
1593 * cache.c: Likewise.
1594 * cisco-core.c: Likewise.
1595 * coff64-rs6000.c: Likewise.
1596 * coffcode.h: Likewise.
1597 * coffswap.h: Likewise.
1598 * corefile.c: Likewise.
1599 * elf32-mips.c: Likewise.
1600
1601 2000-11-27 Kazu Hirata <kazu@hxi.com>
1602
1603 * aout-adobe.c: Fix formatting.
1604 * coff64-rs6000.c: Likewise.
1605 * coffgen.c: Likewise.
1606 * cofflink.c: Likewise.
1607
1608 2000-11-27 Philip Blundell <pb@futuretv.com>
1609
1610 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1611 (obj_coff_strings_written): New accessor macro for above.
1612 * libcoff.h: Regenerate.
1613 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1614 strings.
1615 * coffcode.h (coff_write_object_contents): No need to write out
1616 the string table if it's already been done.
1617
1618 2000-11-22 Philip Blundell <pb@futuretv.com>
1619
1620 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1621 weak undefined symbols.
1622
1623 2000-11-24 Nick Clifton <nickc@redhat.com>
1624
1625 * archures.c (bfd_mach_arm_5TE): Define.
1626 (bfd_mach_arm+XScale): Define.
1627 * bfd-in2.h: Regenerate.
1628
1629 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1630 BFD_RELOC_ARM_PCREL_BLX.
1631
1632 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1633 XScale machine numbers.
1634
1635 * config.bfd (xscale-elf): Add target.
1636 (xscale-coff): Add target.
1637
1638 * cpu-arm.c: Add xscale machine name.
1639 Add v5t, v5te and XScale machine numbers.
1640
1641 2000-11-23 Kazu Hirata <kazu@hxi.com>
1642
1643 * aix386-core.c: Fix formatting.
1644
1645 2000-11-22 Jim Wilson <wilson@redhat.com>
1646
1647 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1648 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1649 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1650 (ins_imms_scaled): Initialize sign_bit at function entry.
1651 (elf64_ia64_operands): Add missing initializers.
1652 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1653 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1654 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1655 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1656 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1657 parameters.
1658 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1659 and free_extsyms at function entry.
1660 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1661 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1662 (get_got): Delete unused local srel.
1663 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1664 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1665
1666 2000-11-21 Kazu Hirata <kazu@hxi.com>
1667
1668 * coff-a29k.c: Fix formatting.
1669 * coff-h8500.c: Likewise.
1670 * coff-i960.c: Likewise.
1671 * coff-ppc.c: Likewise.
1672 * coff-rs6000.c: Likewise.
1673 * coff-stgo32.c: Likewise.
1674 * coff-tic54x.c: Likewise.
1675 * coff-w65.c: Likewise.
1676 * cpu-h8500.c: Likewise.
1677 * cpu-hppa.c: Likewise.
1678 * cpu-ns32k.c: Likewise.
1679 * ecoff.c: Likewise.
1680 * ecofflink.c: Likewise.
1681
1682 2000-11-21 Nick Clifton <nickc@redhat.com>
1683
1684 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1685 remove possibility of infinite loop.
1686
1687 2000-11-20 Kazu Hirata <kazu@hxi.com>
1688
1689 * aix386-core.c: Fix formatting.
1690 * aout-adobe.c: Likewise.
1691 * aout-arm.c: Likewise.
1692 * aout-encap.c: Likewise.
1693 * aout-ns32k.c: Likewise.
1694 * aout-target.h: Likewise.
1695 * aout-tic30.c: Likewise.
1696 * aoutf1.h: Likewise.
1697 * aoutx.h: Likewise.
1698 * archive.c: Likewise.
1699 * bfd-in.h: Likewise.
1700 * bfd-in2.h: Likewise.
1701 * bfd.c: Likewise.
1702 * bout.c: Likewise.
1703
1704 2000-11-17 H.J. Lu <hjl@gnu.org>
1705
1706 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1707 pltoff entries for DT_INIT and DT_FINI.
1708 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1709 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1710 entries.
1711
1712 2000-11-16 Richard Henderson <rth@redhat.com>
1713
1714 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1715 (allocate_dynrel_entries): Likewise.
1716 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1717 (set_pltoff_entry): Likewise.
1718 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1719 (elfNN_ia64_reloc_type_lookup): Likewise.
1720 (elfNN_ia64_install_value): Likewise.
1721 (elfNN_ia64_relocate_section): Likewise.
1722 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1723 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1724
1725 2000-11-16 Kazu Hirata <kazu@hxi.com>
1726
1727 * cpu-a29k.c: Fix formatting.
1728 * cpu-alpha.c: Likewise.
1729 * cpu-arm.c: Likewise.
1730 * cpu-avr.c: Likewise.
1731 * cpu-d10v.c: Likewise.
1732 * cpu-h8500.c: Likewise.
1733 * cpu-hppa.c: Likewise.
1734 * cpu-i370.c: Likewise.
1735 * cpu-i386.c: Likewise.
1736 * cpu-i960.c: Likewise.
1737 * cpu-ia64-opc.c: Likewise.
1738 * cpu-ia64.c: Likewise.
1739 * cpu-m32r.c: Likewise.
1740 * cpu-m68hc11.c: Likewise.
1741 * cpu-m68hc12.c: Likewise.
1742 * cpu-m68k.c: Likewise.
1743 * cpu-m88k.c: Likewise.
1744 * cpu-mips.c: Likewise.
1745 * cpu-ns32k.c: Likewise.
1746 * cpu-pj.c: Likewise.
1747 * cpu-powerpc.c: Likewise.
1748 * cpu-sh.c: Likewise.
1749 * cpu-sparc.c: Likewise.
1750 * cpu-tic54x.c: Likewise.
1751 * cpu-v850.c: Likewise.
1752 * cpu-vax.c: Likewise.
1753 * cpu-w65.c: Likewise.
1754 * cpu-we32k.c: Likewise.
1755 * cpu-z8k.c: Likewise.
1756 * dwarf1.c: Likewise.
1757 * dwarf2.c: Likewise.
1758
1759 2000-11-15 Kazu Hirata <kazu@hxi.com>
1760
1761 * coff-arm.c: Fix formatting.
1762 * coff-ppc.c: Likewise.
1763 * coff-rs6000.c: Likewise.
1764 * coff-sh.c: Likewise.
1765 * coff-sparc.c: Likewise.
1766 * coff-tic30.c: Likewise.
1767 * coff-tic54x.c: Likewise.
1768 * coff-tic80.c: Likewise.
1769 * coff-w65.c: Likewise.
1770 * coff-we32k.c: Likewise.
1771 * coff-z8k.c: Likewise.
1772
1773 2000-11-15 Richard Henderson <rth@redhat.com>
1774
1775 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1776 section with the same ALLOC|LOAD flags as the source section.
1777
1778 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1779
1780 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1781 by STO_ALPHA constants.
1782
1783 2000-11-14 Kazu Hirata <kazu@hxi.com>
1784
1785 * coff-pmac.c: Fix formatting.
1786 * coff-ppc.c: Likewise.
1787
1788 2000-11-13 H.J. Lu <hjl@gnu.org>
1789
1790 * elflink.h (elf_link_add_object_symbols): Also add indirect
1791 symbols for common symbols with the default version.
1792
1793 2000-11-09 Philip Blundell <pb@futuretv.com>
1794
1795 * section.c (STD_SECTION): Set gc_mark flag.
1796
1797 2000-11-11 Kazu Hirata <kazu@hxi.com>
1798
1799 * coff-i960.c: Likewise.
1800 * coff-m68k.c: Likewise.
1801 * coff-m88k.c: Likewise.
1802 * coff-mcore.c: Likewise.
1803 * coff-mips.c: Likewise.
1804
1805 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1806
1807 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1808
1809 2000-11-10 Kazu Hirata <kazu@hxi.com>
1810
1811 * coff-h8300.c: Fix formatting.
1812 * coff-h8500.c: Likewise.
1813 * coff-i386.c: Likewise.
1814 * coff-i860.c: Likewise.
1815 * coff-i960.c: Likewise.
1816 * coff-ia64.c: Likewise.
1817
1818 2000-11-09 Kazu Hirata <kazu@hxi.com>
1819
1820 * archive.c: Fix formatting.
1821 * archures.c: Likewise.
1822
1823 2000-11-07 Richard Henderson <rth@redhat.com>
1824
1825 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1826 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1827 * section.c (bfd_set_section_contents): Call memcpy if
1828 section->contents set and location not equal to contents plus offset.
1829
1830 2000-11-08 Kazu Hirata <kazu@hxi.com>
1831
1832 * bfd-in.h: Fix formatting.
1833 * bfd-in2.h: Likewise.
1834 * bfd.c: Likewise.
1835 * binary.c: Likewise.
1836 * bout.c: Likewise.
1837 * coff-a29k.c: Likewise.
1838 * coff-alpha.c: Likewise.
1839 * coff-apollo.c: Likewise.
1840 * coff-aux.c: Likewise.
1841
1842 2000-11-07 Kazu Hirata <kazu@hxi.com>
1843
1844 * aix386-core.c: Fix formatting.
1845 * aoutf1.h: Likewise.
1846 * aoutx.h: Likewise.
1847 * archures.c: Likewise.
1848 * armnetbsd.c: Likewise.
1849
1850 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1851
1852 * coff-h8300.c (special): Adjust reloc address.
1853
1854 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1855
1856 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1857 to differentiate elf32 and elf64 on ia64.
1858 * bfd-in2.h: Regenerate.
1859 * config.bfd: Add target for "ia64*-*-hpux*".
1860 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1861 * configure: Regenerate.
1862 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1863 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1864
1865 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1866 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1867 * Makefile.in: Regnerate.
1868 * elf64-ia64.c: Deleted.
1869 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1870
1871 2000-11-06 Kazu Hirata <kazu@hxi.com>
1872
1873 * aout-adobe.c: Fix formatting.
1874 * aout-arm.c: Likewise.
1875 * aout-cris.c: Likewise.
1876 * aout-encap.c: Likewise.
1877 * aout-ns32k.c: Likewise.
1878 * aout-target.h: Likewise.
1879 * aout-tic30.c: Likewise.
1880
1881 2000-11-05 Philip Blundell <philb@gnu.org>
1882
1883 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1884 BFDs containing no sections to be merged, regardless of their flags.
1885
1886 2000-11-04 Philip Blundell <philb@gnu.org>
1887
1888 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1889 if a relocation for an undefined symbol also results in an
1890 overflow.
1891
1892 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1893
1894 * config.bfd: Add support for Sun Chorus.
1895
1896 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1897
1898 * configure.in: Recognize alpha-*-freebsd*.
1899 * configure: Regenerate.
1900
1901 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1902
1903 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1904 (Chunk): New global variable set by a parameter in objcopy.c.
1905 (S3Forced): New global variable set by a parameter in
1906 objcopy.c.
1907 (srec_set_section_contents): If S3Forced is true, always generate
1908 S3 records.
1909 (srec_write_section): Use 'Chunk' to limit maximum length of S
1910 records.
1911
1912 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1913
1914 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1915 * Makefile.in: Regenerate.
1916 * bfd-in2.h: Regenerate.
1917 * po/bfd.pot: Regenerate.
1918
1919 2000-10-31 Philip Blundell <philb@gnu.org>
1920
1921 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1922 EF_SOFT_FLOAT if it is defined.
1923
1924 2000-10-27 Philip Blundell <philb@gnu.org>
1925
1926 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1927 attempts to mix PIC code with non-PIC, just mark the output as
1928 being position dependent.
1929 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1930 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1931 all mismatches, not just the first one.
1932
1933 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1934
1935 * ieee.c (ieee_archive_p): Plug one of many possible
1936 memory leaks in error handling.
1937
1938 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1939
1940 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1941 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1942 Support v8plusb.
1943 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1944 sparc64_elf_object_p): Support v9b.
1945 * archures.c: Declare v8plusb and v9b machines.
1946 * bfd-in2.h: Ditto.
1947 * cpu-sparc.c: Ditto.
1948
1949 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1950
1951 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1952 of a GOT reloc.
1953
1954 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1955 (SYMBOL_CALLS_LOCAL): New macro.
1956 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1957 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1958 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1959 (ppc_elf_relocate_section): Use flag variable to determine
1960 whether the relocation refers to a local symbol.
1961 Test whether a PLTREL24 reloc will produce a reloc by looking
1962 to see whether a PLT entry was made.
1963
1964 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1965
1966 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1967 entries that could serve as a definition for a weak symbol.
1968
1969 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1970
1971 From Ralf Baechle <ralf@gnu.org>
1972
1973 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1974 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1975 against local symbols.
1976 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1977
1978 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1979
1980 * section.c (struct sec): Add kept_section.
1981 (struct bfd_comdat_info): Remove sec, we can use above.
1982 (STD_SECTION): Add initializer.
1983 (bfd_make_section_anyway): Init here too.
1984
1985 * bfd-in2.h: Regenerate.
1986
1987 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1988 zeroing of `flags'.
1989 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1990 fudge values for discarded link-once section symbols.
1991
1992 * elf64-hppa.c: Include alloca-conf.h
1993
1994 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1995
1996 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1997
1998 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1999
2000 2000-10-10 Alan Modra <alan@linuxcare.com.au>
2001
2002 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2003
2004 2000-10-10 Tom Rix <trix@redhat.com>
2005
2006 * section.c (bfd_make_section_anyway): Release newsect ptr when
2007 newsect->symbol fails to alloc. Use bfd_release instead of free.
2008
2009 2000-10-09 Richard Henderson <rth@cygnus.com
2010
2011 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2012 (elf64_ia64_unwind_entry_compare): New.
2013 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2014
2015 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2016
2017 * elflink.h (size_dynamic_sections): Don't create various tags if
2018 .dynstr is excluded from the link. Don't set first dynsym entry
2019 if dynsymcount is zero.
2020 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2021 .dynsym excluded from the link. Don't try to write any dynamic
2022 sections excluded from the link.
2023
2024 * elf.c (swap_out_syms): Handle global section symbols.
2025
2026 2000-10-05 DJ Delorie <dj@redhat.com>
2027
2028 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2029 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2030 (coff_write_relocs): write extended reloc count
2031 (coff_write_object_contents): account for extended relocs
2032
2033 2000-10-05 Jim Wilson <wilson@cygnus.com>
2034
2035 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2036 field.
2037 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2038 elf_backend_section_flags function.
2039 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2040 code.
2041 (elf64_ia64_section_flags): New function containing flag conversion
2042 code.
2043 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2044 * elfxx-target.h (elf_backend_section_flags): Define.
2045 (elfNN_bed): Initialize elf_backend_section_flags field.
2046
2047 2000-10-02 Alan Modra <alan@linuxcare.com.au>
2048
2049 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2050 _bfd_elf32_gc_record_vtable. Correct a comment.
2051
2052 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2053
2054 From Ralf Baechle <ralf@gnu.org>
2055
2056 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2057 produces binaries with got[1] = 0x80000001 to differenciate them
2058 for the dynamic linker from the broken binaries produced by old
2059 versions.
2060
2061 2000-09-30 Petr Sorfa <petrs@sco.com>
2062
2063 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2064 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2065 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2066 * configure: Regenerate.
2067
2068 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
2069
2070 Define two bfd_targets for absence and presence of leading
2071 underscore on symbols. Make sure to only link same kind.
2072 * elf32-cris.c (cris_elf_object_p,
2073 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2074 cris_elf_merge_private_bfd_data): New.
2075 (elf_backend_object_p, elf_backend_final_write_processing,
2076 bfd_elf32_bfd_print_private_bfd_data,
2077 bfd_elf32_bfd_merge_private_bfd_data): Define.
2078 <Target vector definition>: Include elf32-target.h twice with
2079 different macro settings:
2080 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2081 bfd_elf32_us_cris_vec.
2082 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2083 (elf_symbol_leading_char): First as 0, then '_'.
2084 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2085 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2086 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2087 * configure: Regenerate.
2088 * targets.c: Declare bfd_elf32_us_cris_vec.
2089 * po/bfd.pot: Regenerate.
2090
2091 2000-09-29 Momchil Velikov <velco@fadata.bg>
2092
2093 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2094 R_ARM_THM_PC22 relocations.
2095
2096 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2097
2098 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2099
2100 2000-09-29 Momchil Velikov <velco@fadata.bg>
2101
2102 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2103 is has the SEC_HAS_CONTENTS flag set.
2104
2105 2000-09-28 Örjan Friberg <orjanf@axis.com>
2106 Hans-Peter Nilsson <hp@axis.com>
2107
2108 * aout-cris.c (N_TXTADDR): Define.
2109
2110 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2111
2112 * som.c: Include alloca-conf.h.
2113 * Makefile.am: "make dep-am"
2114 * Makefile.in: Regenerate.
2115
2116 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2117
2118 * elf32-hppa.c (plt_stub): New.
2119 (PLT_STUB_ENTRY): Define.
2120 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2121 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2122 (elf32_hppa_link_hash_table_create): Init to suit.
2123 (elf32_hppa_check_relocs): Set has_12bit_branch and
2124 has_17bit_branch as appropriate.
2125 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2126 non-local functions.
2127 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2128 Add space for plt_stub as needed.
2129 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2130 functions at plt_stub.
2131 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2132 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2133
2134 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2135 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2136 of fixed size, and if negative, disable handling of input sections
2137 before stub section. Set up default stub group size depending
2138 on detected branch relocs.
2139 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2140 ensure different offsets from sym_value aren't rounded to
2141 different 2k blocks. Use lrsel and rrsel for other stubs too for
2142 consistency rather than necessity.
2143 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2144 (final_link_relocate): Likewise.
2145 (elf32_hppa_relocate_section): Likewise.
2146
2147 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2148 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2149 (elf_hppa_final_link_relocate): Handle them.
2150 (elf_hppa_relocate_insn): Likewise.
2151 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2152
2153 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
2154
2155 * elfcode.h (elf_object_p): Preserve and clear abfd section
2156 information. Restore at error.
2157
2158 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2159
2160 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2161 is empty, make sure that its rva also 0. NT loader dislikes
2162 having otherwise.
2163
2164 2000-09-26 Steve Ellcey <sje@cup.hp.com>
2165
2166 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2167 global by default.
2168
2169 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2170
2171 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2172 currently unused RELATIVE_DYNAMIC_RELOCS code.
2173 (hppa_discard_copies): Likewise.
2174 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
2175 comments. Don't check non-code output sections for stub grouping.
2176
2177 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2178
2179 * section.c (bfd_get_unique_section_name): Return NULL if
2180 bfd_malloc fails.
2181
2182 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2183
2184 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2185 instruction sequence to actually work.
2186 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2187 accordingly.
2188
2189 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2190
2191 * elf32-sh.c (sh_elf_relocate_section): Use
2192 _bfd_final_link_relocate to apply the relocation against a section
2193 symbol, when doing relocatable links.
2194
2195 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2196
2197 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2198 to id_sec.
2199 (stub_hash_newfunc): Here too.
2200 (hppa_add_stub): And here.
2201 (elf32_hppa_link_hash_table): Remove stub_section_created,
2202 reloc_section_created, first_init_sec and first_fini_sec. Add
2203 stub_group.
2204 (elf32_hppa_link_hash_table_create): Init to suit.
2205 (hppa_get_stub_entry): Add support for grouping stub sections.
2206 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2207 section code. Index stub vars by section->id.
2208 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2209 exit paths. Zap allocation of above removed vars. Refine
2210 link-once test.
2211
2212 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2213 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2214 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2215 rather than pointer to bfd_link_info.
2216 (hppa_add_stub): Likewise.
2217 (final_link_relocate): Likewise.
2218
2219 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2220
2221 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2222 link-once sections.
2223
2224 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2225
2226 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2227 ld/emulparams/shelf.sh.
2228
2229 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2230
2231 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2232 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2233 * bfd-in2.h: Regenerate.
2234
2235 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2236
2237 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2238 LITUSE relocations incorrectly if -relax is specified on the ld
2239 command line and the displacement field of the load or store
2240 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2241
2242 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2243
2244 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2245 first_fini_sec here.
2246 (elf32_hppa_size_stubs): Instead correctly find the first .init
2247 and .fini section here.
2248
2249 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2250
2251 * elf32-hppa.c (clobber_millicode_symbols): New function.
2252 (elf32_hppa_size_dynamic_sections): Call it.
2253
2254 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2255
2256 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2257 packed. Add plabel, plt_abs packed booleans.
2258 (hppa_link_hash_newfunc): Init new fields.
2259 (PLABEL_PLT_ENTRY_SIZE): Define.
2260 (hppa_stub_name): Use size_t len vars.
2261 (hppa_add_stub): Likewise.
2262 (elf32_hppa_build_stubs): Likewise.
2263 (hppa_build_one_stub): Kill some compiler warnings.
2264 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2265 if dynamic linking. Munge the local plt offsets into
2266 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2267 size_t len vars. Add assert for plabel addend.
2268 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2269 (elf32_hppa_hide_symbol): New function.
2270 (elf_backend_hide_symbol): Define.
2271 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2272 with h->plabel set. Don't make plt entries to have dynamic syms
2273 when they have been forced local. If plt entry is used by a
2274 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2275 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2276 Set up .plt offsets for local syms.
2277 (elf32_hppa_relocate_section): Initialise plt entries for local
2278 syms. Leave weak undefined plabels zero. Make global plabel
2279 relocs against function symbol, and leave the addend zero.
2280 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2281 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2282 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2283 relocs instead of SEGREL32 for dynamic got relocs.
2284 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2285 (elf_backend_got_header_size): Adjust.
2286 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2287
2288 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2289 (hppa_type_of_stub): Use it instead of #if 0
2290 (hppa_discard_copies): Use it here too.
2291 (elf32_hppa_size_dynamic_sections): And here.
2292
2293 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2294 (elf32_hppa_link_hash_table_create): And here.
2295 (hppa_build_one_stub): And here. Instead keep track of stub
2296 offset using _raw_size.
2297 (elf32_hppa_size_stubs): Likewise.
2298 (elf32_hppa_build_stubs): Likewise.
2299 (hppa_size_one_stub): Likewise. Resize reloc section too.
2300
2301 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2302 first_fini_sec handling. Don't search for reloc section or set
2303 hplink->reloc_section_created here.
2304 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2305 set reloc_section_created here.
2306 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2307 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2308 and DT_FINI.
2309 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2310
2311 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2312 with `hplink->root.'.
2313 (elf32_hppa_check_relocs): Likewise.
2314 (elf32_hppa_gc_sweep_hook): Likewise.
2315 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2316 (hppa_handle_PIC_calls): Likewise.
2317 (elf32_hppa_size_dynamic_sections): Likewise.
2318 (elf32_hppa_set_gp): Likewise.
2319 (elf32_hppa_relocate_section): Likewise.
2320 (elf32_hppa_finish_dynamic_symbol): Likewise.
2321 (elf32_hppa_finish_dynamic_sections): Likewise.
2322
2323 From David Huggins-Daines <dhd@linuxcare.com>
2324 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2325 defined weak symbols in shared links.
2326 (final_link_relocate): Calls to defined weak symbols in shared
2327 objects must go via import stubs, as the target might not be known
2328 at link time.
2329
2330 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2331
2332 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2333 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2334 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2335 the original entries with EMPTY_HOWTOs, and added new ones to fill
2336 in the gap.
2337 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2338 (sh_elf_relocate_section): Likewise.
2339
2340 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2341
2342 * cpu-mips.c (arch_info_struct): Add mips:4K
2343 * bfd-in2.h (bfd_mach_mips4K): New define.
2344 * archures.c: Add bfd_mach_mips4K to comment.
2345 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2346 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2347
2348 2000-09-13 Marco Franzen <marcof@thyron.com>
2349
2350 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2351 use size_t as a counter.
2352 (som_write_space_strings): Similarly.
2353
2354 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2355
2356 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2357 and prototype.
2358 (elf32_i860_relocate_section): Invoke new function from here.
2359
2360 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2361
2362 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2363 static.
2364
2365 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2366
2367 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2368 target section name instead of dumping core when the target symbol is
2369 undefined.
2370
2371 2000-09-09 Kazu Hirata <kazu@hxi.com>
2372
2373 * riscix.c: Remove DEFUN.
2374
2375 2000-09-08 Nick Clifton <nickc@redhat.com>
2376
2377 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2378 initialise flags in output bfd if the input bfd is the default
2379 architecture with the default flags.
2380
2381 2000-09-08 Kazu Hirata <kazu@hxi.com>
2382
2383 * archive.c: Fix formatting.
2384 * coff-arm.c: Likewise.
2385 * doc/chew.c: Likewise.
2386
2387 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2388
2389 * section.c (bfd_get_unique_section_name): Put a dot before the
2390 numeric suffix.
2391
2392 2000-09-07 Kazu Hirata <kazu@hxi.com>
2393
2394 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2395 * elf.c: Fix formatting.
2396
2397 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2398
2399 * config.bfd (sh-*-linux*): Added.
2400 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2401 * targets.c: Declare them.
2402 * elf32-sh-lin.c: New file.
2403 * Makefile.am: Compile it.
2404 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2405 * configure, Makefile.in: Rebuilt.
2406
2407 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2408
2409 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2410 pseduo-section when determining where the TOC ends.
2411
2412 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2413 output x_tvndx as it is only two bytes wide.
2414
2415 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2416 reloc is 26 or 32 bits wide.
2417
2418 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2419 for relocs that don't change anything. Also look at the full
2420 6 bits of bitsize.
2421
2422 2000-09-06 Philip Blundell <philb@gnu.org>
2423
2424 * config.bfd (arm*-*-uclinux*): New target.
2425
2426 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2427
2428 * configure: Rebuilt with new libtool.m4.
2429
2430 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2431
2432 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2433 word for variable name.
2434 * bfd-in2.h: Regenerate.
2435
2436 2000-09-05 Nick Clifton <nickc@redhat.com>
2437
2438 * config.in: Regenerate.
2439 * libbfd.h: Regenerate.
2440 * po/bfd.pot: Regenerate.
2441 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2442 local versions.
2443
2444 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2445
2446 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2447
2448 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2449
2450 Shared library and PIC support.
2451 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2452 (GOT_ENTRY_SIZE): New.
2453 (ELF_DYNAMIC_INTERPRETER): New.
2454 (STUB_SUFFIX): Define.
2455 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2456 (RELATIVE_DYNAMIC_RELOCS): Define.
2457 (enum elf32_hppa_stub_type): New.
2458 (struct elf32_hppa_stub_hash_entry): Rename offset to
2459 stub_offset. Add a number of new fields.
2460 (struct elf32_hppa_link_hash_entry): New.
2461 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2462 global_value.
2463 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2464 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2465 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2466 new fields.
2467 (hppa_link_hash_newfunc): New function.
2468 (elf32_hppa_link_hash_table_create): Use above function. Init new
2469 fields.
2470 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2471 instead of addend, and remove sym_name from args. Don't use
2472 symbol name for local syms, instead use sym index.
2473 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2474 stub type rather than size. Pass in hash and handle import stub
2475 case. Also pass in reloc instead of offset so we can calculate
2476 PCREL22F and PCREL12F branches properly.
2477 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2478 import and export stubs too.
2479 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2480 import and export stub sizing.
2481 (elf32_hppa_check_relocs): New function.
2482 (elf32_hppa_adjust_dynamic_symbol): New function.
2483 (hppa_discard_copies): New function.
2484 (elf32_hppa_size_dynamic_sections): New function.
2485 (elf_backend_size_dynamic_sections): Define.
2486 (elf32_hppa_finish_dynamic_symbol): New function.
2487 (elf_backend_finish_dynamic_symbol): Define.
2488 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2489 some local vars into the link hash table too. For shared links,
2490 trundle over function syms, generating export stubs. Handle
2491 PCREL22F branches. Break out stub creation code from here..
2492 (hppa_add_stub): .. to here. New function.
2493 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2494 call the bfd linker. Use elf_gp to record global pointer.
2495 Calculate a value from sections if $global$ is missing.
2496 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2497 (elf32_hppa_gc_mark_hook): New function.
2498 (elf_backend_gc_mark_hook): Define.
2499 (elf32_hppa_gc_sweep_hook): New function.
2500 (elf_backend_gc_sweep_hook): Define.
2501 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2502 Add rel to args, and remove howto, input_bfd, offset, addend,
2503 sym_name as we can recalculate these locally. Handle calls to
2504 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2505 handling of undefined weak syms. Check that stubs are in range.
2506 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2507 message on hitting a DPREL21L reloc that needs fixing. Subtract
2508 off PC for PCREL14F. Break out code that does a stub lookup from
2509 here..
2510 (hppa_get_stub_entry): ..to here. New function.
2511 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2512 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2513 relocs, etc. etc.
2514 (elf32_hppa_finish_dynamic_sections): New function.
2515 (elf_backend_finish_dynamic_sections): Define.
2516 (elf_backend_final_write_processing) Define.
2517 (hppa_handle_PIC_calls): New function.
2518 (elf32_hppa_build_stubs): Call it. Pass link_info to
2519 hppa_build_one_stub.
2520 (elf32_hppa_create_dynamic_sections): New function
2521 to create .plt and .got then set .plt flags correctly.
2522 (elf_backend_create_dynamic_sections): Define.
2523 (elf32_hppa_object_p): New function.
2524 (elf_backend_object_p): Define.
2525 (elf32_hppa_elf_get_symbol_type): New function.
2526 (elf_backend_get_symbol_type): Define.
2527 (elf_backend_can_gc_sections): Define.
2528 (elf_backend_want_got_plt): Define.
2529 (elf_backend_plt_alignment): Set to 2.
2530 (elf_backend_plt_readonly): Define.
2531 (elf_backend_want_plt_sym): Define.
2532 (elf_backend_got_header_size): Reserve one entry.
2533
2534 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2535 (elf32_hppa_size_stubs): Pass in multi_subspace.
2536 (elf32_hppa_set_gp): Declare.
2537
2538 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2539 (bfd_get_unique_section_name): New function.
2540 * bfd-in2.h: Regenerate.
2541
2542 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2543 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2544 comment.
2545
2546 From David Huggins-Daines <dhd@linuxcare.com>
2547 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2548 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2549 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2550 been updated in finish_dynamic_symbol before modifying function
2551 symbol.
2552
2553 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2554 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2555 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2556 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2557 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2558 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2559 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2560 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2561
2562 From David Huggins-Daines <dhd@linuxcare.com>
2563 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2564 style of local labels as well.
2565
2566 2000-09-03 Philip Blundell <philb@gnu.org>
2567
2568 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2569 references to undefined symbols in debugging sections.
2570
2571 2000-09-02 H.J. Lu <hjl@gnu.org>
2572
2573 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2574 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2575 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2576 section.
2577
2578 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2579
2580 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2581 (elf32_i860_is_local_label_name): New function and prototype.
2582
2583 2000-09-02 Nick Clifton <nickc@redhat.com>
2584
2585 * configure.in: Increase version number to 2.10.91.
2586 * configure: Regenerate.
2587 * aclocal.m4: Regenerate.
2588 * config.in: Regenerate.
2589 * po/bfd.pot: Regenerate.
2590
2591 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2592
2593 * elf.c (_bfd_elf_make_section_from_shdr): Add
2594 .gnu.linkobce.wi. to the list of debug section names.
2595
2596 2000-09-02 Nick Clifton <nickc@redhat.com>
2597
2598 * dwarf2.c (find_debug_info): New function: Locate a section
2599 containing dwarf2 debug information.
2600 (bfd_dwarf2_find_nearest_line): Find all sections containing
2601 debug information and include them in the stash.
2602
2603 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2604
2605 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2606 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2607 (sh_reloc_map): Add new relocs.
2608 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2609 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2610 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2611 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2612 functions.
2613 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2614 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2615 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2616 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2617 New array constants.
2618 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2619 New variables.
2620 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2621 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2622 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2623 elf_sh_plt_reloc_offset): Define.
2624 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2625 elf_sh_link_hash_table): New structs.
2626 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2627 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2628 relocation types.
2629 (elf_backend_create_dynamic_sections,
2630 bfd_elf32_bfd_link_hash_table_create,
2631 elf_backend_adjust_dynamic_symbol,
2632 elf_backend_size_dynamic_sections,
2633 elf_backend_finish_dynamic_symbol,
2634 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2635 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2636 elf_backend_got_header_size, elf_backend_plt_header_size):
2637 Define.
2638 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2639 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2640 New relocs.
2641 * bfd-in2.h, libbfd.h: Rebuilt.
2642
2643 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2644
2645 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2646 change.
2647
2648 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2649
2650 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2651 not initialized, set them to indicate the SH1 instruction set.
2652
2653 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2654
2655 * acinclude.m4: Include libtool and gettext macros from the
2656 top level.
2657 * aclocal.m4, configure: Rebuilt.
2658
2659 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2660
2661 * elf.c: Eliminate references to __sparcv9 macro; replace with
2662 autoconf variables HAVE_PSINFO32_T etc.
2663 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2664 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2665 * config.in: Ditto.
2666 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2667 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2668 * aclocal.m4: Ditto.
2669 * configure: Regenerate.
2670
2671 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2672
2673 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2674 for any shared link, not just shared -Bsymbolic.
2675 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2676 any shared link, and pass link info to it.
2677 (elf_i386_size_dynamic_sections): Update comment.
2678 (elf_i386_discard_copies): Modify to discard relocs for symbols
2679 that have been forced local.
2680 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2681 that have been forced local.
2682
2683 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2684
2685 * elflink.h (elf_link_add_object_symbols): Allow common
2686 symbols to have an alignment of 1 if explicitly requested, and
2687 not overridden by other definitions.
2688
2689 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2690
2691 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2692 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2693
2694 2000-08-22 H.J. Lu <hjl@gnu.org>
2695
2696 * elf-bfd.h (elf_link_hash_table): Add runpath.
2697
2698 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2699 * bfd-in2.h: Rebuilt.
2700
2701 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2702 "runpath" field to NULL.
2703 (bfd_elf_get_runpath_list): New function.
2704
2705 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2706 DT_RUNPATH entries.
2707
2708 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2709
2710 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2711 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2712 explicitly. Improve validation of r_type.
2713
2714 2000-08-21 H.J. Lu <hjl@gnu.org>
2715
2716 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2717 dynamic allocated content space. Add a comment to remind us that
2718 one day this ought to be fixed.
2719 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2720 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2721 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2722
2723 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2724
2725 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2726 field with the newly relocated value instead of adding it to the
2727 existing immediate field.
2728 (elf32_i860_relocate_splitn): Likewise.
2729 (elf32_i860_relocate_highadj): Likewise.
2730
2731 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2732
2733 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2734 was previously just a stub).
2735
2736 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2737
2738 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2739 Formatting fixes.
2740 (_bfd_elf_create_dynamic_sections): Likewise.
2741
2742 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2743
2744 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2745 for undefined symbols to be the beginning of the section.
2746
2747 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2748 four extra entries at the beginning of the .rela.plt section.
2749 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2750 section to account for the four reserved entries in the .plt section.
2751
2752 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2753
2754 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2755 to the list of NOPs we recognize after a branch-and-link.
2756 Use the ori NOP when one is needed.
2757
2758 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2759 for large archives.
2760
2761 2000-08-14 Jim Wilson <wilson@cygnus.com>
2762
2763 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2764 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2765 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2766 EF_IA_64_ABSOLUTE.
2767
2768 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2769
2770 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2771
2772 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2773
2774 * elf32-i860.c (elf32_i860_relocate_section): New function.
2775 (i860_final_link_relocate): New function.
2776 (elf32_i860_relocate_splitn): New function.
2777 (elf32_i860_relocate_pc16): New function.
2778 (elf32_i860_relocate_highadj): New function.
2779 (elf32_i860_howto): Minor adjustments to some relocations.
2780 (elf_info_to_howto_rel): Define.
2781 (elf_backend_relocate_section): Define.
2782
2783 2000-08-10 Nick Clifton <nickc@cygnus.com>
2784
2785 * elf32-arm.h: Fix formatting.
2786
2787 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2788
2789 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2790
2791 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2792
2793 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2794
2795 2000-08-07 Kazu Hirata <kazu@hxi.com>
2796
2797 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2798 * elf64-ia64.c: Fix a typo.
2799
2800 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2801
2802 * elf32-i860.c (elf32_i860_howto_table): New structure.
2803 (lookup_howto): New function.
2804 (elf32_i860_reloc_type_lookup): New function.
2805 (elf32_i860_info_to_howto_rela): New function.
2806 (elf_code_to_howto_index): New structure.
2807 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2808 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2809 elf32_i860_reloc_type_lookup.
2810
2811 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2812
2813 * som.c (struct fixup_format): Constify `format'.
2814 (som_hppa_howto_table): Use SOM_HOWTO macro.
2815 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2816 (som_bfd_reloc_type_lookup): Likewise.
2817 (compare_subspaces): Remove unused `count1', `count2'.
2818 (som_begin_writing): Remove unused `total_reloc_size'.
2819 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2820 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2821 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2822 (som_find_nearest_line): Decorate unused parameter(s).
2823 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2824 (som_bfd_link_split_section): Likewise.
2825
2826 2000-08-03 Nick Clifton <nickc@cygnus.com>
2827
2828 * section.c: Restore backed out code.
2829 * elf.c: Restore backed out code.
2830 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2831 binaries from working.
2832 * bfd-in2.h: Regenerate.
2833
2834 2000-08-03 H.J. Lu <hjl@gnu.org>
2835
2836 * section.c: Back out the change made by Nick Clifton
2837 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2838 binaries.
2839 * bfd-in2.h: Likewise.
2840 * elf.c: Likewise.
2841
2842 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2843
2844 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2845
2846 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2847
2848 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2849 * bfd-in2.h, libbfd.h: Regenerate.
2850
2851 2000-07-31 Nick Clifton <nickc@cygnus.com>
2852
2853 * section.c (struct sec): Add new boolean field 'segment_mark'.
2854 (STD_SECTION): Initialise new field to zero.
2855
2856 * bfd-in2.h: Regenerate.
2857
2858 * elf.c (copy_private_bfd_data): Reorganise section to segment
2859 mapping to cope with moved sections requiring new segments,
2860 and overlapping segments.
2861 (SEGMENT_END): New macro: Return the end address of a segment.
2862 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2863 contains a section by comparing their VMA addresses.
2864 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2865 contains a section by comparing their LMA addresses.
2866 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2867 section should be included in a segment.
2868 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2869 follows another in memory.
2870 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2871 segments overlap.
2872
2873 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2874
2875 * cpu-i860.c: Added comments.
2876
2877 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2878 bfd_elf32_i860_little_vec.
2879 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2880 (ELF_MAXPAGESIZE): Changed to 4096.
2881
2882 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2883 new target.
2884 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2885
2886 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2887 config for little endian elf32 i860.
2888 (targ_defvec): Define for the new config above
2889 as "bfd_elf32_i860_little_vec".
2890 (targ_selvecs): Define for the new config above
2891 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2892
2893 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2894 of new target vec.
2895
2896 * configure: Regenerated.
2897
2898 2000-07-27 H.J. Lu <hjl@gnu.org>
2899
2900 * elflink.h (elf_merge_symbol): Take one more argument,
2901 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2902 entry. Don't overide the existing weak definition if dt_needed
2903 is true.
2904 (elf_link_add_object_symbols): Pass dt_needed to
2905 elf_merge_symbol ().
2906
2907 2000-07-27 Nick Clifton <nickc@cygnus.com>
2908
2909 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2910 allocated contents.
2911
2912 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2913
2914 * configure.host (*-*-aix*): AIX has 'long long' always.
2915
2916 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2917 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2918 (xcoff_write_archive_contents_big): Don't update the offset
2919 of the symbol table, xcoff_write_armap will do it.
2920
2921 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2922
2923 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2924 of dynobj for SGI_COMPAT checks.
2925
2926 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2927
2928 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2929 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2930 * bfd-in2.h: Regenerate.
2931
2932 2000-07-21 Nick Clifton <nickc@cygnus.com>
2933
2934 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2935 range symbol indices in relocs and issue an error message.
2936
2937 2000-07-20 H.J. Lu <hjl@gnu.org>
2938
2939 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2940 info->new_dtags when setting DT_FLAGS_1. It will only be set
2941 by the new linker options. It shouldn't break anything.
2942
2943 2000-07-20 H.J. Lu <hjl@gnu.org>
2944
2945 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2946 only if info->new_dtags is true.
2947
2948 2000-07-20 H.J. Lu <hjl@gnu.org>
2949
2950 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2951 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2952
2953 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2954
2955 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2956 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2957 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2958 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2959 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2960 * Makefile.in: Rebuild.
2961 * aclocal.m4: Rebuild.
2962 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2963 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2964 (bfd_cris_arch): Declare.
2965 (bfd_archures_list): Add bfd_cris_arch.
2966 * bfd-in2.h: Rebuild.
2967 * config.bfd: (cris-*-*): New target.
2968 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2969 * configure: Rebuild.
2970 * elf.c (prep_headers): Add bfd_arch_cris.
2971 * libbfd.h: Rebuild.
2972 * libaout.h (enum machine_type): Add M_CRIS.
2973 * reloc.c: Add CRIS relocations.
2974 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2975 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2976 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2977 * po/POTFILES.in, po/bfd.pot: Regenerate.
2978
2979 2000-07-19 H.J. Lu <hjl@gnu.org>
2980
2981 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2982 DF_TEXTREL if DT_TEXTREL is set.
2983 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2984 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2985 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2986 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2987 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2988 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2989 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2990 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2991 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2992 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2993
2994 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2995 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2996 DT_RPATH is set.
2997 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2998
2999 2000-07-19 H.J. Lu <hjl@gnu.org>
3000
3001 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
3002 * bfd-in2.h: Rebuild.
3003
3004 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
3005 (elf_dt_soname): New.
3006
3007 * elf.c (bfd_elf_set_dt_needed_soname): New.
3008
3009 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
3010 entry if the shared object loaded by DT_NEEDED is used to
3011 resolve the reference in a regular object.
3012
3013 2000-07-19 H.J. Lu <hjl@gnu.org>
3014
3015 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
3016 DT_DEPAUDIT and DT_AUDIT as strings.
3017
3018 2000-07-19 Nick Clifton <nickc@cygnus.com>
3019
3020 * format.c: Fix formatting.
3021
3022 2000-07-19 H.J. Lu <hjl@gnu.org>
3023
3024 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
3025
3026 2000-07-19 H.J. Lu <hjl@gnu.org>
3027
3028 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3029 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3030 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3031 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3032 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3033 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3034 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3035
3036 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
3037
3038 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3039 renamed functions from here...
3040 (assign_section_numbers): Use renamed functions.
3041 (prep_headers): Use renamed functions.
3042
3043 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3044 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3045 * bfd-in2.h: Regenerate.
3046
3047 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
3048
3049 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3050 parenthesis in if statement.
3051
3052 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
3053
3054 Enable the support for Traditional MIPS.
3055 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3056 return ict_none appropriately for traditional mips targets.
3057 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3058 (STUB_MOVE): Conditionalize for traditonal mips.
3059 (STUB_LI16): Likewise.
3060 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3061 room for RTPROC header.
3062 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3063 the permission for the PT_DYNAMIC as read, write and execute.
3064 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3065 for traditonal mips.
3066 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3067 _DYNAMIC_LINKING for traditonal mips.
3068 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3069 in case of traditonal mips.
3070 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3071 entry is required. For a function if PLT is not required then set the
3072 corresponding hash table entry to 0.
3073 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3074 traditonal mips.
3075 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3076 shared object set the value to 0.
3077 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3078 _DYNAMIC_LINKING for traditonal mips.
3079 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3080 for traditonal mips.
3081
3082 2000-07-15 H.J. Lu <hjl@gnu.org>
3083
3084 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3085
3086 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3087
3088 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3089 out a structure that is BFD_IN_MEMORY.
3090
3091 2000-07-11 Alan Modra <alan@linuxcare.com.au>
3092
3093 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3094 bfd pointer. Print section id instead of bfd pointer for local
3095 syms. Prefix addend with `+' for global syms as well as local.
3096 Correct calculation of name component lengths.
3097 (elf64_hppa_check_relocs): Update call to get_dyn_name.
3098
3099 From David Huggins-Daines <dhd@linuxcare.com>
3100 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3101 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3102 (elf64_hppa_modify_segment_map): Likewise.
3103
3104 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3105
3106 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3107 addresses to be "naturally" sign extended. Return -1 if unknown.
3108 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3109 * bfd-in2.h: Regenerate.
3110
3111 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3112
3113 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3114 and ECOF_SIGNED_64 to list ways to extract an offset.
3115 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3116 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3117 Update.
3118 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3119 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3120
3121 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3122
3123 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3124 bfd_get_start_address.
3125 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3126 (elf_swap_ehdr_out): Ditto.
3127
3128 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3129
3130 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3131 compatibility with older binutils.
3132
3133 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3134
3135 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3136 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3137
3138 From Ryan Bradetich <rbradetich@uswest.net>
3139 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3140 (parse_line_table): Ditto.
3141 (_bfd_dwarf1_find_nearest_line): Ditto.
3142 * syms.c (cmpindexentry): Remove extra `*' from params.
3143
3144 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3145
3146 * elf32-mips.c (sort_dynamic_relocs): New Function.
3147 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3148 via qsort to sort the dynamic relocations in increasing r_symndx
3149 value.
3150
3151 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3152
3153 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3154 ATTRIBUTE_UNUSED to unused args.
3155 (get_opd): Likewise.
3156 (get_plt): Likewise.
3157 (get_dlt): Likewise.
3158 (get_stub): Likewise.
3159 (elf64_hppa_adjust_dynamic_symbol): Likewise.
3160 (elf64_hppa_link_output_symbol_hook): Likewise.
3161 (elf64_hppa_check_relocs): Delete unused var.
3162 (elf64_hppa_size_dynamic_sections): Likewise.
3163 (elf64_hppa_finalize_opd): Likewise.
3164 (elf64_hppa_finalize_dynreloc): Likewise.
3165 (elf64_hppa_modify_segment_map): Likewise.
3166 (elf64_hppa_finish_dynamic_sections): Likewise.
3167
3168 * elf-hppa.h (elf_hppa_final_write_processing): Add
3169 ATTRIBUTE_UNUSED to unused args.
3170 (elf_hppa_final_link_relocate): Likewise.
3171 (elf_hppa_record_segment_addrs): Add paretheses.
3172 (elf_hppa_relocate_section): Constify dyn_name.
3173
3174 From David Huggins-Daines <dhd@linuxcare.com>
3175 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3176 rearrange case statement so that it gets preferred to 32-bit ones.
3177
3178 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3179 asection->id instead of address of asection structure.
3180 (elf32_hppa_size_stubs): Likewise.
3181
3182 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3183 for .init* and .fini*.
3184
3185 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3186 and addends used in stub names to 32 bits.
3187 (elf32_hppa_size_stubs): Likewise.
3188
3189 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3190 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3191 not bfd_put_64. Fix minor comment typo and formatting.
3192
3193 Changes to create multiple linker stubs, positioned immediately
3194 before the section where they are required.
3195 * elf32-hppa.c: Don't include hppa_stubs.h.
3196 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3197 (elf32_hppa_stub_hash_table): Delete.
3198 (elf32_hppa_link_hash_entry): Delete.
3199 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3200 stub_hash_table, and store the struct here rather than a pointer.
3201 Delete output_symbol_count. Add offset array. Change
3202 global_value to a bfd_vma.
3203 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3204 (elf32_hppa_stub_hash_traverse): Delete.
3205 (elf32_hppa_name_of_stub): Delete.
3206 (elf32_hppa_link_hash_lookup): Delete.
3207 (elf32_hppa_link_hash_traverse): Delete.
3208 (elf32_hppa_stub_hash_table_init): Delete.
3209 (elf32_hppa_size_of_stub): Pass input section and offset rather
3210 than location and calculate location here. Don't pass name as all
3211 stubs are now the same size.
3212 (elf32_hppa_stub_hash_newfunc): Init new fields.
3213 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3214 too.
3215 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3216 comparing against ints. Rewrite stub handling code.
3217 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3218 Case enums to int before comparing against ints. Remove
3219 bfd_reloc_dangerous case.
3220 (elf32_hppa_build_one_stub): Rewrite.
3221 (elf32_hppa_size_one_stub): New function.
3222 (elf32_hppa_build_stubs): Rewrite.
3223 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3224 Rewrite stub-handling specific code.
3225
3226 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3227
3228 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3229
3230 * hppa_stubs.h: Delete.
3231 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3232 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3233 * Makefile.in: Regenerate.
3234
3235 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3236 e_nlrsel.
3237
3238 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3239
3240 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3241 and section name for bfd_reloc_notsupported error message.
3242 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3243 bfd_reloc_notsupported.
3244 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3245
3246 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3247 undefined weak symbols for all relocs.
3248 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3249 offsets are relative to one past the delay slot.
3250 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3251 branch destination. Put addend into stub name too.
3252 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3253 adjust by 8 when deciding whether a linker stub is needed. Put
3254 addend into stub name as for above.
3255
3256 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3257 various args and vars.
3258 (elf32_hppa_bfd_final_link_relocate): Here too.
3259 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3260 inner block var to avoid shadowing.
3261
3262 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3263 unsigned.
3264 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3265 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3266 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3267
3268 * libhppa.h: Change practically all unsigned ints to plain ints.
3269 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3270 prototypes.
3271
3272 From Ryan Bradetich <rbradetich@uswest.net>
3273 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3274 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3275 suit above.
3276 From David Huggins-Daines <dhd@linuxcare.com>
3277 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3278 to the new OP_* ones.
3279
3280 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3281 error exit. Bail out earlier on plabel relocs that we aren't
3282 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3283 string, and then don't free our copy.
3284 (elf32_hppa_build_one_stub): Make insn unsigned int.
3285
3286 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3287 available with BL, not BE and BLE.
3288
3289 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3290 code for elf arg relocs.
3291 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3292 argument with elf_link_hash_entry h. Handle undefined weak
3293 symbols. Move $global$ lookup from here...
3294 (elf32_hppa_relocate_section): ...to here. Return correct error
3295 message for non-handled relocs.
3296 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3297 wrong test was -0x3ffff to +0x40000.
3298
3299 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3300 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3301 Handle them as such.
3302 (elf_hppa_relocate_insn): Fix a typo.
3303
3304 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3305 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3306 assemble_17, assemble_21): Delete.
3307 Supply defines for all 64 possible opcodes.
3308 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3309 formats. Handle COMICLR.
3310 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3311 -10, -16, 16, 22.
3312
3313 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3314 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3315 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3316 to suit.
3317 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3318 the local syms - did this code get deleted accidentally? Ignore
3319 undefined and undefweak syms.
3320
3321 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3322 block. Use it instead of elf64_hppa_hash_table (info).
3323 (elf_hppa_final_link_relocate): Use hppa_info instead of
3324 elf64_hppa_hash_table (info).
3325
3326 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3327 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3328 (hppa_rebuild_insn): Mask immediate bits here instead.
3329 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3330
3331 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3332
3333 * section.c (struct sec): Add id field. Tidy comment formatting.
3334 (bfd_make_section_anyway): Set id.
3335 (STD_SECTION): Init id too.
3336 Change CONST to const throughout.
3337 * archures.c (bfd_arch_info): Tidy comment.
3338 (bfd_arch_list): Change a CONST to const.
3339 * libbfd-in.h: Tidy comments and replace CONST with const.
3340 * elf-bfd.h: Likewise.
3341 * libbfd.h: Regenerate.
3342 * bfd-in2.h: Regenerate.
3343 * libcoff.h: Regenerate.
3344
3345 2000-07-07 DJ Delorie <dj@redhat.com>
3346
3347 * archive.c (_bfd_write_archive_contents): Add an informative
3348 comment.
3349
3350 2000-07-06 Kazu Hirata <kazu@hxi.com>
3351
3352 * srec.c: Fix formatting.
3353
3354 2000-06-05 DJ Delorie <dj@redhat.com>
3355
3356 * MAINTAINERS: new
3357
3358 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3359
3360 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3361 value of PC-relative offsets.
3362
3363 2000-07-03 Jim Wilson <wilson@cygnus.com>
3364
3365 * elf64-alpha.c (alpha_elf_size_info): New.
3366 (elf_backend_size_info): Define to alpha_elf_size_info.
3367 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3368
3369 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3370
3371 * elf32-mips.c: Include elf32-target.h again for the traditional
3372 MIPS targets.
3373
3374 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3375
3376 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3377 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3378 (avr_info_to_howto_rela): Likewise.
3379 (elf32_avr_gc_mark_hook): Likewise.
3380 (elf32_avr_gc_sweep_hook): Likewise.
3381 (elf32_avr_relocate_section): Likewise.
3382
3383 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3384
3385 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3386 an external symbol for a non-shared, non-relocatable link.
3387
3388 2000-07-03 Nick Clifton <nickc@redhat.com>
3389
3390 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3391 is an external symbol.
3392 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3393 external symbol.
3394
3395 2000-07-03 Kazu Hirata <kazu@hxi.com>
3396
3397 * reloc16.c: Fix formatting.
3398
3399 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3400
3401 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3402 to add a new target for traditional mips i.e
3403 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3404 * configure.in: Likewise.
3405 * configure: Rebuild.
3406 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3407 bfd_target_vector.
3408 (bfd_elf32_tradlittlemips_vec): Likewise.
3409 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3410 to see that elfNN_bed does not get redefined even if the target file
3411 is included twice for a chip. See elf32-mips.c.
3412
3413 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3414
3415 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3416 (CLEANFILES): Add DEPA.
3417 * Makefile.in: Regenerate.
3418
3419 2000-06-30 DJ Delorie <dj@cygnus.com>
3420
3421 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3422 can't assume the PE header is at 0x80.
3423
3424 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3425
3426 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3427
3428 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3429
3430 * go32stub.h: Update stub.
3431
3432 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3433
3434 * archures.c (bfd_mach_avr5): Define.
3435 * bfd-in2.h (bfd_mach_avr5): Define.
3436 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3437 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3438 (compatible): Update comment. Add missing test.
3439 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3440 for avr2 and avr4. Simplify 8K wrap code.
3441 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3442 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3443
3444 2000-06-26 Kazu Hirata <kazu@hxi.com>
3445
3446 * coff-h8300.c: Fix formatting.
3447 * cpu-h8300.c: Likewise.
3448
3449 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3450
3451 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3452 for local symbols whose names are unknown.
3453
3454 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3455
3456 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3457 find one.
3458 * Makefile.in: Regenerate.
3459 * doc/Makefile.in: Regenerate.
3460
3461 2000-06-20 H.J. Lu <hjl@gnu.org>
3462
3463 * Makefile.am: Rebuild dependency.
3464 * Makefile.in: Rebuild.
3465
3466 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3467
3468 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3469 (elf_backend_copy_indirect_symbol): Map to the new function.
3470
3471 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3472
3473 * archive.c (normalize): Correct pointer comparison when checking
3474 for backslashes.
3475 (bfd_bsd_truncate_arname): Likewise.
3476 (bfd_gnu_truncate_arname): Likewise.
3477
3478 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3479
3480 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3481 sections elf_{text,data}_{section,symbol}.
3482 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3483 (_bfd_mips_elf_hide_symbol): New function.
3484 (elf_backend_hide_symbol): Map to the new function.
3485 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3486 definitions of mips_elf_{text,data}_{section,symbol}.
3487 (mips_elf_local_relocation_p): Try to find the direct symbol
3488 based on new check_forced argument.
3489 (mips_elf_calculate_relocation): Use new version of
3490 mips_elf_local_relocation_p.
3491 (mips_elf_relocate_section): Likewise.
3492 (_bfd_mips_elf_relocate_section): Likewise.
3493 (mips_elf_sort_hash_table): Only assert that have enough GOT
3494 space.
3495 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3496 entry if the relocation based on the new external argument.
3497 (mips_elf_create_dynamic_relocation): Assert that we have a
3498 section contents allocated where we can swap out the dynamic
3499 relocations.
3500 (mips_elf_calculate_relocation): Find the real hash-table entry
3501 correctly by using h->root.root.type. Only create a dynamic
3502 relocation entry if the symbol is defined in a shared library.
3503 Create an external GOT entry for the GOT16 relocation if the
3504 symbol was forced local.
3505 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3506 dynamic index if the symbol was forced local.
3507
3508 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3509
3510 * elf32-mips.c: Fix typos in comments.
3511
3512 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3513
3514 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3515 CORE_VERSION_1.
3516
3517 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3518
3519 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3520 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3521 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3522 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3523 (bfd_elf32_m68hc11_vec): Likewise.
3524 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3525 Supports 68hc11 & 68hc12 at the same time.
3526 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3527 bfd_target_vector.
3528 (bfd_elf32_m68hc11_vec): Likewise.
3529 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3530 * archures.c (bfd_m68hc12_arch): Define and register in global list
3531 (bfd_m68hc11_arch): Likewise.
3532 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3533 BFD_RELOC_M68HC11_3B): Define.
3534 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3535 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3536
3537 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3538
3539 * elf_bfd.h (struct elf_backend_data): Add info argument to
3540 elf_backend_hide_symbol.
3541 (_bfd_elf_link_hash_hide_symbol): Likewise.
3542 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3543 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3544 * elflink.h (elf_link_add_object_symbols): Likewise.
3545 (elf_link_assign_sym_version): Likewise.
3546
3547 2000-06-18 H.J. Lu <hjl@gnu.org>
3548
3549 * coff-i386.c (coff_i386_reloc): Don't return in case of
3550 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3551 Compensate PE relocations when linking with non-PE object
3552 files to generate a non-PE executable.
3553
3554 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3555
3556 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3557 GOT entries if we're doing a static link or -Bsymbolic link.
3558
3559 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3560
3561 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3562 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3563 available.
3564 (elf_link_output_relocs): Likewise.
3565 (elf_reloc_link_order): Likewise.
3566
3567 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3568
3569 * archures.c (enum bfd_architecture): #define constants for
3570 PowerPc and RS6000 machine numbers.
3571 * bfd-in2.h: Regenerate.
3572 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3573 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3574 and RS6000 machine numbers using #defined constants from
3575 archures.c.
3576 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3577 machine numbers using #defined constants from archures.c. Add
3578 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3579 64-bit words in 620 entry.
3580 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3581 RSC, and RS2.
3582 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3583
3584 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3585
3586 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3587 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3588 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3589
3590 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3591
3592 * bfd-in.h (bfd_family_coff): Define.
3593 * bfd-in2.h: Regenerate.
3594 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3595 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3596 instead of bfd_target_coff_flavour.
3597 * cofflink.c (_bfd_coff_final_link): Likewise.
3598 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3599 exclude XCOFF files.
3600 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3601 Likewise.
3602 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3603 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3604 * xcofflink.c (XCOFF_XVECP): Delete.
3605 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3606 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3607 bfd_xcoff_record_link_assignment,
3608 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3609 check for bfd_target_xcoff_flavour.
3610
3611 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3612
3613 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3614 files on AIX 4.3.
3615 (read_hdr): New function.
3616 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3617 of trying to extract individual registers. Set abfd->arch_info
3618 to match the architecture that created the core file.
3619 (rs6000coff_get_section_contents): Delete.
3620 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3621
3622 2000-06-14 H.J. Lu <hjl@gnu.org>
3623
3624 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3625 is NULL.
3626
3627 2000-06-13 H.J. Lu <hjl@gnu.org>
3628
3629 * configure: Regenerate.
3630
3631 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3632
3633 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3634 armpei_little_vec.
3635
3636 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3637
3638 * configure.in (VERSION): Update to show this is the CVS mainline.
3639
3640 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3641
3642 * elf32-d10v.c: Include elf/d10v.h
3643 (enum reloc_type): Delete.
3644 * elf32-d30v.c: Include elf/d30v.h
3645 (enum reloc_type): Delete.
3646
3647 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3648 * Makefile.in: Regenerate.
3649
3650 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3651 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3652 move HOWTOs into elf_howto_table.
3653 (R_386_standard, R_386_ext_offset): Define.
3654 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3655 (elf_i386_reloc_type_lookup): Modify calculation of index into
3656 elf_howto_table since we've removed the padding.
3657 (elf_i386_info_to_howto_rel): Likewise.
3658 (elf_i386_relocate_section): Likewise.
3659
3660 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3661
3662 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3663
3664 2000-06-05 H.J. Lu <hjl@gnu.org>
3665
3666 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3667 an error when seeing an undefined symbol with hidden/internal
3668 attribute. It is handled in *_relocate_section ().
3669
3670 2000-06-05 H.J. Lu <hjl@gnu.org>
3671
3672 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3673 indirect symbol for the ELF_LINK_NON_ELF bit.
3674 (elf_link_output_extsym): Don't output the indirect symbol even
3675 if the ELF_LINK_NON_ELF bit is set.
3676
3677 2000-06-01 J.T. Conklin <jtc@redback.com>
3678
3679 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3680 (i[3456]86-*-netbsdaout*): New target.
3681 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3682 (i[3456]86-*-openbsd*): Likewise.
3683
3684 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3685
3686 * trad-core.c: From hpux-core.c, include <dirent.h> or
3687 <sys/ndir.h> when possible.
3688
3689 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3690
3691 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3692 definitions. We must not assume they are sorted in the file
3693 according to their index numbers.
3694
3695 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3696
3697 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3698 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3699 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3700
3701 2000-05-30 Nick Clifton <nickc@cygnus.com>
3702
3703 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3704 80960CA, 80960MC as valid machine names.
3705
3706 2000-05-30 H.J. Lu <hjl@gnu.org>
3707
3708 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3709 visibility bits if the symbol is undefined. Correctly handle
3710 weak undefined symbols with hidden and internal attributes.
3711
3712 * elflink.h (elf_link_add_object_symbols): Always turn the
3713 symbol into local if it has the hidden or internal attribute.
3714
3715 2000-05-29 Philip Blundell <philb@gnu.org>
3716
3717 * ppcboot.c: Add packed attribute if compiling with GCC.
3718
3719 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3720
3721 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3722
3723 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3724
3725 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3726 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3727 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3728 a few old comments.
3729
3730 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3731
3732 * Makefile.am: Update dependencies with "make dep-am"
3733 * Makefile.in: Regenerate.
3734
3735 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3736 bindtextdomain): Replace defines with those from intl/libgettext.h
3737 to quieten gcc warnings.
3738
3739 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3740
3741 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3742
3743 * archive.c (normalize, bfd_bsd_truncate_arname,
3744 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3745 file names with backslashes.
3746
3747 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3748 before opening it.
3749
3750 * sysdep.h: Include filenames.h.
3751
3752 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3753
3754 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3755
3756 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3757
3758 * elf64-sparc.c (sparc64_elf_relax_section): New.
3759 (sparc64_elf_relocate_section): Optimize tail call into branch always
3760 if possible.
3761 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3762 (elf32_sparc_relax_section): New.
3763
3764 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3765
3766 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3767 Remove unusued variables.
3768 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3769 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3770 previous fix, so that shared libs really don't influence targets
3771 extension mask and memory model.
3772
3773 2000-05-23 H.J. Lu <hjl@gnu.org>
3774
3775 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3776 h->root.other not h->other.
3777 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3778
3779 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3780
3781 2000-05-23 H.J. Lu <hjl@gnu.org>
3782
3783 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3784 undefined symbol with the non-default visibility attributes.
3785 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3786 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3787 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3788 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3789 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3790 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3791 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3792 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3793 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3794 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3795 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3796
3797 2000-05-22 Richard Henderson <rth@cygnus.com>
3798
3799 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3800 PCREL22, PCREL64I. Zero size of special relocs.
3801 (elf64_ia64_reloc_type_lookup): Likewise.
3802 (USE_BRL, oor_brl, oor_ip): New.
3803 (elf64_ia64_relax_section): New.
3804 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3805 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3806 (elf64_ia64_relocate_section): Likewise.
3807 (bfd_elf64_bfd_relax_section): New.
3808 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3809 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3810 * bfd-in2.h, libbfd.h: Regenerate.
3811
3812 2000-05-22 Nick Clifton <nickc@cygnus.com>
3813
3814 * configure.in : Add peigen.lo to MIPS PE targets.
3815 * configure: Regenerate.
3816
3817 2000-05-22 Momchil Velikov <velco@fadata.bg>
3818
3819 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3820 only if it is known for both input and output bfds. Separate
3821 error message strings as in some languages, it may be necessary
3822 to change more than one place in the string to change between
3823 'big' and 'little'.
3824
3825 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3826 endianess checks, call _bfd_generic_verify_endian_match() instead.
3827
3828 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3829
3830 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3831
3832 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3833 endianess before checking bfd flavours.
3834
3835 2000-05-22 H.J. Lu <hjl@gnu.org>
3836
3837 * elflink.h (elf_link_output_extsym): Clear the visibility
3838 field for symbols not defined locally.
3839
3840 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3841
3842 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3843 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3844 (hppa_rebuild_insn): Mask immediate bits here instead.
3845 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3846
3847 2000-05-18 Momchil Velikov <velco@fadata.bg>
3848
3849 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3850 relocs for an executable, ensure that they are virtual addresses.
3851
3852 2000-05-18 Jeffrey A Law (law@cygnus.com)
3853
3854 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3855
3856 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3857 Rick Gorton <gorton@scrugs.lkg.dec.com>
3858
3859 * elflink.h: Add emitrelocations support: when enabled, relocation
3860 information and relocation sections are put into final output
3861 executables. If the emitrelocations flag is set, do the following:
3862 (elf_bfd_final_link): Emit relocation sections.
3863 (elf_link_input_bfd): Compute relocation section contents.
3864 (elf_gc_sections): Don't clean relocation sections.
3865
3866 2000-05-16 Catherine Moore <clm@cygnus.com>
3867
3868 * som.c (som_decode_symclass): Recognize weak symbols.
3869
3870 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3871
3872 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3873 read idata section only from dataoff.
3874 (pe_print_edata): Correctly check for valid eat_member.
3875
3876 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3877
3878 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3879
3880 2000-05-14 Philip Blundell <philb@gnu.org>
3881
3882 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3883
3884 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3885
3886 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3887
3888 * peigen.c (pe_print_idata): Look for .idata section and print
3889 info even if data directory has zero entries. Read idata section
3890 starting from dataoff, and adjust all data offsets to suit. Cast
3891 all bfd_vma vars to unsigned long before passing to fprintf.
3892 * peigen.c (pe_print_edata): Similarly, look for .edata section
3893 and print info even if data directory has zero entries. Cast
3894 all bfd_vma vars to unsigned long before passing to fprintf.
3895
3896 From Szabolcs Szakacsits <szaka@F-Secure.com>
3897 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3898 directory size which may be bogus.
3899 * peigen.c (pe_print_edata): Similarly.
3900
3901 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3902
3903 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3904 section is empty.
3905 (copy_private_bfd_data): Allow for space possibly taken up by elf
3906 headers when calculating segment physical address from lma.
3907
3908 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3909
3910 * versados.c (versados_scan): Init stringlen and pass_2_done.
3911
3912 * trad-core.c (trad_unix_core_file_p): Return
3913 bfd_error_wrong_format rather than bfd_error_file_truncated.
3914
3915 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3916 add_data_entry. DataDirectory virtual address is relative.
3917 (pe_print_idata): Account for relative DataDirectory virtual
3918 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3919 (pe_print_edata): Similarly.
3920
3921 From Szabolcs Szakacsits <szaka@F-Secure.com>
3922 * peigen.c (dir_names): Add Delay Import Directory.
3923 (pe_print_idata): Always search for bfd section containing
3924 idata address rather than looking up section name. Print this
3925 section name rather than .idata.
3926 (pe_print_edata): Similarly. Also print some fields as %08lx.
3927 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3928 Win32Version.
3929
3930 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3931
3932 * xcoff.h: Rename to xcoff-target.h
3933 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3934 * coff-rs6000.c: Ditto.
3935 * coff64-rs6000.c: Ditto.
3936 * coff-pmac.c: Ditto.
3937 * Makefile.in: Regenerate.
3938
3939 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3940
3941 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3942 Change U802TOC64MAGIC to U803XTOCMAGIC.
3943
3944 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3945
3946 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3947 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3948 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3949
3950 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3951
3952 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3953
3954 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3955
3956 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3957 hidden and internal symbols.
3958 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3959 visibility.
3960 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3961 assign a PLT or GOT entry to symbols with hidden and
3962 internal visibility.
3963
3964 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3965
3966 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3967 the .bss section.
3968 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3969
3970 2000-05-02 H.J. Lu <hjl@gnu.org>
3971
3972 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3973 ELFOSABI_SYSV.
3974
3975 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3976
3977 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3978 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3979 dependencies.
3980 * Makefile.in: Regenerate.
3981
3982 2000-05-01 Jim Wilson <wilson@cygnus.com>
3983
3984 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3985 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3986 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3987 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3988 * Makefile.in: Rebuild.
3989
3990 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3991
3992 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3993 doesn't work very well.
3994
3995 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3996 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3997 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3998 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3999 (elf_hppa_info_to_howto): Likewise.
4000 (elf_hppa_info_to_howto_rel): Likewise.
4001 (elf_hppa_reloc_type_lookup): Likewise.
4002 (elf_hppa_is_local_label_name): Likewise.
4003 (elf_hppa_fake_sections): Likewise.
4004 (elf_hppa_final_write_processing): Likewise.
4005 (elf_hppa_howto_table): Fully initialise all entries.
4006 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
4007 (elf_hppa_info_to_howto): Likewise.
4008 (elf_hppa_info_to_howto_rel): Likewise.
4009 (elf_hppa_reloc_type_lookup): Likewise.
4010 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
4011 elf_hppa_unmark_useless_dynamic_symbols,
4012 elf_hppa_remark_useless_dynamic_symbols,
4013 elf_hppa_record_segment_addrs, elf_hppa_final_link,
4014 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
4015 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
4016 elf32-hppa.c mess is cleaned up.
4017 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
4018 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
4019 r_field then call hppa_field_adjust inline func with variable
4020 r_field arg, instead call hppa_field_adjust with fixed arg.
4021 In case R_PARISC_PCREL22F, don't set r_field.
4022 (elf_hppa_relocate_insn): Change args and return type to unsigned
4023 int. Call re_assemble_* funcs to do the work.
4024
4025 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
4026 sign extending.
4027
4028 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4029 extending.
4030 (sign_extend): Mask first before sign extending.
4031 (low_sign_extend): Rewrite without condition expression.
4032 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4033 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4034 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4035 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4036 result as function return value rather than through pointer arg.
4037 Accept unsigned int args, and return unsigned int.
4038 (re_assemble_3): New. Combines function of dis_assemble_3 with
4039 re-assembly of opcode and immediate.
4040 (re_assemble_12): Likewise.
4041 (re_assemble_16): Likewise.
4042 (re_assemble_17): Likewise.
4043 (re_assemble_21): Likewise.
4044 (re_assemble_22): Likewise.
4045 (hppa_field_adjust): Rewrite and document, paying attention to
4046 size of types and signed/unsigned issues.
4047 (get_opcode): Shift before masking.
4048 (FDLW): Rename to FLDW.
4049 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
4050 (hppa_rebuild_insn): Change args and return value to unsigned
4051 int. Make use of re_assemble_*. Correct case 11.
4052
4053 * dep-in.sed: Handle ../opcodes/.
4054 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4055 elf64-hppa.h, hppa_stubs.h, xcoff.h.
4056 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4057 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4058 elfarm-nabi.lo dependencies outside of auto-dependency area.
4059 Regenerate dependencies.
4060 * Makefile.in: Regenerate.
4061
4062 * configure.in (TRAD_HEADER): Test non-null before
4063 AC_DEFINE_UNQUOTED.
4064 * configure: Regenerate.
4065
4066 * reloc.c: Fix mis-spelling in comment.
4067
4068 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4069
4070 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4071 * vms.c (vms_openr_next_archived_file): Return NULL.
4072
4073 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4074
4075 * coffcode.h Copy changes mistakenly done to libcoff.h in
4076 4/24/2000 patch.
4077
4078 2000-04-29 Andreas Jaeger <aj@suse.de>
4079
4080 * libbfd-in.h: Correctly check GCC version.
4081 * bfd-in.h: Likewise.
4082 * libhppa.h: Likewise.
4083 * libbfd.h: Regenerate.
4084 * bfd-in2.h: Regenerate.
4085
4086 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4087
4088 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4089 coffdu-rs6000.{lo,c}.
4090 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4091 on xcoff.h
4092 * Makefile.in: Regenerate.
4093 * xcoff.h: New file.
4094 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4095 * coff-rs6000.c: Move all declarations and defines that are
4096 common to the xcoff backends into xcoff.h
4097 * coff64-rs6000.c: Ditto,
4098
4099 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4100
4101 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
4102 _bfd_coff_force_symnames in strings and
4103 _bfd_coff_debug_string_prefix_length to their default values.
4104 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4105
4106 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4107
4108 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4109 _bfd_coff_force_symnames in strings and
4110 _bfd_coff_debug_string_prefix_length to their default values.
4111
4112 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4113
4114 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4115 Check local_got_refcounts before dereferencing.
4116
4117 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4118 before deciding we don't need R_PPC_PLT32 relocation.
4119 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4120 dereferencing.
4121
4122 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4123
4124 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4125 .plt entries.
4126 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4127 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4128 (elf_i386_relocate_section): Allow for .plt to go missing.
4129 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4130 can use a relative reloc for got as elf_i386_relocate_section.
4131 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4132
4133 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4134
4135 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4136
4137 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4138
4139 * Makefile.am (coff64-rs6000.lo): New rule.
4140 * Makefile.in: Regenerate.
4141 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4142 xcoff_is_local_label_name, xcoff_rtype2howto,
4143 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4144 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4145 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4146 (NO_COFF_SYMBOLS): Define.
4147 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4148 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4149 internally.
4150 (MINUS_ONE): New macro.
4151 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4152 relocation.
4153 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4154 coff_SWAP_aux_out): Map to the new functions.
4155 * coff64-rs6000.c: New file.
4156 * libcoff.h (bfd_coff_backend_data): Add new fields
4157 _bfd_coff_force_symnames_in_strings and
4158 _bfd_coff_debug_string_prefix_length.
4159 (bfd_coff_force_symnames_in_strings,
4160 bfd_coff_debug_string_prefix_length): New macros for above fields.
4161 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4162 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
4163 of using coff_swap_sym_in directly.
4164 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4165 (coff_set_flags) Set magic for XCOFF64.
4166 (coff_compute_section_file_positions): Add symbol name length to
4167 string section length if bfd_coff_debug_string_prefix_length is
4168 true.
4169 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4170 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4171 using coff_swap_lineno_in directly.
4172 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4173 and _bfd_coff_debug_string_prefix_length fields.
4174 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4175 symbol names into strings table when
4176 bfd_coff_force_symnames_in_strings is true.
4177 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4178 SET_RELOC_VADDR): New macros.
4179 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4180 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4181 code.
4182 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4183 changes within RS6000COFF_C specific code.
4184 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4185 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4186 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4187 Extend existing hack on target name.
4188 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4189 target name.
4190 * coff-tic54x.c (ticof): Keep up to date with new fields
4191 in bfd_coff_backend_data.
4192 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4193 targ_selvecs to include rs6000coff64_vec for rs6000.
4194 * configure.in: Add rs6000coff64_vec case.
4195 * cpu-powerpc.c: New bfd_arch_info_type.
4196
4197 2000-04-24 Jeffrey A Law (law@cygnus.com)
4198
4199 * config.bfd: Only disable elf32-hppa vectors, not all of the
4200 BSD and OSF configuration support. Provide (disabled) clauses
4201 for PA64 support.
4202 * configure.in: Add clause for PA64 support.
4203 * configure: Rebuilt.
4204
4205 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4206 (bfd_elf64_hppa_vec): Declare.
4207
4208 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4209 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4210 (elf64-hppa.lo): Add dependencies.
4211 * Makefile.in: Rebuilt.
4212
4213 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4214
4215 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4216
4217 * libhppa.h (dis_assemble_16): New function.
4218 (pa_arch): Added pa20w element.
4219
4220 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4221
4222 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4223 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4224 bfd_elf64_slurp_reloc_table.
4225
4226 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4227 definitions to get external names.
4228 (elf_write_relocs): Renamed from write_relocs and make global.
4229 (elf_slurp_reloc_table): Make global.
4230 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4231
4232 * archive.c (hpux_uid_gid_encode): New function.
4233 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4234 defined and the ID is greater than 99999.
4235 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4236 special uid/gid fields into 32 bit values.
4237
4238 2000-04-21 Matthew Green <mrg@cygnus.com>
4239
4240 * config.bfd: Add NetBSD/sparc64 support.
4241
4242 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4243 David Mosberger <davidm@hpl.hp.com>
4244 Timothy Wall <twall@cygnus.com>
4245 Jim Wilson <wilson@cygnus.com>
4246
4247 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4248 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4249 (BFD64_BACKENDS): Add elf64-ia64.lo.
4250 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4251 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4252 * Makefile.in: Rebuild.
4253 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4254 (bfd_ia64_arch): Declare.
4255 (bfd_archures_list): Add bfd_ia64_arch.
4256 * bfd-in2.h: Rebuild.
4257 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4258 * configure: Rebuild.
4259 * configure.host: (ia64-*-linux*): New host.
4260 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4261 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4262 * elf.c (prep_headers): Add bfd_arch_ia64.
4263 * libbfd.h: Rebuild.
4264 * reloc.c: Add IA-64 relocations.
4265 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4266 Declare.
4267 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4268 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4269
4270 2000-04-21 Richard Henderson <rth@cygnus.com>
4271
4272 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4273 contents when performing a partial link.
4274 (bfd_elf_d30v_reloc_21): Likewise.
4275
4276 2000-04-20 H.J. Lu <hjl@gnu.org>
4277
4278 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4279 patch to symbols defined by a shared object.
4280 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4281
4282 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4283
4284 K&R compiler fixes.
4285 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4286 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4287
4288 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4289
4290 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4291 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4292 (coff-ia64.lo): Add dependency.
4293 * Makefile.in: Regenerate.
4294 * coff-ia64.c: New file.
4295 * efi-app-ia32.c: Ditto.
4296 * efi-app-ia64.c: Ditto.
4297 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4298 (coff_set_flags): Ditto.
4299 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4300 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4301 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4302 * configure: Regenerate.
4303 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4304 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4305 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4306 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4307 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4308 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4309 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4310 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4311 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4312 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4313 (GET_PDATA_ENTRY): Ditto.
4314 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4315 data_start. Use above macros to read fields that are 64 bit wide for
4316 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4317 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4318 FileAlignment and SectionAlignment to minimum alignment if they
4319 are zero.
4320 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4321 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4322 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4323 Use above macros to write fields that are 64 bit wide for
4324 COFF_WITH_PEP64.
4325 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4326 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4327 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4328 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4329 begin address, end address, and unwind info address only. Use
4330 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4331 print addresses.
4332 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4333 HIGH3ADJ relocation names.
4334 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4335 * targets.c: Declare bfd_efi_app_ia32_vec and
4336 bfd_efi_app_ia64_vec.
4337 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4338 bfd_efi_app_ia64_vec.
4339
4340 2000-04-17 Timothy Wall <twall@cygnus.com>
4341
4342 * bfd-in2.h: Add prototypes for tic54x load page access.
4343 * bfd-in.h: Regenerate.
4344 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4345 in customized _set_arch_mach function.
4346 * coffcode.h (coff_set_alignment_hook): Set section load page if
4347 the appropriate macro is defined.
4348 (write_object_contents): Read section load page.
4349
4350 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4351
4352 * elf32-hppa.h: Update copyright date.
4353
4354 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4355 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4356
4357 * elf32-d30v.c (MAX32): Don't use LL suffix.
4358 (MIN32): Define in terms of MAX32.
4359 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4360
4361 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4362 expression.
4363
4364 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4365
4366 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4367
4368 * dep-in.sed: Match space before file name, not after.
4369 * Makefile.am: Regenerate dependencies.
4370 * Makefile.in: Regenerate.
4371
4372 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4373 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4374 extend without an if statement.
4375
4376 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4377
4378 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4379 signed quantites.
4380 * elf32-mips.c (gprel16_with_gp): Likewise.
4381 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4382 here using -0x40000, not (int)0xfffc0000.
4383 (elf32_hppa_size_of_stub): Likewise.
4384
4385 2000-04-11 Timothy Wall <twall@cygnus.com>
4386
4387 * coff-tic54x.c: Now builds with all targets.
4388 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4389 * Makefile.in: Regenerate.
4390 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4391 unitialized variable.
4392
4393 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4394
4395 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4396 --enable-build-warnings option.
4397 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4398 * Makefile.in, configure: Re-generate.
4399
4400 2000-04-07 Nick Clifton <nickc@cygnus.com>
4401
4402 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4403 BFD_RELOC_THUMB_PCREL_BLX.
4404
4405 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4406 R_ARM_XPC25 and R_ARM_THM_PC22.
4407
4408 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4409 R_ARM_XPC25 and R_ARM_THM_XPC22.
4410 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4411 R_ARM_[XPC25|THM_XPC22].
4412
4413 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4414 elf/arm-oabi.h to elf/arm.h
4415
4416 * Makefile.am: Fix dependency for elfarm-oabi.c
4417 * Makefile.in: Regenerate.
4418
4419 * bfd-in2.h: Regenerate.
4420 * libbfd.h: Regenerate.
4421
4422 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4423
4424 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4425 and restore it on failure. Release newly allocated tdata on
4426 failure.
4427
4428 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4429
4430 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4431 (decode_line_info): Set it. Report error if unit->line_offset is
4432 equal to or larger than it.
4433
4434 2000-04-07 Timothy Wall <twall@cygnus.com>
4435
4436 * targets.c: Added vecs for tic54x.
4437 * reloc.c: Added relocs for tic54x.
4438 * libbfd.h: Regenerated.
4439 * configure: Add TI COFF vecs for tic54x.
4440 * configure.in: Ditto.
4441 * config.bfd (targ_cpu): Recognize new tic54x target.
4442 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4443 * bfd-in2.h: Add tic54x target and relocations.
4444 * Makefile.am, Makefile.in: Add tic54x target.
4445 * archures.c (bfd_archures_list): Add tic54x target.
4446 * coff-tic54x.c: New.
4447 * cpu-tic54x.c: New.
4448
4449 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4450
4451 * elfcore.h (elf_core_file_p): call backend_object_p which
4452 thereby gets an opportunity to update the arch/machine type.
4453
4454 2000-04-06 Timothy Wall <twall@cygnus.com>
4455
4456 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4457 class. Handle SEC_CLINK and SEC_BLOCK flags.
4458 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4459 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4460
4461 2000-04-06 Nick Clifton <nickc@cygnus.com>
4462
4463 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4464 EF_INTERWORK if this is an unknown EABI.
4465 (elf32_arm_merge_private_bfd_data): Check EABI version
4466 numbers. Only check EF_xxx flags if the EABI version number
4467 is unknown.
4468 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4469 if the EABI version number is unknown.
4470 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4471 if the EABI version number is unknown.
4472
4473 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4474
4475 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4476 BFD_RELOC_SH_LOOP_END.
4477 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4478 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4479 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4480 (sh_elf_reloc_loop): New function.
4481 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4482 any more.
4483 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4484 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4485 * bfd-in2.h, libbfd.h: Regenerate.
4486
4487 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4488
4489 * po/bfd.pot: Regenerate.
4490
4491 * Makefile.am: Remove extraneous mkdep comment.
4492 (MKDEP): Use gcc -MM rather than mkdep.
4493 (DEP): Quote when passing vars to sub-make. Add warning
4494 message to end.
4495 (DEP1): Rewrite for "gcc -MM".
4496 (CLEANFILES): Add DEP2.
4497 Update dependencies.
4498 * Makefile.in: Regenerate.
4499
4500 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4501
4502 * configure.in: Added corefile support for AIX 4.3. In particular,
4503 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4504 compiling rs6000-core.c.
4505 * configure: Regenerated.
4506
4507 2000-04-03 H.J. Lu <hjl@gnu.org>
4508
4509 * cache.c (bfd_open_file): Unlink the output file only if
4510 it has non-zero size.
4511
4512 2000-04-01 Ken Block USG <block@zk3.dec.com>
4513
4514 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4515 relative relocations for non-loaded sections in shared objects.
4516 (elf64_alpha_check_relocs): Similarly.
4517
4518 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4519
4520 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4521 BFD_RELOC_16 to switch for extended relocs.
4522 (MY_swap_ext_reloc_in): New.
4523 (MY_swap_ext_reloc_out): New.
4524 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4525 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4526 (NAME(aout,squirt_out_relocs)): Similarly use
4527 MY_swap_ext_reloc_out.
4528 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4529
4530 2000-04-03 Kazu Hirata <kazu@hxi.com>
4531
4532 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4533 the R_PCRWORD_B case.
4534
4535 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4536
4537 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4538 on some targets.
4539 * ihex.c : Ditto.
4540
4541 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4542
4543 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4544 HOWTO references to bfd_elf_generic_reloc, that have
4545 partial_inplace == true, now use the new function. The function
4546 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4547 extends its fixes to the R_M32R_{16,24,32} relocs.
4548 The new logic in m32r_elf_lo16_reloc() has been removed, and
4549 it instead calls the new routine to obtain that functionality.
4550
4551 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4552
4553 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4554 elf32_avr_check_relocs, avr_final_link_relocate,
4555 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4556 elf32_avr_object_p): Add prototypes.
4557 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4558 (bfd_elf_avr_final_write_processing): Make static.
4559
4560 2000-03-27 Denis Chertykov <denisc@overta.ru>
4561
4562 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4563 * archures.c (bfd_architecture): Add AVR architecture.
4564 (bfd_archures_list): Add reference to AVR architecture info.
4565 * elf.c (prep_headers): Handle bfd_arch_avr.
4566 * reloc.c: Add various AVR relocation enums.
4567 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4568 list.
4569 * Makefile.am: Add support for AVR elf.
4570 * configure.in: Likewise.
4571 * config.bfd: Likewise.
4572 * Makefile.in: Regenerate.
4573 * configure: This too.
4574 * bfd-in2.h: And this.
4575 * libbfd.h: And this.
4576
4577 2000-03-24 H.J. Lu <hjl@gnu.org>
4578
4579 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4580 (elf64_alpha_find_reloc_at_ofs): Likewise.
4581
4582 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4583
4584 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4585 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4586 allowable range used to be -2**(n-1) to 2**n-1.
4587 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4588 "boolean overflow" with "bfd_reloc_status_type flag".
4589
4590 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4591
4592 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4593
4594 2000-03-14 Kazu Hirata <kazu@hxi.com>
4595
4596 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4597 of shrinks properly, including the last reloc.
4598
4599 2000-03-13 Kazu Hirata <kazu@hxi.com>
4600
4601 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4602 check for R_MOVL2.
4603
4604 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4605
4606 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4607 a format mismatch rather than an "error" from bfd_read such as
4608 bfd_error_file_truncated.
4609
4610 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4611
4612 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4613 sign-extension and big-endian compensation for
4614 R_MIPS_64 even in ld -r.
4615
4616 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4617
4618 * elf32-mips.c (mips_elf_next_relocation): Rename from
4619 mips_elf_next_lo16_relocation, and generalize to look
4620 for any relocation type.
4621 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4622 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4623 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4624 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4625 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4626 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4627 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4628 (mips_rtype_to_howto): Likewise.
4629 (mips_elf_calculate_relocation): Handle new relocs.
4630 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4631 are paired. The addend for R_MIPS_GNU_REL16_S2
4632 is shifted right two bits.
4633
4634 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4635
4636 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4637 comment, and ensure it doesn't happen again.
4638 (bfd_install_relocation): Same here.
4639 (_bfd_relocate_contents): Don't bother assigning unused signmask
4640 shift result. Fix typos in comments.
4641 Remove trailing whitespace throughout file.
4642
4643 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4644
4645 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4646 * bfd-in2.h: Rebuild.
4647
4648 2000-03-06 Nick Clifton <nickc@cygnus.com>
4649
4650 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4651 sym_ptr_ptr fields.
4652 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4653 (SIZEOF_ILF_STRINGS): Redefine.
4654 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4655 relative reloc, as opposed to a section relative reloc.
4656 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4657 not C_LABEL.
4658 Add length of symbol's prefix to string pointer.
4659 Store a pointer to the symbol in the symbol pointer table.
4660 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4661 Initialise the symbol pointer table.
4662 Store the hint in the Hint/Name table.
4663 Make the jump reloc be symbol realtive, not section relative.
4664 Create an import symbol for imported code.
4665
4666 2000-03-06 Catherine Moore <clm@cygnus.com>
4667
4668 * elf.c (swap_out_syms): Check for null type_ptr.
4669
4670 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4671
4672 * aout-target.h (MY(write_object_contents)): Remove unused
4673 and unusable "#if CHOOSE_RELOC_SIZE".
4674 * pc532-mach.c (MY(write_object_contents)): Ditto.
4675 * netbsd.h (MY(write_object_contents)): Ditto.
4676 * hp300hpux.c (MY(write_object_contents)): Ditto.
4677 * freebsd.h (MY(write_object_contents)): Ditto.
4678 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4679
4680 2000-02-29 H.J. Lu <hjl@gnu.org>
4681
4682 * peicode.h (jtab): Make it static.
4683
4684 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4685 defined and COFF_IMAGE_WITH_PE is not defined.
4686 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4687 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4688
4689 2000-03-01 Nick Clifton <nickc@cygnus.com>
4690
4691 * coff-arm.c (bfd_arm_process_before_allocation): Make
4692 'symndx' signed to prevent compile time warning.
4693
4694 * coff-mcore.c: Remove unused prototype for pe_object_p.
4695
4696 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4697 functions that are not used when COFF_IMAGE_WITH_PE is
4698 defined.
4699 (struct sh_opcode): Change type of 'flags' field to unsigned
4700 long so that it can hold the USESAS flag.
4701
4702 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4703
4704 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4705 'sym_sec'.
4706
4707 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4708 parameters.
4709 Remove unusued variables and code.
4710 (elf_backend_add_symbol_hook): Fix prototype.
4711
4712 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4713 'srelgot'.
4714
4715 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4716 'oldinst'.
4717
4718 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4719 parameters.
4720 Remove unusued variables and code.
4721 (elf_backend_add_symbol_hook): Fix prototype.
4722
4723 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4724
4725 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4726 to unused function parameter.
4727
4728 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4729 parameters.
4730 Use EMPTY_HOWTO to initialise empty howto slots.
4731 Remove unused variables.
4732
4733 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4734
4735 2000-03-01 H.J. Lu <hjl@gnu.org>
4736
4737 * aoutx.h (aout_link_input_section_std): Pass "true" to
4738 the undefined_symbol callback.
4739 (aout_link_input_section_ext): Likewise.
4740 * bout.c (get_value): Likewise.
4741 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4742 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4743 Likewise.
4744 (alpha_relocate_section): Likewise.
4745 * coff-arm.c (coff_arm_relocate_section): Likewise.
4746 * coff-i960.c (coff_i960_relocate_section): Likewise.
4747 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4748 * coff-mips.c (mips_relocate_section): Likewise.
4749 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4750 * coff-sh.c (sh_relocate_section): Likewise.
4751 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4752 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4753 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4754 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4755 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4756 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4757 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4758 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4759 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4760 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4761 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4762 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4763 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4764 * elflink.h (elf_link_output_extsym): Likewise.
4765 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4766 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4767 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4768
4769 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4770 undefined_symbol callback when building shared library with
4771 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4772 "true".
4773 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4774 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4775 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4776 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4777 (elf32_mips_get_relocated_section_content): Likewise.
4778 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4779 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4780 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4781 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4782
4783 2000-02-28 Nick Clifton <nickc@cygnus.com>
4784
4785 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4786 * Makefile.in: Regenerate.
4787
4788 * configure.in: Add support for mips and sh pe vectors.
4789 * configure: regenerate.
4790
4791 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4792 targets.
4793
4794 * targets.c: Add mips and sh pe vectors.
4795
4796 * libpei.h (coff_final_link_postscript): Only define if not
4797 already defined.
4798
4799 * coffcode.h: Add support for WinCE magic numbers.
4800
4801 * peigen.c (pe_print_reloc): Update comment and rearrange
4802 appending of newline character.
4803
4804 * peicode.h: Add support for Image Library Format.
4805 (pe_ILF_vars): Structure containing data used by ILF code.
4806 (pe_ILF_make_a_section): New function. Create a section based
4807 on ILF data.
4808 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4809 ILF data.
4810 (pe_ILF_make_a_symbol): New function. Create a symbol based
4811 on ILF data.
4812 (pe_ILF_save_relocs): New function. Store the relocs created
4813 by pe_ILF_make_a_reloc in a section.
4814 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4815 an ILF object.
4816 (pe_ILF_object_p): New function. Return a bfd_target pointer
4817 for an ILF object.
4818 (pe_bfd_object_p): If an ILF object is detected call
4819 pe_ILF_object_p on it.
4820
4821 * coff-arm.c: Add support for WinCE relocs which are different
4822 from normal ARM COFF relocs.
4823 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4824
4825 * coff-sh.c: Add support for sh-pe target.
4826 * pe-sh.c: New file. Support code for sh-pe target.
4827 * pei-sh.c: New file. Support code for sh-pe target.
4828
4829 * pe-mips.c: New file. Support code for mips-pe target.
4830 * pei-mips.c: New file. Support code for mips-pe target.
4831
4832 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4833
4834 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4835 architecture if the object causing the bump is dynamic.
4836 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4837 and also don't it for memory ordering.
4838 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4839
4840 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4841
4842 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4843 calling bfd_get_section_size_before_reloc.
4844 (decode_line_info): Likewise.
4845 (_bfd_dwarf2_find_nearest_line): Likewise.
4846
4847 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4848
4849 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4850 name of the libtool directory.
4851 * Makefile.in: Rebuild.
4852
4853 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4854
4855 * som.c (SOM_HOWTO): Define.
4856 (som_hppa_howto_table): Use it.
4857
4858 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4859
4860 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4861
4862 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4863
4864 2000-02-24 Catherine Moore <clm@cygnus.com>
4865
4866 * som.c (som_misc_symbol_info): Add field
4867 secondary_def.
4868 (som_bfd_derive_misc_symbol_info): Initialize
4869 secondary_def.
4870 (som_build_and_write_symbol_table): Keep track
4871 of secondary_def field.
4872 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4873 if secondary_def field is set.
4874 (som_bfd_ar_write_symbol_stuff): Initialize
4875 secondary_def.
4876
4877 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4878
4879 * dwarf2.c (read_address): Read 16-bits addresses.
4880 (parse_comp_unit): Accept addr_size == 2.
4881
4882 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4883
4884 * bfd-in.h: Update copyright date.
4885
4886 2000-02-23 Linas Vepstas <linas@linas.org>
4887
4888 * cpu-i370.c: New file.
4889 * elf32-i370.c: New file.
4890 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4891 (bfd_i370_arch): New.
4892 (bfd_archures_list): Add bfd_i370_arch.
4893 * elf.c (prep_headers): Add bfd_arch_i370.
4894 * Makefile.am: Add support for IBM 370 elf.
4895 * config.bfd: Likewise.
4896 * configure.in: Likewise.
4897 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4898 * reloc.c (bfd_reloc_code_type): Likewise.
4899 * targets.c: Likewise.
4900
4901 * Makefile.in: Regenerate.
4902 * configure: Regenerate.
4903 * bfd-in2.h: Regenerate.
4904
4905 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4906
4907 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4908 invalid relocation types, and change them to R_386_NONE.
4909
4910 2000-02-22 H.J. Lu <hjl@gnu.org>
4911
4912 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4913 not defined, don't add a second ELF_VER_CHR.
4914
4915 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4916 symbols converted to local symbols even when stripping all
4917 symbols.
4918 (elf_link_output_extsym): Process global symbols converted to
4919 local symbols even if they are being stripped.
4920
4921 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4922
4923 * archures.c (bfd_octets_per_byte): Return unsigned int.
4924 (bfd_arch_mach_octets_per_byte): Ditto.
4925 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4926 comparison warning.
4927 * section.c (bfd_get_section_size_before_reloc): Quell signed
4928 vs. unsigned comparison warning.
4929 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4930 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4931 change. What was I thinking?
4932 * bfd-in2.h: Regenerate.
4933
4934 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4935 (elf_gc_sections): Same here.
4936 (elf_gc_common_finalize_got_offsets): And here.
4937
4938 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4939
4940 ELF HPPA doesn't work at present; remove it until it does.
4941 * config.bfd: Comment out setting targ_defvec to
4942 bfd_elf32_hppa_vec.
4943 * Makefile.am: Rebuild dependencies.
4944 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4945 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4946 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4947 * Makefile.in: Rebuild.
4948 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4949
4950 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4951
4952 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4953 is no bfd_free(). Revert bfd_free part of previous change.
4954
4955 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4956
4957 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4958 arrays.
4959 (coff_compute_section_file_positions): Use bfd_free to pair
4960 bfd_malloc.
4961 (coff_write_object_contents): Likewise.
4962
4963 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4964 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4965
4966 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4967
4968 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4969 (xcoff_ar_file_hdr_big): New structure.
4970 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4971 (xcoff_ar_hdr_big): New structure.
4972 (SIZEOF_AR_HDR_BIG): New macro.
4973 (xcoff_big_format_p): New macro.
4974 (xcoff_ardata_big): New macro.
4975 (arch_xhdr_big): New macro.
4976 (xcoff_slurp_armap): Handle large archives.
4977 (xcoff_archive_p): Detect large archives.
4978 (xcoff_read_ar_hdr): Handle large archives.
4979 (xcoff_openr_next_archived_file): Handle large archives.
4980 (xcoff_generic_stat_arch_elt): Handle large archives.
4981 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4982 (xcoff_write_armap_big): New function.
4983 (xcoff_write_armap): New function, dispatch to _old or _big.
4984 (xcoff_write_archive_contents_old): Rename from
4985 xcoff_write_archive_contents.
4986 (xcoff_write_archive_contents_big): New function.
4987 (xcoff_write_archive_contents): New function, dispatch to _old or
4988 _big.
4989
4990 2000-02-18 Richard Henderson <rth@cygnus.com>
4991
4992 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4993 and hide_symbol members.
4994 (elf_link_hash_copy_indirect): Remove.
4995 (elf_link_hash_hide_symbol): Remove.
4996 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4997 and elf_backend_hide_symbol.
4998 (_bfd_elf_link_hash_copy_indirect): Declare.
4999 (_bfd_elf_link_hash_hide_symbol): Declare.
5000 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
5001 (_bfd_elf_link_hash_hide_symbol): Likewise.
5002 (_bfd_elf_link_hash_table_init): Don't init killed members.
5003 * elflink.h (elf_link_add_object_symbols): Use the bed function
5004 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
5005 (elf_link_assign_sym_version): Likewise.
5006 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
5007 (elf_backend_hide_symbol): Likewise.
5008 (elfNN_bed): Update for new members.
5009
5010 2000-02-17 Kevin Buettner <kevinb@redhat.com>
5011
5012 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
5013 STACK_END_ADDR): Define for new core file format.
5014 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
5015 for handling the vagaries of the various core file structures used
5016 by AIX over the years.
5017 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
5018 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
5019 core_dumpx structure.
5020
5021 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5022
5023 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
5024 (bfd_mach_sh3_dsp): Likewise.
5025 (bfd_mach_sh4): Reinstate.
5026 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
5027 * bfd-in2.h: Regenerate.
5028 * coff-sh.c (struct sh_opcode): flags is no longer short.
5029 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5030 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5031 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5032 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5033 (sh_opcodes): No longer const.
5034 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5035 (sh_insn_uses_reg): Check for USESAS and USESR8.
5036 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5037 (_bfd_sh_align_load_span): Return early for SH4.
5038 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5039 Take into account that field b of a parallel processing insn
5040 could be mistaken for a separate insn.
5041 * cpu-sh.c (arch_info_struct): New array elements for
5042 sh2, sh-dsp and sh3-dsp.
5043 Reinstate element for sh4.
5044 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5045 (SH4_NEXT): Reinstate.
5046 (SH3_NEXT, SH3E_NEXT): Adjust.
5047 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5048 * elf32-sh.c (sh_elf_set_private_flags): New function.
5049 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5050 (sh_elf_merge_private_data): New function.
5051 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5052 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5053 (bfd_elf32_bfd_merge_private_bfd_data): Change to
5054 sh_elf_merge_private_data.
5055
5056 2000-02-13 Richard Henderson <rth@cygnus.com>
5057
5058 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5059 hide_symbol members.
5060 (elf_link_hash_copy_indirect): New.
5061 (elf_link_hash_hide_symbol): New.
5062 * elflink.h (elf_link_add_object_symbols): Break out copy from
5063 indirect new new symbol to elf.c.
5064 (elf_link_assign_sym_version): Break out privatization of
5065 non-exported symbol to elf.c.
5066 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5067 (_bfd_elf_link_hash_hide_symbol): New.
5068 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5069
5070 2000-02-13 Ian Lance Taylor <ian@zembu.com>
5071
5072 * section.c (_bfd_strip_section_from_output): Add info parameter.
5073 If it passed as non-NULL, use it to check whether any input BFD
5074 has an input section which uses this output section. Change all
5075 callers.
5076 * bfd-in2.h: Rebuild.
5077
5078 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5079 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5080 1999-11-29.
5081 * bfd-in2.h: Rebuild.
5082
5083 2000-02-10 Timothy Wall <twall@cygnus.com>
5084
5085 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5086 allow final modifications of swapped-in symbol.
5087 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5088 * coffcode.h (coff_write_relocs): Use macro
5089 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5090 symbol index should be set to -1.
5091
5092 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
5093
5094 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5095 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5096 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5097 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5098 sh_insns_uses_or_sets_freg): New functions.
5099 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5100 * (sh_insns_conflict): Use new functions and new macros to
5101 detect conflicts when two instructions both set same integer registers,
5102 both set same fp register, and both set special register.
5103
5104 2000-02-09 Timothy Wall <twall@cygnus.com>
5105
5106 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5107 swapping in sections, so that the swapping routines have access to
5108 the arch/mach info.
5109
5110 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5111
5112 * coff-go32.c: Update comment. Update copyright.
5113
5114 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5115
5116 * syms.c (bfd_decode_symclass)
5117 Two new class characters were added - 'V' and 'v'. The
5118 meaning of 'W' is now restricted to just weak non-object
5119 symbols. This allows differentiation between, for example,
5120 weak functions vs weak objects. nm for example now dumps:
5121 'W' = weak global
5122 'w' = weak unresolved
5123 'V' = weak global object
5124 'v' = weak unresolved object
5125
5126 (bfd_is_undefined_symclass): New function. Return true if the
5127 given symbol class represents and undefined/unresolved symbol.
5128
5129 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5130 unresolved symbols.
5131
5132 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5133
5134 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5135 STT_ARM_16BIT flag set, but it is not attached to a data object
5136 return STT_ARM_16BIT so that it will be treated as code by the
5137 disassembler.
5138
5139 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5140
5141 * coff-i386.c (i3coff_object_p): Remove prototype.
5142 Update copyright.
5143
5144 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5145 to name. Update copyright.
5146
5147 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5148 assignment to avoid warning. Update copyright.
5149
5150 2000-01-24 Robert Lipe (robertl@sco.com)
5151
5152 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5153 instead of using GNU C extension.
5154
5155 2000-01-21 Nick Clifton <nickc@cygnus.com>
5156
5157 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5158 amount from a bfd_in_memory structure.
5159 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5160 structure.
5161
5162 2000-01-14 Nick Clifton <nickc@cygnus.com>
5163
5164 * linker.c (default_indirect_link_order): oops - fix incorrectly
5165 applied patch from Tim Wall.
5166
5167 2000-01-13 Timothy Wall (twall@tiac.net>
5168
5169 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5170 = scnhsz, filhsz, relsz, aoutsz, etc)
5171
5172 * coffswap.h: Ditto.
5173
5174 2000-01-13 Nick Clifton <nickc@cygnus.com>
5175
5176 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5177 interwork thumb to arm stub.
5178
5179 2000-01-13 Timothy Wall (twall@tiac.net>
5180
5181 * archures.c (bfd_octets_per_byte): New function: Return
5182 target byte size.
5183 (bfd_arch_mach_octets_per_byte): New function: Return target
5184 byte size.
5185
5186 * section.c: Distinguish between octets and bytes for usage of
5187 _cooked_size, _raw_size, and output_offset. Clarify
5188 description of bfd_set_section_contents.
5189
5190 * bfd-in2.h: Regenerate.
5191
5192 * coffgen.c: Indicate that the offset parameter is in bytes, not
5193 octets.
5194
5195 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5196 where appropriate to get the octet offset when calling
5197 bfd_set_section_contents.
5198 (bfd_coff_reloc_link_order): Ditto.
5199
5200 * linker.c (bfd_generic_reloc_link_order): Ditto.
5201 (_bfd_default_link_order): Ditto.
5202
5203 * reloc.c (bfd_perform_relocation): Distinguish between octets
5204 and bytes. Use octets when indexing into octet data; use bytes
5205 when calculating target addresses.
5206 (bfd_install_relocation): Ditto.
5207
5208 * srec.c (srec_write_section): Ditto.
5209
5210 2000-01-13 Nick Clifton <nickc@cygnus.com>
5211
5212 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5213 3 to 2. This allows 4 byte sized sections, which is necessary for
5214 dlltool to build functioning DLLs.
5215
5216 2000-01-10 Philip Blundell <pb@futuretv.com>
5217
5218 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5219 (arm*-*-conix*): New target.
5220
5221 2000-01-10 Egor Duda <deo@logos-m.ru>
5222
5223 * config.bfd: Include elf32_i386 vector to target list for cygwin
5224 and mingw.
5225
5226 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5227 * configure.in: Test for structure win32_pstatus_t in
5228 <sys/procfs.h>
5229 * configure: Regenerate.
5230
5231 * elf.c (elfcore_grok_win32pstatus): New function: process
5232 win32_pstatus_t notes in elf core file.
5233 (elfcore_grok_note): Detect win32_pstatus notes.
5234
5235 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5236
5237 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5238 visibility.
5239 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5240 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5241
5242 For older changes see ChangeLog-9899
5243 \f
5244 Local Variables:
5245 mode: change-log
5246 left-margin: 8
5247 fill-column: 74
5248 version-control: never
5249 End: