1 Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
3 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
4 table index against the number of symbols for a base relative
7 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
9 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
10 full_aouthdr flag here...
11 (_bfd_xcoff_bfd_final_link): ...not here.
13 Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
15 * libelf.h: Rename to elf-bfd.h to avoid conflict with
16 systems that have a system <libelf.h>.
17 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
18 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
19 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
20 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
21 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
22 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
23 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
25 Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
27 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
28 set, set BSF_WEAK in symbol. Change all callers.
29 (ecoff_get_extr): Set weakext based on BSF_WEAK.
30 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
31 _bfd_generic_link_add_one_symbol.
32 (ecoff_indirect_link_order): Check that the section tdata relocs
33 are not NULL before using them.
35 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
36 define TRAD_HEADER as hosts/alphalinux.h.
38 * hosts/alphalinux.h: New file.
39 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
42 Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
44 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
45 C_ECOMM storage classes.
47 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
49 (xcoff_mark): Call xcoff_mark_symbol.
50 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
51 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
53 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
55 Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
57 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
59 (xcoff_find_reloc): New static function.
60 (xcoff_link_add_symbols): Use it.
61 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
62 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
63 relocate the value of C_DECL.
65 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
67 Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
69 * cofflink.c (_bfd_coff_generic_relocate_section): Make
70 callback decide what goes in .relocs.
71 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
72 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
75 Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
77 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
80 Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
82 * xcofflink.c: More improvements, mostly to fix handling of
83 constructors and a few other special cases.
84 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
85 zero, reverting yesterday's change.
86 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
87 (bfd_xcoff_link_count_reloc): Declare.
88 (bfd_xcoff_record_link_assignment): Declare.
91 Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
93 * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
94 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
95 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
96 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
97 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
98 Change PAGE_SIZE to TARGET_PAGE_SIZE.
100 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
103 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
104 segments includes the a.out header. See to that the magic number
105 *always* is big-endian.
107 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
108 m68k4k NetBSD configurations.
110 * configure.in, configure: Separate i386 & mips NetBSD
111 configurations from other BSD ones. Don't assume DEC is the only
112 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
113 configurations. Add support for m68k4k NetBSD object format.
115 * libaout.h: Added M_68K4K_NETBSD magic.
117 * m68k4knetbsd.c: New file.
119 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
121 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
124 * hosts/mipsnbsd.h: New file.
127 Fri Oct 27 09:41:51 1995 Stu Grossman (grossman@cygnus.com)
129 * config.bfd: Add config stuff for mips*-*-magic* to set
130 targ_defvec to ecoff_big_vec.
133 Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
135 * xcofflink.c: Numerous changes to get closer to a working XCOFF
137 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
138 toc_section, and entry_section fields.
139 (struct xcoff_section_tdata): Remove ldrel_count field.
140 * libcoff.h: Rebuild.
141 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
143 (coff_compute_section_file_positions): If RS6000COFF_C, generate
144 full a.out header if full_aouthdr is set in xcoff_data.
145 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
146 based on sections stored in xcoff_data.
147 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
149 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
150 (rs6000coff_vec): Set symbol_leading_char to '.'.
151 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
152 value stored in ret rather than returning a pointer value.
154 Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
156 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
159 Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
161 * som.c (som_slurp_string_table): Allocate the strings with malloc
162 since they're free'd by free_cached_info.
163 (som_slurp_symbol_table): Similarly for the symbol table.
165 Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
167 * Makefile.in (diststuff): Don't make headers.
169 Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
171 * Makefile.in: Rebuild dependencies.
173 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
174 output_bfd is not SunOS.
175 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
176 non-SunOS input files.
178 * xcofflink.c: Extensive changes to support linking shared objects
179 and generating a .loader section.
180 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
181 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
182 last_symndx, and ldrel_count fields.
183 * libcoff.h: Rebuild.
184 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
185 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
187 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
188 (bfd_xcoff_export_symbol): Declare.
189 (bfd_xcoff_size_dynamic_sections): Declare.
190 * bfd-in2.h: Rebuild.
192 Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
194 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
195 * configure: Rebuild.
196 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
197 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
199 (pmac_xcoff_vec): Update to use new xcoff support.
200 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
201 (xcoff_write_armap): Declare buf as unsigned char.
202 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
204 * mpw-make.sed: Generalize subdir_do edit.
206 Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
208 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
209 correctly. Don't initialize asect->vma.
211 Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
213 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
214 something a little less than the page size.
216 Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
218 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
220 Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
222 * coff-i386.c (coff_i386_reloc_type_lookup): New.
223 * coffcode.h (coff_write_object_contents): If .bss is before
224 .data us that as data_start.
225 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
227 * peicode.h (add_data_entry): Use _cooked_size of data directory.
228 (coff_swap_outhdr_out): Hardwire in version number.
230 Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
232 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
233 major and minor to *_vno, since the former are also macros in
234 SunOS header files. Cast result of bfd_alloc to appropriate
237 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
238 before assigning to sec_data.
240 Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
242 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
243 now relative to the section, not absolute.
244 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
245 get the file name when there is a N_SO directory name. When
246 handling stabs, remember that section->vma was added to the
249 Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
251 * sunos.c (struct sunos_link_hash_table): Add needed field.
252 (sunos_link_hash_table_create): Call bfd_release, not free.
253 (sunos_link_hash_table_create): Initialize needed field.
254 (sunos_add_dynamic_symbols): Record needed objects.
255 (bfd_sunos_get_needed_list): New function.
256 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
257 * bfd-in2.h: Rebuild.
259 Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
261 * libcoff-in.h (pe_data_type.in_reloc_p): New.
263 Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
265 * bfd-in.h (struct bfd_link_needed_list): Rename from
266 bfd_elf_link_needed_list.
267 * bfd-in2.h: Rebuild.
268 * elf.c, elflink.h, libelf.h: Corresponding changes.
270 Add start at AIX linker support; no shared libraries yet.
271 * xcofflink.c: New file.
272 * configure.in (rs600coff_vec): Use xcofflink.o.
273 * configure: Rebuild.
274 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
276 (struct xcoff_section_tdata): Define.
277 (xcoff_section_data): Define macro.
278 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
279 (_bfd_xcoff_bfd_link_add_symbols): Declare.
280 (_bfd_xcoff_bfd_final_link): Declare.
281 (_bfd_ppc_xcoff_relocate_section): Declare.
282 * libcoff.h: Rebuild.
283 * coff-rs6000.c: Clean up a bit.
284 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
285 cputype, csects, and debug_indices.
286 (xcoff_copy_private_bfd_data): Copy cputype.
287 (xcoff_howto_table): Rename from rs6000coff_howto_table.
288 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
289 (xcoff_reloc_type_lookup): Rename from
290 rs6000coff_reloc_type_lookup.
291 (coff_relocate_section): Define.
292 (_bfd_xcoff_sizeof_headers): Define.
293 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
294 (_bfd_xcoff_bfd_relax_section): Define.
295 (_bfd_xcoff_bfd_link_split_section): Define.
296 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
298 * coffcode.h (coff_compute_section_file_positions): If AIX,
299 increment sofar by SMALL_AOUTSZ if not executable.
300 (coff_write_object_contents): If AIX, always output an a.out
301 header; if not executable, header size of SMALL_AOUTSZ.
302 * hash.c (struct bfd_strtab_hash): Add xcoff field.
303 (_bfd_stringtab_init): Initialize xcoff field.
304 (_bfd_xcoff_stringtab_init): New function.
305 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
306 (_bfd_stringtab_emit): In XCOFF mode, write out length.
307 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
309 * Makefile.in: Rebuild dependencies.
310 (BFD32_BACKENDS): Add xcofflink.o.
311 (CFILES): Add xcofflink.c.
313 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
314 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
315 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
317 Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
319 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
321 Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
323 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
324 * config.in: Regenerated.
326 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
327 (_bfd_chunksize): New variable.
328 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
329 for obstack chunk size.
330 * configure.in: Check for getpagesize.
331 * configure: Regenerated.
333 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
335 * trad-core.c (rawptr): Make it a local variable of
336 ptrace_unix_core_file_p.
338 Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
340 * coff-arm.c (in_reloc_p): New.
341 * coff-i386.c (in_reloc_p): New.
342 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
343 (coff_write_object_contents): Only set has_reloc_section
345 * cofflink.c (_bfd_coff_generic_relocate_section): Call
346 in_reloc_p to decide if reloc should be emitted.
347 * libcoff.h (pe_data_type.in_reloc_p): New.
348 * peicode.h (pe_mkobject): Initialize in_reloc_p.
350 Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
352 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
353 (_bfd_coff_read_internal_relocs): Likewise.
354 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
355 (_bfd_coff_read_internal_relocs): Likewise.
357 * elflink.h (elf_link_add_object_symbols): Correct conditions
358 under which type and size change warnings are issued.
360 Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
362 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
363 a symbol which is not in a real section.
364 (coff_write_native_symbol): Corresponding change.
366 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
367 coff_link_hash_newfunc and make non-static.
368 (_bfd_coff_link_hash_table_init): New function, broken out of
369 _bfd_coff_link_hash_table_create.
370 (_bfd_coff_link_hash_table_create): Use it.
371 (process_embedded_commands): Make static.
372 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
373 (_bfd_coff_link_hash_table_init): Declare.
374 * libcoff.h: Rebuild.
376 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
377 field in XCOFF tdata.
378 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
379 U802ROMAGIC, for clarity. Try to set arch and machine correctly
380 based on cputype stored in a.out header, or in n_type of initial
382 (coff_write_object_contents): Set cputype correctly in a.out
384 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
386 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
387 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
389 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
390 * libcoff.h: Rebuild.
392 * cpu-rs6000.c (rs6000_compatible): New static function.
393 (bfd_rs6000_arch): Use it.
394 * cpu-powerpc.c (powerpc_compatible): New static function.
395 (arch_info_struct): Define various flavours of PowerPC.
396 (bfd_powerpc_arch): Use powerpc_compatible. Point at
399 Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
401 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
403 Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
405 * elflink.h (elf_link_add_object_symbols): Don't warn about
406 changing the size or type if the old definition was weak.
408 Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
410 * coffcode.h (combined_entry_type): Add fix_line field.
411 (coff_slurp_line_table): Warn if we try to set the lineno field of
413 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
414 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
415 * coffgen.c (coff_mangle_symbols): Handle fix_line.
416 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
418 (coff_print_symbol): Print fix_value symbols in a useful fashion.
419 * libcoff.h: Rebuild.
421 * libcoff-in.h (struct xcoff_tdata): Define.
422 (xcoff_data): Define.
423 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
424 * bfd-in2.h, libcoff.h: Rebuild.
425 * coff-rs6000.c (xcoff_mkobject): New static function.
426 (coff_mkobject): Define.
427 (xcoff_copy_private_bfd_data): New static function.
428 (coff_bfd_copy_private_bfd_data): Define.
429 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
431 (rs6000coff_vec): Add DYNAMIC to object_flags.
432 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
433 .loader sections specially.
434 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
435 section alignment from the XCOFF tdata information.
436 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
437 F_SHROBJ, and copy the extra a.out header information into the
438 XCOFF tdata structure.
439 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
440 F_DYNLOAD and the extra a.out header information.
441 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
442 C_HIDEXT symbol with attached csect information.
443 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
444 in the o_maxdata field.
445 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
446 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
447 end if BSF_NOT_AT_END is set.
449 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
451 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
452 * bfd-in2.h, libbfd.h: Rebuild.
453 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
455 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
456 (bfd_slurp_bsd_armap_f2): Likewise.
457 (_bfd_slurp_extended_name_table): Likewise.
459 Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
461 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
463 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
464 when the symbol table is empty.
466 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
467 space for section symbols, since we don't output them either.
468 (elf_m68k_adjust_dynindx): Removed.
470 * ptrace-core.c (rawptr): Make it a local variable of
471 ptrace_unix_core_file_p.
473 Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
475 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
478 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
479 Mac object file formats.
481 Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
483 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
484 auxent if there isn't one.
485 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
486 rather than FILNMLEN as the maximum name length.
488 * coffcode.h (bfd_coff_backend_data): Add new field
490 (bfd_coff_print_aux): New static function.
491 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
492 scnlen field of an XTY_LD csect aux entry.
493 (coff_print_aux): New static function.
494 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
495 in coff_pointerize_aux_hook.
496 (bfd_coff_std_swap_table): Initialize new field.
497 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
498 * libcoff.h: Rebuild.
499 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
500 * coff-mips.c (mips_ecoff_backend_data): Likewise.
502 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
503 if there are symbols, for native AIX ld compatibility.
505 * coffcode.h (bfd_coff_backend_data): Add new field
506 _bfd_coff_pointerize_aux_hook.
507 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
508 or I960, and as 0 otherwise.
509 (bfd_coff_std_swap_table): Initialize new field.
510 * libcoff.h: Rebuild.
511 * coffgen.c (coff_pointerize_aux): Change parameters to take
512 symbol pointer instead of type and class, and to take aux index.
513 Call _bfd_coff_pointerize_aux_hook if it is defined.
514 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
515 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
516 * coff-mips.c (mips_ecoff_backend_data): Likewise.
518 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
519 read-only/host-only support.
521 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
523 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
526 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
527 BFD_JUMP_TABLE_ARCHIVE accordingly.
528 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
529 (_bfd_compute_and_write_armap): Declare.
530 (_bfd_generic_read_ar_hdr): Declare.
531 (_bfd_read_ar_hdr): Define.
532 (_bfd_noarchive_read_ar_hdr): Define.
533 (_bfd_archive_bsd_read_ar_hdr): Define.
534 (_bfd_archive_coff_read_ar_hdr): Define.
535 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
536 _bfd_read_ar_hdr instead.
537 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
538 (_bfd_compute_and_write_armap): Rename from
539 compute_and_write_armap. Make non-static. Change all callers.
540 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
541 than _bfd_snarf_ar_hdr.
542 * aout-target.h (MY_read_ar_hdr): Define if not defined.
543 * ieee.c (ieee_read_ar_hdr): Define.
544 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
545 * oasys.c (oasys_read_ar_hdr): Define.
546 * som.c (som_read_ar_hdr): Define.
547 * bfd-in2.h, libbfd.h: Rebuild.
549 Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
551 * peicode.c (coff_swap_filehdr_in): If symptr is
552 zero, there aren't any symbols, even if nsyms is set.
554 Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
556 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
558 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
559 sections, and set styp correctly for them: .got, .hash, .dynamic,
560 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
561 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
563 (ecoff_sort_hdrs): New static function.
564 (ecoff_compute_section_file_positions): Return boolean, not void.
565 Sort the sections by VMA before looking through them. Put the
566 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
567 section on an appropriate boundary within the page.
568 (ecoff_compute_reloc_file_positions): Check return value of
569 ecoff_compute_section_file_positions.
570 (_bfd_ecoff_set_section_contents): Likewise.
571 (_bfd_ecoff_write_object_contents): Check for various Alpha
572 section types when incrementing text_size and data_size. Call
573 adjust_headers backend function if it exists.
574 * coff-alpha.c (alpha_adjust_headers): New static function.
575 (alpha_ecoff_backend_data): Initialize adjust_headers field.
576 * coff-mips.c (mips_ecoff_backend_data): Likewise.
578 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
580 Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
582 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
583 of ALTERNATE_AIX_CORE_FORMAT.
584 * configure.in (aix4): No longer need CORE_FLAGS.
585 * configure: Updated.
587 Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
589 NS32k changes from Ian Dall:
590 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
592 (aout_link_input_section_std, aout_link_input_section_ext,
593 aout_link_reloc_link_order): Call them instead of _bfd_*
595 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
597 (backend_data): Use it instead of hardcoded zero.
599 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
600 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
602 * ns32knetbsd.c: Include bfd.h.
603 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
604 (MY_bfd_reloc_type_lookup): Declare function too.
605 * pc532-mach.c (set_sizes): Don't declare.
606 (MY_text_includes_header, MY_exec_header_not_counted): Define.
607 (backend_data, MY_backend_data): Don't define.
609 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
610 ns32k-*-lites* like ns32k-*-netbsd*.
612 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
615 Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
617 * coffcode.h (coff_write_object_contents): Restore setting
618 f_timdat to 0, deleted on August 22.
620 Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
622 * coffcode.h (coff_bfd_copy_private_symbol_data,
623 coff_bfd_copy_private_section_data,
624 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
625 * peicode.h (coff_bfd_copy_private_bfd_data): New
626 (pe_bfd_copy_private_bfd_data): New.
627 (coff_swap_scnhdr_in): Swap bss size into the right place.
628 (pe_print_private_bfd_data): Add some newlines.
630 Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
632 * som.c (setup_sections): Don't die if a space has no subspaces.
634 Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
636 * elflink.h (elf_link_add_object_symbols): Don't let a weak
637 dynamic symbol override a common symbol. Don't change the size or
638 type if they have been set and the new symbol is not a definition.
639 Warn if the size or type changes.
641 Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
643 * som.c (som_begin_writing): Don't write the symbol table or
645 (som_finish_writing): Write them here. Place them after the
646 subspace data, but before the relocs.
648 Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
650 * sunos.c (sunos_add_one_symbol): Just pass false, not
651 info->shared_library, to sunos_create_dynamic_sections.
652 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
654 (sunos_check_dynamic_reloc): Remove .text section assertion.
656 Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
658 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
659 * configure, configure.in: Add pmac_xcoff_vec case.
660 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
661 * coff-pmac.c: New file, PowerMac XCOFF support.
662 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
663 * targets.c (pmac_xcoff_vec): Declare.
665 * mpw-config.in: Various changes to be compatible with the
666 autoconf-based configury.
667 * mpw-make.sed: New file, sed commands to translate Unix
668 makefile into MPW syntax.
669 * mpw-make.in: Remove.
670 * hosts/mpw.h: Remove.
671 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
672 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
674 Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
676 * binary.c (binary_get_symtab): Return an empty string on error.
677 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
679 Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
681 * coff-ppc.c: Reformatted according to gnu conventions
682 Removed irrelevant "if 0" code
684 Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
686 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
687 symbols rather than as indirect symbols.
688 (MY(slurp_symbol_table)): Don't do anything special about
691 * coffcode.h (coff_new_section_hook): Make sure that the alignment
692 of .ctors and .dtors sections is no larger than 2.
694 * sunos.c (sunos_add_one_symbol): Don't change
695 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
697 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
698 dynamic symbols when creating a shared library.
699 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
701 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
702 written even if it is not defined in a regular object.
703 (sunos_write_dynamic_symbol): Use plt_offset for the address of
704 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
705 rather than the constant 22.
706 (sunos_check_dynamic_reloc): Handle creating a shared library.
707 (sunos_finish_dynamic_link): Set the first entry in the GOT to
708 zero when creating a shared library.
709 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
710 write it out at the start of the symbol table.
712 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
714 Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
716 * config.bfd: Add arm-*-coff.
717 * configure.in, configure: Add armcoff_{little,big}_vec.
718 * targets.c (armcoff_{little,big}_vec): Declare.
719 (bfd_target_vector): Add armcoff_{little,big}_vec.
720 * coff-arm.c (armcoff_{little,big}_vec): Always define.
722 Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
724 * targets.c (bfd_find_target): Remove debugging code.
726 Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
728 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
730 * Makefile.in: added *-ppc files
731 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
732 allow pe based .o's to be shared with other tools on ppc/NT
733 * config.bfd: added powerpc[le]-[pe|winnt] config support
734 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
735 * peicode.h: Added more section flags for PE on ppc
736 Added coff_swap_filehdr_out to allow peicode.h to be
737 used for non-image PE files on ppc.
738 Check for image, or not, before copying pe_opthdr
739 * targets.c: Added new bfd's
740 * targets.c: Removed two inactive bfds that shouldn't have made it this
743 Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
745 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
746 explicit values to initialize all relocs. Change all users.
747 (ppc_elf_brtaken_inner): New function to handle branch predicition
749 (ppc_elf_brtaken_reloc): Ditto.
750 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
751 relocs use ppc_elf_unsupported_reloc.
752 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
753 needs to be reported.
754 (ppc_elf_relocate_section): Support branch prediction relocs.
756 Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
758 * bfd.c (bfd_assert): Remove \n from string passed to
761 * coff-i386.c: (TWO_DATA_SECS): Don't define.
762 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
763 (bfd_coff_make_section_hook): Don't define.
764 (coff_make_section_hook): Remove.
765 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
766 (styp_to_sec_flags): Likewise.
767 (coff_write_object_contents): Likewise.
768 (bfd_coff_std_swap_table): Don't initialize make_section_hook
770 * libcoff.h: Rebuild.
771 * coffgen.c (make_a_section_from_file): Just call
772 bfd_make_section_anyway, not bfd_make_section or
773 bfd_coff_make_section_hook.
774 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
775 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
776 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
777 make_section_hook field.
778 * coff-mips.c (mips_ecoff_backend_data): Likewise.
780 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
781 pointers into value field for warning and indirect symbols; just
782 leave the value field alone.
783 * linker.c (generic_link_add_symbol_list): Use next symbol for
784 warning and indirect symbols, rather than looking in symbol value.
785 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
786 parameter. Change all callers. Remove support for indirect
787 symbols; it didn't work anyhow.
788 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
789 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
790 * bfd-in2.h: Rebuild.
792 Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
794 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
795 go back to telling the tools this reloc operates on 32 bits.
797 Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
799 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
800 rather than a direct fprintf.
801 * archive.c (_bfd_write_archive_contents): Likewise.
802 * coffcode.h (coff_slurp_symbol_table): Likewise.
803 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
804 (ppc_elf_unsupported_reloc): Likewise.
805 (ppc_elf_relocate_section): Likewise.
806 * i386linux.c (linux_tally_symbols): Likewise.
807 (linux_finish_dynamic_link): Likewise.
808 * osf-core.c (osf_core_core_file_p): Likewise.
809 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
810 * som.c (som_sizeof_headers): Likewise.
811 * srec.c (srec_bad_byte): Likewise.
812 * bfd.c (bfd_assert): Likewise. Also change file to be const.
813 * libbfd-in.h (bfd_assert): Declare first parameter const.
815 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
816 bfd_reloc_overflow is enough.
817 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
818 * coff-h8500.c (rtype2howto): Likewise.
819 * coff-z8k.c (rtype2howto): Likewise.
820 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
821 * elf.c (_bfd_elf_get_lineno): Likewise.
822 (_bfd_elf_no_info_to_howto): Likewise.
823 (_bfd_elf_no_info_to_howto_rel): Likewise.
824 * hp300hpux.c (convert_sym_type): Likewise.
825 (MY(swap_std_reloc_in)): Likewise.
826 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
828 * libaout.h (struct aoutdata): Add line_buf field.
829 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
830 and filename_buffer. Instead, use a malloc buffer stored in the
831 new line_buf field. Remove length restrictions.
833 * coffgen.c (string_size): Remove static variable.
834 (debug_string_size, debug_string_section): Likewise.
835 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
836 and debug_string_size_p parameters. Use them instead of the
837 global variables. Change all callers.
838 (coff_write_symbol): Likewise.
839 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
840 (coff_write_symbols): Add local variables to replace removed
843 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
844 function, and line_base fields.
845 * libcoff.h: Rebuild.
846 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
847 information, rather than using static variables.
849 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
850 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
852 * init.c (initialized): Remove static variable.
853 (bfd_init): Don't bother setting initialized.
854 (bfd_check_init): Remove.
855 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
858 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
860 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
861 size for full core dumps. Copy core file header to private data.
862 (rs6000coff_core_file_failing_command,
863 rs6000coff_core_file_failing_signal): New functions to extract
864 the file name and terminating signal from the core file.
865 * coff-rs6000.c: Use them.
867 Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
869 Change arch info to be const, initialized at compile time.
870 * archures.c: Reindent many functions. Change CONST to const.
871 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
872 nothing set it anyhow. Make next const.
873 (bfd_arch_info_list): Remove.
874 (bfd_archures_list): Rename from archures_init_table. Change from
875 a table of function pointers to a table of bfd_arch_info_type
877 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
878 (bfd_lookup_arch): Likewise.
879 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
881 (bfd_default_arch_struct): Make const.
882 (bfd_arch_init, bfd_arch_linkin): Remove.
883 (bfd_get_arch_info): Return a const pointer.
884 * init.c (bfd_init): Don't call bfd_arch_init.
885 * bfd.c (struct _bfd): Make arch_info const.
886 * bfd-in2.h: Rebuild.
888 * configure.in: Put & before everything in $selarchs.
889 * configure: Rebuild.
890 * cpu-*.c: Change bfd_*_arch from a function which calls
891 bfd_arch_linkin to a const structure.
892 * ieee.c (ieee_object_p): Make arch const.
894 Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
896 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
898 * bfd-in2.h: Regenerate.
899 * libbfd.h: Regenerate.
901 * elf32-ppc.c (reloc_type): Update names to match current draft.
902 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
903 relative. Update names to current V.4 draft.
904 (ppc_elf_reloc_type_lookup): Add support for more relocations.
905 (ppc_elf_relocate_section): Rename relocations to match draft.
907 Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
909 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
910 compiled with -mrelocatable-lib to be linked with either normal
911 modules or -mrelocatable modules.
913 Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
915 * coffcode.h (coff_write_object_contents): Clear the vstamp field
918 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
919 a reloc against a local symbol, even if it's not a section.
921 Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
923 * targets.c (bfd_target): Remove unused align_power_min field.
924 * bfd-in2.h: Rebuild.
925 * All backends: Remove initialization of align_power_min.
927 Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
929 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
931 Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
933 * config.bfd (mips-dec-netbsd*): New target.
934 * configure.host (mips-dec-netbsd*): New host.
935 * configure.in (mips-dec-netbsd*): New native.
936 * configure: Rebuild.
938 Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
940 Make the COFF backend linker merge common types:
941 * cofflink.c (struct coff_debug_merge_element): Define.
942 (struct coff_debug_merge_type): Define.
943 (struct coff_debug_merge_hash_entry): Define.
944 (struct coff_debug_merge_hash_table): Define.
945 (coff_debug_merge_hash_table_init): Define.
946 (coff_debug_merge_hash_table_free): Define.
947 (coff_debug_merge_hash_lookup): Define.
948 (struct coff_final_link_info): Add debug_merge field.
949 (coff_debug_merge_hash_newfunc): New static function.
950 (_bfd_coff_final_link): Allocate and free debug_merge table.
951 (coff_link_input_bfd): Merge identical enum, struct and union
954 Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
956 Convert i960 COFF to use COFF backend linker.
957 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
958 structure to store the symbol being used.
959 (coff_i960_start_final_link): New static function.
960 (coff_i960_relocate_section): New static function.
961 (coff_i960_adjust_symndx): New static function.
962 (coff_start_final_link): Define.
963 (coff_relocate_section): Define.
964 (coff_adjust_symndx): Define.
965 * coffcode.h (bfd_coff_backend_data): Add new callback function
966 _bfd_coff_start_final_link.
967 (bfd_coff_start_final_link): Define.
968 (coff_start_final_link): Define if not defined.
969 (bfd_coff_std_swap_table): Add coff_start_final_link.
970 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
972 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
973 function callback is not NULL.
974 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
975 (_bfd_coff_internal_syment_name): Declare.
976 * libcoff.h: Rebuild.
977 * configure.in (icoff_big_vec): Add cofflink.o.
978 (icoff_little_vec): Likewise.
979 * configure: Rebuild.
981 Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
983 * Makefile.in (clean-info): Remove extraneous tab from line
986 Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
988 * cofflink.c (coff_link_input_bfd): Fail if a section with no
991 Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
993 * coffcode.h (coff_compute_section_file_positions): Keep the
995 (coff_write_object_contents): Remember if it's a relocatable
997 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
998 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
999 if relocatable file. Swap out saved raw size.
1001 Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
1003 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
1004 (maintainer-clean): Rename from realclean, passing
1005 maintainer-clean down to subdirectories, but leave realclean as a
1008 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
1011 * dep-in.sed: Remove config.h from generated dependencies.
1013 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
1014 broken out of sunos_canonicalize_dynamic_symtab.
1015 (sunos_canonicalize_dynamic_symtab): Call new function
1016 sunos_slurp_dynamic_symtab.
1017 (sunos_add_dynamic_symbols): Add three new parameters. Return the
1018 dynamic symbol table to the caller.
1019 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
1020 callback to override the symbols being read.
1021 * libaout.h (struct aout_backend_data): Add three new parameters
1022 to add_dynamic_symbols callback.
1024 Extensive minor changes to avoid various gcc warnings. Also:
1025 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
1026 * archures.c (bfd_arch_info_type): Change mach field from long to
1028 (bfd_lookup_arch): Change machine parameter from long to unsigned
1031 Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
1033 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
1034 a symbol with a non-zero plt_offset.
1036 Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
1038 * elfcode.h (align_file_position): Remove; not used.
1040 * configure.in: Only check for <sys/procfs.h> on a native system,
1041 and make sure it defines prstatus_t.
1042 * configure: Rebuild.
1044 Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
1046 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
1048 * config.in: Rename from config.h.in.
1049 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
1050 Check for config.h:config.in when creating stamp-h.
1051 * configure: Rebuild.
1052 * Makefile.in (stamp-h): Depend upon config.in rather than
1053 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
1054 calling config.status.
1056 * Makefile.in (do_distclean): Remove config.h and stamp-h.
1057 (Makefile): Just rebuild Makefile.
1058 (config.h, stamp-h): New targets.
1059 * configure.in: Create stamp-h when rebuilding config.h.
1060 * configure: Rebuild.
1062 Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
1064 * configure.in: Call AC_CONFIG_HEADER. Substitute
1065 HOST_64BIT_LONG. Check that various header files exist. Check
1066 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
1067 and/or free need to be declared. Don't make a link to sysdep.h.
1068 Define TRAD_HEADER for various hosts.
1069 * configure: Rebuild.
1070 * configure.host: Don't set my_host. Add definitions taken from
1071 host header files for various entries. Remove entries which now
1073 * acconfig.h: New file.
1074 * config.h.in: New file, built by autoheader.
1075 * sysdep.h: New file.
1076 * Makefile.in (do_distclean): Don't remove sysdep.h.
1078 (LOCAL_H_DEPS): New variable.
1079 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
1081 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
1082 ($(OPTIONAL_BACKENDS)): Likewise.
1083 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
1084 looking through sysdep.h.
1085 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
1086 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
1087 (fprintf_vma, sprintf_vma): Likewise.
1088 (int64_type, uint64_type): Don't define.
1089 * bfd-in2.h: Rebuild.
1090 * archures.c, bfd.c, srec.c: Include <ctype.h>.
1091 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
1092 * lynx-core.c: Include stuff from old hosts/lynx.h.
1093 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
1094 rather than NO_FCNTL.
1095 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
1096 rather than NATIVE_HPPAHPUX_COMPILER.
1097 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
1099 * hosts/*.h: Remove all header files which merely include,
1100 declare, and define things. Leave header files which define
1101 information needed by trad-core.c.
1103 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
1104 (BFD_CC_FOR_BUILD): Define.
1105 * configure.in: Use BFD_CC_FOR_BUILD.
1106 * configure: Rebuild.
1108 Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
1110 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
1111 * configure: Rebuild.
1113 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
1116 Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
1118 * config.bfd: i386pe_ve -> i386pe_vec.
1120 Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
1122 * configure.host: Incorporate host Makefile fragments by setting
1124 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
1125 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
1126 value based on whether the code is being compiled by a cross
1127 compiler. Don't substitute host_makefile_frag or frags.
1128 * aclocal.m4: New file to define local AC_PROG_CC.
1129 * configure: Rebuild.
1130 * Makefile.in (INSTALL): Set to @INSTALL@.
1131 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
1132 (INSTALL_DATA): Set to @INSTALL_DATA@.
1134 (CC): Define as @CC@.
1135 (CFLAGS): Set to @CFLAGS@.
1136 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
1137 (@host_makefile_frag@): Remove.
1138 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
1139 after other options.
1140 (config.status): Remove dependency upon @frags@.
1141 * config/*.mh, config/README: Remove.
1143 * config.bfd: Rewrite to incorporate the contents of the Makefile
1144 fragments by setting shell variables, rather than merely returning
1145 the name of a Makefile fragment.
1146 * configure.in: Use shell variables set by config.bfd rather than
1147 looking at the target Makefile fragment files. Don't substitute
1148 target_makefile_frag. Do substitute TDEFINES.
1149 * configure: Rebuild.
1150 * Makefile.in (@target_makefile_frag@): Remove.
1151 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
1152 * config/*.mt: Remove.
1154 Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
1156 * configure.in: Put changequote lines around "i[345]86" patterns
1157 section of core file support.
1159 Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
1161 * som.c (som_bfd_print_private_bfd_data): Define to use the
1164 Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
1166 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
1167 entry, text_start and data_start.
1169 Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
1171 * Makefile.in (OFILES): Remove $(TDEPFILES).
1172 * config/apollo.mt (TDEPFILES): Remove.
1173 * config/README: Update.
1175 * configure.in: For a native configuration, set COREFILE and
1176 COREFLAG based on the canonical host name.
1177 * configure: Rebuild.
1178 * Makefile.in: Rebuild dependencies.
1179 (ALL_CFLAGS): Add @COREFLAG@.
1180 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
1181 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
1182 support routines. Check LYNX_CORE rather than HOST_LYNX.
1183 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
1184 * i386lynx.c: Likewise.
1185 * m68klynx.c: Likewise.
1186 * sparclynx.c: Likewise.
1187 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
1188 * *-core.c: Comment changes.
1189 * config/decstation.mh (HDEPFILES): Remove.
1190 (HDEFINES): Remove -DTRAD_CORE.
1191 * config/irix3.mh (RANLIB): Remove.
1192 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
1193 (HDEFINES): Remove -DIRIX_CORE.
1194 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
1195 (HDEFINES): Remove -DTRAD_CORE.
1196 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
1197 * config/ultra3.mh (RANLIB): Remove.
1198 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
1199 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
1200 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
1201 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
1202 * config/hppahpux.mh, config/hppaosf.mh: Remove.
1203 * config/i386aix.mh, config/i386bsd.mh: Remove.
1204 * config/i386linux.mh, config/i386mach3.mh: Remove.
1205 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
1206 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
1207 * config/mipsmach3.mh, config/news-mips.mh: Remove.
1208 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
1209 * config/rs600.mh, config/rs6000lynx.mh: Remove.
1210 * config/solaris2.mh, config/stratus.mh: Remove.
1211 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
1212 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
1214 Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
1216 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
1217 DT_FINI entry if the appropriate symbol is not in the hash table.
1219 * libelf.h (struct elf_backend_data): Add create_program_headers
1220 and want_hdr_in_seg fields.
1221 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
1223 (elf_backend_create_program_headers): Likewise.
1224 (elfNN_bed): Initialize create_program_headers and
1226 * elf.c (get_program_header_size): Call create_program_headers
1228 (map_program_segments): Check want_hdr_in_seg backend field. Call
1229 create_program_headers backend routine.
1231 * elf.c (assign_file_positions_except_relocs): Align non allocated
1232 sections when creating an executable.
1234 * elfcode.h (elf_swap_phdr_in): Make non static.
1235 (elf_swap_phdr_out): Make non static.
1236 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
1237 (bfd_elf32_swap_phdr_out): Declare.
1238 (bfd_elf64_swap_phdr_in): Declare.
1239 (bfd_elf64_swap_phdr_out): Declare.
1241 * ecofflink.c (ecoff_collect_shuffle): New static function.
1242 (_bfd_ecoff_get_accumulated_pdr): New function.
1243 (_bfd_ecoff_get_accumulated_sym): New function.
1244 (_bfd_ecoff_get_accumulated_ss): New function.
1245 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
1246 (_bfd_ecoff_get_accumulated_sym): Declare.
1247 (_bfd_ecoff_get_accumulated_ss): Declare.
1248 * libbfd.h: Rebuild.
1250 Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
1252 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
1254 * elflink.h (elf_link_add_object_symbols): Handle indirect and
1255 warning symbols. If any section is named .gnu.warning.XXX, treat
1256 the contents as a warning to be issued if the symbol XXX is
1258 (elf_link_output_extsym): For an indirect or warning symbol, just
1259 output the symbol it points to.
1261 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
1262 if bfd_hash_allocate fails, since it will already be set.
1263 (generic_link_hash_newfunc): Likewise.
1264 (archive_hash_newfunc): Likewise.
1265 (hash_entry_bfd): New static function.
1266 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
1267 callback. Allocate a new warning using the hash table newfunc.
1268 Use bfd_hash_replace to update the entry in the hash table, rather
1269 than assuming we can copy the fields with structure assignment.
1271 * hash.c (bfd_hash_replace): New function.
1272 * bfd-in.h (bfd_hash_replace): Declare.
1273 * bfd-in2.h: Rebuild.
1275 Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
1277 * config.bfd: Add mips*vr4300-*-elf* target.
1278 * config/mipsbvr4300.mt: Added.
1280 See file ChangeLog.2
1287 version-control: never