1 Wed Jun 11 00:00:07 1997 Ian Lance Taylor <ian@cygnus.com>
3 * elf32-i386.c (elf_i386_relocate_section): Get the relocation
4 value if the symbol is turning into a local symbol.
5 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8 1997-06-10 22:58 Ulrich Drepper <drepper@cygnus.com>
10 * elflink.h (elf_link_add_object_symbols): Also read verneed
11 information by calling `_bfd_elf_slurp_version_tables'.
12 (elf_link_add_object_symbols): For undefined symbols look for
13 version informaiton in the verneed records.
14 (elf_link_add_object_symbols): Use soname of shared object
15 for verneed record if it is available.
17 Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
19 * cpu-arm.c: Add prototypes for compatible and scan.
20 * cofflink.c: Add prototype for mark_relocs.
22 * archive.c (bfd_special_undocumented_glue): Change filename to
23 const pointer. Add prototype.
25 Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
27 * elflink.h (elf_link_add_object_symbols): Ignore relocations of
28 sections that will be discarded.
30 1997-06-06 22:58 Ulrich Drepper <drepper@cygnus.com>
32 * elflink.h (elf_link_find_version_dependencies): When searching
33 for known version symbol skip non-matching verdef records, not
36 Thu Jun 5 15:52:45 1997 Ian Lance Taylor <ian@cygnus.com>
38 * cofflink.c (_bfd_coff_generic_relocate_section): Write a long,
39 not a bfd_vma, to the base file, to match how dlltool reads it.
41 Tue Jun 3 16:57:45 1997 Nick Clifton <nickc@cygnus.com>
43 * reloc.c: Add thumb relocations.
45 * bfd-in2.h: Add Thumb relocations.
47 * libbfd.h: Add Thumb relocations.
49 Mon Jun 2 10:41:52 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
51 * cpu-m68k.c (arch_info_struct): Fix 68060 cpu name.
53 Fri May 30 12:46:27 1997 Ian Lance Taylor <ian@cygnus.com>
55 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
56 for a section even if it is not loaded.
58 * cofflink.c (coff_link_add_symbols): If PE file, don't subtract
60 (_bfd_coff_link_input_bfd): Separate section VMA handling for
61 input and output files.
62 (_bfd_coff_generic_relocate_section): Check whether input file,
63 not output file, is a PE file.
65 Wed May 28 15:48:43 1997 Nick Clifton <nickc@cygnus.com>
67 * coff-arm.c: (coff_arm_bfd_set_private_flags): Make static.
69 Wed May 28 16:16:04 1997 Ian Lance Taylor <ian@cygnus.com>
71 * coff-i386.c (coff_i386_reloc): Don't just exit if we see an
74 Wed May 28 09:48:43 1997 Nick Clifton <nickc@cygnus.com>
76 * cpu-arm.c (compatible): Add test for supersets of ARM
79 Tue May 27 19:42:03 1997 Bob Manson <manson@charmed.cygnus.com>
81 * cofflink.c (_bfd_coff_final_link): Initialize global_to_static
84 Tue May 27 14:34:08 1997 Nick Clifton <nickc@cygnus.com>
86 * coff-arm.c (coff_arm_bfd_set_private_flags): Make global. It is
87 called directly by gas/config/tc-arm.c.
89 Tue May 27 15:58:53 1997 Richard Henderson <rth@tamu.edu>
91 * elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format.
92 (elf64_alpha_finish_dynamic_symbol): Fill it in properly.
94 Mon May 26 14:05:13 1997 Ian Lance Taylor <ian@cygnus.com>
96 * coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add
99 Mon May 26 10:57:48 1997 Fred Fish <fnf@cygnus.com>
101 * peicode.h (coff_bfd_print_private_bfd_data): #undef before #define.
102 (coff_bfd_copy_private_bfd_data): Ditto.
103 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Make static.
104 (coff_arm_bfd_print_private_bfd_data): Ditto.
105 (coff_arm_bfd_set_private_flags): Ditto.
106 (coff_arm_bfd_copy_private_bfd_data): Ditto.
108 Fri May 23 15:14:58 1997 Fred Fish <fnf@cygnus.com>
110 * libcoff-in.h (struct coff_final_link_info): Add boolean
111 global_to_static member for support of task linking.
112 (_bfd_coff_write_task_globals): Add prototype.
113 * libcoff.h: Regenerate.
114 * coffcode.h (coff_write_object_contents): Use #ifdef to
115 check RS6000COFF_C, to be consistent with all other uses
117 * cofflink.c (_bfd_coff_final_link): If doing task linking,
118 call _bfd_coff_write_task_globals.
119 (_bfd_coff_link_input_bfd): If doing task linking, convert
120 global functions to static.
121 (_bfd_coff_write_global_sym): If doing task linking, convert
122 global variables to static.
123 (_bfd_coff_write_task_globals): New function.
125 * coff-tic80.c (TIC80COFF): Define this instead of just TIC80.
126 (C_AUTOARG): #undef since it clashes with C_UEXT.
127 (C_LASTENT): #undef since it clashes with C_STATLAB.
128 * coffcode.h (coff_write_object_contents): Use TIC80COFF
130 (coff_slurp_symbol_table): Use C_SYSTEM. Hide C_AUTOARG use
131 when TIC80COFF defined (clashes with C_UEXT). Explicitly
132 recognize C_UEXT, C_STATLAB, and C_EXTLAB as unsupported.
136 Fri May 23 12:38:24 1997 Ian Lance Taylor <ian@cygnus.com>
138 * coff-tic80.c (tic80_howto_table): Change overflow check for most
139 PP relocations to complain_overflow_dont.
141 Thu May 22 20:22:14 1997 Ian Lance Taylor <ian@cygnus.com>
143 * coff-tic80.c (tic80_howto_table): Add PP relocations. Change
144 name of R_RELLONG to "RELLONG". Set rightshift and complain for
146 (ppbase_reloc, glob15_reloc): New static functions.
147 (glob16_reloc, local16_reloc): New static functions.
148 (rtype2howto): Handle all relocation types.
149 (coff_tic80_relocate_section): New static function.
150 (coff_relocate_section): Define to coff_tic80_relocate_section.
151 * Makefile.in (coff-tic80.o): Depends upon include/coff/tic80.h.
154 Wed May 21 17:15:50 1997 Ian Lance Taylor <ian@cygnus.com>
156 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE or
157 COFF_IMAGE_WITH_PE, don't subtract the section VMA from the symbol
159 * coffgen.c (fixup_symbol_value): Add abfd parameter. Change all
160 callers. If PE file, don't add section VMA.
161 (coff_write_alien_symbol): If PE file, don't add section VMA.
162 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
163 (_bfd_coff_write_global_sym): Likewise.
164 (_bfd_coff_generic_relocate_section): Likewise.
166 * peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma
169 Wed May 21 09:58:10 1997 Nick Clifton <nickc@cygnus.com>
171 * cofflink.c (mark_relocs): Add new function to mark symbols which
172 are used by relocations.
173 (_bfd_coff_link_input_bfd): Add call to mark_relocs() and code to
174 suppress the skipping of symbols that have thus been marked.
176 Tue May 20 18:45:26 1997 Ian Lance Taylor <ian@cygnus.com>
178 * coff-sh.c (sh_merge_private_data): New static function.
179 (coff_bfd_merge_private_bfd_data): Define.
182 Mon May 19 14:46:00 1997 Mark Alexander <marka@cygnus.com>
184 * coff-tic80.c: Remove unnecessary #ifdefs.
185 * config.bfd: Set targ_underscore to yes for tic80.
187 Mon May 19 14:26:36 1997 Mark Alexander <marka@cygnus.com>
189 * coff-tic80.c (NAMES_HAVE_UNDERSCORE): Define (fixes problem
190 with unresolved external symbols in GDB).
193 Fri May 16 10:23:03 1997 Jeffrey A Law (law@cygnus.com)
195 * elf-m10300.c (elf32_mn10300_relax_section): Read in all
196 the symbols associated with each BFD.
197 (mn10300_elf_relax_delete_bytes): Don't adjust the same symbol
199 * elf-m10200.c: Likewise.
200 * elf32-m32r.c: Likewise.
201 * elf32-sh.c: Likewise.
203 Fri May 16 12:10:52 1997 Ian Lance Taylor <ian@cygnus.com>
205 * elflink.h (elf_link_add_object_symbols): Don't decrease the
206 alignment of a common symbol. If two symbols that look like
207 common symbols are found in two shared libraries, and the size is
208 different, use the larger size, and warn if --warn-common. If a
209 common symbol overrides a definition in a shared library, set the
210 size to the larger size, and warn if --warn-common.
212 Thu May 15 14:31:28 1997 Nick Clifton <nickc@cygnus.com>
214 * cpu-arm.c (compatible): Allow default machine to be polymorphed
215 into any other machine type.
217 * coffcode.h (coff_set_flags): Initialise flags variable to 0.
219 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): When merging
220 data into an unitialised destination set its machine type as well.
222 Thu May 15 16:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
224 * elflink.h (elf_link_add_object_symbols): Force ELF symbol size
225 to common symbol size. Consistently treat uninitialized symbols
226 in shared objects as common symbols.
228 Fri May 9 10:15:27 1997 Nick Clifton <nickc@cygnus.com>
230 * archures.c (constants): Added new constants to identify the
231 type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
232 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and bfd_mach_arm_4T.
234 * bfd-in2.h (constants): Added new constants to identify
235 the type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
236 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and
237 bfd_mach_arm_4T. This file is auto-magically generated from the
238 archures.c file. This update is just to save work.
240 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data,
241 coff_arm_bfd_print_private_bfd_data,
242 coff_arm_bfd_set_private_flags,
243 coff_arm_bfd_copy_private_bfd_data): Added these new functions.
244 (global): Macro redefinitions set up to use these new functions.
246 * coffcode.h (coff_mkobject_hook): Added call to
247 coff_arm_bfd_set_private_flags().
248 (coff_set_arch_mach_hook): Added code to set machine type based on
249 bits stored in internal flags.
250 (coff_set_flags): Added code to set the new bits in the flags
251 field based on the machine number.
252 (function definition macros): Made all function definition macros
253 conditional so that they can be overridden by target specific
256 * cpu-arm.c (compatible): Added this function. (arch_info_struct):
257 Structure extended to include new types, one each for ARMv2,
258 ARMv2a, ARMv3, ARMv3M, ARMv4 and ARMv4T.
260 * libcoff-in.h (struct coff_tdata): Added flags field.
262 Fri May 9 17:40:02 1997 Ian Lance Taylor <ian@cygnus.com>
264 * config.bfd (i[3456]86-*-gnu*): Don't include Mach support.
266 * config.bfd: Change #if 0 around uses of host_aout_vec to #if
269 Mon May 5 13:57:32 1997 Mike Meissner <meissner@cygnus.com>
271 * coffgen.c (coff_find_nearest_line): If there are no syments,
274 Mon May 5 18:18:45 1997 Philip Blundell <pjb27@cam.ac.uk>
276 * config.bfd: cope with '*-*-linux-gnuaout' targets.
278 Thu May 1 11:31:12 1997 Ian Lance Taylor <ian@cygnus.com>
280 * targmatch.sed: Add explicit \n characters to work around bug in
281 HP/UX 10.20 sed program.
283 Wed Apr 30 12:27:03 1997 Ian Lance Taylor <ian@cygnus.com>
285 * elf.c (copy_private_bfd_data): Cast csecs to avoid sign
288 Tue Apr 22 12:06:08 1997 Ian Lance Taylor <ian@cygnus.com>
290 * Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h.
292 Mon Apr 21 11:21:31 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
294 * elf32-m68k.c: Follow the last changes in elf32-i386.c:
295 (struct elf_m68k_pcrel_relocs_copied, struct
296 elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table,
297 elf_m68k_link_hash_traverse, elf_m68k_hash_table,
298 elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create,
299 elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create):
301 (elf_m68k_check_relocs): If linking with -Bsymbolic, don't copy
302 PC relative relocs for a global symbol defined in a regular
303 object, and count the number of PC relative relocs copied for any
305 (elf_m68k_size_dynamic_sections): If linking with -Bsymbolic,
306 traverse with elf_m68k_discard_copies.
308 Sat Apr 19 22:50:14 1997 Ian Lance Taylor <ian@cygnus.com>
310 * elf32-i386.c (elf_i386_check_relocs): Only count PC relative
311 relocs. From Jamie Lokier <jamie@rebellion.co.uk>.
313 * coffcode.h (coff_compute_section_file_positions): Force the
314 potential last byte in the file to be written out when
317 Thu Apr 17 13:46:56 1997 Per Fogelstrom <pefo@openbsd.org>
319 * configure.host (mips*-*-openbsd*): New host.
321 Thu Apr 17 11:10:54 1997 Ian Lance Taylor <ian@cygnus.com>
323 * elflink.h (elf_link_add_object_symbols): Only subtract the
324 section VMA from the symbol value if this is a fully linked file.
326 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
327 (struct elf_i386_link_hash_entry): Define.
328 (struct elf_i386_link_hash_table): Define.
329 (elf_i386_link_hash_traverse): Define.
330 (elf_i386_hash_table): Define.
331 (elf_i386_link_hash_newfunc): New static function.
332 (elf_i386_link_hash_table_create): New static function.
333 (elf_i386_check_relocs): If linking with -Bsymbolic, don't copy
334 PC relative relocs for a global symbol defined in a regular
335 object, and count the number of PC relative relocs copied for any
337 (elf_i386_size_dynamic_sections): If linking with -Bsymbolic,
338 traverse with elf_i386_discard_copies.
339 (elf_i386_discard_copies): New static function.
340 (bfd_elf32_bfd_link_hash_table_create): Define.
342 From Gordon W. Ross <gwr@mc.com>:
343 * aoutf1.h (MY_entry_is_text_address): Define if not defined.
344 (sunos4_aout_backend): Use MY_entry_is_text_address.
347 Wed Apr 16 12:43:32 1997 Martin Hunt <hunt@cygnus.com>
349 * elf32-d30v.c (elf_d30v_howto_table): Changed size of
350 R_D30V_32_NORMAL to 2 (4 bytes).
353 Wed Apr 16 14:02:29 1997 Ian Lance Taylor <ian@cygnus.com>
355 From Gordon W. Ross <gwr@mc.com>:
356 * netbsd.h (N_SHARED_LIB): Define.
357 (SEGMENT_SIZE): Don't define.
358 * m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of
360 * sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
361 (SEGMENT_SIZE): Don't define.
363 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
364 to sizeof Rela structure, not sizeof Rel structure. From Gary
365 Thomas <g.thomas@opengroup.org>.
367 Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com>
369 * aout-target.h (MY(callback)): If entry_is_text_address, adjust
370 whenever entry is larger than text address, but only by whole
371 pages. From Gordon W. Ross <gwr@mc.com>.
373 * Makefile.in (install): Depend upon installdirs. Use
374 mkinstalldirs to build $(oldincludedir).
375 (installdirs): New target.
377 * elflink.h (elf_link_add_object_symbols): Don't call check_relocs
378 if this is a debugging section which we are stripping.
380 Mon Apr 14 12:39:30 1997 Richard Henderson <rth@tamu.edu>
382 * elf64-alpha.c (elf64_alpha_object_p): Allocate the
383 alpha-specific target data struct.
385 Mon Apr 14 11:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
387 From Thomas Graichen <graichen@rzpd.de>:
388 * Makefile.in: Always use $(SHELL) when running move-if-change.
389 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
390 * configure: Rebuild.
392 Fri Apr 11 15:43:24 1997 Ian Lance Taylor <ian@cygnus.com>
394 * elfcode.h (elf_slurp_symbol_table): Only subtract the section
395 VMA if this is an executable file or a shared object.
397 * targets.c (netbsd_core_vec): Declare. From Gordon W. Ross
400 * libaout.h (struct aout_backend_data): Add entry_is_text_address
402 * aout-target.h (SEGMENT_SIZE): Define to TARGET_PAGE_SIZE at the
403 start of the file. Remove uses later on which switch using
405 (MY(callback)): Handle entry_is_text_address.
406 (MY_entry_is_text_address): Define if not defined.
407 (MY(backend_data)): Initialize new field.
408 * aoutf1.h (sunos4_aout_backend): Likewise.
409 * i386aout.c (MY(backend_data)): Likewise.
410 * i386mach3.c (MY(backend_data)): Likewise.
411 * mipsbsd.c (MY(backend_data)): Likewise.
412 * sparclynx.c (sparclynx_aout_backend): Likewise.
413 * netbsd.h (SEGMENT_SIZE): Define if not defined.
414 (MY_entry_is_text_address): Define.
415 * m68knetbsd.c (SEGMENT_SIZE): Define as 0x20000.
417 * xcofflink.c (bfd_xcoff_import_symbol): Handle importing a symbol
418 whose name starts with `.'.
420 Fri Apr 11 11:57:15 1997 Niklas Hallqvist <niklas@appli.se>
422 * config.bfd: (i[3456]86-*-openbsd*, m68*-*-openbsd*,
423 mips*el*-*-openbsd*, mips*-*-openbsd*, ns32k-*-openbsd*,
424 powerpc-*-*bsd*, sparc-*-openbsd*): New targets.
425 * configure.in (i[3456]86-*-openbsd*, mips*-*-openbsd*,
426 m68*-*-openbsd*, ns32k-*-openbsd*, powerpc-*-*bsd*,
427 sparc-*-openbsd*): New targets.
428 * configure: Rebuild.
430 Tue Apr 8 18:09:29 1997 Jamie Lokier <jamie@rebellion.co.uk>
432 * stabs.c (struct stab_section_info): New field
434 (_bfd_link_section_stabs): Fill the above array.
435 (_bfd_stab_section_offset): Use `cumulative_skips' to
436 speed up offset calculation.
438 Tue Apr 8 00:01:31 1997 Jeffrey A Law (law@cygnus.com)
440 * elf-mn10300.c (mn10300_elf_relax_section): Don't forget the
441 addend for non pc-relative relocations.
443 * elf-m10300.c (bfd_elf32_mn10300_reloc): Remove prototype
444 for non-existent function.
446 * elf-m10300.c (mn10300_elf_relax_section): New function.
447 (mn10300_elf_relax_delete_bytes): Likewise.
448 (mn10300_elf_symbol_address_p): Likewise.
449 (mn10300_elf_get_relocated_section_contents): Likewise.
450 (bfd_elf32_bfd_relax_section): Define.
451 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
453 Mon Apr 7 16:47:09 1997 Ian Lance Taylor <ian@cygnus.com>
455 * configure.host: Set SHLIB_LIBS.
456 * configure.in: Substitute SHLIB_LIBS.
457 * configure: Rebuild.
458 * Makefile.in (SHLIB_LIBS): New variable.
459 ($(SHLIB)): Use $(SHLIB_LIBS).
461 Mon Apr 7 10:53:52 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
463 * bfd-in.h bfd-in2.h: add bfd_section_lma macro to correspond
464 with bfd_section_vma.
466 Fri Apr 4 11:37:15 1997 Ian Lance Taylor <ian@cygnus.com>
468 * configure.in: Update file names for bfd_elf32_mn10[23]00_vec.
469 Correct CPU file names for mn10[23]00.
470 * configure: Rebuild.
472 * bfd.c (bfd_record_phdr): Cast count to size_t before
475 * coff-ppc.c (dump_toc): Add cast to avoid warning from SunOS cc.
476 * coff-rs6000.c (xcoff_read_ar_hdr): Likewise.
477 (xcoff_write_archive_contents): LIkewise.
478 * elf32-mips.c (_bfd_mips_elf_set_section_contents): Likewise.
479 (mips_elf_create_procedure_table): Likewise.
480 * peicode.h (pe_print_idata): Likewise.
481 (pe_print_edata, pe_print_pdata, pe_print_reloc): Likewise.
482 * xcofflink.c (xcoff_get_section_contents): Likewise.
483 (_bfd_xcoff_canonicalize_dynamic_symtab): Likewise.
484 (xcoff_link_add_symbols): Likewise.
485 (xcoff_link_add_symbols): Likewise.
487 * ppcboot.c (ppcboot_set_arch_mach): Make static.
488 (ppcboot_bfd_print_private_bfd_data): Likewise.
490 * elf32-mips.c (elf_mips_ctor64_howto): Set complain_on_overflow
491 to complain_overflow_signed.
493 Thu Apr 3 11:51:54 1997 Ian Lance Taylor <ian@cygnus.com>
495 * VERSION: Set to 2.8.1.
497 * Branched binutils 2.8.
499 * elf32-ppc.c (ppc_elf_check_relocs): Don't check SEC_ALLOC when
500 deciding whether to copy a reloc into a shared object.
501 (ppc_elf_relocate_section): Likewise. Relocate R_PPC_RELATIVE
502 relocs in unallocated sections.
503 * elf32-sparc.c (elf32_sparc_relocate_section): Relocate
504 R_SPARC_RELATIVE relocs in unallocated sections.
506 Wed Apr 2 16:19:41 1997 Mike Meissner <meissner@cygnus.com>
508 * elf32-ppc.c (ppc_elf_check_relocs): Undo March 26 change and
509 always create got section so that the _GLOBAL_OFFSET_TABLE_ label
512 Wed Apr 2 10:49:07 1997 Ian Lance Taylor <ian@cygnus.com>
514 * elflink.h (elf_link_add_object_symbols): Let a common symbol
515 override an uninitialized symbol from a shared library with a
518 * elf-m10200.c: Rename from elf32-mn10200.c.
519 * elf-m10300.c: Rename from elf32-mn10300.c.
520 * cpu-m10200.c: Rename from cpu-mn10200.c
521 * cpu-m10300.c: Rename from cpu-mn10300.c
522 * Makefile.in: Update accordingly.
524 * elf32-mips.c (elf_mips_ctor64_howto): New static variable.
525 (elf_mips_isa): Move to earlier in file.
526 (mips_reloc_map): Remove BFD_RELOC_CTOR entry.
527 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR
530 * elf32-mips.c (mips16_jump_reloc): Print a warning rather than
533 Tue Apr 1 16:18:05 1997 Klaus Kaempf <kkaempf@progis.de>
535 * configure.com: New file.
536 * config.h-vms: Remove file.
537 * makefile.vms: Update for new configure scheme.
539 Mon Mar 31 23:28:39 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
541 * libcoff-in.h (ppc_allocate_toc_section): Declare.
542 (ppc_process_before_allocation): Declare.
543 * libcoff.h: Rebuild.
545 * coffcode.h (coff_mkobject_hook): Declare if not a macro.
547 Mon Mar 31 16:29:50 1997 Joel Sherrill <joel@oarcorp.com>
549 * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*.
551 Mon Mar 31 16:11:35 1997 Ian Lance Taylor <ian@cygnus.com>
553 * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
554 symbol index for a R_IHCONST reloc.
556 Mon Mar 31 15:40:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
558 * targmatch.sed: Do not use \(\) recursively.
560 Fri Mar 28 14:44:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
562 * m68klinux.c (MACHTYPE_OK): Define.
563 * i386linux.c (MACHTYPE_OK): Define.
565 Fri Mar 28 11:56:15 1997 Ian Lance Taylor <ian@cygnus.com>
567 From David S. Miller <davem@caip.rutgers.edu> and H.J. Lu
568 <hjl@gnu.ai.mit.edu>:
569 * sparclinux.c: New file.
570 * bfd-in.h (bfd_sparclinux_size_dynamic_sections): Declare.
571 * bfd-in2.h: Rebuild.
572 * config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets.
573 * configure.in (sparclinux_vec): Add to list of vectors.
574 * configure: Rebuild.
575 * targets.c (sparclinux_vec): Declare.
576 (bfd_target_vector): Add sparclinux_vec.
577 * Makefile.in: Rebuild dependencies.
578 (BFD32_BACKENDS): Add sparclinux.o.
579 (BFD32_BACKENDS_CFILES): Add sparclinux.c.
581 * coff-mips.c (mips_ecoff_backend_data): Initialize new
582 bfd_coff_backend_data field.
583 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
585 * config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs
586 for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu
587 <hjl@lucon.org> and Ralf Baechle <ralf@gnu.ai.mit.edu>.
589 * bfd.c: Include "libiberty.h".
590 (strerror): Don't declare.
591 (bfd_errmsg): Call xstrerror rather than strerror.
593 Thu Mar 27 12:55:42 1997 Ian Lance Taylor <ian@cygnus.com>
595 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY
596 reloc even if the symbol is in the .bss section.
597 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
598 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
599 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
601 * coffcode.h (bfd_coff_backend_data): Add new field
602 _bfd_coff_default_section_alignment_power.
603 (bfd_coff_default_section_alignment_power): Define.
604 (bfd_coff_std_swap_table): Initialize new field.
605 * libcoff.h: Rebuild.
606 * cofflink.c (coff_link_add_symbols): Limit alignment of a common
607 symbol to the default section alignment.
609 * COPYING: Update FSF address.
612 Thu Mar 27 00:45:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
614 * elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the
615 21-bit absolute that made it act as a relative.
618 Wed Mar 26 14:50:20 1997 Ian Lance Taylor <ian@cygnus.com>
620 * elflink.c (_bfd_elf_create_linker_section): Don't set
621 bss_section and rel_section from existing sections.
623 * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section
626 Tue Mar 25 22:26:56 1997 Stu Grossman (grossman@critters.cygnus.com)
628 * aoutx.h (some_aout_object_p): Change executable test to fix
629 problems with embedded a.out systems.
631 Tue Mar 25 14:35:37 1997 Ian Lance Taylor <ian@cygnus.com>
633 * stabs.c (_bfd_stab_section_offset): New function.
634 * libbfd-in.h (_bfd_stab_section_offset): Declare.
636 * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a
638 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
639 * elf32-mips.c (mips_elf_relocate_section): Likewise.
640 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
641 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
642 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
644 * stabs.c (_bfd_link_section_stabs): Copy over the first header
645 symbol. Check for memory allocation failure of *psinfo.
646 (_bfd_write_section_stabs): Add psinfo parameter. Change all
647 callers. Set the value of the header symbol.
648 * libbfd-in.h (_bfd_write_section_stabs): Update declaration.
652 Mon Mar 24 20:07:29 1997 Fred Fish <fnf@cygnus.com>
654 * coff-tic80.c (tic80_howto_table): Add R_ABS entry.
655 (rtype2howto): Handle R_ABS reloc type. Also abort on unhandled
656 reloc types, rather than silently failing to generate an output file.
659 Mon Mar 24 13:41:00 1997 Ian Lance Taylor <ian@cygnus.com>
661 * targmatch.sed: Use the hold space to put the #ifdef around the
663 * targets.c (UNSUPPORTED_TARGET): Don't define.
664 (find_target): Don't check for UNSUPPORTED_TARGET.
665 (bfd_set_default_target): Don't try to optimize by checking for
668 * Makefile.in: Rebuild dependencies.
669 (ALL_MACHINES_CFILES): Add cpu-m32r.c.
670 (BFD32_BACKENDS_CFILES): Add elf32-m32r.c.
671 (elf32-m32r.o): Remove explicit target.
673 * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
676 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
677 count section symbols for sections that were created by the
678 linker, or are not allocatable or not loadable.
679 (elf32_sparc_finish_dynamic_sections): Output output section
680 symbols for section for which we made space for them.
682 Fri Mar 21 13:08:26 1997 Ian Lance Taylor <ian@cygnus.com>
684 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is
685 no .rela.plt section, don't output a DT_PLTGOT dynamic entry.
687 Fri Mar 21 12:36:46 1997 Doug Evans <dje@canuck.cygnus.com>
689 * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.
690 (m32r_hi16_list): New static local.
691 (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up.
692 (m32r_elf_do_hi16_reloc): Delete.
693 (m32r_elf_relocate_hi16): New function.
694 (m32r_elf_lo16_reloc): New function.
695 (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding
698 Mon Mar 10 16:03:31 1997 Doug Evans <dje@seba.cygnus.com>
700 * elf32-m32r.c (m32r_elf_create_linker_section): Delete.
701 (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support.
702 (m32r_elf_final_sda_base): New function.
703 (m32r_elf_relocate_section): Rewrite sdata support.
704 (m32r_elf_finish_dynamic_sections): Delete.
706 Thu Mar 20 12:39:02 1997 Ian Lance Taylor <ian@cygnus.com>
708 Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.
709 * coff-svm68k.c: New file. Just defines some macros and includes
711 * coff-m68k.c: Add functions to handle common addends, moved in
712 from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro.
713 Control whether relocs are visible using STATIC_RELOCS.
714 * cf-m68klynx.c: Simplify greatly: just define macros to control
716 * coff-aux.c: Likewise. Just leave add_one_symbol routine.
717 * targets. (m68ksysvcoff_vec): Declare.
718 (bfd_target_vector): Add m68ksysvcoff_vec.
719 * config.bfd (m68*-motorola-sysv*): New target.
720 * configure.in (m68ksysvcoff_vec): New vector.
721 * configure: Rebuild.
722 * Makefile.in: Rebuild dependencies.
723 (BFD32_BACKENDS): Add coff-svm68k.o.
724 (BFD32_BACKENDS_CFILES): Add coff-svm68k.c.
726 * binary.c (binary_set_section_contents): Don't get misled if the
727 first section is not loadable. From Matthew L. Martin
730 * elflink.h (elf_bfd_final_link): Set the value of a section
731 symbol to the section address unless doing a relocateable link.
733 Tue Mar 18 23:03:17 1997 Richard Henderson <rth@tamu.edu>
735 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create
736 .plt entry if we've taken the function's address.
737 (elf64_alpha_merge_gots): Merge collected flags info as well.
739 Tue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org>
741 * Many files: Add function prototypes.
742 * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare.
743 * ecofflink.c: Include "libcoff.h" and "libecoff.h".
744 * elf32-ppc.c (ppc_elf_fake_sections): Make static.
745 * opncls.c (bfd_openstreamr): Change stream parameter to PTR.
746 * peicode.h: Change several void * parameters to PTR.
747 * srec.c (srec_get_symbol_info): Make static.
748 * syms.c (bfd_symbol_is_absolute): Remove.
749 * Makefile.in: Rebuild dependencies.
751 Tue Mar 18 12:58:08 1997 Ian Lance Taylor <ian@cygnus.com>
753 * elf32-m32r.c (m32r_elf_is_local_label_name): Remove.
754 (bfd_elf32_bfd_is_local_label): Don't define.
756 * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
759 Mon Mar 17 11:32:53 1997 Ian Lance Taylor <ian@cygnus.com>
761 * bfd-in.h: Don't include obstack.h.
762 (struct bfd_hash_table): Change memory field to PTR.
763 * bfd.c (struct _bfd): Change memory field to PTR.
764 * bfd-in2.h: Rebuild.
765 * libbfd-in.h (bfd_release): Declare as function, don't define as
768 * opncls.c: Include "objalloc.h" rather than "obstack.h". Use
769 objalloc routines rather than obstack routines.
770 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
771 (getpagesize): Don't define.
772 (_bfd_new_bfd): Don't set _bfd_chunksize.
773 (bfd_openr): Free new bfd and objalloc on failure.
774 (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise.
775 (bfd_alloc_size): Remove.
776 (bfd_release): New function.
777 * hash.c: Include "objalloc.h" rather than "obstack.h". Use
778 objalloc routines rather than obstack routines.
779 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
780 * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use
781 objalloc routines rather than obstack routines.
782 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
783 (struct accumulate): Change memory to struct objalloc *.
784 * liboasys.h (oasys_data_type): Remove oasys_obstack field.
785 * dep-in.sed: Don't remove obstack.h from dependency list.
786 * Makefile.in: Rebuild dependencies.
787 (BFD_H_DEPS): Remove obstack.h.
788 (install): Don't install obstack.h.
789 * Many files: Don't include "obstack.h".
792 * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.
793 * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare.
795 * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow.
796 * sunos.c (sunos_add_dynamic_symbols): Likewise.
797 * srec.c (srec_scan): Rewrite to not use obstack_1grow.
799 * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove
800 old version of bfd_alloc.
801 * libbfd-in.h (bfd_alloc_by_size_t): Don't declare.
803 * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.
805 Sat Mar 15 15:24:18 1997 Ian Lance Taylor <ian@cygnus.com>
807 * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
808 ELF local label syntax as well.
810 Sat Mar 15 10:16:42 1997 Fred Fish <fnf@cygnus.com>
812 * config.bfd (powerpc-*-beos*): New target.
813 * configure.in (powerpc-*-beos*): Add case that explicitly
814 does not set COREFILE for now. A future BeOS version is
815 expected to support core files.
816 * configure: Regenerate with autoconf.
818 Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com>
820 * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
821 seen with a local symbol, rather than crashing.
823 * elfcode.h (elf_slurp_symbol_table): Don't try to read the
824 version symbols if there aren't any.
827 Thu Mar 13 16:38:30 1997 Fred Fish <fnf@cygnus.com>
829 * coff-tic80.c (coff_rtype_to_howto): Define
830 (coff_tic80_rtype_to_howto): Clone generic coff version and
831 add code to handle the funky TI "internal relocations".
834 Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com>
836 * elflink.h (elf_link_add_object_symbols): Don't warn about type
837 or size changes because of a weak symbol.
839 * cisco-core.c (SIGEMT): Define if not defined.
841 Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com>
843 * elflink.h (elf_link_add_object_symbols): Use extsymoff when
844 setting ever. Sanity check the version number. Sort out copying
845 flags and other information when adding an indirect symbol.
846 (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic
847 symbols added by the backend. Clear the entire contents of the
849 (elf_export_symbol): Ignore indirect symbols.
850 (elf_link_output_extsym): Accept a section without an owner in an
852 * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
853 version count. Correct the allocation of x_versymp.
855 * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
856 the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA.
857 Don't return bfd_und_section_ptr when info->shared.
858 (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12.
859 (mips_elf_create_dynamic_sections): Correct type: ^= for &=.
860 (mips_elf_check_relocs): Resolve an indirect symbol in
862 (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
863 SHN_MIPS_TEXT or SHN_MIPS_DATA.
865 * elf.c (bfd_elf_print_symbol): Tweak version output slightly.
867 Tue Mar 11 01:38:36 1997 Ian Lance Taylor <ian@cygnus.com>
869 From Eric Youngdale <eric@andante.jic.com>:
870 * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define.
871 * elf.c (bfd_elf_print_symbol): Correct errors in last change.
872 * elflink.h (elf_link_add_object_symbols): Handle cases in which a
873 versioned symbol appears in both a regular and a shared object.
874 (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when
875 appropriate. Improve error message.
876 (struct elf_outext_info): Rename from elf_finfo_failed. Change
877 all uses. Add localsyms field.
878 (elf_bfd_final_link): When generating a shared library, call
879 elf_link_output_extsym to output all local symbols.
880 (elf_link_output_extsym): Handle symbols which were forced to
883 Sun Mar 9 23:08:49 1997 Ian Lance Taylor <ian@cygnus.com>
885 From Eric Youngdale <eric@andante.jic.com>:
886 * elf-bfd.h (elf_symbol_type): Add version field.
887 * elfcode.h (elf_slurp_symbol_table): Set version field.
888 * elflink.h (elf_link_add_object_symbols): When creating an
889 indirect symbol for a default version symbol, set DEF_DYNAMIC if
890 appropriate. Set up an indirection from the nondefault version of
892 (NAME(bfd_elf,size_dynamic_sections)): Call
893 elf_link_assign_sym_version before checking whether there are any
894 versions. Always record the version name as a dynamic symbol.
896 (elf_link_assign_sym_version): After finding a version, see if a
897 symbol should be forced to local scope. Create a new version
898 definition if appropriate.
899 (elf_link_output_extsym): Correct indirect symbol handling.
900 * elf.c (bfd_elf_print_symbol): Print version information.
901 (bfd_section_from_shdr): Turn version sections into BFD sections.
902 (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info
903 if sh_info is not already set.
904 (_bfd_elf_copy_private_section_data): Copy sh_info for version
906 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
907 _bfd_stringtab_add to copy the name into permanent memory if
910 Fri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
912 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
914 Fri Mar 7 10:37:30 1997 Ian Lance Taylor <ian@cygnus.com>
916 * coffcode.h (bfd_coff_backend_data): Change
917 _bfd_coff_compute_section_file_positions to return a boolean
918 value. Change all callers.
919 (coff_compute_section_file_positions): Change return type to
920 boolean. If the size of the last section changed, then output a
921 zero byte at the end of the file.
922 * libcoff.h: Rebuild.
924 * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
925 for at least 6 output symbols.
926 (xcoff_write_global_symbol): When emitting TOC entry relocs, also
927 emit a TC csect to represent the space they take up. For an XO
928 symbol, just emit a reference, not a csect.
930 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
931 Solaris doesn't like the combined options, and the -f is
933 (stamp-tshlink, install): Likewise.
935 * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
936 handling when little endian.
938 Thu Mar 6 13:51:51 1997 Jeffrey A Law (law@cygnus.com)
940 * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
941 (mn10300_elf_relocate_section): Likewise.
942 (elf_backend_relocate_section): Define.
944 * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
945 relocs. Replace them with generic PCREL_{8,16,32} relocs.
946 (elf32_mn10300_howto_table): Likewise.
947 (elf32_mn10300_reloc_map): Likewise.
948 (bfd_elf32_mn10300_reloc): Delete unused function.
950 Thu Mar 6 12:19:59 1997 Fred Fish <fnf@cygnus.com>
953 * coff-tic80.c (rtype2howto): If passed a relocation type we don't
954 understand, just set the howto field to NULL, and the caller will
955 print an appropriate error message.
957 * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and
958 code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif
959 block. Use NULL for initializations of "ptr" rather than bare 0.
960 * coff-h8300.c: Fix typo in comment.
961 * coff-h8500.c: Ditto.
965 Wed Mar 5 13:59:09 1997 Doug Evans <dje@seba.cygnus.com>
967 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc.
968 (m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
969 m32r_elf_get_relocated_section_contents): First pass at relax support.
971 Mon Mar 3 13:27:09 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
973 * elflink.h (elf_link_add_object_symbols): Use correct sh_size
974 entry for reading verdef records.
975 Use correct braces for computing increments of extverdaux and
976 exteverdef record pointers.
979 Sun Mar 2 22:47:54 1997 Fred Fish <fnf@cygnus.com>
981 * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
985 Sun Mar 2 16:25:35 1997 Ian Lance Taylor <ian@cygnus.com>
987 * elflink.h (elf_link_find_version_dependencies): Check that
988 DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
992 Fri Feb 28 16:52:40 1997 Fred Fish <fnf@cygnus.com>
994 * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
997 Fri Feb 28 15:06:45 1997 Ian Lance Taylor <ian@cygnus.com>
999 * targets.c (bfd_default_vector): Make non-const.
1000 (find_target): New static function, broken out of
1002 (bfd_set_default_target): New function.
1003 (bfd_find_target): Call find_target. When defaulting, use
1004 bfd_default_vector[0] if it is not NULL.
1005 * libbfd-in.h (bfd_default_vector): Adjust declaration.
1006 * bfd-in2.h, libbfd.h: Rebuild.
1008 * syms.c (bfd_is_local_label): Return false if the symbol has no
1010 * coff-i960.c (coff_i960_is_local_label_name): New function.
1011 (coff_bfd_is_local_label_name): Define.
1012 * coff-m68k.c (m68k_coff_is_local_label_name): New function.
1013 (coff_bfd_is_local_label_name): Define.
1014 * coff-rs6000.c (xcoff_is_local_label_name): New function.
1015 (coff_bfd_is_local_label_name): Define.
1016 * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning
1017 with .. or _.L_ as local.
1018 * elf32-i386.c (elf_i386_is_local_label_name): New function.
1019 (bfd_elf32_bfd_is_local_label_name): Define.
1020 * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols
1021 beginning with $ as local.
1023 Thu Feb 27 18:36:23 1997 Ian Lance Taylor <ian@cygnus.com>
1025 * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
1026 rather than comparing against info->lprefix.
1027 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1028 * elflink.h (elf_link_input_bfd): Likewise.
1029 * linker.c (_bfd_generic_link_output_symbols): Likewise.
1030 * xcofflink.c (xcoff_link_input_bfd): Likewise.
1032 * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
1033 _bfd_elf_is_local_label_name if not already defined.
1034 * elf.c (_bfd_elf_is_local_label_name): New function.
1035 * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
1037 * coff-m88k.c (coff_bfd_is_local_label_name): Define.
1038 (m88k_is_local_label_name): New static function.
1040 * coffcode.h (coff_bfd_is_local_label_name): Define as
1041 _bfd_coff_is_local_label_name if not already defined.
1042 * coffgen.c (_bfd_coff_is_local_label_name): New function.
1043 * libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
1044 * libcoff.h: Rebuild.
1046 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
1047 to _bfd_is_local_label_name.
1048 (bfd_target): Likewise.
1049 * syms.c (bfd_is_local_label): Define as function, not macro.
1050 (bfd_is_local_name): Define.
1051 * libbfd.c (bfd_generic_is_local_label_name): Rename from
1052 bfd_generic_is_local_label, and take a string rather than a
1054 * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
1055 (_bfd_nosymbols_bfd_is_local_label_name): Define.
1056 (bfd_generic_is_local_label): Don't declare.
1057 (bfd_generic_is_local_label_name): Declare.
1058 * bfd-in2.h, libbfd.h: Rebuild.
1059 * All backends: Change local_label to local_label_name.
1061 * elf32-mips.c (struct mips_got_info): Add assigned_gotno field.
1062 (mips_elf_relocate_got_local): Change return type to boolean.
1063 Don't assume that the first zero entry is unassigned; instead, use
1065 (mips_elf_relocate_section): Check return value of
1066 mips_elf_relocate_got_local.
1067 (mips_elf_create_got_section): Initialize assigned_gotno field.
1070 Wed Feb 26 15:19:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1072 * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
1076 Wed Feb 26 13:33:03 1997 Ian Lance Taylor <ian@cygnus.com>
1078 * elflink.h (elf_link_input_bfd): Don't skip symbols from sections
1079 that have no contents merely because linker_mark is not set.
1081 Tue Feb 25 18:51:35 1997 Stan Shebs <shebs@andros.cygnus.com>
1083 * config.bfd (mips*-*-lnews*): New target.
1084 * coff-mips.c (mips_relocate_section): Make assert compare
1085 content byteorder instead of header byteorder.
1086 (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian
1088 * targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
1089 * configure.in (ecoff_biglittle_vec): Add case.
1090 * configure: Update.
1092 Tue Feb 25 00:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
1094 * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose
1095 name begins with ".note".
1096 (map_sections_to_segments): Add a PT_NOTE segment for any loadable
1097 section whose name begins with ".note".
1098 (get_program_header_size): Corresponding change.
1100 * elf32-mips.c (mips_elf_relocate_section): Check for misaligned
1101 jal and for jal overflow.
1103 Mon Feb 24 17:53:14 1997 Ian Lance Taylor <ian@cygnus.com>
1105 From Eric Youngdale <eric@andante.jic.com>:
1106 * elflink.h (elf_link_add_archive_symbols): If a default symbol is
1107 not found, try looking it up again without the version name.
1108 (elf_link_add_object_symbols): Always link against the dynamic
1109 symbol table of a dynamic object. When linking against a dynamic
1110 object, include version strings in symbol names, and set up
1111 version information. Add indirect symbols for default versions.
1112 (elf_link_create_dynamic_sections): Add special version sections.
1113 (struct elf_assign_sym_version_info): Define.
1114 (struct elf_find_verdep_info): Define.
1115 (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set
1116 up version sections.
1117 (elf_adjust_dynamic_symbol): Ignore indirect symbols.
1118 (elf_link_find_version_dependencies): New static function.
1119 (elf_link_assign_sym_version): New static function.
1120 (elf_link_renumber_dynsyms): New static function.
1121 (struct elf_final_link_info): Add symver_sec field.
1122 (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count
1123 local symbols of a dynamic object. Handle DT_VER* constants.
1124 (elf_link_output_extsym): Simplify BFD_ASSERT checking for a
1125 dynamic object. Skip indirect symbols from ELF objects. Remove
1126 the version name before choosing a hash bucket. Write out the
1127 version information if appropriate.
1128 (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN.
1129 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
1130 (bfd_elf64_size_dynamic_sections): Likewise.
1131 * bfd-in2.h: Rebuild.
1132 * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field.
1133 Change elf_link_hash_flags to unsigned short.
1134 (ELF_LINK_HIDDEN): Define.
1135 (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr,
1136 dynverdef_hdr, dynversym_section, dynverdef_section,
1137 dynverref_section, cverdefs, cverrefs, verdef, verref.
1138 (elf_dynversym, elf_dynverdef, elf_dynverref): Define.
1139 (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare.
1140 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare.
1141 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare.
1142 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare.
1143 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare.
1144 (_bfd_elf_slurp_version_tables): Declare.
1145 * elf.c (_bfd_elf_swap_verdef_in): New function.
1146 (_bfd_elf_swap_verdef_out): Likewise.
1147 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise.
1148 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise.
1149 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise.
1150 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise.
1151 (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print
1152 version information if there is any.
1153 (_bfd_elf_link_hash_newfunc): Initialize verinfo field.
1154 (bfd_section_from_shdr): Handle SHT_GNU_ver* section types.
1155 (elf_fake_sections): Handle .gnu.version* section names.
1156 (assign_section_numbers): Handle SHT_GNU_ver* section types.
1157 (_bfd_elf_slurp_version_tables): New function.
1158 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include
1159 version name in string entered in dynamic hash table.
1160 * elfcode.h: Include fnmatch.h.
1161 * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic
1162 symbol which was forced to become local.
1163 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1164 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1165 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1166 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1168 Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com)
1170 * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
1172 (mn10200_elf_relax_section): Correctly compute a symbol's value
1173 when the symbol is local, but not in the same section as we are
1174 relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16
1177 Fri Feb 21 13:55:14 1997 Doug Evans <dje@seba.cygnus.com>
1179 * elf32-m32r.c: Rewrite to use ELF backend linker.
1180 Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns.
1181 Add small data area support (R_M32R_SDA16).
1182 * reloc.c: Document BFD_RELOC_M32R_SDA16.
1183 * bfd-in2.h,libbfd.h: Regenerated.
1185 Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com)
1187 * elf32-mn10200.c (mn10200_elf_relax_section): New function.
1188 (mn10200_elf_relax_delete_bytes): Likewise.
1189 (mn10200_elf_symbol_address_p): Likewise.
1190 (mn10200_elf_get_relocated_section_contents): Likewise.
1191 (bfd_elf32_bfd_relax_section): Define.
1192 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1194 * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
1195 (mn10200_elf_relocate_section): Likewise.
1196 (elf_backend_relocate_section): Define.
1199 Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1201 * Makefile.in, archures.c, config.bfd, configure.in, elf.c,
1202 reloc.c, targets.c: New target, elf-*-D30V.
1204 * bfd-in2.h, configure, libbfd.h: Rebuilt.
1206 * cpu-d30v.c, elf32-d30v.c: New files.
1209 Tue Feb 18 15:31:48 1997 Fred Fish <fnf@cygnus.com>
1211 * reloc.c (struct reloc_howto_struct): Fix typo in comment.
1212 * bfd-in2.h: Regenerated.
1213 start-sanitize-tic80
1214 * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
1215 (rtype2howto): Add function.
1216 (tic80_howto_table): Add.
1219 Tue Feb 18 11:41:00 1996 Dawn Perchik <dawn@cygnus.com>
1221 * sysdep.h: Don't define errno in MSVC if error.h is included.
1224 Tue Feb 18 10:04:13 1997 Jeffrey A Law (law@cygnus.com)
1226 * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
1227 is initialized before it is used.
1230 Mon Feb 17 11:28:40 1997 Ian Lance Taylor <ian@cygnus.com>
1232 * hp300hpux.c (convert_sym_type): Don't convert a secondary common
1233 symbol into a weak undefined symbol; leave it as a common symbol.
1235 Fri Feb 14 19:08:03 1997 Ian Lance Taylor <ian@cygnus.com>
1237 * elflink.h (elf_link_add_object_symbols): Don't issue a warning
1238 about a symbol defined in a dynamic object if it has already been
1239 defined in a regular object.
1241 Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
1243 * makefile.vms: Add gcc flags to allow compiling with current gcc
1245 (targmatch.h): New dependency.
1247 * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
1249 * evax.h (ALPHA_R_CODEADDR): New relocation.
1250 * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
1252 * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
1254 * bfd-in2.h, libbfd.h: Rebuild.
1256 Restrict symbol length to 64 bytes, case preserving:
1257 * evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
1258 * evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
1259 (_bfd_evax_length_hash_symbol): Added.
1260 * evax-etir.c (_bfd_evax_write_etir): Call
1261 _bfd_evax_length_hash_symbol before output of symbol.
1262 * evax-egsd.c (_bfd_evax_write_egsd): Likewise.
1263 * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.
1265 * evax-emh.c: Output filename to object file without path.
1267 * evax-egsd.c: New sections for local and global commons.
1269 * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
1270 evax-misc.c, evax.h: Remove 8 bit characters from copyright
1271 notices. Replace AXP with Alpha.
1273 Wed Feb 12 18:10:30 1997 Ian Lance Taylor <ian@cygnus.com>
1275 * sunos.c (sunos_create_dynamic_sections): We need the dynamic
1276 sections if we are creating a shared library.
1278 Tue Feb 11 15:45:43 1997 Doug Evans <dje@canuck.cygnus.com>
1280 * configure.host (i386-windows): Don't set host64=true.
1282 Tue Feb 11 15:27:32 1997 Ian Lance Taylor <ian@cygnus.com>
1284 * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
1285 (elf_mips16_gprel_howto): New static variable.
1286 (mips16_gprel_reloc): New static function.
1287 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
1288 (mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
1289 (mips_elf_relocate_section): Handle R_MIPS16_GPREL.
1290 * reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
1291 * bfd-in2.h, libbfd.h: Rebuild.
1293 Mon Feb 10 23:25:00 1997 Doug Evans <dje@seba.cygnus.com>
1295 * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true
1296 for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
1298 start-sanitize-r5900
1299 Fri Feb 7 16:20:17 1997 Gavin Koch <gavin@cygnus.com>
1301 * config.bfd: add r5900
1304 Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com>
1306 * elflink.h (elf_link_input_bfd): If we've discarded a section,
1307 the output section will be the absolute section; don't print an
1308 assertion message for that case when doing a relocateable link.
1310 Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com>
1312 * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
1313 (struct mips_elf_link_hash_entry): Add new fields fn_stub,
1314 need_fn_sub, call_stub, and call_fp_stub.
1315 (struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
1316 (mips_elf_link_hash_newfunc): Initialize new fields.
1317 (mips_elf_link_hash_table_create): Likewise.
1318 (mips_elf_relocate_section): Redirect relocations to use mips16
1319 stubs when appropriate.
1320 (mips_elf_check_relocs): Attach stub sections to the appropriate
1321 symbol. Set need_fn_stub when appropriate.
1322 (mips_elf_always_size_sections): New static function.
1323 (mips_elf_check_mips16_stubs): New static function.
1324 (elf_backend_always_size_sections): Define.
1325 * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
1327 * elflink.h (elf_link_input_bfd): Discard local symbols that are
1328 attached to sections which are not being included in the link.
1330 Wed Feb 5 13:20:17 1997 Ian Lance Taylor <ian@cygnus.com>
1332 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
1333 symbol value when computing the addend for a pc_relative
1336 Mon Feb 3 11:54:06 1997 Ian Lance Taylor <ian@cygnus.com>
1338 * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
1339 relocateable link, just skip pc_relative pcrel_offset relocs.
1340 * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
1341 structure for an ARM26 reloc which can be resolved.
1342 (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
1343 reloc can be resolved.
1345 * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
1346 error in overflow check for R_RELBYTE.
1348 Fri Jan 31 14:07:27 1997 Ian Lance Taylor <ian@cygnus.com>
1350 * ieee.c (ieee_slurp_section_data): Pick up the start address.
1351 From Mark Rasin <mark.rasin@telrad.co.il>.
1353 * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
1356 Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com)
1358 * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
1359 (elf_mn10200_howto_table): Likewise.
1360 (mn10200_reloc_map): Likewise.
1362 Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com>
1364 * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
1365 * bfd-in2.h, libbfd.h: Regenerated.
1366 * elf32-m32r.c: Add support for them.
1368 Mon Jan 27 12:25:02 1997 Ian Lance Taylor <ian@cygnus.com>
1370 * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
1371 * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
1373 * elf32-v850.c (v850_elf_final_link_relocate): Remove used
1374 r_format and r_pcrel. Always return a value.
1376 * riscix.c (MY_final_link_callback): Define to dummy value.
1378 * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
1379 relocations against the text segment, look up the output name of
1381 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1382 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
1383 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1384 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1385 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1387 start-sanitize-tic80
1388 Wed Jan 22 15:40:28 1997 Fred Fish <fnf@cygnus.com>
1390 * coff-tic80.c (tic80coff_vec): Use correct data put/get
1391 routines for little endian data.
1392 * coffcode.h (coff_write_object_contents): Set magic to
1393 TIC80_ARCH_MAGIC for TIc80.
1395 Tue Jan 21 12:32:43 1997 Fred Fish <fnf@cygnus.com>
1397 * coff-tic80.c (tic80coff_vec): Change to little endian data
1401 Thu Jan 16 17:45:57 1997 Ian Lance Taylor <ian@cygnus.com>
1403 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
1404 auxiliary_filters parameter to be const char * const *. Accept a
1405 NULL terminated array.
1406 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
1407 (bfd_elf32_size_dynamic_sections): Update declaration.
1408 * bfd-in2.h: Rebuild.
1410 Wed Jan 15 11:21:32 1997 Ian Lance Taylor <ian@cygnus.com>
1412 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
1413 NOTYPE symbol in a text section as a FUNC symbol.
1415 * coffcode.h (coff_compute_section_file_positions): Force
1416 relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
1418 Tue Jan 14 08:46:33 1997 Doug Evans <dje@canuck.cygnus.com>
1420 * libaout.h (machine_type): Reserve several values for sparclet.
1422 start-sanitize-tic80
1423 Mon Jan 13 22:39:08 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1425 * config.bfd (tic80-*-*): Don't require 'coff'.
1429 Mon Jan 13 19:36:25 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1431 * elf32-v850.c (v850_elf_howto_table): Set the special_function
1432 table to v850_elf_reloc for all non-standard relocations.
1433 (v850_elf_check_relocs): Add check for h being non-null.
1434 (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch
1435 statement instead of multiple ifs.
1436 (v850_elf_relocate_section): Fix up error message, don't just call
1440 Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com)
1442 * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
1443 Use bfd_elf_generic_reloc as special function for all relocs.
1444 (bfd_elf32_mn10200_reloc): Remove unnecessary function.
1446 * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
1447 24bit pc-relative reloc.
1449 start-sanitize-tic80
1450 Fri Jan 3 16:33:00 1997 Fred Fish <fnf@cygnus.com>
1452 * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
1453 * coff-tic80.c (tic80coff_vec): Data byte order is big endian and
1454 header byte order is little endian. Use correct bfd_get and
1455 bfd_put routines for little endian headers.
1456 * coffcode.h (coff_set_arch_mach_hook): Set arch to
1457 bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
1460 Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com)
1462 * reloc.c: Add BFD_RELOC_24.
1463 * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
1464 (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
1465 * bfd-in2.h, libbfd.h: Rebuilt.
1467 Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>
1469 elf64-alpha multiple .got rewrite:
1471 * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
1472 (bfd_elf*_mkobject): Don't define here ...
1473 * elfxx-target.h: ... but rather here. Default always_size_sections
1475 * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was
1476 what the #defines in elf-bfd.h transmuted it to anyway.
1478 * section.c: Add SEC_LINKER_CREATED flag.
1479 * bfd-in2.h: Rebuild.
1480 * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
1481 relocation section flags.
1482 (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
1483 SEC_IN_MEMORY to recognize generated bits.
1484 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
1486 * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
1487 mips_elf_create_compact_rel_section, mips_elf_create_got_section,
1488 mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
1489 * elf32-ppc.c (ppc_elf_create_linker_section,
1490 ppc_elf_size_dynamic_sections): Likewise.
1491 * elf32-sparc.c (elf32_sparc_check_relocs,
1492 elf32_sparc_size_dynamic_sections): Likewise.
1493 * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to
1495 (_bfd_elf_create_dynamic_sections): Likewise.
1496 (_bfd_elf_make_linker_section_rela): Likewise.
1497 * elflink.h (elf_link_create_dynamic_sections): Likewise.
1498 (bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
1499 (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
1500 to identify generated bits.
1501 (elf_link_input_bfd): Likewise.
1503 * elf64-alpha.c: Rewrite everything touching relocations.
1506 Fri Jan 3 11:42:53 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1508 * elf32-v850.c (all functions and static variables): Go through
1509 and regularize names to be of the form v850_elf_<xxx>.
1510 (toplevel): Include <elf/v850.h>.
1511 (enum reloc_type): Move to include/elf/v850.h.
1512 (v850_elf_check_relocs): For common variables, if the variable is
1513 referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable
1514 into the appropriate section.
1515 (elf_backend_check_relocs): Define.
1517 Tue Dec 31 15:15:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1519 * elf32-v850.c (elf_v850_howto_table): Fix some spacing.
1522 Tue Dec 31 14:44:50 1996 Ian Lance Taylor <ian@cygnus.com>
1524 * config.bfd (mips*el-*-linux*): New target.
1525 (mips*-*-linux*): New target.
1527 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
1528 Return a useful value.
1530 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
1532 * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
1534 * configure: Rebuild.
1535 * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
1536 ac_cv_func_mmap in bfd/configure.host.
1538 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
1539 filter_shlib and auxiliary_filter_shlib parameters.
1540 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
1542 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
1543 (bfd_elf64_size_dynamic_sections): Likewise.
1544 * bfd-in2.h: Rebuild.
1546 Mon Dec 30 18:48:52 1996 Ian Lance Taylor <ian@cygnus.com>
1548 * xcofflink.c (xcoff_build_ldsyms): When exporting all defined
1549 symbols, don't export a symbol which is defined by an object in an
1550 archive which contains shared objects.
1552 start-sanitize-tic80
1553 Mon Dec 30 16:12:58 1996 Fred Fish <fnf@cygnus.com>
1555 * archures.c (enum bfd_architecture): Add bfd_arch_tic80
1556 for TI TMS320c80 (MVP).
1557 (bfd_archures_list): Add bfd_tic80_arch.
1558 * bfd-in2.h: Regenerate by running "make headers".
1560 Sun Dec 29 16:18:52 1996 Fred Fish <fnf@cygnus.com>
1562 * cpu-tic80.c (bfd_tic80_arch): Add struct.
1563 * configure.in (case $vec): Correct typo, "tb" not "tp".
1564 Also add cofflink.o for tic80coff_vec.
1565 * configure: Regenerate with autoconf.
1568 Mon Dec 30 11:54:56 1996 Ian Lance Taylor <ian@cygnus.com>
1570 * libbfd.c: Patch up the mmap code so that it is only built if BFD
1571 is configured with --with-mmap.
1573 start-sanitize-tic80
1574 Sun Dec 29 10:48:57 1996 Fred Fish <fnf@cygnus.com>
1576 * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
1577 (ALL_MACHINES): Add cpu-tic80.o
1578 (cpu-tic80.o, coff-tic80.o): Add dependencies.
1579 * coff-tic80.c: Add skeleton, cloned from another coff config.
1580 * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC
1584 Fri Dec 27 20:56:41 1996 Fred Fish <fnf@cygnus.com>
1586 * TODO: Correct a misspelling.
1587 start-sanitize-tic80
1588 * coff-tic80.c: New file for TI TMS320C80 (MVP).
1589 * cpu-tic80.c: New file for TI TMS320C80 (MVP).
1590 * configure.in (case $vec): Add tic80coff_vec entry.
1591 * configure: Regenerate with autoconf.
1592 * archures.c (bfd_tic80_arch): Declare.
1593 * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80.
1594 * config.bfd (case ${targ}): Add tic80*-*-coff* target.
1595 * targets.c (tic80coff_vec): Add decl as extern bfd_target.
1596 (bfd_target_vector): Add tic80coff_vec entry.
1599 Fri Dec 27 11:48:12 1996 H.J. Lu <hjl@lucon.org>
1601 * elflink.h (elf_buckets): Add some more values for larger
1604 Thu Dec 26 18:36:54 1996 Ian Lance Taylor <ian@cygnus.com>
1606 * Makefile.in (install): Move subdir_do out of conditional. From
1607 Fred Fish <fnf@cygnus.com>.
1609 Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com)
1611 * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
1613 (elf_mn10200_howto_table): Likewise.
1614 (mn10200_reloc_map): Likewise.
1616 Tue Dec 17 11:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
1618 * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
1619 mips16 symbol during the link.
1620 (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
1622 (mips_elf_link_output_symbol_hook): New static function.
1623 (elf_backend_link_output_symbol_hook): Define.
1625 * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
1628 Mon Dec 16 14:38:39 1996 Ian Lance Taylor <ian@cygnus.com>
1630 * elf.c (bfd_section_from_shdr): Don't check for reloc sections
1631 against SEC_DEBUGGING sections here (revert patch of December 5).
1632 * elfcode.h (elf_object_p): Check for them here, instead.
1634 Sun Dec 15 14:46:06 1996 Ian Lance Taylor <ian@cygnus.com>
1636 * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
1637 * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
1639 (_bfd_elf_get_dynamic_reloc_upper_bound): New function.
1640 (_bfd_elf_canonicalize_dynamic_reloc): New function.
1641 * elf-bfd.h (struct elf_size_info): Update declaration of
1643 (_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
1644 (_bfd_elf_canonicalize_dynamic_reloc): Declare.
1645 * elfxx-target.h: Use new dynamic reloc routines by default.
1646 * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
1649 Fri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com>
1651 * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
1652 if NAMES_HAVE_UNDERSCORE is defined.
1654 Fri Dec 13 11:13:23 1996 Doug Evans <dje@canuck.cygnus.com>
1656 * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
1658 Thu Dec 12 15:07:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1660 * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
1663 Thu Dec 12 14:55:41 1996 Ian Lance Taylor <ian@cygnus.com>
1665 * elflink.h (elf_link_add_object_symbols): Only add a weak
1666 symbol if the real definition is in the dynamic symbol table.
1667 After finding the real definition, then, if it is dynamic, add the
1668 weak symbol to the dynamic symbol table.
1670 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
1672 * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
1674 (ppcboot_bfd_print_private_bfd_data): Don't take the address of an
1677 Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com)
1679 * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
1681 (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
1682 (bfd_elf32_mn10300_reloc): Write data in little endian format.
1683 * reloc.c: Remove mn10300 big endian relocs.
1684 * bfd-in2.h, libbfd.h: Rebuilt.
1686 * elf32-mn10200.c: Update from elf32-mn10300.c.
1688 Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com)
1690 * elf32-mn10300.c (elf_symbol_leading_char): Define.
1692 * elf32-mn10300.c: Add some comments.
1694 Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com>
1696 * ihex.c (ihex_scan): Always initialize buf before jumping to
1698 (ihex_read_section): Likewise.
1700 Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com)
1702 * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
1703 inplace for most relocs.
1705 Thu Dec 5 13:24:46 1996 Ian Lance Taylor <ian@cygnus.com>
1707 * elflink.h (elf_link_add_object_symbols): Calling check_relocs
1708 even if SEC_ALLOC is not set.
1709 * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC
1710 when deciding whether to copy a reloc into a shared object.
1711 (elf_i386_relocate_section): Likewise.
1712 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
1713 (elf32_sparc_relocate_section): Likewise.
1714 * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a
1715 reloc section if it is not set in the source section.
1716 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
1717 * elf.c (bfd_section_from_shdr): Mark a reloc section associated
1718 with a SEC_DEBUGGING section as SEC_DEBUGGING.
1720 Wed Dec 4 14:18:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1722 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
1723 expects a .got.plt until we actually create it.
1725 Mon Dec 2 12:13:51 1996 Ian Lance Taylor <ian@cygnus.com>
1727 * cofflink.c (_bfd_coff_generic_relocate_section): Print an error
1728 message for bfd_reloc_outofrange, rather than aborting. From
1729 Philippe De Muyter <phdm@info.ucl.ac.be>.
1731 * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in
1732 a relocateable link, don't try to process them. From Heinz Wrobel
1733 <wrobel@lpr.e-technik.tu-muenchen.de>.
1735 Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com)
1737 * elf32-mn10300.c (mn10300_info_howto): Renamed from
1738 mn10300_info_howto_rel. Tweak reloc argument to be an
1739 Elf32_Internal_Rela.
1740 (USE_RELA): Define instead of USE_REL.
1741 (elf_info_to_howto, elf_info_howto_rel): Corresponding changes.
1743 Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1745 * configure.in, configure: Handle mips*-sgi-irix6*.
1746 * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32
1749 Wed Nov 27 12:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
1751 * elf32-i386.c (elf_i386_relocate_section): Warn about a
1752 relocation against a symbol defined in a section with no output
1755 Tue Nov 26 11:07:31 1996 Ian Lance Taylor <ian@cygnus.com>
1757 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
1758 * configure, config.in: Rebuild with autoconf 2.12.
1760 * elf-bfd.h (struct elf_link_hash_entry): Add other field.
1761 * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field.
1762 (swap_out_syms): Set st_other from existing st_other field.
1763 * elflink.h (elf_link_add_object_symbols): Store st_other in hash
1765 (elf_link_output_extsym): Set the other field from the global hash
1767 * elf32-mips.c (enum reloc_type): Add R_MIPS16_26.
1768 (elf_mips16_jump_howto): New static variable.
1769 (mips16_jump_reloc): New static function.
1770 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP.
1771 (mips_info_to_howto_rel): Handle R_MIPS16_26.
1772 (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26
1774 * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs.
1775 * bfd-in2.h, libbfd.h: Rebuild.
1776 * cpu-mips.c (arch_info_struct): Add mips:16 entry.
1778 Mon Nov 25 11:23:32 1996 Ian Lance Taylor <ian@cygnus.com>
1780 * configure.host: Use long long for mips-sgi-irix6*.
1782 * coffswap.h (coff_swap_scnhdr_out): Make line number overflow
1783 only a warning. From Philippe De Muyter <phdemuyt@ulb.ac.be>.
1785 Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com)
1787 * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function.
1788 (enum reloc_type): Add more reloc types.
1789 (elf32_mn10300_howto_table): Update for new reloc types.
1790 (elf32_mn10300_reloc_map): Update for new reloc types.
1791 * reloc.c: Add some new relocs for the mn10300 series.
1792 * bfd-in2.h, libbfd.h: Rebuilt.
1794 Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com)
1796 * som.c (setup_sections): Don't lose for a space which has
1797 no data, but some symbols.
1799 Fri Nov 22 11:32:13 1996 Ian Lance Taylor <ian@cygnus.com>
1801 * sunos.c (struct sunos_link_hash_table): Add got_needed field.
1802 (sunos_link_hash_table_create): Initialize got_needed.
1803 (sunos_create_dynamic_sections): Only set .got section size if it
1804 is not already set. Set got_needed.
1805 (bfd_sunos_size_dynamic_sections): Check got_needed. Only set
1806 sdynptr, and only handle dynamic sections, if dynamic sections are
1808 (sunos_scan_std_relocs): Pass false to create_dynamic_sections.
1809 Initialize .got section.
1810 (sunos_scan_ext_relocs): Likewise.
1811 (sunos_write_dynamic_symbol): Set up PLT entry even if this is not
1813 (sunos_finish_dynamic_link): Check got_needed. Only set up
1814 dynamic linking information if needed.
1816 Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com)
1818 * config.bfd: Added VersaDOS format to the Ericsson configuration.
1820 Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com)
1822 * elf32-mn10300.c: Rough cut at relocs for the mn10300.
1824 Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com)
1826 * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
1829 Tue Nov 12 13:30:00 1996 Dawn Perchik <dawn@cygnus.com>
1831 * filemode.c: Include sysdep.h.
1832 * ihex.c: Add casts to eliminate compiler warnings.
1833 * sunos.c: Add casts to eliminate compiler warnings.
1835 Mon Nov 11 10:37:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1837 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
1839 (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make
1840 appropriate relocations in the .so file if shared.
1841 (ppc_elf_relocate_section): Ditto.
1843 Tue Oct 29 15:03:02 1996 Doug Evans <dje@canuck.cygnus.com>
1845 * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
1846 complain_overflow_unsigned.
1848 Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1850 * elf32-d10v.c (elf_d10v_howto_table): Don't complain on
1851 overflows for R_D10V_16 and R_D10V_18.
1853 Tue Oct 29 13:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
1855 * ieee.c (ieee_write_section_part): Use LMA rather than VMA.
1856 (do_with_relocs): Likewise.
1857 (do_as_repeat): Likewise.
1858 (copy_expression): Likewise.
1860 Fri Oct 25 16:56:40 1996 Ian Lance Taylor <ian@cygnus.com>
1862 * ieee.c (ieee_write_external_part): Correctly record whether
1863 there is an external part.
1866 Thu Oct 24 14:32:52 1996 Jeffrey A Law (law@cygnus.com)
1868 * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly
1869 handle tda offsets for sld.w and sst.w instructions.
1870 Fix alignment check in sld.w and sst.w tda reloc handling.
1873 Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com)
1875 * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows.
1878 Wed Oct 23 00:53:16 1996 Jeffrey A Law (law@cygnus.com)
1880 * elf32-v850.c: Add comments about assumptions about
1881 char, short & long sizes.
1882 (elf32_v850_bfd_final_link_relocate): Fix sign extension
1883 problems for several relocs.
1885 * elf32-v850.c (elf32_v850_howto_table): Fix typo in
1886 R_V850_SDA_OFFSET entry.
1889 Wed Oct 23 00:20:34 1996 Ian Lance Taylor <ian@cygnus.com>
1891 * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
1892 Store import file index in ldindx.
1893 (xcoff_build_ldsyms): Assume that ldsym was not previously
1894 allocated. For an imported symbol, copy ldindx into l_ifile.
1897 Tue Oct 22 19:20:38 1996 Jeffrey A Law (law@cygnus.com)
1899 * elf32-v850.c (elf_v850_howto_table): Fix ordering of
1900 R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various
1901 fields in R_V850_TDA_OFFSET.
1902 (elf32_v850_bfd_final_link_relocate): Tweak pc-relative
1903 relocs to work more like other relocs. Handle R_V850_TDA_OFFSET
1906 * elf32-v850.c: Include bfdlink.h.
1907 (bfd_elf32_v850_reloc): Return an error if we get a reloc
1909 (elf32_v850_bfd_final_link_relocate): New function.
1910 (v850_elf_relocation_section): Likewise.
1911 (elf_backend_relocate_section): Define.
1914 Tue Oct 22 17:22:43 1996 Ian Lance Taylor <ian@cygnus.com>
1916 * binary.c (binary_set_section_contents): Ignore sections which
1917 don't have SEC_LOAD and SEC_ALLOC set.
1919 Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com)
1921 * linker.c (_bfd_generic_final_link): Avoid losing static
1922 symbols in the .bss section.
1924 Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com>
1926 * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64.
1927 (mips32_64bit_reloc): New static function.
1928 (mips_reloc_map): Add entry for BFD_RELOC_64.
1929 (mips_elf_relocate_section): Handle R_MIPS_64.
1931 * linker.c (default_indirect_link_order): Print an error message
1932 when attempting to do a relocateable link with different object
1933 file formats, rather than calling abort.
1935 Thu Oct 17 10:43:29 1996 Doug Evans <dje@canuck.cygnus.com>
1937 * reloc.c (m32r relocs): Rename them.
1938 * bfd-in2.h, libbfd.h: Regenerated.
1939 * elf32-m32r.c: Update.
1940 (m32r_elf_10_pcrel_reloc): New function.
1941 (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it.
1942 (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks.
1944 Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com)
1946 * linker.c (_bfd_generic_final_link): Set "linker_mark" for
1947 all sections that will be included in the output file.
1948 (_bfd_generic_link_output_symbols): Discard symbols in sections
1949 which are being discarded.
1953 * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
1954 R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
1955 (elf_v850_howto_table): Corresponding changes.
1956 (elf_v850_reloc_map): Corresponding changes.
1957 * reloc.c: Add additional V850 relocations.
1958 * bfd-in2.h, libbfd.h: Rebuilt.
1960 * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
1961 no longer want in pc-relative relocs.
1963 Tue Oct 15 22:17:37 1996 Jeffrey A Law (law@cygnus.com)
1965 * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
1966 accept a reloc against an undefined sybmol!
1968 Tue Oct 15 16:17:28 1996 Stu Grossman (grossman@critters.cygnus.com)
1970 * elf32-v850.c: Define elf_symbol_leading_char to be '_'.
1973 Tue Oct 15 12:40:41 1996 Ian Lance Taylor <ian@cygnus.com>
1975 * VERSION: Bump for new relocation.
1977 * hosts/i386bsd.h: If NBPG is not defined, define it as
1978 PAGE_SIZE, for recent versions of FreeBSD.
1980 Mon Oct 14 12:37:26 1996 Ian Lance Taylor <ian@cygnus.com>
1982 * configure.host: Use `long long' as the 64 bit type on a Solaris
1983 host, since both gcc and the SunPRO compilers support it.
1985 Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>
1987 * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a
1988 mistake to have reused the ECOFF LITERAL for ELF since they have
1989 different semantics.
1990 * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
1991 * bfd-in2.h, libbfd.h: Rebuild.
1993 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
1996 * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
1997 dynamic relocation for an undefweak symbol when we are building
1998 a static executable.
2000 Thu Oct 10 11:15:06 1996 Stan Shebs <shebs@andros.cygnus.com>
2002 * mpw-make.sed (config.bfd, targmatch.sed): Edit references to
2003 point explicitly to srcdir.
2004 (targmatch.h): Edit references to point explicitly to objdir.
2006 Thu Oct 10 14:14:23 1996 Ian Lance Taylor <ian@cygnus.com>
2008 * config.bfd: When setting targ_cpu, don't get confused by
2011 Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com)
2013 * configure.host: Add support for windows host (a build done
2014 under the Microsoft build environment).
2016 Tue Oct 8 11:40:16 1996 Ian Lance Taylor <ian@cygnus.com>
2018 * elflink.h (elf_link_add_object_symbols): If a symbol is a weak
2019 definition in a dynamic object, add it to the dynamic symbol table
2020 if any dynamic object mentions it. Reverts part of last patch.
2022 * sunos.c (struct sunos_link_hash_table): Add got_base field.
2023 (sunos_link_hash_table_create): Initialize got_base.
2024 (bfd_sunos_size_dynamic_sections): If the .got section is more
2025 than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to
2027 (sunos_check_dynamic_reloc): Subtract got_base from a base
2028 relative relocation.
2030 * elf32-mips.c (elf_mips_isa): New static function.
2031 (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking
2032 -mips1 and -mips2 code together, or -mips3 and -mips4 code.
2034 Mon Oct 7 11:44:17 1996 Ian Lance Taylor <ian@cygnus.com>
2036 * archive.c (do_slurp_coff_armap): Only treat archive as little
2037 endian for i960 COFF.
2039 Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com>
2041 * coffcode.h (coff_compute_section_file_positions): Adjust sofar
2042 by the change in size of the section when EXEC_P is not set.
2044 * coff-m68k.c (coff_rtype_to_howto): Define if not defined.
2045 (m68kcoff_rtype_to_howto): New static function.
2046 * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
2047 VMA to the addend for a PC relative reloc.
2049 * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
2051 * Makefile.in: Rebuild dependencies.
2053 * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
2056 Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com)
2058 * Makefile.in: Remove explicit dependencies for mn10200 and
2060 (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c.
2061 (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c
2062 (dependencies): Rebuilt.
2064 Thu Oct 3 16:57:51 1996 Ian Lance Taylor <ian@cygnus.com>
2066 * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
2067 during this function.
2069 * elflink.c (_bfd_elf_create_linker_section): Only use an existing
2070 section if the flags are compatible.
2072 * configure.in: Add havevecs, and put it in tdefaults.
2073 * mpw-config.in: Likewise.
2074 * configure: Rebuild.
2075 * targmatch.sed: New file; a sed script to build targmatch.h from
2077 * config.bfd: Add #if, #endif, and comments for targmatch.h.
2078 * targets.c: Include "fnmatch.h".
2079 (struct targmatch): Define.
2080 (bfd_target_match): Define by including targmatch.h.
2081 (bfd_find_target): If the target is not found by name, search for
2082 it as a configuration triplet.
2083 * Makefile.in: Rebuild dependencies.
2084 (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o,
2085 i386dynix.o, m68k4knetbsd.o, and riscix.o.
2086 (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c,
2087 hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c.
2088 (HFILES): Add targmatch.h. Also, alphabetize and reindent.
2089 (CFILES): Remove i386dynix.c and hp300bsd.c.
2090 (targmatch.h): New target.
2091 (do_clean): Remove targmatch.h.
2093 * configure.in: Add BFD_NEED_DECLARATION(getenv).
2094 * acconfig.h: Add NEED_DECLARATION_GETENV.
2095 * configure, config.in: Rebuild.
2096 * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv.
2097 * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
2099 Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com)
2101 * cpu-mn10x00.c, elf32-mn10x00: Removed.
2102 * cpu-mn10200.c, cpu-mn10300.c: New files.
2103 * elf32-mn10200.c, elf32-mn10300.c: New files.
2104 * Makefile.in: Break mn10x00 support into two separate
2105 configurations, mn10200 and mn10300.
2106 * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise.
2107 * bfd-in2.h, configure: Rebuilt.
2109 Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2111 * Makefile.in (do_clean): Move config.log to do_distclean.
2113 Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com)
2115 * cpu-mn10x00.c, elf32-mn10x00.c: New files.
2116 * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
2117 (BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
2118 (elf32-mn10x00.o): Add dependencies.
2119 * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
2120 (bfd_mn10x00_arch): Declare.
2121 (bfd_archures_list): Add bfd_mn10x00_arch.
2122 * config.bfd: Add mn10x00-*-*.
2123 * configure.in: Add bfd_elf32_mn10x00_vec.
2124 * elf.c (prep_headers): Handle bfd_arch_mn10x00.
2125 * targets.c (bfd_elf32_mn10x00_vec): Declare.
2126 (bfd_target_vector): Add bfd_elf32_mn10x00_vec.
2127 * bfd-in2.h, configure: Rebuilt.
2129 Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>
2131 openVMS/Alpha: Provide filename and case_hack flags via
2132 symbol table from gas.
2133 Add case_hack code for symbol output from vax/vms.
2134 * evax-alpha.c (evax_initialize): Remove filename handling,
2135 filename is provided via symbol table.
2136 (evax_get_symtab): Use local symbol count when setting up table.
2137 * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when
2139 (_bfd_evax_write_egsd): Skip file name symbol.
2140 * evax-emh.c (get_vms_time_string): Local function now.
2141 (_bfd_evax_write_emh): Extract source filename and case_hack flags
2143 * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names
2144 through _bfd_evax_case_hack_symbol.
2145 * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New
2147 (_bfd_evax_basename): Removed.
2148 (_bfd_get_vms_time_string): Moved to evax-emh.c.
2149 * evax.h (evax_private_data_struct): Remove filename.
2150 (flag_hash_long_names, flag_show_after_trunc,
2151 flag_no_hash_mixed_case, vms_name_mapping): New flags for
2154 Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com>
2156 * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.
2157 (N_GETMID_NET, N_GETFLAG_NET): Likewise.
2158 (NO_SWAP_MAGIC): Don't define.
2159 (SWAP_MAGIC): Define.
2161 * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
2162 no hash table entry for a global symbol.
2164 Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
2166 * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
2168 Tue Oct 1 12:31:39 1996 Ian Lance Taylor <ian@cygnus.com>
2170 * cofflink.c (coff_link_add_symbols): Don't override a meaningful
2171 symbol type with T_NULL. Warn if symbol type changes. Based on
2172 patch from Philippe De Muyter <phdm@info.ucl.ac.be>.
2174 * elflink.h (elf_link_add_object_symbols): Only put a symbol from
2175 a dynamic object in the dynamic symbol table if it is referenced
2176 or defined by a regular object.
2179 Fri Sep 27 18:41:07 1996 Stu Grossman (grossman@critters.cygnus.com)
2181 * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to
2182 remove dwarf local labels. Shrinks binaries by a factor of 3!
2185 Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com>
2187 * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
2188 by hand, rather than by calling bfd_make_section.
2190 Mon Sep 23 09:23:41 1996 Doug Evans <dje@seba.cygnus.com>
2192 * reloc.c: Rename m32r relocs.
2193 * bfd-in2.h, libbfd.h: Rebuilt.
2194 * elf32-m32r.c: Update.
2196 Fri Sep 20 11:43:43 1996 Ian Lance Taylor <ian@cygnus.com>
2198 * aoutx.h (aout_link_input_section_ext): When doing a relocateable
2199 link, adjust the symbol index of a base relative reloc. Don't
2200 change the addend of a PC relative reloc if pcrel_offset is set.
2201 * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
2202 a relocateable link.
2204 * reloc.c (bfd_perform_relocation): Apply the relocation even if
2205 it is zero, in case src_mask matters.
2206 (bfd_install_relocation): Likewise.
2208 Thu Sep 19 11:03:06 1996 Ian Lance Taylor <ian@cygnus.com>
2210 * xcofflink.c (xcoff_link_add_symbols): Always initialize
2212 (_bfd_xcoff_bfd_final_link): Don't set target_index
2213 to an uninitialized value.
2215 Tue Sep 17 14:18:31 1996 Ian Lance Taylor <ian@cygnus.com>
2217 * coffcode.h (coff_slurp_line_table): Warn about illegal symbol
2218 indices, rather than crashing.
2219 (coff_slurp_reloc_table): Likewise. Check whether the howto field
2221 * coff-sh.c (sh_relocate_section): Check for an illegal symbol
2224 Mon Sep 16 12:39:36 1996 Ian Lance Taylor <ian@cygnus.com>
2226 * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
2228 (coff_arm_adjust_symndx): New static function.
2229 (coff_adjust_symndx): Define.
2231 * srec.c (srec_scan): Accept multiple symbols on a single line.
2232 From Pascal Martin <pmartin@alsys.com>.
2236 Fri Sep 13 14:32:42 1996 Doug Evans <dje@canuck.cygnus.com>
2238 * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
2239 (sunos_merge_private_bfd_data): New function.
2241 Fri Sep 13 15:50:57 1996 Ian Lance Taylor <ian@cygnus.com>
2243 * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
2245 (bfd_merge_private_bfd_data): Likewise.
2246 * section.c (bfd_copy_private_section_data): Likewise.
2247 * syms.c (bfd_copy_private_symbol_data): Likewise.
2248 * bfd-in2.h: Rebuild.
2249 * aout-target.h (MY_bfd_copy_private_section_data): Check that
2250 both BFD's are the right flavour.
2251 * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
2252 * elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
2253 * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
2254 (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2255 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
2256 (ppc_elf_merge_private_bfd_data): Likewise.
2257 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
2258 * peicode.h (pe_bfd_copy_private_section_data): Likewise.
2260 * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for
2261 R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes
2264 Thu Sep 12 11:45:57 1996 Doug Evans <dje@seba.cygnus.com>
2266 * reloc.c: Add m32r relocs.
2267 * bfd-in2.h, libbfd.h: Rebuilt.
2268 * cpu-m32r.c,elf32-m32r.c: New files.
2270 Thu Sep 12 11:10:05 1996 Ian Lance Taylor <ian@cygnus.com>
2272 * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
2274 Wed Sep 11 11:57:56 1996 Ian Lance Taylor <ian@cygnus.com>
2276 * tekhex.c (first_phase): Change type parameter from char to int.
2278 (pass_over): Change func to expect int, not char.
2280 * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
2281 rather than SEC_LOAD when aligning the file offset for the first
2282 section in a segment.
2284 Tue Sep 10 16:18:30 1996 Fred Fish <fnf@cygnus.com>
2286 * syms.c (coff_section_type): Make arg const.
2287 * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
2288 to make_bfd_asection().
2289 * elf-bfd.h (bfd_section_from_phdr): Add prototype.
2290 * elfcode.h (bfd_section_from_phdr): Remove prototype.
2291 (_bfd_elf_stringtab_init): Remove prototype.
2293 * netbsd-core.c (swap_abort): Add prototype.
2294 * aix386-core.c (swap_abort): Ditto & make static
2295 * hpux-core.c (swap_abort): Ditto & make static.
2296 * irix-core.c (swap_abort): Ditto & make static.
2297 * ptrace-core.c (swap_abort): Ditto & make static.
2298 * trad-core.c (swap_abort): Ditto & make static.
2299 * coffswap.h (coff_swap_reloc_in): Ditto.
2300 (coff_swap_reloc_out): Ditto.
2301 (coff_swap_filehdr_in): Ditto.
2302 (coff_swap_filehdr_out): Ditto.
2303 (coff_swap_sym_in): Ditto.
2304 (coff_swap_sym_out): Ditto.
2305 (coff_swap_aux_in): Ditto.
2306 (coff_swap_aux_out): Ditto.
2307 (coff_swap_lineno_in): Ditto.
2308 (coff_swap_lineno_out): Ditto.
2309 (coff_swap_aouthdr_in): Ditto.
2310 (coff_swap_aouthdr_out): Ditto.
2311 (coff_swap_scnhdr_in): Ditto.
2312 (coff_swap_scnhdr_out): Ditto.
2313 * ihex.c (ihex_sizeof_headers): Ditto.
2314 * tekhex.c (getsym): Ditto.
2315 (find_chunk): Ditto & make static.
2316 (insert_byte): Ditto.
2317 (first_phase): Ditto.
2319 (tekhex_get_symtab): Ditto & make static.
2320 (tekhex_get_symtab_upper_bound): Ditto & make static.
2321 (tekhex_mkobject): Ditto.
2322 (tekhex_object_p): Ditto.
2323 (move_section_contents): Ditto.
2324 (tekhex_get_section_contents): Ditto.
2325 (tekhex_set_arch_mach): Ditto & make static.
2326 (tekhex_set_section_contents): Ditto.
2327 (writevalue): Ditto.
2330 (tekhex_write_object_contents): Ditto.
2331 (tekhex_sizeof_headers): Ditto.
2332 (tekhex_make_empty_symbol): Ditto.
2333 (tekhex_get_symbol_info): Ditto.
2334 (tekhex_print_symbol): Ditto.
2335 * irix-core.c (make_bfd_asection): Ditto.
2336 (irix_core_core_file_p): Ditto.
2337 (irix_core_core_file_failing_command): Ditto.
2338 (irix_core_core_file_failing_signal): Ditto.
2339 (irix_core_core_file_matches_executable_p): Ditto.
2340 (irix_core_make_empty_symbol): Ditto.
2341 * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
2342 * srec.c (srec_new_symbol): Ditto.
2343 (srec_get_section_contents): Ditto.
2344 (srec_set_arch_mach): Ditto.
2345 (srec_set_section_contents): Ditto.
2346 (internal_srec_write_object_contents): Ditto.
2347 (srec_write_object_contents): Ditto.
2348 (symbolsrec_write_object_contents): Ditto.
2349 (srec_sizeof_headers): Ditto.
2350 (srec_make_empty_symbol): Ditto.
2351 (srec_get_symtab_upper_bound): Ditto.
2352 (srec_get_symtab): Ditto.
2353 (srec_print_symbol): Ditto and make static.
2354 * elf.c (elf_read): Ditto
2355 (assign_section_numbers): Ditto.
2356 (elf_fake_sections): Ditto.
2357 (sym_is_global): Ditto.
2358 (elf_map_symbols): Ditto.
2359 (get_program_header_size): Ditto.
2360 * coffgen.c (make_a_section_from_file): Ditto.
2361 (coff_real_object_p): Ditto.
2362 (fixup_symbol_value): Ditto.
2363 (build_debug_section): Ditto.
2365 * syms.c (coff_section_type): Ditto.
2367 Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com)
2369 * bfd-in2.h: Rebuilt after m32r changes.
2371 Mon Sep 9 12:31:22 1996 Doug Evans <dje@canuck.cygnus.com>
2373 * config.bfd,configure.in,configure: Add m32r support.
2374 * Makefile.in,archures.c,elf.c,targets.c: Likewise.
2375 * config.bfd: Keep target list alphabetically sorted.
2378 Mon Sep 9 11:48:41 1996 Jeffrey A Law (law@cygnus.com)
2380 * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
2381 to add in the constant part found in the instruction itself.
2382 (case R_V850_HI16_S): Likewise.
2385 Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2387 * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
2388 and R_D10V_18 to be 1 (word).
2390 Thu Sep 5 15:23:08 1996 Ian Lance Taylor <ian@cygnus.com>
2392 * stabs.c (_bfd_link_section_stabs): If the output_section field
2393 of either section is bfd_abs_section, then the linker is
2394 discarding the section and we should not optimize it.
2396 Tue Sep 3 12:16:20 1996 Doug Evans <dje@canuck.cygnus.com>
2398 * Makefile.in (aout-sparcle.o): New target.
2399 * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
2400 * config.bfd (sparclet-*-aout*): Add case.
2401 * configure.in (sparcle_aout_vec): Add case.
2402 * configure: Regenerated.
2403 * targets.c (sparcle_aout_vec): Declare.
2404 (bfd_target_vector): Add sparcle_aout_vec.
2405 * aout-sparcle.c: New file.
2408 Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com)
2410 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
2411 low order sign bit propogation for R_V850_HI16_S.
2413 * elf32-v850.c (bfd_elf32_v850_reloc): New function for
2414 handling V850 specific relocs.
2415 (elf_v850_howto_table): Use the new function for some
2416 relocations. Twiddle masks & shifts for some relocs.
2417 Set partial_inplace where needed.
2420 Mon Sep 2 12:12:34 1996 Ian Lance Taylor <ian@cygnus.com>
2422 * cpu-mips.c: Add an explicit mips:3000 entry, and change the
2423 default architecture to a machine number of 0.
2424 * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
2426 (_bfd_mips_elf_merge_private_bfd_data): If the machine number of
2427 the output BFD is the default, set it from the first input BFD.
2430 Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com)
2432 * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
2433 insert at bitpos zero. The HI16 relocs are shifted right
2434 by 16 bits. Fix src_mask for all relocs.
2435 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is
2437 (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little
2441 Sun Sep 1 15:41:08 1996 Ian Lance Taylor <ian@cygnus.com>
2443 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
2444 Rewrite to use BFD file read routines and to avoid using a fixed
2445 length for the file name.
2448 Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com)
2450 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
2451 (elf_v850_howto_table): Add support for R_V850_{32,16,8}.
2452 (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
2453 to R_V850_{32,16,8}.
2455 Fri Aug 30 18:06:04 1996 J.T. Conklin <jtc@hippo.cygnus.com>
2457 * elf32-v850.c (reloc_type): Add R_V850_HI16_S.
2458 (elf_v850_howto_table): Add info for HI16_S reloc.
2459 (v850_reloc_map): Add HI_16_S reloc.
2460 * reloc.c: Define BFD_RELOC_V850_* relocs.
2463 Fri Aug 30 11:49:19 1996 Ian Lance Taylor <ian@cygnus.com>
2466 * elf32-sh.c: New file.
2467 * elf.c (prep_headers): Handle bfd_arch_sh.
2468 * elfcode.h (write_relocs): Handle absolute symbol.
2469 * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
2470 (_bfd_elf64_link_read_relocs): Declare.
2471 * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
2472 elf_link_read_relocs. Make globally visible. Change all
2474 (elf_link_input_bfd): Get external symbols from cache in
2475 symtab_hdr->contents. Get contents from cache in
2477 * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
2479 * reloc.c: Define BFD_RELOC_SH_* relocs.
2480 * libbfd-in.h (_bfd_sh_align_load_span): Declare.
2481 * coff-sh.c (sh_insns_conflict): Fix a return value.
2482 (_bfd_sh_align_load_span): New globally visible function, broken
2483 out of sh_align_load.
2484 (sh_align_load): Call _bfd_sh_align_load_span.
2485 (sh_swap_insns): Change relocs parameter to PTR.
2486 * bfd-in2.h, libbfd.h: Rebuild.
2487 * targets.c (bfd_elf32_sh_vec): Declare.
2488 (bfd_elf32_shl_vec): Declare.
2489 * config.bfd (sh-*-elf*): New target.
2490 * configure.in (bfd_elf32_sh_vec): New target vector.
2491 (bfd_elf32_shl_vec): New target vector.
2492 * configure: Rebuild.
2493 * Makefile.in: Rebuild dependencies.
2494 (BFD32_BACKENDS): Add elf32-sh.o.
2495 (BFD32_BACKENDS_CFILES): Add elf32-sh.c.
2497 * elf.c (map_sections_to_segments): Check that LMA does not skip a
2498 page before checking D_PAGED.
2500 * ihex.c (ihex_scan): Removed unnecessary extbase variable.
2501 (ihex_write_object_contents): Remove extbase; always use segbase
2504 Thu Aug 29 16:52:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2506 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
2507 * configure.host (i[345]86-*-*): Ditto.
2508 * config.bfd (i[345]86-*-*): Ditto.
2509 * configure: Regenerate.
2511 * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
2514 Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com)
2516 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
2517 * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
2518 * som.c (hppa_som_gen_reloc_type): Add new argument. If
2519 we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
2520 will have an ST_CODE type, change the symbol's type to ST_DATA.
2521 * som.c (hppa_som_gen_reloc_type): Update prototype.
2523 Tue Aug 27 00:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
2525 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
2526 R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible.
2527 (mips_elf_size_dynamic_sections): Don't require .got to exist.
2528 (mips_elf_finish_dynamic_sections): Likewise.
2530 Thu Aug 22 10:54:38 1996 Ian Lance Taylor <ian@cygnus.com>
2532 * configure.host (HLDENV): New variable to set. Set it for
2533 *-*-sysv4*, since those linkers may not support -R but they always
2534 support LD_RUN_PATH.
2536 * libieee.h (NSECTIONS): Don't define.
2537 (ieee_data_struct): Change section_table to asection **. Add
2539 * ieee.c (get_section_entry): If the table isn't big enough, make
2541 (ieee_slurp_sections): Remove assertion about number of sections.
2542 (ieee_object_p): Adjust initialization of ieee to match changes to
2545 * xcofflink.c (xcoff_mark): Don't copy relocs for undefined
2546 symbols merely because we are generating a shared library.
2547 (xcoff_build_ldsyms): Don't set up global linkage code for an
2548 undefined symbol merely because we are generating a shared
2552 Tue Aug 20 15:06:05 1996 J.T. Conklin <jtc@hippo.cygnus.com>
2554 * Makefile.in (ALL_MACHINES): Add cpu-v850.o.
2555 (BFD32_BACKENDS) Add elf32-v850.o.
2556 * archures.c: Add bfd_v850_arch.
2557 * bfd-in2.h: Add bfd_v850_arch.
2558 * config.bfd (v850-*-*): New target.
2559 * configure: (bfd_elf32_v850_vec) New vector.
2560 * configure.in: (bfd_elf32_v850_vec) New vector.
2561 * cpu-v850.c: New file.
2562 * elf.c (prep_headers): Added case bfd_arch_v850.
2563 * elf32-v850.c: New file.
2564 * targets.c (bfd_elf32_v850_vec): New vector.
2567 Fri Aug 16 16:25:35 1996 Ian Lance Taylor <ian@cygnus.com>
2569 * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
2570 a function code symbol for an XMC_XO symbol.
2572 Thu Aug 15 12:33:29 1996 Stan Shebs <shebs@andros.cygnus.com>
2574 * mpw-config.in: Update editing of autoconf vars to reflect
2575 Jul 18 configure.in change.
2576 * mpw-make.sed: Update editing of include pathnames to be
2577 more general, add @DASH_C_FLAG@ to explicit compile rule edit.
2579 Thu Aug 15 10:35:13 1996 Richard Henderson <rth@tamu.edu>
2581 * elf64-alpha.c (elf64_alpha_output_extsym): The section from
2582 which to offset to get the .plt entry address is ".plt".
2584 Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>
2586 * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
2587 BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
2588 Added, for internal use by the ARM gas.
2590 * bfd-in2.h: Rebuilt
2592 Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>
2594 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
2595 in section dynidx start.
2597 Tue Aug 13 14:35:38 1996 Ian Lance Taylor <ian@cygnus.com>
2599 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
2600 name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an
2601 optimization for g++.
2603 Tue Aug 13 17:04:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2605 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
2606 the -mrelocatable-lib bit set and the other doesn't, clear the
2607 -mrelocatable-lib bit in the header.
2609 Sat Aug 10 22:59:17 1996 Ian Lance Taylor <ian@cygnus.com>
2611 * elflink.h (elf_link_add_object_symbols): Do not resolve a common
2612 symbol against a STT_FUNC symbol in a shared library.
2614 Fri Aug 9 12:44:57 1996 Ian Lance Taylor <ian@cygnus.com>
2616 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
2617 symbol is found, automatically define the corresponding function
2620 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
2621 if sym.n_numaux is not zero.
2622 (_bfd_coff_link_input_bfd): Permit the symbol and the hash table
2623 entry to disagree about the number of aux entries if the symbol
2626 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
2627 section if it might be needed, not just if info->shared.
2628 (mips_elf_adjust_dynamic_symbol): Make room for a null element at
2629 the start of .rel.dyn if we are going to use it.
2630 (mips_elf_finish_dynamic_sections): Only clear the first element
2631 of .rel.dyn if the size is greater than zero.
2633 Thu Aug 8 16:24:55 1996 Ian Lance Taylor <ian@cygnus.com>
2635 * xcofflink.c (xcoff_link_input_bfd): If we already called the
2636 undefined_symbol callback for a symbol, then don't issue any more
2637 warnings about loader relocs.
2638 (_bfd_ppc_xcoff_relocate_section): Don't do any further processing
2639 after calling the undefined_symbol callback.
2641 * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
2642 (xcoff_link_add_symbols): Permit multiple definitions of a symbol
2643 as the AIX linker seems to do.
2645 Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
2647 * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
2648 (evax_initialize): Remove evax_reloc_table.
2649 (evax_close_and_cleanup): Ditto.
2651 (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
2653 (evax_bfd_reloc_type_lookup): Ditto.
2654 * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
2655 cooked_size == raw_size.
2656 * evax-emh.c (_bfd_evax_register_filename): Remove.
2657 * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
2658 * evax-misc.c (add_new_contents): Malloc section at full size.
2659 (_bfd_save_evax_section): Memcpy section contents directly.
2660 * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
2661 (evax_reloc_table): Remove.
2663 * hosts/alphavms.h (O_ACCMODE): Define if needed.
2665 * makefile.vms: Add better support for DEC C compilation
2666 Add evax.h dependencies
2668 * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
2669 (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
2670 (BFD_RELOC_ALPHA_BASEREG): Remove.
2671 * bfd-in2.h, libbfd.h: Rebuild.
2673 Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com)
2675 * archive.c (bsd_write_armap): Ifdef around calls to getuid and
2676 getgid if _WIN32 is defined.
2677 * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
2679 Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com)
2681 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
2682 Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
2684 * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
2687 Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
2689 * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
2691 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
2692 (NEED_DECLARATION_REALLOC): New macro.
2693 * configure, config.in: Rebuild.
2694 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
2695 (realloc): Declare if NEED_DECLARATION_REALLOC.
2697 * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
2698 <strings.h> if they exist.
2700 * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
2702 Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
2704 * cpu-i386.c (i8086_arch): Architecture info for the i8086.
2706 Based on patches from Eric Valette <valette@crf.canon.fr>:
2707 * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
2708 LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
2709 (elf_howto_table): Add entries for new relocs.
2710 (elf_i386_reloc_type_lookup): Handle new relocs.
2711 (elf_i386_info_to_howto): Just call abort.
2712 (elf_i386_info_to_howto_rel): Check that the reloc type is valid.
2713 (elf_i386_relocate_section): Likewise.
2715 Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2717 * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
2719 Mon Aug 5 13:42:41 1996 Ian Lance Taylor <ian@cygnus.com>
2721 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
2722 only get the LMA from the phdr if they are in the same part of the
2725 * elf.c (map_sections_to_segments): Rewrite tests for starting a
2726 new segment to make them more comprehensible. If the relationship
2727 between the LMA and the VMA changed, start a new segment. Don't
2728 check dynsec when deciding whether to start a new segment for a
2729 writeable section; -N will now handle this.
2731 Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com)
2733 * libhppa.h: Remove "esel" changes. Not the right approach.
2734 * som.c: Corresponding changes.
2735 (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
2736 which don't have a SOM symbol type associated with them.
2737 Reverses a 1994 change.
2739 Wed Jul 31 15:50:55 1996 Ian Lance Taylor <ian@cygnus.com>
2741 Make ld -N more reasonable for ELF:
2742 * elf.c (map_sections_to_segments): If D_PAGED is not set, set
2743 phdr_in_section to false, and always use a single load segment.
2744 (elf_sort_sections): Sort sections by LMA after VMA.
2745 (assign_file_positions_for_segments): If D_PAGED is not set, don't
2746 align to maxpagesize.
2747 (assign_file_positions_except_relocs): Likewise.
2748 * elfcode.h (elf_object_p): If a section is loaded but not page
2749 aligned, clear D_PAGED.
2751 Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>
2753 * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
2754 Added, for internal use by the ARM gas.
2756 * bfd-in2.h: Rebuilt
2758 Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com)
2760 * libhppa.h (R_HPPA_ESEL): New field selector.
2761 (e_esel): Similarly.
2762 * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
2763 then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
2764 (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
2766 Tue Jul 30 13:31:27 1996 Ian Lance Taylor <ian@cygnus.com>
2768 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
2769 archive search before looking for stripped dynamic objects.
2771 Fri Jul 26 17:51:39 1996 Ian Lance Taylor <ian@cygnus.com>
2773 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
2774 symbol a warning rather than an error.
2776 Wed Jul 24 12:02:53 1996 Ian Lance Taylor <ian@cygnus.com>
2778 * elf.c (assign_file_positions_for_segments): Track the virtual
2779 memory position separately from the file position, and use it to
2780 compute the alignment adjustment.
2782 Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2784 * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
2785 and fixed mask on R_D10V_10_PCREL_L.
2787 Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com>
2789 * elf64-mips.c: Include "aout/ar.h".
2790 (mips_elf64_slurp_armap): New static function.
2791 (mips_elf64_write_armap): New static function.
2792 (bfd_elf64_archive_*): Define.
2793 * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
2794 Use instead of bfd_generic_archive_p.
2795 (bfd_elfNN_write_archive_contents): Define if not defined. Use
2796 instead of _bfd_write_archive_contents.
2797 (bfd_elfNN_mkdarchive): Define if not defined. Use instead of
2798 _bfd_generic_mkarchive.
2799 (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
2800 bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
2802 (TARGET_LITTLE_SYM): Likewise.
2803 * archive.c (bfd_slurp_armap): Check for and reject an archive map
2805 * Makefile.in: Rebuild dependencies.
2807 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
2808 SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
2809 SHT_MIPS_EVENTS sections.
2810 (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
2811 SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
2813 (_bfd_mips_elf_fake_sections): Likewise.
2815 * libecoff.h (ecoff_data_type): Add rdata_in_text field.
2816 * ecoff.c (ecoff_compute_section_file_positions): Copy
2817 rdata_in_text from backend info to tdata. Clear it if any data
2818 section comes before .rdata.
2819 (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
2820 tdata rather than backend info.
2822 Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com>
2824 * configure.in: Fix test for whether a compiler has a 64 bit
2825 type. From Jim Wilson <wilson@cygnus.com>.
2827 Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com>
2829 * configure.host (mips-sgi-irix6*): New host.
2831 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
2832 (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
2833 BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
2835 * configure: Rebuild.
2836 * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
2837 (BFD_HOST_64_BIT): Define conditionally.
2838 (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
2839 (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
2840 (symvalue, bfd_size_type): Likewise.
2841 * bfd-in2.h: Rebuild.
2842 * Makefile.in (do_clean): Remove bfd-tmp.h.
2843 (do_distclean): Remove bfd-in3.h.
2844 (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
2845 (bfd-in3.h): New target.
2847 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
2848 Andrew Gierth <ANDREWG@microlise.co.uk>.
2850 * configure.host: Set INSTALL_SHLIB.
2851 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
2852 * configure: Rebuild.
2853 * Makefile.in (install): Use @INSTALL_SHLIB@.
2855 * config.bfd (mips*-*-irix6*): New target.
2856 * configure.host: Handle Irix 6 shared library like Irix 5.
2858 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
2859 symbol for a magic name.
2860 (xcoff_link_input_bfd): Don't change the reloc symbol for an
2862 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
2865 Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com>
2867 * mpw-config.in: Add ELF support to mips config, create the
2868 elf32-target.h file in the object dir.
2869 * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
2871 Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com>
2873 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
2874 Also removed most abort calls, in favor of using bfd reporting.
2876 Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2878 * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
2879 (BFD32_BACKENDS) Add elf32-d10v.o.
2880 * archures.c: Add bfd_d10v_arch.
2881 * bfd-in2.h: Add bfd_d10v_arch.
2882 * config.bfd (d10v-*-*): New target.
2883 * configure: (bfd_elf32_d10v_vec) New vector.
2884 * configure.in: (bfd_elf32_d10v_vec) New vector.
2885 * cpu-d10v.c: New file.
2886 * elf.c (prep_headers): Added case bfd_arch_d10v.
2887 * elf32-d10v.c: New file.
2888 * libbfd.h: Rebuild.
2889 * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
2890 BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
2891 * targets.c (bfd_elf32_d10v_vec): New vector.
2893 Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com>
2895 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
2897 Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com)
2899 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
2900 bfd_mach_i386_i8086 machine types.
2902 Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com>
2904 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
2907 Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>
2909 * coffcode.h (coff_set_section_contents): A/UX does not require
2910 special handling of the _LIB section.
2912 Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com)
2914 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
2915 value for R_RELBYTE.
2917 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
2918 array if one was allocated.
2920 Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
2922 From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:
2923 * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
2924 use_rld_obj_head and rld_value.
2925 (mips_elf_link_hash_table_create): Initialize new fields.
2926 (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
2928 (mips_elf_create_dynamic_sections): Create .rld_map section. If
2929 __rld_obj_head symbol not seen, create an __rld_map symbol.
2930 (mips_elf_size_dynamic_sections): Make space in .rld_map section.
2931 Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
2932 (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
2933 __rld_obj_head symbol.
2934 (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
2936 Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com>
2938 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
2940 * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
2941 ppc_elf_addr16_ha_reloc.
2942 (ppc_elf_addr16_ha_reloc): New static function.
2944 * coff-mips.c (struct mips_hi): Define.
2945 (mips_refhi_list): New static variable.
2946 (mips_refhi_addr, mips_refhi_addend): Remove.
2947 (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
2948 (mips_reflo_reloc): Process mips_refhi_list.
2949 (mips_relhi_list): New static variable.
2950 (mips_relhi_addr, mips_relhi_addend): Remove.
2951 (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
2952 (mips_rello_reloc): Process mips_relhi_list.
2953 (mips_relocate_section): Permit an arbitrary number of REFHI or
2954 RELHI relocs before the associated REFLO or RELLO reloc.
2956 Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com>
2958 * aout-target.h (MY(callback)): Set reloc_count fields.
2960 Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
2962 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
2963 sections unless this is a SunOS link.
2965 * VERSION: Set to 2.7.1.
2967 * Released binutils 2.7.
2969 Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com>
2971 * i386aout.c: Include "aout/aout64.h".
2972 (i386aout_write_object_contents): New static function.
2973 (MY_write_object_contents): Define.
2975 * netbsd.h (MY(write_object_contents)): Make sure that
2976 adjust_sizes_and_vmas is called before fiddling with the magic
2979 Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com>
2981 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
2983 Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com>
2985 * libbfd-in.h (itos, stoi): Don't define.
2986 * libbfd.h: Rebuild.
2987 * i386lynx.c (KEEPIT): Define as udata.i.
2988 (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
2989 (NAME(lynx,swap_ext_reloc_out)): Likewise.
2990 * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
2991 flags. Don't use stoi.
2993 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
2995 * elf.c (map_sections_to_segments): Don't start a new segment for
2996 a writable section if it's on the same page as the previous
2997 segment. Reset the writable variable for a readonly section.
2999 Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com>
3001 * peicode.h (coff_swap_aouthdr_in): Missing initializations of
3002 first_thunk_address, thunk_size, and import_table_size.
3003 * peicode.h: Improved some diagnostics regarding edata sections.
3005 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
3007 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
3008 (TARGET_LITTLE_SYM): Added missing D_PAGED.
3010 Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com>
3012 * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
3013 with XCOFF_DEF_DYNAMIC set is really defined.
3014 (xcoff_link_check_dynamic_ar_symbols): Likewise.
3015 (xcoff_link_add_symbols): Only create special sections if using an
3018 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
3020 (bfd_install_relocation): Likewise.
3022 Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu>
3024 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
3026 (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
3027 (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
3028 (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
3029 (elf64_alpha_link_hash_newfunc): Initialize flags field.
3030 (elf64_alpha_check_relocs): Record types of LITUSE entries that
3031 are found for LITERAL relocs.
3032 (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
3033 taken, we cannot generate a .plt entry for the symbol.
3035 Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
3037 * configure.in: Add AC_ISC_POSIX, and check for setitimer and
3038 sysconf functions (for gprof).
3039 * configure, config.in: Rebuild.
3041 Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com>
3043 * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
3044 an archive if it has a map. If the object file has the wrong
3047 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
3048 BRADDR, SREL16, SREL32, or SREL64 reloc against an external
3050 (alpha_relocate_section): Likewise.
3052 * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
3053 (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
3054 (coff_swap_sym_out): Use SYMESZ, not sizeof.
3055 (coff_swap_aux_out): Use AUXESZ, not sizeof.
3056 (coff_swap_lineno_out): Use LINESZ, not sizeof.
3057 (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
3058 (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
3059 * peicode.h: Corresponding changes.
3061 Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3063 * elflink.h (elf_create_pointer_linker_section): Comment out code
3064 dealing with making GOT pointers negative of the GOT symbol for
3067 Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu>
3069 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
3070 increment the .rela.plt size until after we're done creating the
3072 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
3073 .rela.plt offset directly rather than calculating it.
3075 Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3077 * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir):
3078 Use autoconf-set values.
3079 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
3080 includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
3083 * configure.in (AC_PREREQ): autoconf v2.5 or higher.
3084 * configure: Rebuilt.
3086 Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com)
3088 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
3089 handling code > 1k away.
3091 Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3093 * elflink.h (elf_create_pointer_linker_section): If DEBUG is
3094 defined, output whenever the symbol is updated.
3096 Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl>
3098 * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
3099 section to 0 if user_set_vma is set.
3100 * elflink.h (elf_bfd_final_link): Likewise.
3102 Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com>
3104 Partially undo patch of Jun 20.
3105 * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
3106 (coff_compute_section_file_positions): Likewise.
3107 (coff_write_object_contents): Likewise. Re-add deleted code, but
3108 use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
3109 * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
3111 Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
3113 * config.bfd: Add support for *-*-rtems* configurations.
3115 Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
3117 * elf.c (prep_headers): Add bfd_arch_alpha case.
3119 Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
3121 * elf64-alpha.c: New file.
3122 * config.bfd (alpha-*-linuxecoff*): New target.
3123 (alpha-*-linux*, alpha-*-elf*): New targets.
3124 * configure.in (bfd_elf64_alpha_vec): New vector.
3125 * configure: Rebuild.
3126 * targets.c (bfd_elf64_alpha_vec): Declare.
3127 (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
3128 * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
3129 * bfd-in2.h, libbfd.h: Rebuild.
3130 * Makefile.in: Rebuild dependencies.
3131 (BFD64_BACKENDS): Add elf64-alpha.o.
3132 (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
3134 Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com>
3136 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
3137 than relying on a right shift of 32.
3139 Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com>
3141 * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
3142 ifdef to COFF_WITH_PE.
3143 (coff_compute_section_file_positions): Likewise.
3144 (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE.
3145 * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
3146 * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
3147 COFF_IMAGE_WITH_PE, always include.
3149 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
3151 Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com>
3153 * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
3154 approximate the correct answer if SIZEOF_HEADERS was not used.
3156 * binary.c (binary_set_section_contents): Set section file
3157 position based on LMA rather than VMA.
3159 Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de>
3161 * linker.c (_bfd_generic_link_output_symbols): Don't output any
3162 symbols if info->strip == strip_all.
3164 Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com>
3166 * coff-h8300.c: Remove #if 0 code.
3167 (compatable): Don't allow mixing/matching of different architectures.
3169 * archures.c (bfd_mach_h8300s): Add.
3170 * bfd-in2.h: Rebuilt.
3171 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
3173 (h8300_reloc16_estimate): Likewise.
3174 (h8300_reloc16_extra_cases): Likewise.
3175 (h8300_bfd_link_add_symbols): Likewise.
3176 * coffcode.h (coff_set_arch_mach_hook): Likewise.
3177 (coff_set_flags): Likewise.
3178 * cpu-h8300.c (h8300_scan): Likewise.
3179 Add H8/S to bfd_h8300_arch list.
3181 Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>
3183 Added support for Alpha OpenVMS:
3184 * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
3185 * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
3186 * config.h-vms, makefile.vms: New files.
3187 * config.bfd (alpha-*-*vms*): New target.
3188 * configure.in (evax_alpha_vec): New target vector.
3189 * configure: Rebuild.
3190 * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
3191 (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
3192 * targets.c (bfd_target_evax_flavour): Define.
3193 (evax_alpha_vec): Declare.
3194 (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
3195 if BFD64 is defined.
3196 * bfd-in2.h, libbfd.h: Rebuild.
3197 * Makefile.in: Rebuild dependencies.
3198 (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
3199 evax-emh.o, and evax-misc.o.
3200 (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
3201 evax-etir.c, evax-emh.c, and evax-misc.c.
3202 (HFILES): Add evax.h.
3204 Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
3206 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
3208 (h8300_bfd_link_add_symbols): Likewise.
3210 Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com>
3212 * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
3213 * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
3215 Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com>
3217 * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
3218 for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
3220 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
3221 R_MIPS_32 relocs if creating a shared library.
3223 Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com>
3225 * peicode.h (add_data_entry): Use pei_section_data rather than
3226 _cooked_size. Corresponds to May 13 change in coffcode.h.
3228 Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com>
3230 * cofflink.c (_bfd_coff_final_link): Handle long section names.
3231 * coffcode.h (coff_write_object_contents): If there are long
3232 section names, always set the f_symptr field, even if there are no
3234 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
3235 if there are no symbols.
3237 * coffgen.c (make_a_section_from_file): Check return value of
3238 _bfd_coff_read_string_table.
3239 (coff_real_object_p): Check return value of
3240 make_a_section_from_file.
3241 (_bfd_coff_read_string_table): Check that there are some symbols
3242 before trying to read the string table size.
3244 Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com>
3246 * xcofflink.c (xcoff_link_add_symbols): When considering whether
3247 to replace a symbol in a dynamic object with a symbol from another
3248 dynamic object, do the replacement if the existing symbol is
3249 global linkage code.
3251 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
3252 for _ptrgl, and treat it as global linkage code.
3254 * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
3255 filename or N_SO symbol past the offset, and use it to indicate
3256 that there is no line number or function when appropriate.
3258 Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com>
3260 * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
3261 common symbol defined by the linker. Don't export function code
3262 even if export_defineds is set.
3264 Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com)
3266 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
3268 (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
3269 (h8300_symbol_address_p): New function.
3270 (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
3273 Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com)
3275 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
3277 (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
3278 correctly for the two variants. Allow relaxing if the target
3279 is 128 bytes away since after relaxation it'll be 126 bytes away.
3280 (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
3281 "dot" and "value". Allow relaxing if the target is 128 bytes
3282 away since after relaxation it'll be 126 bytes away.
3283 * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
3284 the given section until nothing changes.
3286 Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
3288 * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
3289 alignment hack--we can get the lnnoptr info another way without
3290 suddenly increasing the alignment requirements. Set the flags for
3292 (ecoff_compute_section_file_positions): Do so.
3294 Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com>
3296 * ieee.c (ieee_write_object_contents): Put a timestamp in the file
3297 to keep the HP emulator database happy.
3299 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
3300 From Kevin Buettner <kev@primenet.com>.
3302 Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com>
3304 * aoutx.h (translate_to_native_sym_flags): Don't try to print the
3305 name of a NULL section.
3307 Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com>
3309 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
3310 set, always call the notice callback.
3312 * VERSION: Increment for bfdlink.h change.
3314 Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com>
3316 * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
3317 (sh_relax_delete_bytes): Correct handling of differently sized
3318 trailing alignment reloc.
3320 * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
3321 * bfd-in2.h: Rebuild.
3322 * configure.in: Warn if there is no known 64 bit type.
3323 * configure: Rebuild.
3325 * Makefile.in: Rebuild dependencies.
3326 (BFD32_BACKENDS): Add ppcboot.o.
3327 (BFD32_BACKENDS_CFILES): Add ppcboot.c.
3329 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
3330 From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
3332 Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com>
3334 * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
3335 (bfd_mips_elf64_swap_reginfo_out): Move from here...
3336 * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
3337 (bfd_mips_elf64_swap_reginfo_out): ...to here.
3339 Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com>
3341 * elf64-mips.c: Improve reloc special_functions and handling of
3342 SHT_MIPS_OPTIONS section.
3343 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
3344 mips_elf_hi16_reloc and make globally visible.
3345 (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
3346 make globally visible.
3347 (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
3348 make globally visible.
3349 (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
3350 and make globally visible.
3351 (gprel16_with_gp): Check howto->src_mask before using value in
3353 (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
3354 and make globally visible.
3355 (gprel32_with_gp): Check howto->src_mask before fetching value.
3356 (bfd_mips_elf_swap_options_in): New function.
3357 (bfd_mips_elf_swap_options_out): New function.
3358 (_bfd_mips_elf_set_private_flags): Rename from
3359 mips_elf_set_private_flags and make globally visible.
3360 (_bfd_mips_elf_copy_private_bfd_data): Rename from
3361 mips_elf_copy_private_bfd_data and make globally visible.
3362 (_bfd_mips_elf_merge_private_bfd_data): Rename from
3363 mips_elf_merge_private_bfd_data and make globally visible.
3364 (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
3365 for a SHT_MIPS_OPTIONS section.
3366 (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
3367 (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
3368 name of a SHT_MIPS_OPTIONS section.
3369 (_bfd_mips_elf_set_section_contents): New function.
3370 (mips_elf32_section_processing): Set the GP value in a
3371 SHT_MIPS_OPTIONS section.
3372 (_bfd_mips_elf_find_nearest_line): Rename from
3373 mips_elf_find_nearest_line and make globally visible.
3374 (bfd_elf32_set_section_contents): Define.
3375 * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
3376 (_bfd_mips_elf_lo16_reloc): Declare.
3377 (_bfd_mips_elf_gprel16_reloc): Declare.
3378 (_bfd_mips_elf_got16_reloc): Declare.
3379 (_bfd_mips_elf_gprel32_reloc): Declare.
3380 (_bfd_mips_elf_set_private_flags): Declare.
3381 (_bfd_mips_elf_copy_private_bfd_data): Declare.
3382 (_bfd_mips_elf_merge_private_bfd_data): Declare.
3383 (_bfd_mips_elf_find_nearest_line): Declare.
3384 (_bfd_mips_elf_set_section_contents): Declare.
3386 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
3388 (elf_info_to_howto): Define.
3389 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
3391 (elf_info_to_howto): Define.
3392 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
3394 (elf_info_to_howto): Define.
3396 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
3397 R_MOV16B[12], to match change in coff/internal.h.
3399 Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com>
3401 * elf64-mips.c: Extensive additions to provide better support for
3402 writing files and for gas.
3403 * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
3404 of mips_elf_object_p.
3405 (mips_elf32_object_p): Rename from mips_elf_object_p; call
3406 _bfd_mips_elf_object_p.
3407 (_bfd_mips_elf_final_write_processing): Rename from
3408 mips_elf_final_write_processing and make globally visible.
3409 (_bfd_mips_elf_fake_sections): Rename from
3410 mips_elf_fake_sections and make globally visible.
3411 (_bfd_mips_elf_section_from_bfd_section): Rename from
3412 mips_elf_section_from_bfd_section and make globally visible.
3413 (_bfd_mips_elf_section_processing): New function, broken out of
3414 mips_elf_section_processing.
3415 (mips_elf32_section_processing): Rename from
3416 mips_elf_section_processing; call
3417 _bfd_mips_elf_section_processing.
3418 (_bfd_mips_elf_symbol_processing): Rename from
3419 mips_elf_symbol_processing and make globally visible.
3420 (_bfd_mips_elf_read_ecoff_info): Rename from
3421 mips_elf_read_ecoff_info and make globally visible.
3422 (mips_elf32_ecoff_debug_swap): Rename from
3423 mips_elf_ecoff_debug_swap.
3424 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
3425 struct symbol_cache_entry.
3426 (_bfd_elf_validate_reloc): New function, moved in from
3427 elfcode.h:validate_reloc.
3428 * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
3429 to _bfd_elf_validate_reloc. Change all callers.
3430 * elf-bfd.h (bfd_section_from_shdr): Declare.
3431 (_bfd_elf_symbol_from_bfd_symbol): Declare.
3432 (_bfd_elf_validate_reloc): Declare.
3433 (_bfd_mips_elf_object_p): Declare.
3434 (_bfd_mips_elf_fake_sections): Declare.
3435 (_bfd_mips_elf_section_from_bfd_section): Declare.
3436 (_bfd_mips_elf_section_processing): Declare.
3437 (_bfd_mips_elf_symbol_processing): Declare.
3438 (_bfd_mips_elf_read_ecoff_info): Declare.
3439 (_bfd_mips_elf_final_write_processing): Declare.
3440 * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
3443 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
3444 (mips_elf_final_write_processing): Likewise.
3446 Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com>
3448 64-bit MIPS ELF ABI objdump support:
3449 * elf64-mips.c: New file.
3450 * Makefile.in: Rebuild dependencies.
3451 (BFD64_BACKENDS): Add elf64-mips.o.
3452 (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
3453 * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
3454 bfd_elf64_littlemips_vec to targ_selvecs.
3455 (mips*-*-elf*): Likewise.
3456 * confingure.in: Add bfd_elf64_bigmips_vec and
3457 bfd_elf64_littlemips_vec to vector switch.
3458 * configure: Rebuild.
3459 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
3460 broken out of mips_elf_section_from_shdr.
3461 (mips_elf32_section_from_shdr): Rename from
3462 mips_elf_section_from_shdr. Call new function.
3463 (elf_backend_section_from_shdr): Update name of renamed function.
3464 * elf-bfd.h (struct elf_size_info): Change second parameter of
3465 write_out_phdrs to be const. Likewise for second parameter of
3467 (struct bfd_elf_section_data): Add rel_hdr2 field.
3468 (bfd_elf32_swap_symbol_in): Change second parameter to be const.
3469 (bfd_elf32_swap_symbol_out): Likewise.
3470 (bfd_elf32_swap_reloc_in): Likewise.
3471 (bfd_elf32_swap_reloc_out): Likewise.
3472 (bfd_elf32_swap_reloca_in): Likewise.
3473 (bfd_elf32_swap_reloca_out): Likewise.
3474 (bfd_elf32_swap_phdr_in): Likewise.
3475 (bfd_elf32_swap_phdr_out): Likewise.
3476 (bfd_elf32_swap_dyn_in): Likewise.
3477 (bfd_elf32_swap_dyn_out): Likewise.
3478 (bfd_elf32_slurp_symbol_table): Declare.
3479 (bfd_elf32_write_shdrs_and_ehdr): Declare.
3480 (bfd_elf32_write_out_phdrs): Declare.
3481 (bfd_elf64_swap_symbol_in): Change second parameter to be const.
3482 (bfd_elf64_swap_symbol_out): Likewise.
3483 (bfd_elf64_swap_reloc_in): Likewise.
3484 (bfd_elf64_swap_reloc_out): Likewise.
3485 (bfd_elf64_swap_reloca_in): Likewise.
3486 (bfd_elf64_swap_reloca_out): Likewise.
3487 (bfd_elf64_swap_phdr_in): Likewise.
3488 (bfd_elf64_swap_phdr_out): Likewise.
3489 (bfd_elf64_swap_dyn_in): Likewise.
3490 (bfd_elf64_swap_dyn_out): Likewise.
3491 (bfd_elf64_slurp_symbol_table): Declare.
3492 (bfd_elf64_write_shdrs_and_ehdr): Declare.
3493 (bfd_elf64_write_out_phdrs): Declare.
3494 (_bfd_mips_elf_section_from_shdr): Declare.
3495 * elf.c (bfd_section_from_shdr): Remove assertion requiring
3496 SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
3497 section for the section, add the new one to rel_hdr2. Increment
3498 reloc_count rather than setting it.
3499 * elfcode.h (elf_slurp_symbol_table): Define name as macro.
3500 Remove static declaration.
3501 (elf_write_shdrs_and_ehdr): Define name as macro.
3502 (elf_write_out_phdrs): Likewise.
3503 (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
3504 (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
3505 (elf_swap_symbol_in): Change second parameter to be const.
3506 (elf_swap_symbol_out): Likewise.
3507 (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
3508 (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
3509 (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
3510 (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
3511 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
3512 (elf_write_out_phdrs): Rename from write_out_phdrs. Change second
3513 parameter to be const. Make non-static.
3514 (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
3516 (elf_slurp_symbol_table): Make non-static.
3517 (NAME(_bfd_elf,size_info)): Update names of renamed functions.
3518 * elfxx-target.h (elf_info_to_howto): Define if not defined.
3519 (elf_backend_size_info): Likewise.
3520 (elfNN_bed): Use elf_backend_size_info.
3521 * targets.c (bfd_elf64_bigmips_vec): Declare.
3522 (bfd_elf64_littlemips_vec): Declare.
3523 (bfd_target_vector): Add bfd_elf64_bigmips_vec and
3524 bfd_elf64_littlemips_vec if BFD64 is defined.
3526 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
3528 Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com>
3530 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
3531 zeroes, in alignment holes.
3533 * configure: Rebuild with autoconf 2.10.
3535 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
3536 potential leading underscore in the allocated buffer.
3538 Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3540 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
3541 symbols into .sbss if this is a relocatable link.
3543 Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com>
3545 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
3546 undefined symbols when creating a shared library.
3548 Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com>
3550 * coff-sh.c: Add a bunch of new code and static const arrays to
3551 support aligning loads and stores on four byte memory boundaries.
3553 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
3555 (sh_relax_section): Look for R_SH_CODE relocs. If we find one,
3556 call sh_align_loads.
3557 (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
3560 Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>
3562 * cache.c (bfd_open_file): Unlink the file before opening it for
3563 write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
3565 * opncls.c (bfd_fdopenr): Set opened_once.
3567 Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com>
3569 * som.c (som_slurp_reloc_table): Clear external_relocs cache after
3572 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
3573 the code unconditionally.
3575 Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com>
3577 * libcoff-in.h (struct pei_section_tdata): Define structure.
3578 (pei_section_data): Define macro.
3579 * libcoff.h: Rebuild.
3580 * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
3581 store s_paddr field in pei_section_data.
3582 (coff_compute_section_file_positions): Use pei_section_data rather
3583 than _cooked_size, and don't overwrite an existing value.
3584 (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
3585 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
3586 * peicode.h (coff_bfd_copy_private_section_data): Define if
3588 (pe_bfd_copy_private_section_data): New static function if
3591 Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com>
3593 * srec.c (srec_set_arch_mach): Write as a function rather than a
3596 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
3597 no map, just check each member in turn to see whether it is
3600 Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3602 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
3603 table. Call BFD_ASSERT to validate header size, instead of
3605 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
3608 Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3610 * ppcboot.c: New target for looking at PPCbug boot records.
3612 * config{ure.in,.bfd}: Add support for ppcboot target.
3614 * configure: Regenerate.
3616 Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com)
3618 * coff-h8300.c (howto_table): Update names to match recent
3619 changes to include/coff/internal.h. Fix minor errors in the
3620 existing relocs. Add R_MOVL1 and R_MOVL2.
3621 (rtype2howto): Similarly.
3622 (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
3623 existing relaxing code and peform more relaxing.
3624 (h8300_reloc16_extra_cases): Likewise.
3626 Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com)
3628 * reloc16.c (bfd_coff_reloc16_get_value): Handle common
3631 Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3633 * elfcode.h (elf_object_p): Reject generic ELF target if
3634 e_machine matches an alternate machine code in a specific backend.
3636 * netbsd-core.c (netbsd_core_vec): Remove initializer for
3637 obsolete align_power_min field.
3639 Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com)
3641 * coff-h8300.c (reloc_howto_type): Add howto entry for
3643 (rtype2howto): Handle R_PCRWORD_B.
3644 (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
3645 (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit
3646 pc-relative branch (R_PCRWORD) into an 8bit pc-relative
3647 branch (R_PCWORD_B).
3649 Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com>
3651 * aoutx.h (translate_from_native_sym_flags): Set the section for
3652 BSF_CONSTRUCTOR symbols.
3654 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
3657 Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
3659 * coffcode.h (coff_write_object_contents): In comdat section lookup,
3660 stop looking when section is found.
3662 Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
3664 * coffcode.h (STRING_SIZE_SIZE): Define.
3665 (styp_to_sec_flags): Handle long symbol names when looking for the
3667 (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
3668 (bfd_coff_long_section_names): Define.
3669 (coff_write_object_contents): Handle long section names.
3670 (bfd_coff_std_swap_table): Initialize new field.
3671 * libcoff.h: Rebuild.
3672 * coffgen.c (make_a_section_from_file): Handle long section
3674 (coff_write_symbols): Handle long section names.
3675 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
3676 * coff-mips.c (mips_ecoff_backend_data): Likewise.
3677 * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
3678 * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
3679 * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
3680 * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
3681 * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
3682 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
3684 * bout.c (b_out_callback): Set lma of sections.
3685 (b_out_bfd_get_relocated_section_contents): Rename in_abfd
3686 parameter to output_bfd. Used input_bfd instead of output_bfd in
3689 Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
3691 * aoutx.h (translate_from_native_sym_flags): Don't create
3692 SEC_CONSTRUCTOR sections.
3693 * ecoff.c (ecoff_set_symbol_info): Likewise.
3695 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
3696 From Don Bowman <bowman@waterloo.hp.com>.
3698 Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com>
3700 * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
3701 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
3703 Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com>
3705 * elf32-mips.c (struct mips_elf_link_hash_entry): Add
3706 mips_32_relocs field.
3707 (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
3708 (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
3709 relocs against a global symbol which is not defined in a regular
3711 (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
3712 against a global symbol, increment mips_32_relocs.
3713 (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
3714 the symbol is not defined in a regular file, make room in the
3717 Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
3719 * ecoff.c (ecoff_compute_section_file_positions): Track the real
3720 file position and the virtual file position separately. Set
3721 filepos information bsaed on the real file position.
3722 (_bfd_ecoff_set_section_contents): Handle .lib sections like the
3723 Jan 23 change to coffcode.h.
3725 * som.c (som_slurp_symbol_table): Set the symbol count to the
3726 number of BFD symbols created.
3728 Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3730 * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
3731 output file if linking shared objects. Loop to check all relocs,
3732 rather than returning false on first error.
3734 Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3736 * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
3737 (ppc_elf_additional_program_headers): If .interp section, bump #
3738 of program headers by 1.
3739 (ppc_elf_adjust_dynamic_symbol): Flesh out support.
3740 (ppc_elf_size_dynamic_sections): Add support for .plt section.
3741 (ppc_elf_check_relocs): Print out filename in debug code. Enable
3743 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
3745 (ppc_elf_relocate_section): If the output section isn't defined,
3746 don't abort, just give an error message.
3748 * elflink.c (_bfd_elf_create_dynamic_sections): If the section
3749 being created is .sdata or .sdata2, don't make the symbol dynamic.
3751 Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com>
3753 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
3754 members of an archive for dynamic objects with no symbols, and
3755 pass them directly to check_archive_element.
3756 (xcoff_link_check_ar_symbols): Pass dynamic objects to
3757 xcoff_link_check_dynamic_ar_symbols.
3758 (xcoff_link_check_dynamic_ar_symbols): New static function.
3760 * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
3761 from _bfd_nodynamic to _bfd_xcoff.
3762 * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
3764 (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
3765 (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
3766 (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
3767 * libcoff.h: Rebuild.
3768 * xcofflink.c (xcoff_swap_ldrel_in): New static function.
3769 (xcoff_get_section_contents): New static function.
3770 (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
3771 (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
3772 (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
3773 (xcoff_dynamic_reloc): New static variable.
3774 (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
3775 (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
3777 Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com>
3779 * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
3780 if reloc_entry->addend is not 0.
3781 (CALC_ADDEND): Just set the addend to reloc.r_offset.
3783 Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com>
3785 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
3787 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3788 Add entries for R_SPARC_[56].
3789 (sparc_reloc_map): Add entries for R_SPARC_[56].
3791 Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
3793 Optimize linking of stabs in sections as used in ELF and COFF.
3794 * stabs.c: New file.
3795 * libbfd-in.h (_bfd_link_section_stabs): Declare.
3796 (_bfd_write_section_stabs): Declare.
3797 (_bfd_write_stab_strings): Declare.
3798 * libbfd.h: Rebuild.
3799 * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
3800 (struct coff_link_hash_table): Add stab_info field.
3801 * libcoff.h: Rebuild.
3802 * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
3804 (coff_link_add_symbols): Call _bfd_link_section_stabs if
3806 (_bfd_coff_final_link): Write out stab strings hash table.
3807 (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
3808 * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
3810 * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
3811 (struct bfd_elf_section_data): Add stab_info field.
3812 * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
3814 * elflink.h (elf_link_add_object_symbols): If appropriate, call
3815 _bfd_link_section_stabs.
3816 (elf_bfd_final_link): Write out stab strings hash table.
3817 (elf_link_input_bfd): Handle optimized stabs sections.
3818 * reloc.c (_bfd_final_link_relocate): Check address against
3819 _raw_size rather than _cooked_size.
3820 * Makefile.in: Rebuild dependencies.
3821 (BFD_LIBS): Add stabs.o
3822 (BFD_LIBS_CFILES): Add stabs.c.
3824 * VERSION: Increment for bfdlink.h change.
3826 * coffgen.c (coff_renumber_symbols): Correct handling of
3827 BSF_NOT_AT_END common symbols.
3829 Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
3831 * coff-ppc.c (record_toc): Add cast to avoid warning.
3832 (ppc_allocate_toc_section): Likewise.
3833 (coff_ppc_relocate_section): Remove ANSI C string concatenation.
3834 (ppc_coff_reloc_type_lookup): Remove unreached code.
3835 * coffcode.h (coff_write_object_contents): Don't take the address
3837 * peicode.h (pe_print_idata): Add casts to avoid warning.
3838 (pe_print_edata): Likewise.
3839 (pe_print_reloc): Remove ANSI C string concatenation.
3841 Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
3843 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
3845 * libcoff.h: Rebuild.
3846 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
3848 (coff_swap_aux_out): Likewise.
3849 * peicode.h (coff_swap_aux_in): Likewise.
3850 (coff_swap_aux_out): Likewise.
3851 * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
3853 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
3855 (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
3856 Fix up .bf endndx link fields.
3857 * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
3859 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
3862 Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3864 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
3865 on Solaris PowerPC systems doesn't get confused.
3867 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
3870 * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
3871 (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
3872 update did_reg and did_reg2.
3874 Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
3876 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
3878 * linker.c (_bfd_generic_link_add_one_symbol): When calling the
3879 callback routines, pass h->root.string rather than name, in case
3880 copy is true and name is transient.
3882 Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
3884 * elfcore.h: Add support for core files with multiple threads.
3885 (Primarily for Solaris.)
3887 Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
3889 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
3890 section->orelocation is NULL.
3892 * coffgen.c (bfd_coff_get_syment): New function.
3893 (bfd_coff_get_auxent): New function.
3894 * bfd-in.h (bfd_coff_get_syment): Declare.
3895 (bfd_coff_get_auxent): Declare.
3896 * bfd-in2.h: Rebuild.
3898 Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com>
3900 * elf32-mips.c (struct mips_hi16): Define.
3901 (mips_hi16_addr, mips_hi16_addend): Remove.
3902 (mips_hi16_list): New static variable.
3903 (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
3904 (mips_elf_lo16_reloc): Process mips_hi16_list.
3905 (mips_elf_relocate_section): Permit an arbitrary number of HI16
3906 relocs before the associated LO16 reloc.
3908 Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
3910 * versados.c (versados_scan): Check bfd_alloc return value.
3911 (versados_object_p): Check all bfd_read return values. Require
3912 that lang field be less than 10, to avoid confusion with Intel Hex
3915 * libaout.h (WRITE_HEADERS): Write out the relocs even if there
3917 * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
3918 not 0, for an absolute symbol.
3919 (NAME(aout,swap_ext_reloc_out)): Likewise.
3921 * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
3922 (ihex_write_object_contents): For a large start address, output
3923 the full 32 bit address in record type 5.
3925 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
3926 to int to avoid promotion problems in prototype.
3928 Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com>
3930 * configure.host: Use ${srcdir} when looking for picfrag.
3932 * configure.host: Switch on ${libdir}, not $(libdir). From
3933 alan@spri.levels.unisa.edu.au (Alan Modra).
3935 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
3936 entry point, not just for DYNAMIC objects.
3937 * sunos.c (sunos_add_dynamic_symbols): Always call
3938 sunos_create_dynamic_sections. If called with a non DYNAMIC
3939 object, don't do anything else.
3940 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
3942 Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
3944 * configure.in: Permit --enable-shared to specify a list of
3946 * configure: Rebuild.
3948 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
3949 host when configuring with --enable-shard.
3951 Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com>
3953 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
3956 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
3957 to avoid crashing in bfd_hash_replace.
3959 * sysdep.h: Use #ifdef, not #if.
3961 Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com>
3963 * config.in: Rebuild.
3965 Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com>
3967 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
3968 (AC_CHECK_HEADERS): Check for sys/time.h
3969 (AC_HEADER_TIME): Add macro.
3970 * configure: Rebuild.
3971 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
3972 to control what combination of <time> and <sys/time.h>
3975 Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com>
3977 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
3978 (aout_32_sunos4_write_object_contents): Likewise.
3979 * aoutx.h (NAME(aout,machine_type)): Handle
3980 bfd_mach_sparc_{sparclet,sparclite}.
3981 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
3982 (bfd_mach_sparc_v9_p): Update.
3983 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
3984 * libaout.h (enum machine_type): Add M_SPARCLET.
3985 * sunos.c (MACHTYPE_OK): Define.
3986 * bfd-in2.h: Regenerated.
3988 Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
3990 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
3991 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
3992 * elflink.c (_bfd_elf_create_got_section): Store the
3993 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
3994 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
3995 global offset table goes over 0x1000, set the value of
3996 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
3997 (elf32_sparc_relocate_section): Subtract the offset of
3998 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
4000 * elfcode.h: Don't include <string.h>.
4002 Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com)
4004 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
4005 generic_link_hash_newfunc. All references changed.
4006 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
4007 moved here from libbfd-in.h.
4008 * libbfd-in.h: Corresponding changes.
4009 * libbfd.h: Regenerated.
4011 Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com>
4013 * aoutx.h (aout_link_input_section_std): When reporting an
4014 overflow error, use the name of the symbol in the hash table if
4016 (aout_link_input_section_ext): Likewise.
4018 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
4019 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
4021 Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
4023 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
4024 * coffcode.h (coff_compute_section_file_positions): Likewise.
4025 (coff_write_object_contents): Likewise.
4027 Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
4029 * section.c (SEC_LINK_ONCE): Define.
4030 (SEC_LINK_DUPLICATES): Define.
4031 (SEC_LINK_DUPLICATES_DISCARD): Define.
4032 (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
4033 (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
4034 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
4035 * bfd-in2.h: Rebuild.
4036 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
4037 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
4038 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
4039 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
4040 SEC_LINK_ONCE, and look through the symbol table for the setting
4041 for SEC_LINK_DUPLICATES.
4042 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
4043 set for a section, find the section symbol in the symbol table,
4044 and set the aux entry based on SEC_LINK_DUPLICATES.
4045 * coffgen.c (coff_print_symbol): Add a space before "checksum".
4046 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
4047 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
4048 * coff-i386.c (i386coff_vec): Likewise.
4049 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
4051 * VERSION: Bump to 2.6.1.
4052 * Makefile.in (stamp-h): Depend upon VERSION.
4054 Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com)
4056 * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
4057 * libbfd.h: Rebuilt.
4058 * linker.c (generic_link_hash_newfunc): No longer static.
4059 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
4061 * coff-h8300.c: Add two derived hash tables and their associated
4062 funtions and #defines for use by the h8300 linker.
4063 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
4064 the function vector as needed. Place the address of the function
4065 vector entry in the location specified by the R_MEM_INDIRECT reloc.
4066 Rewrite the vectors section contents as necessary.
4067 (h8300_bfd_link_add_symbols): New function for the h8300 linker.
4068 (coff_bfd_link_add_symbols): Define to use h8300 specific version.
4069 (coff_bfd_link_hash_table_create): Likewise.
4071 Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
4073 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
4074 __attribute__ ((__unused__)) so that -Wall doesn't warn about
4076 (hppa_rebuild_insn): Pass pointer to correct type to
4077 low_sign_unext and dis_assemble_21.
4079 Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com>
4081 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
4082 Stick with sparc-*-{sysv4*,solaris2*}.
4084 Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com>
4086 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
4087 (coff_swap_aux_out): Swap out extra PE x_scn fields.
4088 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
4089 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
4090 fields is non-zero, print them.
4092 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
4093 ifdef. Remove unused variables.
4094 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
4096 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
4097 (get_symbol_value): Ifdef out.
4098 (pe_ppc_reloc): Ifdef out. Remove unused variables.
4099 (coff_ppc_relocate_section): Remove unused variables. Make
4100 fprintf strings and argument types correspond. Put before_addr in
4102 (dump_toc): Make fprintf strings and argument types correspond.
4103 (ppc_process_before_allocation): Remove unused variables. Always
4105 (ppc_reflo_reloc): Ifdef out.
4106 (ppc_addr32nb_reloc): Ifdef out.
4107 (ppc_coff_rtype2howto): Make fprintf strings and argument types
4109 (coff_ppc_rtype_to_howto): Likewise.
4110 (ppc_coff_swap_sym_in_hook): Remove unused variables.
4112 * peicode.h (pe_print_idata): Move otherwise unused variables into
4113 the #ifdef where they are used. Always return a value.
4114 (pe_print_edata): Make fprintf strings and argument types
4115 correspond. Always return a value.
4116 (pe_print_pdata): Removed unused variable addr_value. Always
4118 (pe_print_reloc): Remove unused variable onaline. Make fprintf
4119 strings and argument types correspond. Always return a value.
4121 * elf32-ppc.c (ppc_elf_fake_sections): Return true.
4122 (ppc_elf_finish_dynamic_symbol): Move definition of unused
4123 variable rela inside #if 0 section where it is used.
4125 * ns32k.h: New file.
4126 * cpu-ns32k.h: Include ns32k.h. Rename externally visible
4127 functions to start with _bfd_.
4128 * aout-ns32k.c: Include ns32k.h. Change references to renamed
4129 functions in cpu-ns32k.h.
4130 * Makefile.in: Rebuild dependencies.
4131 (HFILES): Add ns32k.h.
4133 * section.c (struct sec): Add linker_mark field. Change
4134 user_set_vma and reloc_done to be single bit fields.
4135 (STD_SECTION): Update accordingly.
4136 * bfd-in2.h: Rebuild.
4137 * aoutx.h (NAME(aout,final_link)): Mark sections included in the
4139 (aout_link_input_bfd): Don't link unmarked sections.
4140 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
4142 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
4143 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
4145 * elflink.h (elf_bfd_final_link): Mark sections included in the
4147 (elf_link_input_bfd): Don't link unmarked sections.
4148 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
4150 (xcoff_link_input_bfd): Don't link unmarked sections.
4152 * coffswap.h (coff_swap_scnhdr_out): Include section name in
4153 overflow error messages.
4155 Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
4157 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
4158 is not set, print "BFD: " before the error message.
4160 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
4161 Miles Bader <miles@gnu.ai.mit.edu>.
4162 * configure: Rebuild.
4164 Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com>
4166 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
4169 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
4170 m68k-aout, m68k-coff, and m68k-elf targets.
4172 Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de>
4174 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
4175 (ieee_generic_stat_arch_elt): Restructured to prevent
4176 ieee_object_p from being called repeatedly.
4178 Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com>
4180 * coffcode.h (coff_write_object_contents): Allocate
4181 buffers large enough for any FILEHDR or AOUTHDR.
4183 Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
4185 * ecofflink.c (lookup_line): New static function, renamed and
4186 slighly changed from old _bfd_ecoff_locate_line.
4187 (_bfd_ecoff_locate_line): Cache line number information. Use
4188 lookup_line for actual lookup.
4190 Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4192 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
4193 multiple of 20 bytes.
4195 Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com>
4197 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
4198 allocate ecoff_find_line, and don't initialize by hand.
4199 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
4200 mips_elf_find_line, and don't call memset.
4202 * coffcode.h (coff_compute_section_file_positions): If not
4203 producing a final executable, don't consider sofar when aligning
4204 the section to the correct size.
4206 Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
4208 * coffcode.h (coff_add_missing_symbols): Ifdef out.
4209 (coff_write_object_contents): Don't call coff_add_missing_symbols.
4210 * coffgen.c (coff_section_symbol): Ifdef out.
4212 Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com>
4214 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
4215 output_bfd is not NULL.
4217 Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com>
4219 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
4220 of bfd_alloc (fixes fix_line not being initialized).
4221 Delete zeroing of fix_{value,tag,end,scnlen} fields.
4223 Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com)
4225 * coffcode.h: Allow specific backends to override the
4226 bfd_link_add_symbols routine.
4228 * coff-h8300.c: Include genlink.h.
4229 (howto_table): Add R_MEM_INDIRECT.
4230 (rtype2howto): Support R_MEM_INDIRECT.
4231 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
4234 Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
4236 * coff-alpha.c (alpha_relocate_section): Use
4237 info->callbacks_warning, rather than _bfd_error_handler, for
4238 "multiple gp" warning.
4240 Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com>
4242 * linker.c (bfd_wrapped_link_hash_lookup): New function.
4243 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
4244 table string. Use bfd_wrapped_link_hash_lookup.
4245 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
4247 * aoutx.h (aout_link_write_symbols): Use the name from the hash
4248 table, if any, when writing out symbols.
4249 (aout_link_input_section_std): Use the name from the hash table,
4250 if any, when reporting undefined symbols.
4251 (aout_link_input_section_ext): Likewise.
4252 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
4253 * bout.c (get_value): Likewise.
4254 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
4255 * ecoff.c (ecoff_reloc_link_order): Likewise.
4256 * elflink.h (elf_link_add_object_symbols): Likewise.
4257 (elf_reloc_link_order): Likewise.
4258 * linker.c (_bfd_generic_link_output_symbols): Likewise.
4259 (_bfd_generic_reloc_link_order): Likewise.
4260 (default_indirect_link_order): Likewise.
4261 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
4262 * sunos.c (sunos_add_one_symbol): Likewise.
4263 * xcofflink.c (xcoff_link_add_symbols): Likewise.
4264 (bfd_xcoff_link_count_reloc): Likewise.
4265 (xcoff_reloc_link_order): Likewise.
4267 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
4268 into -1 for intern->rss.
4270 * configure: Rebuild with autoconf 2.8.
4272 Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com>
4274 * stab-syms.c (__define_stab_duplicate): Define.
4275 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
4277 * bfd-in.h (bfd_get_stab_name): Declare.
4278 * bfd-in2.h: Rebuild.
4279 * Makefile.in: Rebuild dependencies.
4280 (BFD_LIBS): Add stab-syms.o.
4281 (BFD_LIBS_CFILES): Add stab-syms.c.
4282 (BFD32_BACKENDS): Remove stab-syms.o.
4283 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
4284 * configure.in: Don't list stab-syms.o in bfd_backends.
4285 * configure: Rebuild.
4286 * libaout.h (aout_stab_name): Don't declare.
4287 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
4290 Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com>
4292 * elf.c (assign_file_positions_for_segments): Adjust file offset
4293 for section alignment even if SEC_LOAD is not set.
4295 Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com>
4297 * configure.in: Don't set SHLIB or SHLINK to an empty string,
4298 since they appear as targets in Makefile.in.
4299 * configure: Rebuild.
4301 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
4302 don't fiddle with a symbol which is not defined anywhere.
4304 Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com>
4306 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
4307 though they are defined in a shared library.
4308 (xcoff_build_ldsyms): Likewise.
4310 * coffgen.c (coff_find_nearest_line): Don't look at the line
4311 numbers for the section if section->lineno is NULL.
4313 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
4314 message rather than calling BFD_ASSERT.
4315 * elfcode.h (write_relocs): Check return value of
4316 _bfd_elf_symbol_from_bfd_symbol.
4318 Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4320 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
4323 Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com)
4325 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
4327 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
4328 hppa_reloc_field_selector_type_alt.
4329 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
4330 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
4332 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
4334 Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
4336 * elf.c (assign_file_positions_for_segments): Adjust the segment
4337 memory size for the alignment of a SEC_ALLOC section, not just a
4340 Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4342 * m68klinux.c: New file.
4343 * hosts/m68klinux.h: New file.
4344 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
4345 * configure.in (m68*-*-linux*): New native host.
4346 (m68klinux_vec): New vector.
4347 * configure: Rebuild.
4348 * targets.c (m68klinux_vec): Declare.
4349 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
4350 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
4351 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
4352 declaration from bfd_linux_size_dynamic_sections.
4353 (bfd_m68klinux_size_dynamic_sections): Declare.
4354 * bfd-in2.h: Rebuild.
4355 * Makefile.in: Rebuild dependencies.
4356 (BFD32_BACKENDS): Add m68klinux.o.
4357 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
4359 Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com)
4361 * libhppa.h (pa_arch): Add pa20.
4362 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
4363 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
4364 (hppa_field_adjust): Handle e_nsel.
4365 * som.c: Provide default definitions for many new relocs found only
4366 in hpux10 include files.
4367 (som_fixup_formats): Add several new relocs from hpux10.
4368 (som_hppa_howto_table): Add hpux10 relocs.
4369 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
4371 Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com>
4373 * mpw-make.sed: Edit out recent shared library support, and
4374 rules to rebuild .h files using doc/chew.
4376 Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
4378 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
4379 size even of sections with no contents.
4381 Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com>
4383 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
4384 starting with '$' the way we skip names starting with '.'. When
4385 updating x_endndx, don't be fooled by an index which has been
4388 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
4389 struct/union/enum type with no elements.
4391 Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com>
4393 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
4395 * archive.c (bfd_generic_archive_p): If the first file in the
4396 archive can not be recognized as an object, don't assume that this
4397 is the wrong format.
4399 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
4400 format is not bfd_object.
4401 (bfd_elf_get_dt_soname): Likewise.
4403 Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com>
4405 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
4408 Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4410 * bfd.c (tdata): Add netbsd_core_data.
4411 * bfd-in2.h: Regenerated.
4413 Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com>
4415 * sunos.c (SUNOS_CONSTRUCTOR): Define.
4416 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
4417 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
4420 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
4421 to get the symbol index, matching 14 Jul 95 change.
4423 Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com>
4425 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
4426 Remove duplicate definition of gp.
4428 Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
4430 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
4431 assume that we can set the GP value and then get the same value,
4432 since it won't be true if the output file is neither ELF nor
4434 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
4435 _bfd_get_gp_value here.
4436 (mips_gprel_reloc): Don't assume we can set and get the GP value.
4437 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
4439 (mips_elf_lo16_reloc): Likewise.
4440 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
4441 Don't require that the BFD be ELF.
4442 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
4443 (mips_elf_gprel32_reloc): Likewise.
4444 (mips_elf_relocate_section): Don't assume we can set and get the
4446 (mips_elf_finish_dynamic_symbol): Don't bother to use
4447 _bfd_get_gp_value here.
4449 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
4450 Don't change epdr between malloc and free. Be careful not to free
4451 NULL pointers. Zero out the first RPDR.
4453 * configure.host: On Linux, only pass -rpath option if $(libdir)
4454 is neither /lib nor /usr/lib. From Alan Modra
4455 <alan@mullet.Levels.UniSA.Edu.Au>.
4457 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
4459 (elf_dt_name): Rename from elf_dt_needed_name.
4460 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
4462 (bfd_elf_get_dt_soname): New function.
4463 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
4464 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
4465 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
4466 * bfd-in2.h: Rebuild.
4468 Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
4470 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
4471 _bfd_sparc_elf_reloc_type_lookup.
4472 (bfd_elf32_bfd_reloc_type_lookup): Update.
4473 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
4474 (sparc64_elf_howto_table): Define.
4475 (sparc_reloc_map): Define.
4476 (sparc64_elf_reloc_type_lookup): New function.
4477 (sparc_elf_wdisp16_reloc): New function.
4478 (elf_info_to_howto): Use sparc64_elf_howto_table.
4479 (sparc64_elf_relocate_section): Likewise.
4480 (bfd_elf64_bfd_reloc_type_lookup): Update.
4482 Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
4484 * configure.host: Check for 'do not mix' from native linker before
4485 trying to use -rpath.
4487 Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
4489 * bfd.c (_bfd_get_gp_value): New function.
4490 (_bfd_set_gp_value): New function.
4491 * libbfd-in.h (_bfd_get_gp_value): Declare.
4492 (_bfd_set_gp_value): Declare.
4493 * libbfd.h: Rebuild.
4494 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
4495 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
4496 directly to the fields in the tdata information.
4497 (alpha_relocate_section): Likewise.
4498 * coff-mips.c (mips_adjust_reloc_in): Likewise.
4499 (mips_gprel_reloc): Likewise.
4500 (mips_relocate_section): Likewise.
4501 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
4502 (mips_elf_lo16_reloc): Likewise.
4503 (mips_elf_final_gp): Likewise.
4504 (mips_elf_gprel16_reloc): Likewise.
4505 (mips_elf_gprel32_reloc): Likewise.
4506 (mips_elf_relocate_section): Likewise.
4507 (mips_elf_finish_dynamic_symbol): Likewise.
4509 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
4511 Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
4513 * configure.in: Call AC_PROG_CC before configure.host.
4514 * configure: Rebuild.
4515 * configure.host: Don't set information which autoconf should
4516 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
4518 * configure.host: Remove go32 and win32 host information, since it
4519 should no longer be needed.
4521 * elf.c (map_sections_to_segments): If we have a .dynamic section,
4522 then start a new segment rather than put a writable section in a
4525 * configure.host: Set RPATH_ENVVAR.
4527 * Makefile.in: Rebuild dependencies.
4529 * elflink.c (_bfd_elf_create_linker_section): Remove unused
4530 zero_section variable.
4532 Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
4534 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
4535 ($(srcdir)/libbfd.h): Rename from libbfd.h.
4536 ($(srcdir)/libcoff.h): Rename from libcoff.h.
4538 Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
4540 * ieee.c (ieee_write_expression): Only use an R variable for a
4541 local symbol. Don't output a zero offset. Handle a zero address.
4542 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
4543 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
4545 (parse_expression): Don't try to handle multiple occurrences of a
4546 P variable. Handle I variables differently from X variables. Fix
4547 the order of minus expressions.
4548 (ieee_slurp_external_symbols): Generate an I variable for an NN
4549 record. Fix handling of ATI and ATX records.
4550 (ieee_slurp_sections): Only set minimal section attributes.
4551 Adjust them later, based on the section contents.
4552 (ieee_object_p): Read in the file until just after the ME record.
4553 Call ieee_slurp_section_data to set the section flags.
4554 (do_one): Add iterations parameter. Only repeat the first load
4555 item. Set the section and file reloc flags.
4556 (ieee_slurp_section_data): Set section flags. Pass iterations to
4558 (ieee_canonicalize_reloc): Handle I variables.
4559 (do_with_relocs): Only emit relocation size when necessary.
4560 Increase MAXRUN to 127. Change ov to be assigned, and take
4561 src_mask and pcrel_offset into account.
4562 (ieee_write_data_part): Skip sections that are not loaded.
4563 (ieee_write_external_part): Don't output optional last entry of WX
4565 (ieee_write_me_part): Make setting of me_record neater.
4566 (ieee_generic_stat_arch_elt): Get the size of an archive element.
4568 * syms.c (stt): Add entries for zerovars, vars, and code.
4570 * elfcode.h (validate_reloc): New static function.
4571 (write_relocs): Call validate_reloc for non ELF relocs.
4573 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
4574 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
4575 (TARGET_LITTLE_SYM): Likewise.
4577 * config.bfd (m68*-*-psos*): New target.
4579 Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
4581 * i386msdos.c: Remove some #if 0 code.
4582 (msdos_write_object_contents): Don't include empty sections in the
4583 size computation, regardless of their address.
4585 Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4587 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
4588 is NULL, ie, the -r switch is used.
4590 Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
4592 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
4593 (BFD_RELOC_MIPS_GOT_LO16): Define.
4594 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
4595 * bfd-in2.h, libbfd.h: Rebuild.
4596 * elf32-mips.c (mips_reloc_map): Map new relocs.
4598 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
4600 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
4603 * ieee.c (get_symbol): Set the section to bfd_abs_section.
4604 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
4605 simple number for the section address, rather than an expression.
4606 Limit the number of bytes between relocs to MAXRUN.
4607 (ieee_write_me_part): Set me_record to the file offset after the
4609 (ieee_write_processor): New static function.
4610 (ieee_write_object_contents): Use ieee_write_processor.
4612 Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
4614 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
4616 * coff-aux.c: Change include of aux.h to aux-coff.h.
4618 Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4620 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
4621 relocation put the addend both in the reloc entry and the data.
4622 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
4625 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
4626 a R_68K_PCxx reloc against a defined global symbol directly.
4627 (elf_m68k_check_relocs): Don't count such a reloc.
4629 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
4630 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
4631 symbol for now, otherwise always record the symbol as dynamic.
4632 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
4633 is not referenced by a dynamic object, and we are not making a
4634 shared object, then don't make a PLT entry. If we do make a PLT
4635 entry, make sure the symbol has been recorded as dynamic.
4637 Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
4639 * configure.host: When making a shared library, set HLDFLAGS to
4640 pass an appropriate -rpath option. Use the make variable SONAME
4641 as the shared library soname, rather than computing it here. On
4642 SunOS, build stamp-tshlink in place of $(SHLINK).
4643 * Makefile.in (SONAME): New variable.
4644 ($(SHLINK)): Make a link to the transformed name, as well.
4645 (stamp-tshlink): New target.
4646 (install): Skip stamp-tshlink during install.
4648 Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4650 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
4651 linker sections have been set up yet.
4653 * elf.c (make_mapping): Add an additional argument to suppress
4654 making the first section include the program headers.
4655 (map_sections_to_segments): If the user used -Ttext such that the
4656 program headers are on a different page, do not set the flags
4657 saying that this section includes the program headers.
4659 Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4661 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
4662 don't define TRAD_HEADER.
4663 * configure: Rebuild.
4665 * netbsd-core.c: New file, support for NetBSD core files.
4666 * hosts/*nbsd.h: Removed.
4668 Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
4670 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
4671 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
4672 * libbfd.h, bfd-in2.h: Regenerated.
4673 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
4674 bfd_elf32_bfd_reloc_type_lookup.
4675 (reloc_type{,_names}): Deleted.
4676 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
4678 (sparc_reloc_map): Add sparc64 relocs.
4679 (sparc_elf_notsupported_reloc): New static function.
4680 (sparc_elf_wdisp16_reloc): New static function.
4681 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
4682 (elf32_sparc_relocate_section): Likewise.
4683 (bfd_elf32_bfd_reloc_type_lookup): Define.
4684 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
4685 (reloc_type{,_names}): Deleted.
4686 (elf_sparc_howto_table): Deleted.
4687 (sparc_reloc_map): Deleted.
4688 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
4689 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
4691 Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
4693 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
4696 * Makefile.in (program_transform_name): New variable.
4697 (install): Transform library name before installing it.
4699 Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
4701 * archures.c (bfd_mach_i960_hx): Define.
4702 * bfd-in2.h: Rebuild.
4703 * cpu-i960.c (scan_960_mach): Accept machine "hx".
4704 (MATRIX): Expand entries for HX.
4705 (arch_info_struct): Add i960:hx entry.
4706 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
4707 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
4708 (coff_set_flags): Handle bfd_mach_i960_hx.
4710 Support for building as a shared library, based on patches from
4711 Alan Modra <alan@spri.levels.unisa.edu.au>:
4712 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
4713 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
4714 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
4715 * configure: Rebuild.
4716 * configure.host: If --enable-shared, adjust shared library stuff
4717 based on the host. If the host is SunOS, and the linker supports
4718 -rpath, set HLDFLAGS to use it.
4719 * Makefile.in (ALLLIBS): New variable.
4720 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
4721 (COMMON_SHLIB, SHLINK): New variables.
4722 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
4723 (STAGESTUFF): Remove variable.
4724 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
4726 (stamp-ofiles): New target, like old ofiles target, but build
4727 using a temporary file and move-if-change, and touch stamp-ofiles
4729 (ofiles): Just depend upon stamp-ofiles.
4730 (stamp-piclist, piclist): New targets.
4731 ($(SHLIB), $(SHLINK)): New targets.
4732 (targets.o, archures.o): Build twice if PICFLAG is set.
4733 (do_mostlyclean): Remove pic/*.o.
4734 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
4736 (do_distclean): Remove pic and stamp-picdir.
4737 (install): Install shared libraries.
4738 ($(OFILES)): Depend upon stamp-picdir.
4739 (stamp-picdir): New target.
4741 * libcoff-in.h: Add comment reminding people that libcoff.h is a
4743 * libcoff.h: Rebuild.
4745 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
4746 flavour of a section with no owner.
4748 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
4749 ELF_LINK_NON_ELF flag.
4750 (mips_elf_create_got_section): Likewise.
4752 * elf.c: Revert last change, since it breaks dynamic linking.
4753 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
4755 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
4756 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
4757 (elfNN_bed): Don't initialize want_hdr_in_seg field.
4759 Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4761 * elf.c (assign_file_positions_for_segments): If the backend does
4762 not want the elf header or the program headers in the address
4763 space, do not include them in the calculations.
4765 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
4766 function to determine if we need additional program headers.
4767 (ppc_elf_modify_segment_map): Define as a NOP function for now.
4768 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
4770 Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
4772 * coffcode.h: Move today's libcoff.h change into coffcode.h.
4774 Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
4776 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
4777 back into one line. Some compilers (sunos 4.1.3 for example)
4778 won't accept args split across more than one line.
4780 Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
4782 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
4783 * configure: Regenerate.
4785 Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
4787 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
4788 try to do arithmetic on a void *, cast it to a unsigned char * first.
4790 Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
4792 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
4793 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
4795 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
4796 flag for a newly defined symbol.
4797 (NAME(bfd_elf,record_link_assignment)): Likewise.
4798 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
4799 set the DEF or REF_REGULAR flags correctly.
4801 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
4802 (libbfd.h, libcoff.h): Corresponding change.
4804 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
4805 a PLT32 reloc as dynamic.
4806 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
4807 is not referenced by a dynamic object, and we are not making a
4808 shared object, then don't make a PLT entry. If we do make a PLT
4809 entry, make sure the symbol has been recorded as dynamic.
4811 Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
4813 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
4814 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
4815 (powerpcle-*-cygwin32): New.
4816 * peicode.h (add_data_entry): Get address from vma.
4818 Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4820 * elflink.c (_bfd_elf_create_linker_section): If the symbol
4821 attached to the section has already been created as an undefined
4822 symbol, treat it as if it hasn't been created yet.
4824 Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
4826 * elflink.h (elf_bfd_final_link): Don't output initial dummy
4827 symbol or section symbols if stripping all symbols and this is not
4828 a relocateable link. Don't output the symbol string table if
4829 there are no symbols.
4830 (elf_link_flush_output_syms): Don't do anything if there are no
4833 Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
4835 * coff-aux.c: New file.
4836 * hosts/m68kaux.h: New file.
4837 * config.bfd (m68*-apple-aux*): New target.
4838 * configure.in (m68*-apple-aux*): New native host.
4839 (m68kaux_coff_vec): New vector.
4840 * configure: Rebuild.
4841 * targets.c (m68kaux_coff_vec): Declare.
4842 * coffcode.h (bfd_coff_backend_data): Add field
4843 _bfd_coff_link_add_one_symbol.
4844 (bfd_coff_link_add_one_symbol): Define.
4845 (compare_arelent_ptr): New static function if TARG_AUX.
4846 (coff_write_relocs): If TARG_AUX, sort the relocs.
4847 (coff_write_object_contents): Set A/UX aouthdr magic number.
4848 (coff_link_add_one_symbol): Define if not defined.
4849 (bfd_coff_std_swap_table): Initialize new field.
4850 * libcoff.h: Rebuild.
4851 * cofflink.c (coff_link_add_symbols): Call
4852 bfd_coff_link_add_one_symbol rather than
4853 _bfd_generic_link_add_one_symbol.
4854 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
4855 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
4856 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4857 * Makefile.in: Rebuild dependencies.
4858 (BFD32_BACKENDS): Add coff-aux.o.
4859 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
4861 Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4863 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
4864 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
4866 Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
4868 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
4869 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
4870 (maintainer-clean): Warn about deleting special files.
4871 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
4873 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
4874 warning symbols correctly.
4875 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4876 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4877 * elf32-mips.c (mips_elf_relocate_section): Likewise.
4878 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4879 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4880 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4882 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
4885 Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
4887 * libcoff-in.h: aligned newly exported names with bfd naming
4888 conventions. Removed an erroneous define of POWERPC_LE_PE.
4889 * libcoff.h: Rebuild.
4890 * cofflink.c, coff-ppc.c: the above function name changes
4892 Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
4894 From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
4895 * ecoff.c (struct extsym_info): Define.
4896 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
4897 to ecoff_link_write_external.
4898 (ecoff_link_write_external): Accept a struct extsym_info pointer.
4899 Strip symbols when appropriate.
4901 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
4902 * syms.c (BSF_OBJECT): Define.
4903 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
4904 * bfd-in2.h: Rebuild.
4905 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
4907 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
4910 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
4911 copying relocs into a shared object, treat a defined global symbol
4913 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4914 * elf32-mips.c (mips_elf_relocate_section): Likewise.
4915 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4917 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
4918 real defined symbol, not to a weak defined symbol.
4920 Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
4922 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
4923 and made a few static functions externs.
4925 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
4926 POWERPC_LE_PE hack in cofflink.
4928 * libcoff-in.h: promoted the following from cofflink.c to allow
4929 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
4930 coff_debug_merge_element, struct coff_debug_merge_type,
4931 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
4932 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
4933 coff_debug_merge_hash_lookup, coff_link_section_info,
4934 coff_final_link_info, coff_debug_merge_hash_newfunc,
4935 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
4937 * libcoff.h: re-gen'd
4939 Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
4941 * syms.c: Include "bfdlink.h".
4942 (struct stab_find_info): Define.
4943 (_bfd_stab_section_find_nearest_line): New function.
4944 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
4945 * libbfd.h: Rebuild.
4946 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
4947 * elf.c (_bfd_elf_find_nearest_line): Try calling
4948 _bfd_stab_section_find_nearest_line before searching the ELF
4949 symbol table. Find the closest STT_FUNC symbol, not the last one.
4950 * libcoff-in.h (coff_data_type): Add line_info field.
4951 * libcoff.h: Rebuild.
4952 * coffgen.c (coff_find_nearest_line): Try calling
4953 _bfd_stab_section_find_nearest_line before searching the COFF
4955 * Makefile.in: Rebuild dependencies.
4957 Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4959 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
4960 4 bytes, so we get the correct value when updating the register
4961 field in little endian mode.
4963 Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
4965 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
4966 entry_section fields. Add sntoc and snentry fields.
4967 * libcoff.h: Rebuild.
4968 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
4969 not toc_section and entry_section (the COFF file does not have any
4970 sections at this point).
4971 (coff_write_object_contents): Set o_snentry and o_sntoc from
4972 snentry and sntoc rather than entry_section and toc_section.
4973 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
4974 snentry, not toc_section and entry_section.
4975 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
4976 entry_section from hentry.
4977 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
4979 (xcoff_link_input_bfd): Set sntoc, not toc_section.
4980 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
4981 than using toc_section directly.
4983 * archures.c: Add missing `.' in enum bfd_architecture.
4984 * bfd-in2.h: Rebuild.
4986 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
4987 Robert Lipe <robertl@arnet.com>.
4989 Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4991 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
4992 to sections we allocate. Use bfd_zalloc to allocate initialial
4993 sections, not bfd_alloc.
4994 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
4995 SDA{,2}I16 relocations.
4996 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
4997 whether to put something in .sbss or not.
4998 (ppc_elf_relocate_section): Add support for more relocations. Add
4999 in sec->output_offset where appropriate. Make error messages
5000 include the symbol name.
5002 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
5003 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
5004 doesn't get redefined messages if -shared.
5006 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
5007 section if the rel_section field has been set up.
5009 Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5011 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
5014 Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
5016 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
5017 of flags, only flags used are controlled by mach number. Bump up
5018 output file mach number to highest of input file mach numbers.
5019 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
5020 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
5022 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
5023 bfd_elf64_sparc_vec support.
5025 Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5027 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
5028 the embedded bit is set on some objects and not on others. Just
5030 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
5033 Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
5035 * coffcode.h (coff_new_section_hook): Don't try to align the
5038 * coffcode.h (coff_set_section_contents): Fix the handling of the
5039 .lib section to work even if the entire section contents are
5040 written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and
5041 Robert Lipe <robertl@arnet.com>.
5043 Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5045 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
5046 memory here for contents.
5048 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
5049 _SDA2_BASE_ by 32768.
5050 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
5051 started using. Allocate contents for .sdata and .sdata2 sections
5053 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
5055 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
5056 size _SDA{,2}_BASE_.
5057 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
5060 Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
5062 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
5064 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5065 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5066 (bfd_mach_sparc_v9a): Define.
5067 (bfd_mach_sparc_v9_p): Define.
5068 * bfd-in2.h: Regenerated.
5069 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
5071 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5072 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
5073 to bfd_elf32_sparc_vec.
5074 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5075 Add v8plus{,a} support.
5077 (sparc_compatible): New function.
5078 * elf32-sparc.h: #include "elf/sparc.h".
5079 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5080 elf32_sparc_final_write_processing): New functions.
5081 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5082 elf_backend_final_write_processing): Define.
5084 Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5086 * elf-bfd.h (struct elf_link_hash_entry): Add
5087 linker_section_pointer field.
5088 (enum elf_linker_section_enum): Enumeration for new way of
5089 creating linker dynamic sections and symbols.
5090 (elf_linker_section{,_pointers}): New structures for creating
5091 dynamic sections and symbols.
5092 (elf_obj_tdata): Add linker_section_pointers and linker_section
5094 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
5095 (_bfd_elf_create_linker_section): New declarations.
5096 (_bfd_elf_find_pointer_linker_section): Ditto.
5097 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
5098 (_bfd_elf_make_linker_section_rela): Ditto.
5100 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
5102 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
5103 (ppc_elf_create_linker_section): New function to create the
5104 sections .got, .sdata, and .sdata2.
5105 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
5107 (ppc_elf_check_relocs): Support more of the eabi relocations.
5108 (ppc_elf_relocate_section): Ditto.
5109 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
5110 if the .sdata{,2} + .sbss{,2} section size is > 32k.
5112 * elflink.h (elf_create_pointer_linker_section): New function to
5113 create initialized pointers in dynamic linker sections.
5114 (elf_finish_pointer_linker_section): Actually intialize the
5115 pointers created above.
5117 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
5118 macros to provide both 32 and 64 bit versions of
5119 elf_create_pointer_linker_section.
5120 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
5121 provide both 32 and 64 bit versions of
5122 elf_finish_pointer_linker_section.
5124 * elflink.c (_bfd_elf_create_linker_section): New function to
5125 create a linker section.
5126 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
5127 given address in the linker pointer offsets created for a given
5129 (_bfd_elf_make_linker_section_rela): Make a RELA section
5130 corresponding to the generated linker section.
5132 Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
5134 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
5136 Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
5138 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
5139 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
5140 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
5141 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
5142 toc entry in an objdump) for now.
5143 (ppc_do_last, ppc_get_last): New function - needed to save processing
5144 the toc owner to the end.
5145 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
5148 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
5149 toc owner from being done till last. Must define POWERPC_LE_PC
5152 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
5154 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
5156 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
5157 SizeOfImage for PowerPC. Ignore the size of the .junk section.
5159 Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
5161 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
5163 Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
5165 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
5167 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
5169 Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
5171 * elf.c (assign_file_positions_for_segments): Don't increment file
5172 offset for a segment which contains no loadable sections.
5174 Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5176 * reloc.c: Add new PowerPC relocations.
5177 * {bfd-in2,libbfd}.h: Regenerate.
5179 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
5180 (ppc_elf_reloc_type_lookup): Lookup new relocations.
5182 Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
5184 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
5187 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
5190 * coffgen.c (coff_find_nearest_line): Don't try to cache
5191 information in sections that are not owned by a BFD. From Richard
5192 Henderson <richard@atheist.tamu.edu>.
5194 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
5195 from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
5196 * elflink.h (elf_link_output_extsym): Remove special check for
5199 * ecoffswap.h: Add prototypes for static functions.
5201 Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5203 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
5204 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
5206 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
5207 to satisfy a TOC16 relocation. Rewrite unsupported relocation
5208 support. Begin support for R_PPC_SDA{2,}REL.
5210 Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5212 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
5213 create the .got and .got.neg sections.
5214 (ppc_elf_size_dynamic_sections): Call it.
5215 (ppc_elf_check_relocs): Call it.
5216 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
5217 (ppc_elf_check_relocs): Add error messages for relocations we
5218 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
5221 Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5223 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
5224 section flags for V.4 and eabi.
5226 Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
5228 * elf.c (assign_file_positions_for_segments): If a segment
5229 contains no sections, don't mark it as readable.
5231 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
5232 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
5234 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
5235 dynamic section, if there is one.
5236 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
5237 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
5238 (bfd_elf64_swap_dyn_in): Likewise.
5239 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
5241 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
5243 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
5244 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
5245 <pirker@eiunix.tuwien.ac.at>.
5247 Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5249 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
5250 PowerPC V.4 and eabi.
5251 * bfd-in2.h: Regenerate.
5252 * libfd.h: Regenerate.
5254 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
5256 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
5257 section type and SHF_EXCLUDE section flag, turning them into the
5258 appropriate bfd section flag.
5260 Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
5262 * xcofflink.c (xcoff_link_add_symbols): Create the special
5263 sections if we see a DYNAMIC object, in case that is the only
5264 XCOFF input object we see.
5266 * elf32-mips.c: Extensive changes for a start at dynamic linking
5267 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
5269 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
5270 (struct elf_backend_data): Remove
5271 elf_backend_create_program_headers field. Add
5272 elf_backend_additional_program_headers and
5273 elf_backend_modify_segment_map fields.
5274 * elfxx-target.h (elf_backend_type_change_ok): Define if not
5276 (elf_backend_additional_program_headers): Likewise.
5277 (elf_backend_modify_segment_map): Likewise.
5278 (elf_backend_create_program_headers): Don't define.
5279 (elfNN_bed): Change to account for field changes.
5280 * elf.c (assign_file_positions_for_segments): Call new
5281 modify_segment_map backend function. Don't call old
5282 create_program_headers backend function.
5283 (get_program_header_size): Call additional_program_headers rather
5284 than create_program_headers.
5285 * elflink.h (elf_link_add_object_symbols): Initialize
5286 type_change_ok from new backend field.
5287 (elf_link_output_extsym): Don't warn if _rld_new_interface is
5289 (elf_reloc_link_order): Treat a reloc against a defined symbol as
5290 a reloc against the appropriate section.
5292 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
5293 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
5294 (elf_flags_init): Rename from elf_ppc_flags_init.
5295 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
5297 (ppc_elf_copy_private_bfd_data): Likewise.
5298 (ppc_elf_merge_private_bfd_data): Likewise.
5300 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
5303 Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
5305 * coff-alpha.c (alpha_relocate_section): During final link, allow
5306 output .lita section to be bigger than 64k by adjusting gp value
5307 on a per-input section basis.
5308 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
5310 (struct ecoff_section_tdata): Add gp field.
5312 Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
5314 Handle Alpha ECOFF changes in OSF/1 3.2.
5315 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
5317 * coff-alpha.c: Include "aout/ar.h".
5318 (alpha_ecoff_get_relocated_section_contents): Don't require an
5319 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
5320 3.2 doesn't generate one.
5321 (alpha_relocate_section): Likewise.
5322 (alpha_ecoff_slurp_armap): Define.
5323 (alpha_ecoff_slurp_extended_name_table): Define.
5324 (alpha_ecoff_construct_extended_name_table): Define.
5325 (alpha_ecoff_truncate_arname): Define.
5326 (alpha_ecoff_write_armap): Define.
5327 (alpha_ecoff_generic_stat_arch_elt): Define.
5328 (alpha_ecoff_update_armap_timestamp): Define.
5330 (alpha_ecoff_read_ar_hdr): New static function.
5331 (alpha_ecoff_get_elt_at_filepos): New static function.
5332 (alpha_ecoff_openr_next_archived_file): New static function.
5333 (alpha_ecoff_get_elt_at_index): New static function.
5334 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
5335 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
5336 _bfd_ecoff to alpha_ecoff.
5337 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
5338 field from backend structure, rather than always calling
5339 _bfd_get_elt_at_filepos.
5340 * coff-mips.c (mips_ecoff_backend_data): Initialize
5341 get_elt_at_filepos field.
5342 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
5343 from _bfd_generic_read_ar_hdr with minor changes.
5344 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
5345 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
5346 * libbfd.h: Rebuild.
5348 * bfd-in.h (BFD_IN_MEMORY): Define.
5349 * libbfd-in.h (struct bfd_in_memory): Define.
5350 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
5351 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
5352 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
5353 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
5354 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
5355 (bfd_get_size): Handle BFD_IN_MEMORY flag.
5356 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
5357 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
5358 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
5359 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
5361 (bfd_openstreamr): Likewise.
5362 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
5363 BFD_IN_MEMORY is not set.
5364 * riscix.c (riscix_some_aout_object_p): Likewise.
5365 * bfd-in2.h, libbfd.h: Rebuild.
5367 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
5368 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
5369 (bfd_get_elt_at_index): Define.
5370 * archive.c (_bfd_generic_get_elt_at_index): Rename from
5371 bfd_get_elt_at_index. Change index parameter from int to
5373 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
5374 (_bfd_noarchive_get_elt_at_index): Define.
5375 (_bfd_archive_bsd_get_elt_at_index): Define.
5376 (_bfd_archive_coff_get_elt_at_index): Define.
5377 * bfd-in2.h, libbfd.h: Rebuild.
5378 * aout-target.h (MY_get_elt_at_index): Define if not defined.
5379 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
5380 * ieee.c (ieee_get_elt_at_index): Define.
5381 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
5382 * oasys.c (oasys_get_elt_at_index): Define.
5383 * som.c (som_get_elt_at_index): Define.
5385 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
5386 numbers to the .text section.
5388 Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
5390 * ieee.c (ieee_write_debug_part): Change return type to boolean.
5391 If there is a SEC_DEBUGGING section, get the contents of the debug
5392 information part from it.
5393 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
5395 (ieee_write_object_contents): Check ieee_write_debug_part return.
5397 Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
5399 * config.bfd (i[345]86-*-freebsd*): Add target.
5400 * configure.in (i386freebsd_vec): Add vec.
5401 * configure: Regenerate.
5402 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
5403 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
5404 Rebuild dependencies..
5405 * freebsd.h: New file.
5406 * i386freebsd.c: New file.
5407 * targets.c (i386freebsd_vec): Declare.
5408 (bfd_target_vector): Add i386freebsd_vec.
5409 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
5410 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
5412 Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
5414 * ieee.c (ieee_slurp_debug): New static function.
5415 (ieee_object_p): Call it.
5416 (ieee_slurp_section_data): Skip debugging sections.
5417 (ieee_get_reloc_upper_bound): Likewise.
5418 (ieee_get_section_contents): Likewise.
5419 (ieee_canonicalize_reloc): Likewise.
5420 (ieee_write_section_part): Likewise.
5421 (ieee_write_debug_part): Likewise.
5422 (ieee_write_data_part): Likewise.
5423 (init_for_output): Likewise.
5425 Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
5427 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
5429 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
5430 relocs, since ppc_elf_relocate_section handles the linker case.
5431 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
5433 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
5434 ppc_elf_relocate_section since that is now the only caller.
5435 (ppc_elf_relocate_section): Ditto.
5437 Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
5439 * coffcode.h (coff_write_object_contents): If we don't know the
5440 section of the entry point for an XCOFF executable, always set the
5441 entry address to -1.
5443 Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5445 * elf.c (bfd_section_from_shdr): Add support for note sections.
5447 Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
5449 * bfd-in.h (struct _symbol_info): Add stab_type field.
5450 * bfd-in2.h: Rebuild.
5451 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
5453 * elf32-ppc.c: Remove trailing newline from calls to
5455 (ppc_elf_merge_private_bfd_data): Only warn about endianness
5456 difference if target endianness is known.
5458 Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5460 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
5461 old style TOC16 references without using R_PPC_GOT.
5462 (ppc_reloc_type): Ditto.
5463 (ppc_elf_reloc_type_lookup): Add support for TOC16.
5464 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
5465 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
5466 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
5467 (ppc_elf_check_relocs): New function for GOT/PLT support that is
5469 (ppc_elf_adjust_dynamic_symbol): Ditto.
5470 (ppc_elf_adjust_dynindx): Ditto.
5471 (ppc_elf_size_dynamic_sections): Ditto.
5472 (ppc_elf_finish_dynamic_symbol): Ditto.
5473 (ppc_elf_finish_dynamic_sections): Ditto.
5474 (ELF_DYNAMIC_INTERPRETER): Define.
5476 Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
5478 * elf.c (copy_private_bfd_data): When attaching sections to
5479 segments ignore sections that won't be allocated. Patch from
5482 Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
5484 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
5487 Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
5489 * coff-i960.c (CALC_ADDEND): Define.
5490 (coff_i960_relocate_section): Add the input section VMA to the
5491 addend for PC relative relocs.
5493 Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
5495 * peicode.h (pe_print_pdata): Must test the entire entry for zero
5496 to correctly terminate.
5498 Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
5500 * targets.c (enum bfd_endian): Define.
5501 (bfd_target): Rename byteorder_big_p to byteorder, and change it
5502 from boolean to enum bfd_endian. Change header_byteorder_big_p
5504 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
5505 (bfd_header_big_endian, bfd_header_little_endian): New macros.
5506 * bfd-in2.h: Rebuild.
5507 * All targets: Change initialization of byteorder and
5508 header_byteorder to use enum bfd_endian values rather than
5510 * All files: Change all references to byteorder_big_p and
5511 header_byteorder_big_p to use new bfd_*_endian macros.
5513 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
5515 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
5517 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
5519 Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
5521 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
5523 Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
5525 * ieee.c: Lots of minor cleanups. Make many functions return
5526 errors rather than calling abort. Also:
5527 (ieee_write_twobyte): Remove; change callers to call existing
5528 ieee_write_2bytes function.
5529 (ieee_write_expression): Don't output the section twice when
5530 outputting a local symbol. Don't emit an extraneous zero if there
5532 (ieee_slurp_sections): Set the lma as well as the vma.
5533 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
5535 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
5536 a recognized one or bfd_arch_unknown.
5537 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
5539 (ihex_get_symtab): Likewise.
5541 Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
5543 * aoutx.h: Include <ctype.h>.
5544 (struct aout_link_includes_table): Define.
5545 (struct aout_link_includes_totals): Define.
5546 (struct aout_link_includes_entry): Define.
5547 (aout_link_includes_lookup): Define macro.
5548 (struct aout_final_link_info): Add includes field.
5549 (aout_link_includes_newfunc): New static function.
5550 (NAME(aout,final_link)): Initialize includes hash table.
5551 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
5553 Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
5555 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
5557 Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
5559 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
5561 Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
5563 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
5564 (pe_print_private_bfd_data): call pe_print_reloc.
5565 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
5566 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
5567 up some debugging as well.
5569 Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
5571 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
5574 Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
5576 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
5577 when setting sections to NULL.
5579 Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
5581 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
5583 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
5584 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
5586 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
5587 * bfd-in2.h: Rebuild.
5589 Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
5591 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
5593 Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
5595 * ihex.c (ihex_scan): Handle record types 4 and 5.
5596 (ihex_object_p): Permit types 4 and 5.
5597 (ihex_set_section_contents): Remove check for out of range
5599 (ihex_write_object_contents): Generate types 4 and 5.
5601 * elflink.h (elf_link_output_extsym): Just ignore warning and
5602 indirect references to symbols which don't really exist.
5604 Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
5606 * peicode.h (pe_print_idata): Minor format fixes
5607 (pe_print_edata): New function. Under private printing, this formats
5608 the edata section of a PE file.
5609 (pe_print_private_bfd_data): Added call to pe_print_edata.
5611 Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
5613 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
5614 index, don't call stoi.
5616 Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
5618 * srec.c (srec_scan): Set lma as well as vma.
5620 * ihex.c: New file; support for Intel Hex format.
5621 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
5622 (ihex_vec): Declare.
5623 (bfd_target_vector): Always include ihex_vec.
5624 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
5625 * Makefile.in: Rebuild dependencies.
5626 (BFD_LIBS): Add ihex.o
5627 (BFD_LIBS_CFILES): Add ihex.c.
5628 * bfd-in2.h: Rebuild.
5630 * elf.c (assign_file_positions_for_segments): Sort the sections in
5632 (get_program_header_size): Return the right size if segment_map is
5634 (copy_private_bfd_data): Don't bother to sort the sections.
5636 * bfd.c (bfd_record_phdr): New function.
5637 * bfd-in.h (bfd_record_phdr): Declare.
5638 * bfd_in2.h: Rebuild.
5640 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
5643 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
5644 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
5646 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
5647 (bfd_zmalloc): Change declaration.
5648 * libbfd.h: Rebuild.
5649 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
5650 and realloc. Don't set bfd_error_no_memory if they fail.
5652 Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
5654 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
5655 uses as well. Added a new howto to deal with TOCREL16 relocs that
5656 are TOCDEFN as well.
5657 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
5658 to handle RVA relocs from dlltool.
5659 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
5660 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
5661 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
5663 * coffcode.h (coff_set_alignment_hook): check idata$X sections
5664 to get the right section alignment.
5666 Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
5668 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
5669 p_paddr if p_paddr is zero.
5670 (make_mapping): Set includes_filehdr and includes_phdrs for first
5672 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
5674 (assign_file_positions_for_segments): Handle includes_filehdr and
5675 includes_phdrs. Remove special handling of PT_PHDR and first
5677 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
5678 when appropriate. Remove special handling of PT_PHDR segment.
5679 Use a more complex condition for when a section is included in a
5680 segment to handle Solaris linker oddities.
5682 Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5684 * coff-m88k.c (howto_table): Reformatted for easier reading;
5685 special_function now points to new function m88k_special_reloc.
5686 (howto_hvrt16): Function previously used for handling HVRT16 relocs
5688 (rtype2howto): Do not add reloc's r_offset to the addend, this will
5689 be done correctly by m88k_special_reloc.
5690 (reloc_processing): New function to be used by RELOC_PROCESSING.
5691 (RELOC_PROCESSING): Define to call reloc_processing.
5693 Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
5695 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
5696 (pe_print_pdata): Likewise.
5698 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
5699 obstack_alloc fails.
5700 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
5702 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
5703 * Many files: don't set bfd_error_no_memory if one of the above
5706 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
5707 if p_paddr_valid is set.
5708 (copy_private_bfd_data): New static function.
5709 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
5711 * elf.c (assign_file_positions_for_segments): Fix case where extra
5712 program headers were allocated.
5714 * elf.c (_bfd_elf_print_private_bfd_data): New function.
5715 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
5716 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
5717 _bfd_elf_print_private_bfd_data.
5719 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
5720 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
5721 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
5722 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
5723 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
5724 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
5725 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
5727 Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
5729 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
5730 * elf.c (make_mapping): New static function.
5731 (map_sections_to_segments): New static function.
5732 (elf_sort_sections): New static function.
5733 (assign_file_positions_for_segments): New static function.
5734 (map_program_segments): Remove.
5735 (get_program_header_size): Remove sorted_hdrs, count, and
5736 maxpagesize parameters. Simplify.
5737 (assign_file_positions_except_relocs): When generating an
5738 executable, use assign_file_positions_for_segments.
5739 (elf_sort_hdrs): Remove.
5740 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
5741 to get_program_header_size.
5743 Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
5745 * hp300hpux.c (MY(callback)): Set lma as well as vma.
5747 * configure, config.in: Regenerate with autoconf 2.7.
5749 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
5750 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
5752 Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
5754 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
5755 (ecoff_sec_to_styp_flags): Likewise.
5756 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
5757 (ecoff_set_symbol_info): Handle scRConst.
5758 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
5759 (ecoff_compute_section_file_positions): Handle .rconst section.
5760 (_bfd_ecoff_write_object_contents): Likewise.
5761 (ecoff_link_check_archive_element): Handle scRConst.
5762 (ecoff_link_add_externals): Likewise.
5763 (ecoff_link_write_external): Handle .rconst section.
5764 (ecoff_reloc_link_order): Likewise.
5765 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
5766 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
5768 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
5770 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
5771 DEF_DYNAMIC flag is set.
5773 Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
5775 * host-aout.c: If TRAD_HEADER is defined, include it.
5777 Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
5779 * aclocal.m4 (AC_PROG_CC): Remove local definition.
5780 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
5781 (BFD_NEED_DECLARATION): New function.
5782 * configure.in: Use BFD_NEED_DECLARATION.
5783 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
5784 * configure, config.in: Rebuild with autoconf 2.6.
5786 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
5787 special_sections before returning when called with a non XCOFF
5790 * coffgen.c (coff_renumber_symbols): Sort common symbols with
5793 * coffcode.h (coff_compute_section_file_positions): Only pad the
5794 previous section to force file alignment when creating an
5797 Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
5799 * coffcode.h (coff_compute_section_file_positions): If
5800 RS6000COFF_C, set up the .debug section.
5802 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
5803 if it is not large enough to accomodate the entire TOC area with
5804 signed 16 bit offsets.
5805 (xcoff_write_global_symbol): Handle negative TOC offsets in global
5807 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
5808 TOC anchor to use the TOC value used in the output file.
5810 Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
5812 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
5813 (_bfd_coff_read_string_table): Likewise.
5815 Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
5817 * pe-arm.c: Fix typos.
5818 * coff-arm.c: Likewise.
5820 Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
5822 * coff-ppc.c (list_ele): Added "cat"egory member.
5823 (record_toc): New category parameter (priv or pub).
5824 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
5825 (ppc_process_before_allocation): Removed embrionic data-in-toc from
5826 the mainline. It addes extra toc cells in error.
5827 (ppc_coff_swap_sym_in_hook): Added some documentation.
5828 (dump_toc): Can now diagnose "virtual toc" chicanery.
5830 Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
5832 * elf-bfd.h (struct elf_link_hash_table): Change type of
5833 dynsymcount and bucketcount fields from size_t to bfd_size_type.
5835 Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
5837 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
5838 pointerize C_LEAFSTAT or C_LEAFEXT entries.
5840 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
5841 DT_INIT and DT_FINI entries if the _init or _fini symbol is
5842 defined or mentioned in a regular file.
5844 Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
5846 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
5847 (coff_ppc_relocate_section): Handle TOCDEFN attribute
5848 (coff_ppc_relocate_section): Correct REL24 handling
5849 (ppc_process_before_allocation): Correct TOCDEFN handling
5851 * peicode.h (dir_names): Added name descriptions
5853 Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
5855 * VERSION: Updated to cygnus-2.6.
5857 Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
5859 * targets.c (m68k4knetbsd_vec): Declare.
5861 Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
5863 * targets.c (bfd_target): Change type of second argument to
5864 _bfd_print_private_bfd_data from void * to PTR.
5865 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
5866 using PTR rather than void *.
5867 * bfd-in2, libbfd.h: Rebuild.
5868 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
5870 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
5871 _bfd_generic_bfd_print_private_bfd_data rather than casting
5874 Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
5876 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
5877 "DO NOT DELETE" lines or blank lines that mkdep writes on some
5879 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
5880 BFD64_BACKENDS_CFILES): New variables.
5883 Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
5885 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
5886 not at the file position of the first section.
5887 * coffcode.h (coff_compute_section_file_positions): Avoid using
5889 (coff_write_object_contents): When generating a PPC PE executable
5890 with no symbols, round up the file size to a COFF_PAGE_SIZE
5892 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
5893 don't write out a string table.
5895 * elf.c (bfd_section_from_shdr): When using a different section
5896 header, pass the new one to _bfd_elf_make_section_from_shdr.
5897 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
5898 (elf_map_symbols): Add section VMA to symbol value when comparing
5900 (_bfd_elf_compute_section_file_positions): Only build symbol table
5901 if there are some symbols. Set file offset of symtab and strtab
5903 (assign_file_positions_except_relocs): Remove dosyms parameter.
5904 Change all callers. Never set file offset of symtab and strtab
5906 (_bfd_elf_copy_private_section_data): New function.
5907 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
5908 (_bfd_elf_copy_private_symbol_data): New function.
5909 (swap_out_syms): Check for special mapping of st_shndx created by
5910 copy_private_symbol_data.
5911 * elfxx-target.h: Use new copy routines.
5912 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
5913 (_bfd_elf_copy_private_section_data): Declare.
5915 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
5917 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
5920 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
5921 _bfd_dummy_target, matching the recent change to archive
5924 Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
5926 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
5927 arithmetic on PTR types.
5929 * aout-target.h (MY(callback)): Set the lma of the sections.
5931 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
5932 symbol into a reloc against the section.
5934 Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
5936 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
5937 glue for the relocs: IMGLUE and IFGLUE.
5938 (record_toc): new function - tracks toc contents
5939 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
5940 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
5941 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
5942 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
5943 (ppc_record_toc_entry): Removed a debug define (duh)
5945 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
5946 (pe_print_idata): New function - formats the idata section data
5947 (pe_print_pdata): New function - formats the pdata section data
5948 (pe_print_private_bfd_data): calls to above
5950 Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
5952 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
5953 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
5954 TARGET_SYM and TARGET_NAME for vector and BFD name.
5955 * coff-pmac.c (pmac_xcoff_vec): Remove.
5956 (TARGET_SYM, TARGET_NAME): Define.
5957 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
5958 machine to 0, not all PowerMacs are 601s.
5960 Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
5962 * elfcode.h (elf_object_p): Read in any program headers.
5963 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
5964 based on the program headers, if any.
5965 (elf_fake_sections): Set sh_addr from the vma, not the lma.
5966 (map_program_segments): Set p_paddr of program headers based on
5969 Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
5971 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
5974 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
5975 trying to do a relocateable link with a non-a.out object file.
5977 * archive.c (bfd_generic_archive_p): Check the first object file
5978 in an archive even if target_defaulted is set. If the object file
5979 has the wrong xvec, reject it.
5981 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
5982 be represented, report the name via _bfd_error_handler.
5983 (translate_to_native_sym_flags): Likewise.
5984 * elf32-mips.c (mips_elf_final_link): Likewise.
5985 * oasys.c (oasys_write_sections): Likewise.
5987 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
5988 which checks for STYP_OVRFLO sections.
5989 (coff_compute_section_file_positions): If RS6000COFF_C, handle
5990 reloc and lineno count overflows.
5991 (coff_write_object_contents): Call coff_count_linenumbers before
5992 coff_compute_section_file_positions. If RS6000COFF_C, handle
5993 reloc and lineno count overflows.
5994 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
5995 relocs before dealing with .pad sections. Count overflow section
5996 headers when handling .pad sections.
5998 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
6001 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
6002 (struct xcoff_link_hash_table): Add descriptor_section and
6003 special_sections fields.
6004 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
6005 (xcoff_link_add_symbols): Set linkage section alignment. Create
6006 descriptor section. Check for magic symbol names (_text, etc.),
6007 and record them in special_sections if found. Set
6008 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
6009 descriptor field to point back to the function code symbol.
6010 (xcoff_sweep): Always mark the special descriptor_section.
6011 (bfd_xcoff_export_symbol): Check whether the symbol might be a
6012 function descriptor, and mark it if it is.
6013 (bfd_xcoff_size_dynamic_sections): Add new special_sections
6014 parameter, and fill it in. Allocate space for the descriptor
6016 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
6017 global linkage code. If an undefined function descriptor is
6018 exported, arrange to define it. Warn about any other undefined
6020 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
6021 (xcoff_write_global_symbol): Create a function descriptor when
6023 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
6024 * bfd-in2.h: Rebuild.
6026 Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
6028 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
6029 (ppc_coff_link_hash_table): new types for hashing
6030 (ppc_coff_link_hash_newfunc): hash entry constructor
6031 (ppc_coff_link_hash_table_init): hash table initializer
6032 (ppc_coff_link_hash_table_create): hash table constructor
6033 (ppc_record_toc_entry): changed references to hash table
6034 (coff_ppc_relocate_section): changed references to hash table
6036 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
6037 * libcoff.h: Rebuild
6039 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
6040 (coff_link_add_symbols): removed toc_offset init
6042 Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
6044 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
6047 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
6048 if it is given and mmep is available.
6049 * acconfig.h: Undef USE_MMAP.
6050 * configure, config.in: Regenerated.
6051 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
6052 table handling the old way.
6053 (aout_get_external_symbols): Don't complain if last byte of string
6055 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
6056 (bfd_free_window) [! USE_MMAP]: Don't define.
6057 (bfd_get_file_window,
6058 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
6060 Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
6062 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
6065 Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
6067 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
6068 compatible with AMD generated COFF files. Try to support both AMD
6069 and GNU formats simultaneously.
6070 (coff_a29k_relocate_section): Likewise.
6072 * libbfd.c (bfd_get_file_window): Change writable parameter from
6073 int to boolean; update all callers. Pass MAP_SHARED if not
6074 writable--it's required on Solaris. Cast fprintf argument to
6076 * bfd-in.h (bfd_get_file_window): Update declaration.
6077 * bfd-in2.h: Rebuild.
6078 * aoutx.h: Update calls to bfd_get_file_window.
6080 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
6082 (xcoff_swap_ldhdr_in): New static function.
6083 (xcoff_swap_ldsym_in): New static function.
6084 (xcoff_find_reloc): Handle the case of a single reloc correctly.
6085 (xcoff_link_add_symbols): If we just created a descriptor, pass it
6086 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
6087 Handle XTY_ER/XMC_XO symbols correctly.
6088 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
6089 rather than normal symbol table.
6090 (bfd_xcoff_import_symbol): It's not an error if the symbol is
6091 already defined with the same absolute value.
6092 (xcoff_mark): When considering called symbols, check whether the
6093 descriptor is from a dynamic object, rather than the symbol
6095 (xcoff_build_ldsyms): Likewise.
6097 * libbfd.c (bfd_get_file_window): Change return type to boolean.
6098 Cast realloc and malloc return values. If malloc or realloc fail,
6099 set bfd_error_no_memory.
6100 * bfd-in.h (bfd_get_file_window): Change type to boolean.
6101 * bfd-in2.h: Rebuild.
6103 Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
6105 * coff-ppc.c (ppc_record_toc_entry): new function.
6106 (in_reloc_p): changed return value.
6107 (coff_ppc_relocate_section): much rework.
6108 (ppc_allocate_toc_section): new function.
6109 (ppc_process_before_allocation): new function.
6110 (ppc_coff_swap_sym_in_hook): new function.
6112 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
6113 (coff_link_add_symbols): initialize toc_offset.
6115 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
6116 (coff_swap_aouthdr_out): Added more sections to the data
6117 dictionary for the pe file header. Also changed linker version
6118 number on the ppc side.
6119 (dir_names): small improvements to the dictionary printing.
6120 (pe_mkobject_hook): save the file level flags.
6122 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
6123 (pe_tdata): added real_flags field
6124 (coff_tdata): added local_toc_sym_map and access macro
6126 * libcoff.h (coff_link_hash_entry): added toc_offset field
6127 (pe_tdata): added real_flags field
6128 (coff_tdata): added local_toc_sym_map and access macro
6130 * coffcode.h (coff_set_alignment_hook): added hook for PE.
6131 (coff_mkobject): init for local_toc_sym_map
6132 (coff_write_object_contents): set the internal_a.magic to
6133 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
6136 Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
6138 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
6139 entries until both the line number address and the function name
6140 address are too large.
6142 * configure.in: Call AC_CHECK_PROG to find and cache AR.
6143 * configure: Rebuilt.
6145 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
6146 is defined in the environment.
6148 Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
6150 * som.c (som_get_section_contents_in_window): Define to use
6153 Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
6155 * coff-i860.c: New file, based on coff-i386.c.
6156 * cpu-i860.c: New file, based on cpu-i386.c.
6157 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
6158 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
6159 targets, using i860coff_vec.
6160 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
6161 trad-core.o and hosts/i860mach3.h.
6162 (i860coff_vec): Use coff-i860.o and cofflink.o.
6163 * configure: Rebuild.
6164 * Makefile.in: Rebuild dependencies.
6165 (ALL_MACHINES): Add cpu-i860.o.
6166 (BFD32_BACKENDS): Add coff-i860.o.
6167 (CFILES): Add cpu-i860.c and coff-i860.c.
6168 * targets.c (i860coff_vec): Declare.
6169 (bfd_target_vector): Add &i860coff_vec.
6170 * archures.c (bfd_i860_arch): Declare.
6171 (bfd_archures_list): Add &bfd_i860_arch.
6172 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
6173 (coff_set_flags): Handle bfd_arch_i860.
6174 (coff_write_object_contents): Handle I860 a.out magic number.
6176 Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
6178 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
6179 the created .tc section to 2.
6180 (xcoff_mark): Don't keep a .loader reloc for a call to an
6181 undefined symbol when creating a shared library.
6182 (xcoff_build_ldsyms): When creating a shared library, generate
6183 global linkage code for a call to an undefined symbol.
6185 Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
6187 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
6188 BFD32_BACKENDS, BFD64_BACKENDS.
6189 (.dep1): Put mkdep output in a separate file.
6190 Rebuilt dependencies.
6192 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
6195 Permit use of mmap when available:
6197 * configure.in: Check for mmap, madvise, mprotect.
6198 * config.in, configure: Regenerated.
6200 * libbfd.c (struct _bfd_window_internal): Define type.
6201 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
6203 (ok_to_map): New static variable for debugging.
6204 (_bfd_generic_get_section_contents_in_window): New function.
6205 * bfd-in.h (bfd_window_internal): Declare type.
6206 (bfd_window): Define type.
6207 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
6208 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
6211 * libaout.h (struct aoutdata): Add two window fields.
6212 (obj_aout_sym_window, obj_aout_string_window): New macros.
6213 * aoutx.h (some_aout_object_p): Initialize windows.
6214 (aout_get_external_symbols): Get symbol data and strings in
6215 windows instead of explicitly allocated buffers.
6216 (slurp_symbol_table): Free window instead of memory.
6217 (bfd_free_cached_info): Release windows instead of freeing storage
6219 (aout_link_free_symbols): Ditto.
6221 * targets.c (bfd_target): Add new field for
6222 get_section_contents_in_window.
6223 (BFD_JUMP_TABLE_GENERIC): Updated.
6224 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
6225 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
6226 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
6227 macros for get_section_contents_in_window field.
6229 Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
6231 * core.c: Renamed to corefile.c
6232 * makefile.dos (OBJS): Change core.o to corefile.o
6233 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
6236 Sat Nov 4 10:16:54 1995 Stu Grossman (grossman@cygnus.com)
6238 * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to
6239 targ_selvecs to allow debugging under Irix-5 native.
6242 Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
6244 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
6245 to o. Clobber and restore the list of new csects around the call
6246 to _bfd_generic_link_add_one_symbol, in case it wants to report a
6247 linker error and the linker wants to read the symbol table. Reset
6248 the line number count of a real section even if it has no relocs.
6249 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
6251 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
6254 Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
6256 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
6257 an undefined symbol in a shared link.
6259 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
6260 oldtype from bfd_link_order_type to bfd_link_hash_type. From
6261 phdm@info.ucl.ac.be (Philippe De Muyter).
6263 Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
6265 * coff-m88k.c (rtype2howto): New static function.
6266 (RTYPE2HOWTO): Use it rather than a macro definition.
6268 * coffcode.h (coff_write_object_contents): set internal_a.magic
6269 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
6271 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
6272 define TRAD_HEADER to new file hosts/delta68.h.
6273 m88*-motorola-sysv*, however, does use ptrace-core.o.
6274 * hosts/delta68.h: New file.
6276 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
6277 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
6279 Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
6281 * i386linux.c (MY(vec)): Declare before use.
6283 Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
6285 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
6286 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
6288 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
6289 BFD is not of the right type.
6290 (bfd_elf_get_needed_list): Likewise.
6291 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
6292 * sunos.c (bfd_sunos_get_needed_list): Likewise.
6293 * xcofflink.c (XCOFF_XVECP): Define.
6294 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
6296 (bfd_xcoff_import_symbol): Likewise.
6297 (bfd_xcoff_export_symbol): Likewise.
6298 (bfd_xcoff_link_count_reloc): Likewise.
6299 (bfd_xcoff_record_link_assignment): Likewise.
6300 (bfd_xcoff_size_dynamic_sections): Likewise.
6302 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
6303 table index against the number of symbols for a base relative
6306 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
6308 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
6309 full_aouthdr flag here...
6310 (_bfd_xcoff_bfd_final_link): ...not here.
6312 Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
6314 * libelf.h: Rename to elf-bfd.h to avoid conflict with
6315 systems that have a system <libelf.h>.
6316 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
6317 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
6318 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
6319 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
6320 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
6321 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
6322 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
6324 Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
6326 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
6327 set, set BSF_WEAK in symbol. Change all callers.
6328 (ecoff_get_extr): Set weakext based on BSF_WEAK.
6329 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
6330 _bfd_generic_link_add_one_symbol.
6331 (ecoff_indirect_link_order): Check that the section tdata relocs
6332 are not NULL before using them.
6334 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
6335 define TRAD_HEADER as hosts/alphalinux.h.
6336 * configure: Rebuild.
6337 * hosts/alphalinux.h: New file.
6338 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
6341 Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
6343 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
6344 C_ECOMM storage classes.
6346 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
6348 (xcoff_mark): Call xcoff_mark_symbol.
6349 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
6350 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
6352 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
6354 Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
6356 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
6358 (xcoff_find_reloc): New static function.
6359 (xcoff_link_add_symbols): Use it.
6360 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
6361 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
6362 relocate the value of C_DECL.
6364 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
6366 Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
6368 * cofflink.c (_bfd_coff_generic_relocate_section): Make
6369 callback decide what goes in .relocs.
6370 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
6371 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
6374 Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
6376 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
6379 Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
6381 * xcofflink.c: More improvements, mostly to fix handling of
6382 constructors and a few other special cases.
6383 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
6384 zero, reverting yesterday's change.
6385 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
6386 (bfd_xcoff_link_count_reloc): Declare.
6387 (bfd_xcoff_record_link_assignment): Declare.
6388 * bfd-in2.h: Rebuild.
6390 Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
6392 * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
6393 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
6394 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
6395 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
6396 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
6397 Change PAGE_SIZE to TARGET_PAGE_SIZE.
6399 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
6402 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
6403 segments includes the a.out header. See to that the magic number
6404 *always* is big-endian.
6406 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
6407 m68k4k NetBSD configurations.
6409 * configure.in, configure: Separate i386 & mips NetBSD
6410 configurations from other BSD ones. Don't assume DEC is the only
6411 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
6412 configurations. Add support for m68k4k NetBSD object format.
6414 * libaout.h: Added M_68K4K_NETBSD magic.
6416 * m68k4knetbsd.c: New file.
6418 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
6420 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
6423 * hosts/mipsnbsd.h: New file.
6426 Fri Oct 27 09:41:51 1995 Stu Grossman (grossman@cygnus.com)
6428 * config.bfd: Add config stuff for mips*-*-magic* to set
6429 targ_defvec to ecoff_big_vec.
6432 Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
6434 * xcofflink.c: Numerous changes to get closer to a working XCOFF
6436 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
6437 toc_section, and entry_section fields.
6438 (struct xcoff_section_tdata): Remove ldrel_count field.
6439 * libcoff.h: Rebuild.
6440 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
6442 (coff_compute_section_file_positions): If RS6000COFF_C, generate
6443 full a.out header if full_aouthdr is set in xcoff_data.
6444 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
6445 based on sections stored in xcoff_data.
6446 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
6448 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
6449 (rs6000coff_vec): Set symbol_leading_char to '.'.
6450 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
6451 value stored in ret rather than returning a pointer value.
6453 Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6455 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
6458 Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
6460 * som.c (som_slurp_string_table): Allocate the strings with malloc
6461 since they're free'd by free_cached_info.
6462 (som_slurp_symbol_table): Similarly for the symbol table.
6464 Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
6466 * Makefile.in (diststuff): Don't make headers.
6468 Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
6470 * Makefile.in: Rebuild dependencies.
6472 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
6473 output_bfd is not SunOS.
6474 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
6475 non-SunOS input files.
6477 * xcofflink.c: Extensive changes to support linking shared objects
6478 and generating a .loader section.
6479 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
6480 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
6481 last_symndx, and ldrel_count fields.
6482 * libcoff.h: Rebuild.
6483 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
6484 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
6486 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
6487 (bfd_xcoff_export_symbol): Declare.
6488 (bfd_xcoff_size_dynamic_sections): Declare.
6489 * bfd-in2.h: Rebuild.
6491 Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
6493 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
6494 * configure: Rebuild.
6495 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
6496 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
6498 (pmac_xcoff_vec): Update to use new xcoff support.
6499 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
6500 (xcoff_write_armap): Declare buf as unsigned char.
6501 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
6503 * mpw-make.sed: Generalize subdir_do edit.
6505 Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
6507 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
6508 correctly. Don't initialize asect->vma.
6510 Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
6512 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
6513 something a little less than the page size.
6515 Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
6517 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
6519 Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
6521 * coff-i386.c (coff_i386_reloc_type_lookup): New.
6522 * coffcode.h (coff_write_object_contents): If .bss is before
6523 .data us that as data_start.
6524 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
6526 * peicode.h (add_data_entry): Use _cooked_size of data directory.
6527 (coff_swap_outhdr_out): Hardwire in version number.
6529 Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
6531 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
6532 major and minor to *_vno, since the former are also macros in
6533 SunOS header files. Cast result of bfd_alloc to appropriate
6536 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
6537 before assigning to sec_data.
6539 Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
6541 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
6542 now relative to the section, not absolute.
6543 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
6544 get the file name when there is a N_SO directory name. When
6545 handling stabs, remember that section->vma was added to the
6548 Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
6550 * sunos.c (struct sunos_link_hash_table): Add needed field.
6551 (sunos_link_hash_table_create): Call bfd_release, not free.
6552 (sunos_link_hash_table_create): Initialize needed field.
6553 (sunos_add_dynamic_symbols): Record needed objects.
6554 (bfd_sunos_get_needed_list): New function.
6555 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
6556 * bfd-in2.h: Rebuild.
6558 Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
6560 * libcoff-in.h (pe_data_type.in_reloc_p): New.
6562 Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
6564 * bfd-in.h (struct bfd_link_needed_list): Rename from
6565 bfd_elf_link_needed_list.
6566 * bfd-in2.h: Rebuild.
6567 * elf.c, elflink.h, libelf.h: Corresponding changes.
6569 Add start at AIX linker support; no shared libraries yet.
6570 * xcofflink.c: New file.
6571 * configure.in (rs600coff_vec): Use xcofflink.o.
6572 * configure: Rebuild.
6573 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
6575 (struct xcoff_section_tdata): Define.
6576 (xcoff_section_data): Define macro.
6577 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
6578 (_bfd_xcoff_bfd_link_add_symbols): Declare.
6579 (_bfd_xcoff_bfd_final_link): Declare.
6580 (_bfd_ppc_xcoff_relocate_section): Declare.
6581 * libcoff.h: Rebuild.
6582 * coff-rs6000.c: Clean up a bit.
6583 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
6584 cputype, csects, and debug_indices.
6585 (xcoff_copy_private_bfd_data): Copy cputype.
6586 (xcoff_howto_table): Rename from rs6000coff_howto_table.
6587 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
6588 (xcoff_reloc_type_lookup): Rename from
6589 rs6000coff_reloc_type_lookup.
6590 (coff_relocate_section): Define.
6591 (_bfd_xcoff_sizeof_headers): Define.
6592 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
6593 (_bfd_xcoff_bfd_relax_section): Define.
6594 (_bfd_xcoff_bfd_link_split_section): Define.
6595 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
6597 * coffcode.h (coff_compute_section_file_positions): If AIX,
6598 increment sofar by SMALL_AOUTSZ if not executable.
6599 (coff_write_object_contents): If AIX, always output an a.out
6600 header; if not executable, header size of SMALL_AOUTSZ.
6601 * hash.c (struct bfd_strtab_hash): Add xcoff field.
6602 (_bfd_stringtab_init): Initialize xcoff field.
6603 (_bfd_xcoff_stringtab_init): New function.
6604 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
6605 (_bfd_stringtab_emit): In XCOFF mode, write out length.
6606 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
6607 * libbfd.h: Rebuild.
6608 * Makefile.in: Rebuild dependencies.
6609 (BFD32_BACKENDS): Add xcofflink.o.
6610 (CFILES): Add xcofflink.c.
6612 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
6613 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
6614 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
6616 Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6618 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
6620 Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
6622 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
6623 * config.in: Regenerated.
6625 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
6626 (_bfd_chunksize): New variable.
6627 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
6628 for obstack chunk size.
6629 * configure.in: Check for getpagesize.
6630 * configure: Regenerated.
6632 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6634 * trad-core.c (rawptr): Make it a local variable of
6635 ptrace_unix_core_file_p.
6637 Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
6639 * coff-arm.c (in_reloc_p): New.
6640 * coff-i386.c (in_reloc_p): New.
6641 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
6642 (coff_write_object_contents): Only set has_reloc_section
6644 * cofflink.c (_bfd_coff_generic_relocate_section): Call
6645 in_reloc_p to decide if reloc should be emitted.
6646 * libcoff.h (pe_data_type.in_reloc_p): New.
6647 * peicode.h (pe_mkobject): Initialize in_reloc_p.
6649 Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
6651 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
6652 (_bfd_coff_read_internal_relocs): Likewise.
6653 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
6654 (_bfd_coff_read_internal_relocs): Likewise.
6656 * elflink.h (elf_link_add_object_symbols): Correct conditions
6657 under which type and size change warnings are issued.
6659 Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
6661 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
6662 a symbol which is not in a real section.
6663 (coff_write_native_symbol): Corresponding change.
6665 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
6666 coff_link_hash_newfunc and make non-static.
6667 (_bfd_coff_link_hash_table_init): New function, broken out of
6668 _bfd_coff_link_hash_table_create.
6669 (_bfd_coff_link_hash_table_create): Use it.
6670 (process_embedded_commands): Make static.
6671 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
6672 (_bfd_coff_link_hash_table_init): Declare.
6673 * libcoff.h: Rebuild.
6675 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
6676 field in XCOFF tdata.
6677 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
6678 U802ROMAGIC, for clarity. Try to set arch and machine correctly
6679 based on cputype stored in a.out header, or in n_type of initial
6681 (coff_write_object_contents): Set cputype correctly in a.out
6683 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
6685 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
6686 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
6688 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
6689 * libcoff.h: Rebuild.
6691 * cpu-rs6000.c (rs6000_compatible): New static function.
6692 (bfd_rs6000_arch): Use it.
6693 * cpu-powerpc.c (powerpc_compatible): New static function.
6694 (arch_info_struct): Define various flavours of PowerPC.
6695 (bfd_powerpc_arch): Use powerpc_compatible. Point at
6698 Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
6700 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
6702 Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
6704 * elflink.h (elf_link_add_object_symbols): Don't warn about
6705 changing the size or type if the old definition was weak.
6707 Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
6709 * coffcode.h (combined_entry_type): Add fix_line field.
6710 (coff_slurp_line_table): Warn if we try to set the lineno field of
6712 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
6713 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
6714 * coffgen.c (coff_mangle_symbols): Handle fix_line.
6715 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
6717 (coff_print_symbol): Print fix_value symbols in a useful fashion.
6718 * libcoff.h: Rebuild.
6720 * libcoff-in.h (struct xcoff_tdata): Define.
6721 (xcoff_data): Define.
6722 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
6723 * bfd-in2.h, libcoff.h: Rebuild.
6724 * coff-rs6000.c (xcoff_mkobject): New static function.
6725 (coff_mkobject): Define.
6726 (xcoff_copy_private_bfd_data): New static function.
6727 (coff_bfd_copy_private_bfd_data): Define.
6728 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
6730 (rs6000coff_vec): Add DYNAMIC to object_flags.
6731 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
6732 .loader sections specially.
6733 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
6734 section alignment from the XCOFF tdata information.
6735 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
6736 F_SHROBJ, and copy the extra a.out header information into the
6737 XCOFF tdata structure.
6738 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
6739 F_DYNLOAD and the extra a.out header information.
6740 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
6741 C_HIDEXT symbol with attached csect information.
6742 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
6743 in the o_maxdata field.
6744 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
6745 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
6746 end if BSF_NOT_AT_END is set.
6748 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
6749 _bfd_read_ar_hdr_fn.
6750 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
6751 * bfd-in2.h, libbfd.h: Rebuild.
6752 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
6754 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
6755 (bfd_slurp_bsd_armap_f2): Likewise.
6756 (_bfd_slurp_extended_name_table): Likewise.
6758 Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
6760 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6762 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
6763 when the symbol table is empty.
6765 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
6766 space for section symbols, since we don't output them either.
6767 (elf_m68k_adjust_dynindx): Removed.
6769 * ptrace-core.c (rawptr): Make it a local variable of
6770 ptrace_unix_core_file_p.
6772 Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6774 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
6777 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
6778 Mac object file formats.
6780 Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
6782 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
6783 auxent if there isn't one.
6784 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
6785 rather than FILNMLEN as the maximum name length.
6787 * coffcode.h (bfd_coff_backend_data): Add new field
6788 _bfd_coff_print_aux.
6789 (bfd_coff_print_aux): New static function.
6790 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
6791 scnlen field of an XTY_LD csect aux entry.
6792 (coff_print_aux): New static function.
6793 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
6794 in coff_pointerize_aux_hook.
6795 (bfd_coff_std_swap_table): Initialize new field.
6796 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
6797 * libcoff.h: Rebuild.
6798 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
6799 * coff-mips.c (mips_ecoff_backend_data): Likewise.
6801 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
6802 if there are symbols, for native AIX ld compatibility.
6804 * coffcode.h (bfd_coff_backend_data): Add new field
6805 _bfd_coff_pointerize_aux_hook.
6806 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
6807 or I960, and as 0 otherwise.
6808 (bfd_coff_std_swap_table): Initialize new field.
6809 * libcoff.h: Rebuild.
6810 * coffgen.c (coff_pointerize_aux): Change parameters to take
6811 symbol pointer instead of type and class, and to take aux index.
6812 Call _bfd_coff_pointerize_aux_hook if it is defined.
6813 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
6814 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
6815 * coff-mips.c (mips_ecoff_backend_data): Likewise.
6817 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
6818 read-only/host-only support.
6820 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
6822 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
6825 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
6826 BFD_JUMP_TABLE_ARCHIVE accordingly.
6827 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
6828 (_bfd_compute_and_write_armap): Declare.
6829 (_bfd_generic_read_ar_hdr): Declare.
6830 (_bfd_read_ar_hdr): Define.
6831 (_bfd_noarchive_read_ar_hdr): Define.
6832 (_bfd_archive_bsd_read_ar_hdr): Define.
6833 (_bfd_archive_coff_read_ar_hdr): Define.
6834 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
6835 _bfd_read_ar_hdr instead.
6836 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
6837 (_bfd_compute_and_write_armap): Rename from
6838 compute_and_write_armap. Make non-static. Change all callers.
6839 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
6840 than _bfd_snarf_ar_hdr.
6841 * aout-target.h (MY_read_ar_hdr): Define if not defined.
6842 * ieee.c (ieee_read_ar_hdr): Define.
6843 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
6844 * oasys.c (oasys_read_ar_hdr): Define.
6845 * som.c (som_read_ar_hdr): Define.
6846 * bfd-in2.h, libbfd.h: Rebuild.
6848 Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
6850 * peicode.c (coff_swap_filehdr_in): If symptr is
6851 zero, there aren't any symbols, even if nsyms is set.
6853 Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
6855 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
6857 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
6858 sections, and set styp correctly for them: .got, .hash, .dynamic,
6859 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
6860 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
6862 (ecoff_sort_hdrs): New static function.
6863 (ecoff_compute_section_file_positions): Return boolean, not void.
6864 Sort the sections by VMA before looking through them. Put the
6865 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
6866 section on an appropriate boundary within the page.
6867 (ecoff_compute_reloc_file_positions): Check return value of
6868 ecoff_compute_section_file_positions.
6869 (_bfd_ecoff_set_section_contents): Likewise.
6870 (_bfd_ecoff_write_object_contents): Check for various Alpha
6871 section types when incrementing text_size and data_size. Call
6872 adjust_headers backend function if it exists.
6873 * coff-alpha.c (alpha_adjust_headers): New static function.
6874 (alpha_ecoff_backend_data): Initialize adjust_headers field.
6875 * coff-mips.c (mips_ecoff_backend_data): Likewise.
6877 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
6879 Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
6881 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
6882 of ALTERNATE_AIX_CORE_FORMAT.
6883 * configure.in (aix4): No longer need CORE_FLAGS.
6884 * configure: Updated.
6886 Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
6888 NS32k changes from Ian Dall:
6889 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
6891 (aout_link_input_section_std, aout_link_input_section_ext,
6892 aout_link_reloc_link_order): Call them instead of _bfd_*
6894 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
6896 (backend_data): Use it instead of hardcoded zero.
6898 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
6899 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
6901 * ns32knetbsd.c: Include bfd.h.
6902 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
6903 (MY_bfd_reloc_type_lookup): Declare function too.
6904 * pc532-mach.c (set_sizes): Don't declare.
6905 (MY_text_includes_header, MY_exec_header_not_counted): Define.
6906 (backend_data, MY_backend_data): Don't define.
6908 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
6909 ns32k-*-lites* like ns32k-*-netbsd*.
6911 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
6914 Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
6916 * coffcode.h (coff_write_object_contents): Restore setting
6917 f_timdat to 0, deleted on August 22.
6919 Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
6921 * coffcode.h (coff_bfd_copy_private_symbol_data,
6922 coff_bfd_copy_private_section_data,
6923 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
6924 * peicode.h (coff_bfd_copy_private_bfd_data): New
6925 (pe_bfd_copy_private_bfd_data): New.
6926 (coff_swap_scnhdr_in): Swap bss size into the right place.
6927 (pe_print_private_bfd_data): Add some newlines.
6929 Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
6931 * som.c (setup_sections): Don't die if a space has no subspaces.
6933 Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
6935 * elflink.h (elf_link_add_object_symbols): Don't let a weak
6936 dynamic symbol override a common symbol. Don't change the size or
6937 type if they have been set and the new symbol is not a definition.
6938 Warn if the size or type changes.
6940 Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
6942 * som.c (som_begin_writing): Don't write the symbol table or
6944 (som_finish_writing): Write them here. Place them after the
6945 subspace data, but before the relocs.
6947 Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
6949 * sunos.c (sunos_add_one_symbol): Just pass false, not
6950 info->shared_library, to sunos_create_dynamic_sections.
6951 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
6953 (sunos_check_dynamic_reloc): Remove .text section assertion.
6955 Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
6957 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
6958 * configure, configure.in: Add pmac_xcoff_vec case.
6959 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
6960 * coff-pmac.c: New file, PowerMac XCOFF support.
6961 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
6962 * targets.c (pmac_xcoff_vec): Declare.
6964 * mpw-config.in: Various changes to be compatible with the
6965 autoconf-based configury.
6966 * mpw-make.sed: New file, sed commands to translate Unix
6967 makefile into MPW syntax.
6968 * mpw-make.in: Remove.
6969 * hosts/mpw.h: Remove.
6970 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
6971 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
6973 Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
6975 * binary.c (binary_get_symtab): Return an empty string on error.
6976 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
6978 Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
6980 * coff-ppc.c: Reformatted according to gnu conventions
6981 Removed irrelevant "if 0" code
6983 Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
6985 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
6986 symbols rather than as indirect symbols.
6987 (MY(slurp_symbol_table)): Don't do anything special about
6990 * coffcode.h (coff_new_section_hook): Make sure that the alignment
6991 of .ctors and .dtors sections is no larger than 2.
6993 * sunos.c (sunos_add_one_symbol): Don't change
6994 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
6996 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
6997 dynamic symbols when creating a shared library.
6998 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
7000 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
7001 written even if it is not defined in a regular object.
7002 (sunos_write_dynamic_symbol): Use plt_offset for the address of
7003 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
7004 rather than the constant 22.
7005 (sunos_check_dynamic_reloc): Handle creating a shared library.
7006 (sunos_finish_dynamic_link): Set the first entry in the GOT to
7007 zero when creating a shared library.
7008 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
7009 write it out at the start of the symbol table.
7011 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
7013 Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
7015 * config.bfd: Add arm-*-coff.
7016 * configure.in, configure: Add armcoff_{little,big}_vec.
7017 * targets.c (armcoff_{little,big}_vec): Declare.
7018 (bfd_target_vector): Add armcoff_{little,big}_vec.
7019 * coff-arm.c (armcoff_{little,big}_vec): Always define.
7021 Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
7023 * targets.c (bfd_find_target): Remove debugging code.
7025 Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
7027 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
7029 * Makefile.in: added *-ppc files
7030 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
7031 allow pe based .o's to be shared with other tools on ppc/NT
7032 * config.bfd: added powerpc[le]-[pe|winnt] config support
7033 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
7034 * peicode.h: Added more section flags for PE on ppc
7035 Added coff_swap_filehdr_out to allow peicode.h to be
7036 used for non-image PE files on ppc.
7037 Check for image, or not, before copying pe_opthdr
7038 * targets.c: Added new bfd's
7039 * targets.c: Removed two inactive bfds that shouldn't have made it this
7042 Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7044 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
7045 explicit values to initialize all relocs. Change all users.
7046 (ppc_elf_brtaken_inner): New function to handle branch predicition
7048 (ppc_elf_brtaken_reloc): Ditto.
7049 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
7050 relocs use ppc_elf_unsupported_reloc.
7051 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
7052 needs to be reported.
7053 (ppc_elf_relocate_section): Support branch prediction relocs.
7055 Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
7057 * bfd.c (bfd_assert): Remove \n from string passed to
7060 * coff-i386.c: (TWO_DATA_SECS): Don't define.
7061 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
7062 (bfd_coff_make_section_hook): Don't define.
7063 (coff_make_section_hook): Remove.
7064 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
7065 (styp_to_sec_flags): Likewise.
7066 (coff_write_object_contents): Likewise.
7067 (bfd_coff_std_swap_table): Don't initialize make_section_hook
7069 * libcoff.h: Rebuild.
7070 * coffgen.c (make_a_section_from_file): Just call
7071 bfd_make_section_anyway, not bfd_make_section or
7072 bfd_coff_make_section_hook.
7073 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
7074 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
7075 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
7076 make_section_hook field.
7077 * coff-mips.c (mips_ecoff_backend_data): Likewise.
7079 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
7080 pointers into value field for warning and indirect symbols; just
7081 leave the value field alone.
7082 * linker.c (generic_link_add_symbol_list): Use next symbol for
7083 warning and indirect symbols, rather than looking in symbol value.
7084 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
7085 parameter. Change all callers. Remove support for indirect
7086 symbols; it didn't work anyhow.
7087 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
7088 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
7089 * bfd-in2.h: Rebuild.
7091 Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7093 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
7094 go back to telling the tools this reloc operates on 32 bits.
7096 Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
7098 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
7099 rather than a direct fprintf.
7100 * archive.c (_bfd_write_archive_contents): Likewise.
7101 * coffcode.h (coff_slurp_symbol_table): Likewise.
7102 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
7103 (ppc_elf_unsupported_reloc): Likewise.
7104 (ppc_elf_relocate_section): Likewise.
7105 * i386linux.c (linux_tally_symbols): Likewise.
7106 (linux_finish_dynamic_link): Likewise.
7107 * osf-core.c (osf_core_core_file_p): Likewise.
7108 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
7109 * som.c (som_sizeof_headers): Likewise.
7110 * srec.c (srec_bad_byte): Likewise.
7111 * bfd.c (bfd_assert): Likewise. Also change file to be const.
7112 * libbfd-in.h (bfd_assert): Declare first parameter const.
7113 * libbfd.h: Rebuild.
7114 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
7115 bfd_reloc_overflow is enough.
7116 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
7117 * coff-h8500.c (rtype2howto): Likewise.
7118 * coff-z8k.c (rtype2howto): Likewise.
7119 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
7120 * elf.c (_bfd_elf_get_lineno): Likewise.
7121 (_bfd_elf_no_info_to_howto): Likewise.
7122 (_bfd_elf_no_info_to_howto_rel): Likewise.
7123 * hp300hpux.c (convert_sym_type): Likewise.
7124 (MY(swap_std_reloc_in)): Likewise.
7125 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
7127 * libaout.h (struct aoutdata): Add line_buf field.
7128 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
7129 and filename_buffer. Instead, use a malloc buffer stored in the
7130 new line_buf field. Remove length restrictions.
7132 * coffgen.c (string_size): Remove static variable.
7133 (debug_string_size, debug_string_section): Likewise.
7134 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
7135 and debug_string_size_p parameters. Use them instead of the
7136 global variables. Change all callers.
7137 (coff_write_symbol): Likewise.
7138 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
7139 (coff_write_symbols): Add local variables to replace removed
7142 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
7143 function, and line_base fields.
7144 * libcoff.h: Rebuild.
7145 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
7146 information, rather than using static variables.
7148 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
7149 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
7151 * init.c (initialized): Remove static variable.
7152 (bfd_init): Don't bother setting initialized.
7153 (bfd_check_init): Remove.
7154 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
7155 * libbfd.h: Rebuild.
7157 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
7159 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
7160 size for full core dumps. Copy core file header to private data.
7161 (rs6000coff_core_file_failing_command,
7162 rs6000coff_core_file_failing_signal): New functions to extract
7163 the file name and terminating signal from the core file.
7164 * coff-rs6000.c: Use them.
7166 Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
7168 Change arch info to be const, initialized at compile time.
7169 * archures.c: Reindent many functions. Change CONST to const.
7170 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
7171 nothing set it anyhow. Make next const.
7172 (bfd_arch_info_list): Remove.
7173 (bfd_archures_list): Rename from archures_init_table. Change from
7174 a table of function pointers to a table of bfd_arch_info_type
7175 structure addresses.
7176 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
7177 (bfd_lookup_arch): Likewise.
7178 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
7180 (bfd_default_arch_struct): Make const.
7181 (bfd_arch_init, bfd_arch_linkin): Remove.
7182 (bfd_get_arch_info): Return a const pointer.
7183 * init.c (bfd_init): Don't call bfd_arch_init.
7184 * bfd.c (struct _bfd): Make arch_info const.
7185 * bfd-in2.h: Rebuild.
7186 * libbfd.h: Rebuild.
7187 * configure.in: Put & before everything in $selarchs.
7188 * configure: Rebuild.
7189 * cpu-*.c: Change bfd_*_arch from a function which calls
7190 bfd_arch_linkin to a const structure.
7191 * ieee.c (ieee_object_p): Make arch const.
7193 Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7195 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
7197 * bfd-in2.h: Regenerate.
7198 * libbfd.h: Regenerate.
7200 * elf32-ppc.c (reloc_type): Update names to match current draft.
7201 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
7202 relative. Update names to current V.4 draft.
7203 (ppc_elf_reloc_type_lookup): Add support for more relocations.
7204 (ppc_elf_relocate_section): Rename relocations to match draft.
7206 Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
7208 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
7209 compiled with -mrelocatable-lib to be linked with either normal
7210 modules or -mrelocatable modules.
7212 Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
7214 * coffcode.h (coff_write_object_contents): Clear the vstamp field
7215 in the a.out header.
7217 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
7218 a reloc against a local symbol, even if it's not a section.
7220 Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
7222 * targets.c (bfd_target): Remove unused align_power_min field.
7223 * bfd-in2.h: Rebuild.
7224 * All backends: Remove initialization of align_power_min.
7226 Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
7228 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
7230 Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
7232 * config.bfd (mips-dec-netbsd*): New target.
7233 * configure.host (mips-dec-netbsd*): New host.
7234 * configure.in (mips-dec-netbsd*): New native.
7235 * configure: Rebuild.
7237 Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
7239 Make the COFF backend linker merge common types:
7240 * cofflink.c (struct coff_debug_merge_element): Define.
7241 (struct coff_debug_merge_type): Define.
7242 (struct coff_debug_merge_hash_entry): Define.
7243 (struct coff_debug_merge_hash_table): Define.
7244 (coff_debug_merge_hash_table_init): Define.
7245 (coff_debug_merge_hash_table_free): Define.
7246 (coff_debug_merge_hash_lookup): Define.
7247 (struct coff_final_link_info): Add debug_merge field.
7248 (coff_debug_merge_hash_newfunc): New static function.
7249 (_bfd_coff_final_link): Allocate and free debug_merge table.
7250 (coff_link_input_bfd): Merge identical enum, struct and union
7253 Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
7255 Convert i960 COFF to use COFF backend linker.
7256 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
7257 structure to store the symbol being used.
7258 (coff_i960_start_final_link): New static function.
7259 (coff_i960_relocate_section): New static function.
7260 (coff_i960_adjust_symndx): New static function.
7261 (coff_start_final_link): Define.
7262 (coff_relocate_section): Define.
7263 (coff_adjust_symndx): Define.
7264 * coffcode.h (bfd_coff_backend_data): Add new callback function
7265 _bfd_coff_start_final_link.
7266 (bfd_coff_start_final_link): Define.
7267 (coff_start_final_link): Define if not defined.
7268 (bfd_coff_std_swap_table): Add coff_start_final_link.
7269 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
7271 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
7272 function callback is not NULL.
7273 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
7274 (_bfd_coff_internal_syment_name): Declare.
7275 * libcoff.h: Rebuild.
7276 * configure.in (icoff_big_vec): Add cofflink.o.
7277 (icoff_little_vec): Likewise.
7278 * configure: Rebuild.
7280 Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
7282 * Makefile.in (clean-info): Remove extraneous tab from line
7285 Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
7287 * cofflink.c (coff_link_input_bfd): Fail if a section with no
7288 contents has relocs.
7290 Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
7292 * coffcode.h (coff_compute_section_file_positions): Keep the
7294 (coff_write_object_contents): Remember if it's a relocatable
7296 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
7297 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
7298 if relocatable file. Swap out saved raw size.
7300 Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
7302 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
7303 (maintainer-clean): Rename from realclean, passing
7304 maintainer-clean down to subdirectories, but leave realclean as a
7307 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
7310 * dep-in.sed: Remove config.h from generated dependencies.
7312 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
7313 broken out of sunos_canonicalize_dynamic_symtab.
7314 (sunos_canonicalize_dynamic_symtab): Call new function
7315 sunos_slurp_dynamic_symtab.
7316 (sunos_add_dynamic_symbols): Add three new parameters. Return the
7317 dynamic symbol table to the caller.
7318 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
7319 callback to override the symbols being read.
7320 * libaout.h (struct aout_backend_data): Add three new parameters
7321 to add_dynamic_symbols callback.
7323 Extensive minor changes to avoid various gcc warnings. Also:
7324 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
7325 * archures.c (bfd_arch_info_type): Change mach field from long to
7327 (bfd_lookup_arch): Change machine parameter from long to unsigned
7330 Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
7332 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
7333 a symbol with a non-zero plt_offset.
7335 Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
7337 * elfcode.h (align_file_position): Remove; not used.
7339 * configure.in: Only check for <sys/procfs.h> on a native system,
7340 and make sure it defines prstatus_t.
7341 * configure: Rebuild.
7343 Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
7345 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
7347 * config.in: Rename from config.h.in.
7348 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
7349 Check for config.h:config.in when creating stamp-h.
7350 * configure: Rebuild.
7351 * Makefile.in (stamp-h): Depend upon config.in rather than
7352 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
7353 calling config.status.
7355 * Makefile.in (do_distclean): Remove config.h and stamp-h.
7356 (Makefile): Just rebuild Makefile.
7357 (config.h, stamp-h): New targets.
7358 * configure.in: Create stamp-h when rebuilding config.h.
7359 * configure: Rebuild.
7361 Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
7363 * configure.in: Call AC_CONFIG_HEADER. Substitute
7364 HOST_64BIT_LONG. Check that various header files exist. Check
7365 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
7366 and/or free need to be declared. Don't make a link to sysdep.h.
7367 Define TRAD_HEADER for various hosts.
7368 * configure: Rebuild.
7369 * configure.host: Don't set my_host. Add definitions taken from
7370 host header files for various entries. Remove entries which now
7372 * acconfig.h: New file.
7373 * config.h.in: New file, built by autoheader.
7374 * sysdep.h: New file.
7375 * Makefile.in (do_distclean): Don't remove sysdep.h.
7377 (LOCAL_H_DEPS): New variable.
7378 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
7380 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
7381 ($(OPTIONAL_BACKENDS)): Likewise.
7382 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
7383 looking through sysdep.h.
7384 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
7385 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
7386 (fprintf_vma, sprintf_vma): Likewise.
7387 (int64_type, uint64_type): Don't define.
7388 * bfd-in2.h: Rebuild.
7389 * archures.c, bfd.c, srec.c: Include <ctype.h>.
7390 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
7391 * lynx-core.c: Include stuff from old hosts/lynx.h.
7392 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
7393 rather than NO_FCNTL.
7394 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
7395 rather than NATIVE_HPPAHPUX_COMPILER.
7396 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
7398 * hosts/*.h: Remove all header files which merely include,
7399 declare, and define things. Leave header files which define
7400 information needed by trad-core.c.
7402 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
7403 (BFD_CC_FOR_BUILD): Define.
7404 * configure.in: Use BFD_CC_FOR_BUILD.
7405 * configure: Rebuild.
7407 Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
7409 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
7410 * configure: Rebuild.
7412 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
7415 Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7417 * config.bfd: i386pe_ve -> i386pe_vec.
7419 Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
7421 * configure.host: Incorporate host Makefile fragments by setting
7423 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
7424 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
7425 value based on whether the code is being compiled by a cross
7426 compiler. Don't substitute host_makefile_frag or frags.
7427 * aclocal.m4: New file to define local AC_PROG_CC.
7428 * configure: Rebuild.
7429 * Makefile.in (INSTALL): Set to @INSTALL@.
7430 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
7431 (INSTALL_DATA): Set to @INSTALL_DATA@.
7433 (CC): Define as @CC@.
7434 (CFLAGS): Set to @CFLAGS@.
7435 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
7436 (@host_makefile_frag@): Remove.
7437 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
7438 after other options.
7439 (config.status): Remove dependency upon @frags@.
7440 * config/*.mh, config/README: Remove.
7442 * config.bfd: Rewrite to incorporate the contents of the Makefile
7443 fragments by setting shell variables, rather than merely returning
7444 the name of a Makefile fragment.
7445 * configure.in: Use shell variables set by config.bfd rather than
7446 looking at the target Makefile fragment files. Don't substitute
7447 target_makefile_frag. Do substitute TDEFINES.
7448 * configure: Rebuild.
7449 * Makefile.in (@target_makefile_frag@): Remove.
7450 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
7451 * config/*.mt: Remove.
7453 Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
7455 * configure.in: Put changequote lines around "i[345]86" patterns
7456 section of core file support.
7458 Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
7460 * som.c (som_bfd_print_private_bfd_data): Define to use the
7463 Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
7465 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
7466 entry, text_start and data_start.
7468 Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
7470 * Makefile.in (OFILES): Remove $(TDEPFILES).
7471 * config/apollo.mt (TDEPFILES): Remove.
7472 * config/README: Update.
7474 * configure.in: For a native configuration, set COREFILE and
7475 COREFLAG based on the canonical host name.
7476 * configure: Rebuild.
7477 * Makefile.in: Rebuild dependencies.
7478 (ALL_CFLAGS): Add @COREFLAG@.
7479 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
7480 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
7481 support routines. Check LYNX_CORE rather than HOST_LYNX.
7482 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
7483 * i386lynx.c: Likewise.
7484 * m68klynx.c: Likewise.
7485 * sparclynx.c: Likewise.
7486 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
7487 * *-core.c: Comment changes.
7488 * config/decstation.mh (HDEPFILES): Remove.
7489 (HDEFINES): Remove -DTRAD_CORE.
7490 * config/irix3.mh (RANLIB): Remove.
7491 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
7492 (HDEFINES): Remove -DIRIX_CORE.
7493 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
7494 (HDEFINES): Remove -DTRAD_CORE.
7495 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
7496 * config/ultra3.mh (RANLIB): Remove.
7497 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
7498 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
7499 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
7500 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
7501 * config/hppahpux.mh, config/hppaosf.mh: Remove.
7502 * config/i386aix.mh, config/i386bsd.mh: Remove.
7503 * config/i386linux.mh, config/i386mach3.mh: Remove.
7504 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
7505 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
7506 * config/mipsmach3.mh, config/news-mips.mh: Remove.
7507 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
7508 * config/rs600.mh, config/rs6000lynx.mh: Remove.
7509 * config/solaris2.mh, config/stratus.mh: Remove.
7510 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
7511 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
7513 Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
7515 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
7516 DT_FINI entry if the appropriate symbol is not in the hash table.
7518 * libelf.h (struct elf_backend_data): Add create_program_headers
7519 and want_hdr_in_seg fields.
7520 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
7522 (elf_backend_create_program_headers): Likewise.
7523 (elfNN_bed): Initialize create_program_headers and
7525 * elf.c (get_program_header_size): Call create_program_headers
7527 (map_program_segments): Check want_hdr_in_seg backend field. Call
7528 create_program_headers backend routine.
7530 * elf.c (assign_file_positions_except_relocs): Align non allocated
7531 sections when creating an executable.
7533 * elfcode.h (elf_swap_phdr_in): Make non static.
7534 (elf_swap_phdr_out): Make non static.
7535 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
7536 (bfd_elf32_swap_phdr_out): Declare.
7537 (bfd_elf64_swap_phdr_in): Declare.
7538 (bfd_elf64_swap_phdr_out): Declare.
7540 * ecofflink.c (ecoff_collect_shuffle): New static function.
7541 (_bfd_ecoff_get_accumulated_pdr): New function.
7542 (_bfd_ecoff_get_accumulated_sym): New function.
7543 (_bfd_ecoff_get_accumulated_ss): New function.
7544 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
7545 (_bfd_ecoff_get_accumulated_sym): Declare.
7546 (_bfd_ecoff_get_accumulated_ss): Declare.
7547 * libbfd.h: Rebuild.
7549 Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
7551 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
7553 * elflink.h (elf_link_add_object_symbols): Handle indirect and
7554 warning symbols. If any section is named .gnu.warning.XXX, treat
7555 the contents as a warning to be issued if the symbol XXX is
7557 (elf_link_output_extsym): For an indirect or warning symbol, just
7558 output the symbol it points to.
7560 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
7561 if bfd_hash_allocate fails, since it will already be set.
7562 (generic_link_hash_newfunc): Likewise.
7563 (archive_hash_newfunc): Likewise.
7564 (hash_entry_bfd): New static function.
7565 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
7566 callback. Allocate a new warning using the hash table newfunc.
7567 Use bfd_hash_replace to update the entry in the hash table, rather
7568 than assuming we can copy the fields with structure assignment.
7570 * hash.c (bfd_hash_replace): New function.
7571 * bfd-in.h (bfd_hash_replace): Declare.
7572 * bfd-in2.h: Rebuild.
7574 Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
7576 * config.bfd: Add mips*vr4300-*-elf* target.
7577 * config/mipsbvr4300.mt: Added.
7579 See file ChangeLog.2
7586 version-control: never