]> Git Repo - binutils.git/blob - bfd/ChangeLog
* aout-target.h (MY(callback)): Set the lma of the sections.
[binutils.git] / bfd / ChangeLog
1 Mon Nov 13 13:24:38 1995  Ian Lance Taylor  <[email protected]>
2
3         * aout-target.h (MY(callback)): Set the lma of the sections.
4
5         * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
6         symbol into a reloc against the section.
7
8 Mon Nov 13 07:31:35 1995  Kim Knuttila  <[email protected]>
9
10         * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
11         glue for the relocs: IMGLUE and IFGLUE.
12         (record_toc): new function - tracks toc contents
13         (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
14         (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
15         (ppc_coff_rtype2howto): removed invalid IMGLUE hack
16         (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
17         (ppc_record_toc_entry): Removed a debug define (duh)
18
19         * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
20         (pe_print_idata): New function - formats the idata section data
21         (pe_print_pdata): New function - formats the pdata section data
22         (pe_print_private_bfd_data): calls to above
23
24 Sun Nov 12 12:23:24 1995  Stan Shebs  <[email protected]>
25
26         * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
27         * coff-rs6000.c (rs6000coff_vec): Add conditional defines
28         TARGET_SYM and TARGET_NAME for vector and BFD name.
29         * coff-pmac.c (pmac_xcoff_vec): Remove.
30         (TARGET_SYM, TARGET_NAME): Define.
31         * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
32         machine to 0, not all PowerMacs are 601s.
33
34 Fri Nov 10 12:10:14 1995  Ian Lance Taylor  <[email protected]>
35
36         * elfcode.h (elf_object_p): Read in any program headers.
37         * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
38         based on the program headers, if any.
39         (elf_fake_sections): Set sh_addr from the vma, not the lma.
40         (map_program_segments): Set p_paddr of program headers based on
41         the lma.
42
43 Thu Nov  9 13:01:31 1995  Ian Lance Taylor  <[email protected]>
44
45         * archive.c (bfd_generic_archive_p): Preserve tdata in case of
46         failure.
47
48         * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
49         trying to do a relocateable link with a non-a.out object file.
50
51         * archive.c (bfd_generic_archive_p): Check the first object file
52         in an archive even if target_defaulted is set.  If the object file
53         has the wrong xvec, reject it.
54
55         * aoutx.h (NAME(aout,set_section_contents)): If a section can not
56         be represented, report the name via _bfd_error_handler.
57         (translate_to_native_sym_flags): Likewise.
58         * elf32-mips.c (mips_elf_final_link): Likewise.
59         * oasys.c (oasys_write_sections): Likewise.
60
61         * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
62         which checks for STYP_OVRFLO sections.
63         (coff_compute_section_file_positions): If RS6000COFF_C, handle
64         reloc and lineno count overflows.
65         (coff_write_object_contents): Call coff_count_linenumbers before
66         coff_compute_section_file_positions.  If RS6000COFF_C, handle
67         reloc and lineno count overflows.
68         * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
69         relocs before dealing with .pad sections.  Count overflow section
70         headers when handling .pad sections.
71
72         * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
73         if RS6000COFF_C.
74
75         * xcofflink.c (XCOFF_DESCRIPTOR): Define.
76         (struct xcoff_link_hash_table): Add descriptor_section and
77         special_sections fields.
78         (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
79         (xcoff_link_add_symbols): Set linkage section alignment.  Create
80         descriptor section.  Check for magic symbol names (_text, etc.),
81         and record them in special_sections if found.  Set
82         XCOFF_DESCRIPTOR flag for a function descriptor, and set its
83         descriptor field to point back to the function code symbol.
84         (xcoff_sweep): Always mark the special descriptor_section.
85         (bfd_xcoff_export_symbol): Check whether the symbol might be a
86         function descriptor, and mark it if it is.
87         (bfd_xcoff_size_dynamic_sections): Add new special_sections
88         parameter, and fill it in.  Allocate space for the descriptor
89         section.
90         (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
91         global linkage code.  If an undefined function descriptor is
92         exported, arrange to define it.  Warn about any other undefined
93         exported symbol.
94         (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
95         (xcoff_write_global_symbol): Create a function descriptor when
96         necessary.
97         * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
98         * bfd-in2.h: Rebuild.
99
100 Thu Nov  9 08:40:23 1995  Kim Knuttila  <[email protected]>
101
102         * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
103         (ppc_coff_link_hash_table): new types for hashing
104         (ppc_coff_link_hash_newfunc): hash entry constructor
105         (ppc_coff_link_hash_table_init): hash table initializer
106         (ppc_coff_link_hash_table_create): hash table constructor
107         (ppc_record_toc_entry): changed references to hash table
108         (coff_ppc_relocate_section): changed references to hash table
109
110         * libcoff-in.h (coff_link_hash_entry): removed toc_offset
111         * libcoff.h: Rebuild
112
113         * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
114         (coff_link_add_symbols): removed toc_offset init
115
116 Thu Nov  9 04:00:38 1995  Ken Raeburn  <[email protected]>
117
118         * Makefile.in (.dep1): Make sure the file mkdep is to write exists
119         first.
120
121         * configure.in: Added new option --with[out]-mmap.  Set USE_MMAP
122         if it is given and mmep is available.
123         * acconfig.h: Undef USE_MMAP.
124         * configure, config.in: Regenerated.
125         * aoutx.h: If USE_MMAP is not defined, do all symbol and string
126         table handling the old way.
127         (aout_get_external_symbols): Don't complain if last byte of string
128         table is nonzero.
129         * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
130         (bfd_free_window) [! USE_MMAP]: Don't define.
131         (bfd_get_file_window,
132         _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
133
134 Wed Nov  8 20:03:44 1995  Eric Freudenthal <[email protected]>
135
136         * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
137         0xffff0000.
138
139 Wed Nov  8 11:31:11 1995  Ian Lance Taylor  <[email protected]>
140
141         * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
142         compatible with AMD generated COFF files.  Try to support both AMD
143         and GNU formats simultaneously.
144         (coff_a29k_relocate_section): Likewise.
145
146         * libbfd.c (bfd_get_file_window): Change writable parameter from
147         int to boolean; update all callers.  Pass MAP_SHARED if not
148         writable--it's required on Solaris.  Cast fprintf argument to
149         avoid warning.
150         * bfd-in.h (bfd_get_file_window): Update declaration.
151         * bfd-in2.h: Rebuild.
152         * aoutx.h: Update calls to bfd_get_file_window.
153
154         * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
155         Change all uses.
156         (xcoff_swap_ldhdr_in): New static function.
157         (xcoff_swap_ldsym_in): New static function.
158         (xcoff_find_reloc): Handle the case of a single reloc correctly.
159         (xcoff_link_add_symbols): If we just created a descriptor, pass it
160         to _bfd_generic_link_add_one_symbol, to save a hash lookup.
161         Handle XTY_ER/XMC_XO symbols correctly.
162         (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
163         rather than normal symbol table.
164         (bfd_xcoff_import_symbol): It's not an error if the symbol is
165         already defined with the same absolute value.
166         (xcoff_mark): When considering called symbols, check whether the
167         descriptor is from a dynamic object, rather than the symbol
168         itself.
169         (xcoff_build_ldsyms): Likewise.
170
171         * libbfd.c (bfd_get_file_window): Change return type to boolean.
172         Cast realloc and malloc return values.  If malloc or realloc fail,
173         set bfd_error_no_memory.
174         * bfd-in.h (bfd_get_file_window): Change type to boolean.
175         * bfd-in2.h: Rebuild.
176
177 Tue Nov  7 11:53:48 1995  Kim Knuttila  <[email protected]>
178
179         * coff-ppc.c (ppc_record_toc_entry): new function.
180         (in_reloc_p): changed return value.
181         (coff_ppc_relocate_section): much rework.
182         (ppc_allocate_toc_section): new function.
183         (ppc_process_before_allocation): new function.
184         (ppc_coff_swap_sym_in_hook): new function.
185
186         * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
187         (coff_link_add_symbols): initialize toc_offset.
188
189         * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
190         (coff_swap_aouthdr_out): Added more sections to the data
191         dictionary for the pe file header. Also changed linker version
192         number on the ppc side.
193         (dir_names): small improvements to the dictionary printing.
194         (pe_mkobject_hook): save the file level flags.
195
196         * libcoff-in.h (coff_link_hash_entry): added toc_offset field
197         (pe_tdata): added real_flags field
198         (coff_tdata): added local_toc_sym_map and access macro
199
200         * libcoff.h (coff_link_hash_entry): added toc_offset field
201         (pe_tdata): added real_flags field
202         (coff_tdata): added local_toc_sym_map and access macro
203
204         * coffcode.h (coff_set_alignment_hook): added hook for PE.
205         (coff_mkobject): init for local_toc_sym_map
206         (coff_write_object_contents): set the internal_a.magic to
207         IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
208         ppc compilers use.
209
210 Tue Nov  7 13:48:58 1995  Ian Lance Taylor  <[email protected]>
211
212         * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
213         entries until both the line number address and the function name
214         address are too large.
215
216         * configure.in: Call AC_CHECK_PROG to find and cache AR.
217         * configure: Rebuilt.
218
219         * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
220         is defined in the environment.
221
222 Tue Nov  7 10:57:24 1995  Jeffrey A Law  ([email protected])
223
224         * som.c (som_get_section_contents_in_window): Define to use
225         generic version.
226
227 Mon Nov  6 17:13:15 1995  Harry Dolan  <[email protected]>
228
229         * coff-i860.c: New file, based on coff-i386.c.
230         * cpu-i860.c: New file, based on cpu-i386.c.
231         * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
232         * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
233         targets, using i860coff_vec.
234         * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
235         trad-core.o and hosts/i860mach3.h.
236         (i860coff_vec): Use coff-i860.o and cofflink.o.
237         * configure: Rebuild.
238         * Makefile.in: Rebuild dependencies.
239         (ALL_MACHINES): Add cpu-i860.o.
240         (BFD32_BACKENDS): Add coff-i860.o.
241         (CFILES): Add cpu-i860.c and coff-i860.c.
242         * targets.c (i860coff_vec): Declare.
243         (bfd_target_vector): Add &i860coff_vec. 
244         * archures.c (bfd_i860_arch): Declare.
245         (bfd_archures_list): Add &bfd_i860_arch.
246         * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
247         (coff_set_flags): Handle bfd_arch_i860.
248         (coff_write_object_contents): Handle I860 a.out magic number.
249
250 Mon Nov  6 14:34:07 1995  Ian Lance Taylor  <[email protected]>
251
252         * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
253         the created .tc section to 2.
254         (xcoff_mark): Don't keep a .loader reloc for a call to an
255         undefined symbol when creating a shared library.
256         (xcoff_build_ldsyms): When creating a shared library, generate
257         global linkage code for a call to an undefined symbol.
258
259 Sun Nov  5 21:44:13 1995  Ken Raeburn  <[email protected]>
260
261         * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
262         BFD32_BACKENDS, BFD64_BACKENDS.
263         (.dep1): Put mkdep output in a separate file.
264         Rebuilt dependencies.
265
266         * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
267         value.
268
269         Permit use of mmap when available:
270
271         * configure.in: Check for mmap, madvise, mprotect.
272         * config.in, configure: Regenerated.
273
274         * libbfd.c (struct _bfd_window_internal): Define type.
275         (bfd_init_window, bfd_free_window, bfd_get_file_window): New
276         functions.
277         (ok_to_map): New static variable for debugging.
278         (_bfd_generic_get_section_contents_in_window): New function.
279         * bfd-in.h (bfd_window_internal): Declare type.
280         (bfd_window): Define type.
281         (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
282         * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
283         Declare.
284
285         * libaout.h (struct aoutdata): Add two window fields.
286         (obj_aout_sym_window, obj_aout_string_window): New macros.
287         * aoutx.h (some_aout_object_p): Initialize windows.
288         (aout_get_external_symbols): Get symbol data and strings in
289         windows instead of explicitly allocated buffers.
290         (slurp_symbol_table): Free window instead of memory.
291         (bfd_free_cached_info): Release windows instead of freeing storage
292         directly.
293         (aout_link_free_symbols): Ditto.
294
295         * targets.c (bfd_target): Add new field for
296         get_section_contents_in_window.
297         (BFD_JUMP_TABLE_GENERIC): Updated.
298         * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
299         coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
300         libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
301         macros for get_section_contents_in_window field.
302
303 Sat Nov  4 12:23:26 1995  Fred Fish  <[email protected]>
304
305         * core.c: Renamed to corefile.c
306         * makefile.dos (OBJS): Change core.o to corefile.o
307         * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
308         
309 start-sanitize-gm
310 Sat Nov  4 10:16:54 1995  Stu Grossman  ([email protected])
311
312         * config.bfd (mips*-*-magic*):  Add bfd_elf32_bigmips_vec to
313         targ_selvecs to allow debugging under Irix-5 native.
314
315 end-sanitize-gm
316 Fri Nov  3 15:54:59 1995  Ian Lance Taylor  <[email protected]>
317
318         * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
319         to o.  Clobber and restore the list of new csects around the call
320         to _bfd_generic_link_add_one_symbol, in case it wants to report a
321         linker error and the linker wants to read the symbol table.  Reset
322         the line number count of a real section even if it has no relocs.
323         (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
324
325         * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
326         is too small.
327
328 Thu Nov  2 23:16:39 1995  Ian Lance Taylor  <[email protected]>
329
330         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
331         an undefined symbol in a shared link.
332
333         * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
334         oldtype from bfd_link_order_type to bfd_link_hash_type.  From
335         [email protected] (Philippe De Muyter).
336
337 Wed Nov  1 14:26:02 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <[email protected]>
338
339         * coff-m88k.c (rtype2howto): New static function.
340         (RTYPE2HOWTO): Use it rather than a macro definition.
341
342         * coffcode.h (coff_write_object_contents): set internal_a.magic
343         to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
344
345         * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
346         define TRAD_HEADER to new file hosts/delta68.h.
347         m88*-motorola-sysv*, however, does use ptrace-core.o.
348         * hosts/delta68.h: New file.
349
350         * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
351         bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
352
353 Wed Nov  1 13:51:54 1995  Ken Raeburn  <[email protected]>
354
355         * i386linux.c (MY(vec)): Declare before use.
356
357 Wed Nov  1 11:45:07 1995  Ian Lance Taylor  <[email protected]>
358
359         * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
360         Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
361
362         * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
363         BFD is not of the right type.
364         (bfd_elf_get_needed_list): Likewise.
365         * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
366         * sunos.c (bfd_sunos_get_needed_list): Likewise.
367         * xcofflink.c (XCOFF_XVECP): Define.
368         (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
369         of the right type.
370         (bfd_xcoff_import_symbol): Likewise.
371         (bfd_xcoff_export_symbol): Likewise.
372         (bfd_xcoff_link_count_reloc): Likewise.
373         (bfd_xcoff_record_link_assignment): Likewise.
374         (bfd_xcoff_size_dynamic_sections): Likewise.
375
376         * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
377         table index against the number of symbols for a base relative
378         reloc.
379
380         * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
381         static function.
382         * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
383         full_aouthdr flag here...
384         (_bfd_xcoff_bfd_final_link): ...not here.
385
386 Tue Oct 31 12:52:02 1995  Fred Fish  <[email protected]>
387
388         * libelf.h:  Rename to elf-bfd.h to avoid conflict with
389         systems that have a system <libelf.h>.
390         * Makefile.in: Globally replace libelf.h with elf-bfd.h.
391         * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
392         elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
393         elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
394         elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
395         elfxx-target.h: Include elf-bfd.h rather than libelf.h.
396         * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
397
398 Tue Oct 31 15:30:07 1995  David Mosberger-Tang  <[email protected]>
399
400         * ecoff.c (ecoff_set_symbol_info): Add new parameter weak.  If
401         set, set BSF_WEAK in symbol.  Change all callers.
402         (ecoff_get_extr): Set weakext based on BSF_WEAK.
403         (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
404         _bfd_generic_link_add_one_symbol.
405         (ecoff_indirect_link_order): Check that the section tdata relocs
406         are not NULL before using them.
407
408         * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
409         define TRAD_HEADER as hosts/alphalinux.h.
410         * configure: Rebuild.
411         * hosts/alphalinux.h: New file.
412         * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
413         not int.
414
415 Tue Oct 31 12:34:11 1995  Ian Lance Taylor  <[email protected]>
416
417         * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
418         C_ECOMM storage classes.
419
420         * xcofflink.c (xcoff_mark_symbol): New static function, broken out
421         of xcoff_mark.
422         (xcoff_mark): Call xcoff_mark_symbol.
423         (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
424         (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
425         doing it by hand.
426         (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
427
428 Mon Oct 30 14:53:48 1995  Ian Lance Taylor  <[email protected]>
429
430         * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
431         field.
432         (xcoff_find_reloc): New static function.
433         (xcoff_link_add_symbols): Use it.
434         (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
435         (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL.  Don't
436         relocate the value of C_DECL.
437
438         * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
439
440 Sat Oct 28 01:25:34 1995  steve chamberlain  <[email protected]>
441
442         * cofflink.c (_bfd_coff_generic_relocate_section): Make
443         callback decide what goes in .relocs.
444         * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
445         * peicode.h (pe_mkobject_hook): Only copy aouthdr if
446         there is one.
447
448 Sat Oct 28 01:51:02 1995  Ian Lance Taylor  <[email protected]>
449
450         * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
451         absolute section.
452
453 Fri Oct 27 18:14:39 1995  Ian Lance Taylor  <[email protected]>
454
455         * xcofflink.c: More improvements, mostly to fix handling of
456         constructors and a few other special cases.
457         * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
458         zero, reverting yesterday's change.
459         * bfd-in.h (bfd_xcoff_link_record_set): Declare.
460         (bfd_xcoff_link_count_reloc): Declare.
461         (bfd_xcoff_record_link_assignment): Declare.
462         * bfd-in2.h: Rebuild.
463
464 Fri Oct 27 14:42:15 1995  Niklas Hallqvist  <[email protected]>
465
466         * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
467         aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
468         i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
469         i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
470         ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
471         Change PAGE_SIZE to TARGET_PAGE_SIZE.
472
473         * m68knetbsd.c: Ditto as well as add support for the m68k4k object
474         format.
475
476         * netbsd.h: Double ditto (incl. m68k4k support).  NetBSD's text
477         segments includes the a.out header.  See to that the magic number
478         *always* is big-endian.
479
480         * config.bfd: Add m68*-hp*-netbsd* case.  Cross-pollinate m68k and
481         m68k4k NetBSD configurations.
482
483         * configure.in, configure: Separate i386 & mips NetBSD
484         configurations from other BSD ones.  Don't assume DEC is the only
485         thing NetBSD/mips run on.  Add {m68k,ns32k,sparc}-*-netbsd*
486         configurations.  Add support for m68k4k NetBSD object format.
487
488         * libaout.h: Added M_68K4K_NETBSD magic.
489
490         * m68k4knetbsd.c: New file.
491         
492         * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
493
494         * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
495         <machine/endian.h>.
496
497         * hosts/mipsnbsd.h: New file.
498         
499 start-sanitize-gm
500 Fri Oct 27 09:41:51 1995  Stu Grossman  ([email protected])
501
502         * config.bfd:  Add config stuff for mips*-*-magic* to set
503         targ_defvec to ecoff_big_vec.
504
505 end-sanitize-gm
506 Thu Oct 26 14:16:47 1995  Ian Lance Taylor  <[email protected]>
507
508         * xcofflink.c: Numerous changes to get closer to a working XCOFF
509         linker.
510         * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
511         toc_section, and entry_section fields.
512         (struct xcoff_section_tdata): Remove ldrel_count field.
513         * libcoff.h: Rebuild.
514         * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
515         fields.
516         (coff_compute_section_file_positions): If RS6000COFF_C, generate
517         full a.out header if full_aouthdr is set in xcoff_data.
518         (coff_write_object_contents): Likewise.  Set o_snentry and o_sntoc
519         based on sections stored in xcoff_data.
520         * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
521         fields.
522         (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
523         (rs6000coff_vec): Set symbol_leading_char to '.'.
524         * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
525         value stored in ret rather than returning a pointer value.
526         
527 Wed Oct 25 23:10:39 1995  Michael Meissner  <[email protected]>
528
529         * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
530         format for now.
531
532 Wed Oct 25 16:19:27 1995  Jeffrey A Law  ([email protected])
533
534         * som.c (som_slurp_string_table): Allocate the strings with malloc
535         since they're free'd by free_cached_info.
536         (som_slurp_symbol_table): Similarly for the symbol table.
537
538 Wed Oct 25 14:59:22 1995  Per Bothner  <[email protected]>
539
540         * Makefile.in (diststuff):  Don't make headers.
541
542 Wed Oct 25 11:32:54 1995  Ian Lance Taylor  <[email protected]>
543
544         * Makefile.in: Rebuild dependencies.
545
546         * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
547         output_bfd is not SunOS.
548         (bfd_sunos_size_dynamic_sections): Likewise.  Don't scan relocs of
549         non-SunOS input files.
550
551         * xcofflink.c: Extensive changes to support linking shared objects
552         and generating a .loader section.
553         * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
554         (struct xcoff_section_tdata): Add lineno_count, first_symndx,
555         last_symndx, and ldrel_count fields.
556         * libcoff.h: Rebuild.
557         * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
558         * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
559         is set.
560         * bfd-in.h (bfd_xcoff_import_symbol): Declare.
561         (bfd_xcoff_export_symbol): Declare.
562         (bfd_xcoff_size_dynamic_sections): Declare.
563         * bfd-in2.h: Rebuild.
564
565 Tue Oct 24 17:44:20 1995  Stan Shebs  <[email protected]>
566
567         * configure.in: Add xcofflink.o to pmac_xcoff_vec.
568         * configure: Rebuild.
569         * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
570         * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
571         contents.
572         (pmac_xcoff_vec): Update to use new xcoff support.
573         * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
574         (xcoff_write_armap): Declare buf as unsigned char.
575         * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
576
577         * mpw-make.sed: Generalize subdir_do edit.
578         
579 Tue Oct 24 10:25:01 1995  Jeffrey A Law  ([email protected])
580
581         * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
582         correctly.  Don't initialize asect->vma.
583
584 Fri Oct 20 13:23:48 1995  Ken Raeburn  <[email protected]>
585
586         * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
587         something a little less than the page size.
588
589 Thu Oct 19 13:06:09 1995  Ian Lance Taylor  <[email protected]>
590
591         * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
592
593 Wed Oct 18 16:20:08 1995  steve chamberlain  <[email protected]>
594
595         * coff-i386.c (coff_i386_reloc_type_lookup): New.
596         * coffcode.h (coff_write_object_contents): If .bss is before
597         .data us that as data_start.
598         * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
599         calc correct.
600         * peicode.h (add_data_entry): Use _cooked_size of data directory.
601         (coff_swap_outhdr_out): Hardwire in version number.
602         
603 Wed Oct 18 16:50:54 1995  Ken Raeburn  <[email protected]>
604
605         * sunos.c (sunos_add_dynamic_symbols): Rename local variables
606         major and minor to *_vno, since the former are also macros in
607         SunOS header files.  Cast result of bfd_alloc to appropriate
608         type.
609
610         * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
611         before assigning to sec_data.
612
613 Wed Oct 18 13:25:17 1995  Ian Lance Taylor  <[email protected]>
614
615         * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
616         now relative to the section, not absolute.
617         * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
618         get the file name when there is a N_SO directory name.  When
619         handling stabs, remember that section->vma was added to the
620         offset.
621
622 Tue Oct 17 18:24:54 1995  Ian Lance Taylor  <[email protected]>
623
624         * sunos.c (struct sunos_link_hash_table): Add needed field.
625         (sunos_link_hash_table_create): Call bfd_release, not free.
626         (sunos_link_hash_table_create): Initialize needed field.
627         (sunos_add_dynamic_symbols): Record needed objects.
628         (bfd_sunos_get_needed_list): New function.
629         * bfd-in.h (bfd_sunos_get_needed_list): Declare.
630         * bfd-in2.h: Rebuild.
631
632 Mon Oct 16 14:43:59 1995  steve chamberlain  <[email protected]>
633
634         * libcoff-in.h (pe_data_type.in_reloc_p): New.
635
636 Mon Oct 16 10:52:50 1995  Ian Lance Taylor  <[email protected]>
637
638         * bfd-in.h (struct bfd_link_needed_list): Rename from
639         bfd_elf_link_needed_list.
640         * bfd-in2.h: Rebuild.
641         * elf.c, elflink.h, libelf.h: Corresponding changes.
642
643         Add start at AIX linker support; no shared libraries yet.
644         * xcofflink.c: New file.
645         * configure.in (rs600coff_vec): Use xcofflink.o.
646         * configure: Rebuild.
647         * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
648         fields.
649         (struct xcoff_section_tdata): Define.
650         (xcoff_section_data): Define macro.
651         (_bfd_xcoff_bfd_link_hash_table_create): Declare.
652         (_bfd_xcoff_bfd_link_add_symbols): Declare.
653         (_bfd_xcoff_bfd_final_link): Declare.
654         (_bfd_ppc_xcoff_relocate_section): Declare.
655         * libcoff.h: Rebuild.
656         * coff-rs6000.c: Clean up a bit.
657         (xcoff_mkobject): Default modtype to 1L, not RE.  Initialize
658         cputype, csects, and debug_indices.
659         (xcoff_copy_private_bfd_data): Copy cputype.
660         (xcoff_howto_table): Rename from rs6000coff_howto_table.
661         (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
662         (xcoff_reloc_type_lookup): Rename from
663         rs6000coff_reloc_type_lookup.
664         (coff_relocate_section): Define.
665         (_bfd_xcoff_sizeof_headers): Define.
666         (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
667         (_bfd_xcoff_bfd_relax_section): Define.
668         (_bfd_xcoff_bfd_link_split_section): Define.
669         (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
670         coff.
671         * coffcode.h (coff_compute_section_file_positions): If AIX,
672         increment sofar by SMALL_AOUTSZ if not executable.
673         (coff_write_object_contents): If AIX, always output an a.out
674         header; if not executable, header size of SMALL_AOUTSZ.
675         * hash.c (struct bfd_strtab_hash): Add xcoff field.
676         (_bfd_stringtab_init): Initialize xcoff field.
677         (_bfd_xcoff_stringtab_init): New function.
678         (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
679         (_bfd_stringtab_emit): In XCOFF mode, write out length.
680         * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
681         * libbfd.h: Rebuild.
682         * Makefile.in: Rebuild dependencies.
683         (BFD32_BACKENDS): Add xcofflink.o.
684         (CFILES): Add xcofflink.c.
685
686         * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
687         SEC_NO_FLAGS, for .acommon section.  From Peter Schauer
688         <[email protected]>.
689
690 Sat Oct 14 21:36:02 1995  Michael Meissner  <[email protected]>
691
692         * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
693
694 Fri Oct 13 17:48:43 1995  Ken Raeburn  <[email protected]>
695
696         * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
697         * config.in: Regenerated.
698
699         * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
700         (_bfd_chunksize): New variable.
701         (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
702         for obstack chunk size.
703         * configure.in: Check for getpagesize.
704         * configure: Regenerated.
705
706         Mon Sep 25 22:49:32 1995  Andreas Schwab  <[email protected]>
707
708         * trad-core.c (rawptr): Make it a local variable of
709         ptrace_unix_core_file_p.
710
711 Fri Oct 13 11:22:01 1995  steve chamberlain  <[email protected]>
712
713         * coff-arm.c (in_reloc_p): New.
714         * coff-i386.c (in_reloc_p): New.
715         * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
716         (coff_write_object_contents): Only set has_reloc_section
717         if PE_IMAGE.
718         * cofflink.c (_bfd_coff_generic_relocate_section): Call
719         in_reloc_p to decide if reloc should be emitted.
720         * libcoff.h (pe_data_type.in_reloc_p): New.
721         * peicode.h (pe_mkobject): Initialize in_reloc_p.
722
723 Wed Oct 11 00:49:29 1995  Ian Lance Taylor  <[email protected]>
724
725         * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
726         (_bfd_coff_read_internal_relocs): Likewise.
727         * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
728         (_bfd_coff_read_internal_relocs): Likewise.
729
730         * elflink.h (elf_link_add_object_symbols): Correct conditions
731         under which type and size change warnings are issued.
732
733 Tue Oct 10 18:32:46 1995  Ian Lance Taylor  <[email protected]>
734
735         * coffgen.c (coff_count_linenumbers): Don't count line numbers for
736         a symbol which is not in a real section.
737         (coff_write_native_symbol): Corresponding change.
738
739         * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
740         coff_link_hash_newfunc and make non-static.
741         (_bfd_coff_link_hash_table_init): New function, broken out of
742         _bfd_coff_link_hash_table_create.
743         (_bfd_coff_link_hash_table_create): Use it.
744         (process_embedded_commands): Make static.
745         * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
746         (_bfd_coff_link_hash_table_init): Declare.
747         * libcoff.h: Rebuild.
748
749         * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
750         field in XCOFF tdata.
751         (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
752         U802ROMAGIC, for clarity.  Try to set arch and machine correctly
753         based on cputype stored in a.out header, or in n_type of initial
754         .file symbol.
755         (coff_write_object_contents): Set cputype correctly in a.out
756         header.
757         (coff_slurp_symbol_table): Add casts to file_ptr to avoid
758         warnings.
759         * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
760         (coff_swap_aouthdr_out): Swap out cputype field.  Don't clear
761         old resv1 field.
762         * libcoff-in.h (struct xcoff_tdata): Add cputype field.
763         * libcoff.h: Rebuild.
764
765         * cpu-rs6000.c (rs6000_compatible): New static function.
766         (bfd_rs6000_arch): Use it.
767         * cpu-powerpc.c (powerpc_compatible): New static function.
768         (arch_info_struct): Define various flavours of PowerPC.
769         (bfd_powerpc_arch): Use powerpc_compatible.  Point at
770         arch_info_struct.
771
772 Tue Oct 10 10:50:46 1995  Fred Fish  <[email protected]>
773
774         * Makefile.in (FLAGS_TO_PASS):  Remove BISON.
775
776 Tue Oct 10 01:28:29 1995  Ian Lance Taylor  <[email protected]>
777
778         * elflink.h (elf_link_add_object_symbols): Don't warn about
779         changing the size or type if the old definition was weak.
780
781 Mon Oct  9 11:24:08 1995  Ian Lance Taylor  <[email protected]>
782
783         * coffcode.h (combined_entry_type): Add fix_line field.
784         (coff_slurp_line_table): Warn if we try to set the lineno field of
785         a symbol twice.
786         (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
787         C_EINCL by setting fix_line.  Fix C_BSTAT symbol value.
788         * coffgen.c (coff_mangle_symbols): Handle fix_line.
789         (coff_write_symbol): Only use N_DEBUG if the symbol is in the
790         absolute section.
791         (coff_print_symbol): Print fix_value symbols in a useful fashion.
792         * libcoff.h: Rebuild.
793
794         * libcoff-in.h (struct xcoff_tdata): Define.
795         (xcoff_data): Define.
796         * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
797         * bfd-in2.h, libcoff.h: Rebuild.
798         * coff-rs6000.c (xcoff_mkobject): New static function.
799         (coff_mkobject): Define.
800         (xcoff_copy_private_bfd_data): New static function.
801         (coff_bfd_copy_private_bfd_data): Define.
802         (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
803         signed to bitfield.
804         (rs6000coff_vec): Add DYNAMIC to object_flags.
805         * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
806         .loader sections specially.
807         (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
808         section alignment from the XCOFF tdata information.
809         (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
810         F_SHROBJ, and copy the extra a.out header information into the
811         XCOFF tdata structure.
812         (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
813         F_DYNLOAD and the extra a.out header information.
814         (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
815         C_HIDEXT symbol with attached csect information.
816         * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
817         in the o_maxdata field.
818         (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
819         * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
820         end if BSF_NOT_AT_END is set.
821
822         * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
823         _bfd_read_ar_hdr_fn.
824         * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
825         * bfd-in2.h, libbfd.h: Rebuild.
826         * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
827         return value.
828         (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
829         (bfd_slurp_bsd_armap_f2): Likewise.
830         (_bfd_slurp_extended_name_table): Likewise.
831
832 Fri Oct  6 16:18:35 1995  Ken Raeburn  <[email protected]>
833
834         Mon Sep 25 22:49:32 1995  Andreas Schwab  <[email protected]>
835
836         * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
837         when the symbol table is empty.
838
839         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
840         space for section symbols, since we don't output them either.
841         (elf_m68k_adjust_dynindx): Removed.
842
843         * ptrace-core.c (rawptr): Make it a local variable of
844         ptrace_unix_core_file_p.
845
846 Fri Oct  6 12:24:47 1995  Michael Meissner  <[email protected]>
847
848         * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
849         NULL.
850
851         * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
852         Mac object file formats.
853
854 Fri Oct  6 12:04:02 1995  Ian Lance Taylor  <[email protected]>
855
856         * coffgen.c (coff_fix_symbol_name): Don't try to set up file
857         auxent if there isn't one.
858         (coff_write_symbols): If there is no file auxent, use SYMNMLEN
859         rather than FILNMLEN as the maximum name length.
860
861         * coffcode.h (bfd_coff_backend_data): Add new field
862         _bfd_coff_print_aux.
863         (bfd_coff_print_aux): New static function.
864         (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
865         scnlen field of an XTY_LD csect aux entry.
866         (coff_print_aux): New static function.
867         (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
868         in coff_pointerize_aux_hook.
869         (bfd_coff_std_swap_table): Initialize new field.
870         * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
871         * libcoff.h: Rebuild.
872         * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
873         * coff-mips.c (mips_ecoff_backend_data): Likewise.
874
875         * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
876         if there are symbols, for native AIX ld compatibility.
877
878         * coffcode.h (bfd_coff_backend_data): Add new field
879         _bfd_coff_pointerize_aux_hook.
880         (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
881         or I960, and as 0 otherwise.
882         (bfd_coff_std_swap_table): Initialize new field.
883         * libcoff.h: Rebuild.
884         * coffgen.c (coff_pointerize_aux): Change parameters  to take
885         symbol pointer instead of type and class, and to take aux index.
886         Call _bfd_coff_pointerize_aux_hook if it is defined.
887         (coff_get_normalized_symtab): Always call coff_pointerize_aux.
888         * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
889         * coff-mips.c (mips_ecoff_backend_data): Likewise.
890
891         * coff-rs6000.c: Add full support for AIX archives.  Rewrite old
892         read-only/host-only support.
893
894         * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
895         BSF_LOCAL.
896         (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
897         RS6000COFF_C.
898
899         * targets.c (bfd_target): Add _bfd_read_ar_hdr field.  Modify
900         BFD_JUMP_TABLE_ARCHIVE accordingly.
901         * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
902         (_bfd_compute_and_write_armap): Declare.
903         (_bfd_generic_read_ar_hdr): Declare.
904         (_bfd_read_ar_hdr): Define.
905         (_bfd_noarchive_read_ar_hdr): Define.
906         (_bfd_archive_bsd_read_ar_hdr): Define.
907         (_bfd_archive_coff_read_ar_hdr): Define.
908         * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
909         _bfd_read_ar_hdr instead.
910         (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
911         (_bfd_compute_and_write_armap): Rename from
912         compute_and_write_armap.  Make non-static.  Change all callers.
913         * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
914         than _bfd_snarf_ar_hdr.
915         * aout-target.h (MY_read_ar_hdr): Define if not defined.
916         * ieee.c (ieee_read_ar_hdr): Define.
917         * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
918         * oasys.c (oasys_read_ar_hdr): Define.
919         * som.c (som_read_ar_hdr): Define.
920         * bfd-in2.h, libbfd.h: Rebuild.
921
922 Thu Oct  5 14:04:07 1995  steve chamberlain  <[email protected]>
923
924         * peicode.c (coff_swap_filehdr_in): If symptr is
925         zero, there aren't any symbols, even if nsyms is set.
926
927 Thu Oct  5 11:45:02 1995  Ian Lance Taylor  <[email protected]>
928
929         * libecoff.h (struct ecoff_backend_data): Add adjust_headers
930         field.
931         * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
932         sections, and set styp correctly for them: .got, .hash, .dynamic,
933         .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
934         (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
935         types.
936         (ecoff_sort_hdrs): New static function.
937         (ecoff_compute_section_file_positions): Return boolean, not void.
938         Sort the sections by VMA before looking through them.  Put the
939         first non SEC_ALLOC section on a new page.  Put every SEC_ALLOC
940         section on an appropriate boundary within the page.
941         (ecoff_compute_reloc_file_positions): Check return value of
942         ecoff_compute_section_file_positions.
943         (_bfd_ecoff_set_section_contents): Likewise.
944         (_bfd_ecoff_write_object_contents): Check for various Alpha
945         section types when incrementing text_size and data_size.  Call
946         adjust_headers backend function if it exists.
947         * coff-alpha.c (alpha_adjust_headers): New static function.
948         (alpha_ecoff_backend_data): Initialize adjust_headers field.
949         * coff-mips.c (mips_ecoff_backend_data): Likewise.
950
951         * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
952
953 Wed Oct  4 18:15:02 1995  Jeff Law  ([email protected])
954
955         * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
956         of ALTERNATE_AIX_CORE_FORMAT.
957         * configure.in (aix4): No longer need CORE_FLAGS.
958         * configure: Updated.
959
960 Wed Oct  4 15:36:36 1995  Ken Raeburn  <[email protected]>
961
962         NS32k changes from Ian Dall:
963         * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
964         macros.
965         (aout_link_input_section_std, aout_link_input_section_ext,
966         aout_link_reloc_link_order): Call them instead of _bfd_*
967         versions.
968         * aout-target.h (MY_exec_header_not_counted): New macro, defaults
969         to zero.
970         (backend_data): Use it instead of hardcoded zero.
971
972         * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
973         (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
974
975         * ns32knetbsd.c: Include bfd.h.
976         (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
977         (MY_bfd_reloc_type_lookup): Declare function too.
978         * pc532-mach.c (set_sizes): Don't declare.
979         (MY_text_includes_header, MY_exec_header_not_counted): Define.
980         (backend_data, MY_backend_data): Don't define.
981
982         * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
983         ns32k-*-lites* like ns32k-*-netbsd*.
984
985         * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
986         compile on lites.
987
988 Wed Oct  4 14:15:52 1995  Ian Lance Taylor  <[email protected]>
989
990         * coffcode.h (coff_write_object_contents): Restore setting
991         f_timdat to 0, deleted on August 22.
992
993 Tue Oct  3 16:28:32 1995  steve chamberlain  <[email protected]>
994
995         * coffcode.h (coff_bfd_copy_private_symbol_data,
996         coff_bfd_copy_private_section_data,
997         coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
998         * peicode.h (coff_bfd_copy_private_bfd_data): New
999         (pe_bfd_copy_private_bfd_data): New.
1000         (coff_swap_scnhdr_in): Swap bss size into the right place.
1001         (pe_print_private_bfd_data): Add some newlines.
1002
1003 Tue Oct  3 11:53:04 1995  Jeff Law  ([email protected])
1004
1005         * som.c (setup_sections): Don't die if a space has no subspaces.
1006
1007 Mon Oct  2 14:08:55 1995  Ian Lance Taylor  <[email protected]>
1008
1009         * elflink.h (elf_link_add_object_symbols): Don't let a weak
1010         dynamic symbol override a common symbol.  Don't change the size or
1011         type if they have been set and the new symbol is not a definition.
1012         Warn if the size or type changes.
1013
1014 Sun Oct  1 01:34:41 1995  Jeff Law  ([email protected])
1015
1016         * som.c (som_begin_writing): Don't write the symbol table or
1017         symbol  strings.
1018         (som_finish_writing): Write them here.  Place them after the
1019         subspace data, but before the relocs.
1020
1021 Fri Sep 29 11:01:55 1995  Ian Lance Taylor  <[email protected]>
1022
1023         * sunos.c (sunos_add_one_symbol): Just pass false, not
1024         info->shared_library, to sunos_create_dynamic_sections.
1025         (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
1026         section.
1027         (sunos_check_dynamic_reloc): Remove .text section assertion.
1028
1029 Thu Sep 28 18:48:47 1995  Stan Shebs  <[email protected]>
1030
1031         * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
1032         * configure, configure.in: Add pmac_xcoff_vec case.
1033         * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
1034         * coff-pmac.c: New file, PowerMac XCOFF support.
1035         * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
1036         * targets.c (pmac_xcoff_vec): Declare.
1037
1038         * mpw-config.in: Various changes to be compatible with the
1039         autoconf-based configury.
1040         * mpw-make.sed: New file, sed commands to translate Unix
1041         makefile into MPW syntax.
1042         * mpw-make.in: Remove.
1043         * hosts/mpw.h: Remove.
1044         * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
1045         true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
1046
1047 Thu Sep 28 17:06:23 1995  steve chamberlain  <[email protected]>
1048
1049         * binary.c (binary_get_symtab): Return an empty string on error.
1050         * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
1051
1052 Thu Sep 28 15:30:44 1995  Kim Knuttila  <krk@nellie>
1053
1054         * coff-ppc.c: Reformatted according to gnu conventions
1055                       Removed irrelevant "if 0" code
1056
1057 Thu Sep 28 11:19:53 1995  Ian Lance Taylor  <[email protected]>
1058
1059         * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
1060         symbols rather than as indirect symbols.
1061         (MY(slurp_symbol_table)): Don't do anything special about
1062         secondary symbols.
1063
1064         * coffcode.h (coff_new_section_hook): Make sure that the alignment
1065         of .ctors and .dtors sections is no larger than 2.
1066
1067         * sunos.c (sunos_add_one_symbol): Don't change
1068         bfd_link_hash_common to bfd_link_hash_new, since it may be on the
1069         undef list.
1070         (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
1071         dynamic symbols when creating a shared library.
1072         (sunos_scan_ext_relocs): Handle relocs correctly when creating a
1073         shared library.
1074         (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
1075         written even if it is not defined in a regular object.
1076         (sunos_write_dynamic_symbol): Use plt_offset for the address of
1077         the jump table reloc.  Add an assertion.  Use RELOC_JMP_SLOT
1078         rather than the constant 22.
1079         (sunos_check_dynamic_reloc): Handle creating a shared library.
1080         (sunos_finish_dynamic_link): Set the first entry in the GOT to
1081         zero when creating a shared library.
1082         * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
1083         write it out at the start of the symbol table.
1084
1085         * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
1086
1087 Thu Sep 28 00:58:05 1995  Doug Evans  <[email protected]>
1088
1089         * config.bfd: Add arm-*-coff.
1090         * configure.in, configure: Add armcoff_{little,big}_vec.
1091         * targets.c (armcoff_{little,big}_vec): Declare.
1092         (bfd_target_vector): Add armcoff_{little,big}_vec.
1093         * coff-arm.c (armcoff_{little,big}_vec): Always define.
1094
1095 Wed Sep 27 10:37:14 1995  Ian Lance Taylor  <[email protected]>
1096
1097         * targets.c (bfd_find_target): Remove debugging code.
1098
1099 Wed Sep 27 07:23:39 1995  Kim Knuttila  <krk@nellie>
1100
1101         * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE 
1102         support on powerpc.
1103         * Makefile.in: added *-ppc files
1104         * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
1105         allow pe based .o's to be shared with other tools on ppc/NT
1106         * config.bfd: added powerpc[le]-[pe|winnt] config support
1107         * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec 
1108         * peicode.h: Added more section flags for PE on ppc
1109                      Added coff_swap_filehdr_out to allow peicode.h to be
1110                      used for non-image PE files on ppc.
1111                      Check for image, or not, before copying pe_opthdr
1112         * targets.c: Added new bfd's
1113         * targets.c: Removed two inactive bfds that shouldn't have made it this
1114                      far.
1115
1116 Tue Sep 26 14:06:41 1995  Michael Meissner  <[email protected]>
1117
1118         * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
1119         explicit values to initialize all relocs.  Change all users.
1120         (ppc_elf_brtaken_inner): New function to handle branch predicition
1121         relocs.
1122         (ppc_elf_brtaken_reloc): Ditto.
1123         (ppc_elf_howto_raw): Use new functions.  Make sure all unsupported
1124         relocs use ppc_elf_unsupported_reloc.
1125         (ppc_elf_merge_private_bfd_data): Keep track of whether an error
1126         needs to be reported.
1127         (ppc_elf_relocate_section): Support branch prediction relocs.
1128
1129 Tue Sep 26 12:48:05 1995  Ian Lance Taylor  <[email protected]>
1130
1131         * bfd.c (bfd_assert): Remove \n from string passed to
1132         _bfd_error_handler.
1133
1134         * coff-i386.c: (TWO_DATA_SECS): Don't define.
1135         * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
1136         (bfd_coff_make_section_hook): Don't define.
1137         (coff_make_section_hook): Remove.
1138         (sec_to_styp_flags): Remove TWO_DATA_SECS case.
1139         (styp_to_sec_flags): Likewise.
1140         (coff_write_object_contents): Likewise.
1141         (bfd_coff_std_swap_table): Don't initialize make_section_hook
1142         field.
1143         * libcoff.h: Rebuild.
1144         * coffgen.c (make_a_section_from_file): Just call
1145         bfd_make_section_anyway, not bfd_make_section or
1146         bfd_coff_make_section_hook.
1147         * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
1148         * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
1149         * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
1150         make_section_hook field.
1151         * coff-mips.c (mips_ecoff_backend_data): Likewise.
1152
1153         * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
1154         pointers into value field for warning and indirect symbols; just
1155         leave the value field alone.
1156         * linker.c (generic_link_add_symbol_list): Use next symbol for
1157         warning and indirect symbols, rather than looking in symbol value.
1158         * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
1159         parameter.  Change all callers.  Remove support for indirect
1160         symbols; it didn't work anyhow.
1161         (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
1162         * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
1163         * bfd-in2.h: Rebuild.
1164
1165 Mon Sep 25 16:04:09 1995  Michael Meissner  <[email protected]>
1166
1167         * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
1168         go back to telling the tools this reloc operates on 32 bits.
1169
1170 Mon Sep 25 11:48:02 1995  Ian Lance Taylor  <[email protected]>
1171
1172         * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
1173         rather than a direct fprintf.
1174         * archive.c (_bfd_write_archive_contents): Likewise.
1175         * coffcode.h (coff_slurp_symbol_table): Likewise.
1176         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
1177         (ppc_elf_unsupported_reloc): Likewise.
1178         (ppc_elf_relocate_section): Likewise.
1179         * i386linux.c (linux_tally_symbols): Likewise.
1180         (linux_finish_dynamic_link): Likewise.
1181         * osf-core.c (osf_core_core_file_p): Likewise.
1182         * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
1183         * som.c (som_sizeof_headers): Likewise.
1184         * srec.c (srec_bad_byte): Likewise.
1185         * bfd.c (bfd_assert): Likewise.  Also change file to be const.
1186         * libbfd-in.h (bfd_assert): Declare first parameter const.
1187         * libbfd.h: Rebuild.
1188         * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
1189         bfd_reloc_overflow is enough.
1190         * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
1191         * coff-h8500.c (rtype2howto): Likewise.
1192         * coff-z8k.c (rtype2howto): Likewise.
1193         * coffcode.h (dummy_reloc16_extra_cases): Likewise.
1194         * elf.c (_bfd_elf_get_lineno): Likewise.
1195         (_bfd_elf_no_info_to_howto): Likewise.
1196         (_bfd_elf_no_info_to_howto_rel): Likewise.
1197         * hp300hpux.c (convert_sym_type): Likewise.
1198         (MY(swap_std_reloc_in)): Likewise.
1199         * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
1200
1201         * libaout.h (struct aoutdata): Add line_buf field.
1202         * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
1203         and filename_buffer.  Instead, use a malloc buffer stored in the
1204         new line_buf field.  Remove length restrictions.
1205
1206         * coffgen.c (string_size): Remove static variable.
1207         (debug_string_size, debug_string_section): Likewise.
1208         (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
1209         and debug_string_size_p parameters.  Use them instead of the
1210         global variables.  Change all callers.
1211         (coff_write_symbol): Likewise.
1212         (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
1213         (coff_write_symbols): Add local variables to replace removed
1214         global variables.
1215
1216         * libcoff-in.h (struct coff_section_tdata): Add offset, i,
1217         function, and line_base fields.
1218         * libcoff.h: Rebuild.
1219         * coffgen.c (coff_find_nearest_line): Use section tdata to cache
1220         information, rather than using static variables.
1221
1222         * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
1223         file.  From Peter DeWolf <[email protected]>.
1224
1225         * init.c (initialized): Remove static variable.
1226         (bfd_init): Don't bother setting initialized.
1227         (bfd_check_init): Remove.
1228         * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
1229         * libbfd.h: Rebuild.
1230
1231 Sat Sep 23 01:22:23 1995  Peter Schauer  ([email protected])
1232
1233         * rs6000-core.c (rs6000coff_core_p):  Don't check the core file
1234         size for full core dumps. Copy core file header to private data.
1235         (rs6000coff_core_file_failing_command,
1236         rs6000coff_core_file_failing_signal):  New functions to extract
1237         the file name and terminating signal from the core file.
1238         * coff-rs6000.c:  Use them.
1239
1240 Fri Sep 22 17:44:47 1995  Ian Lance Taylor  <[email protected]>
1241
1242         Change arch info to be const, initialized at compile time.
1243         * archures.c: Reindent many functions.  Change CONST to const.
1244         (bfd_arch_info_type): Make arch_name const.  Remove disassemble;
1245         nothing set it anyhow.  Make next const.
1246         (bfd_arch_info_list): Remove.
1247         (bfd_archures_list): Rename from archures_init_table.  Change from
1248         a table of function pointers to a table of bfd_arch_info_type
1249         structure addresses.
1250         (bfd_scan_arch): Rewrite accordingly.  Return a const pointer.
1251         (bfd_lookup_arch): Likewise.
1252         (bfd_set_arch_info): Rewrite accordingly.  Change argument to be a
1253         const pointer.
1254         (bfd_default_arch_struct): Make const.
1255         (bfd_arch_init, bfd_arch_linkin): Remove.
1256         (bfd_get_arch_info): Return a const pointer.
1257         * init.c (bfd_init): Don't call bfd_arch_init.
1258         * bfd.c (struct _bfd): Make arch_info const.
1259         * bfd-in2.h: Rebuild.
1260         * libbfd.h: Rebuild.
1261         * configure.in: Put & before everything in $selarchs.
1262         * configure: Rebuild.
1263         * cpu-*.c: Change bfd_*_arch from a function which calls
1264         bfd_arch_linkin to a const structure.
1265         * ieee.c (ieee_object_p): Make arch const.
1266
1267 Fri Sep 22 16:23:18 1995  Michael Meissner  <[email protected]>
1268
1269         * reloc.c (bfd_reloc_code_type): Add relocations to support all of
1270         PowerPC V.4.
1271         * bfd-in2.h: Regenerate.
1272         * libbfd.h: Regenerate.
1273
1274         * elf32-ppc.c (reloc_type): Update names to match current draft.
1275         (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
1276         relative.  Update names to current V.4 draft.
1277         (ppc_elf_reloc_type_lookup): Add support for more relocations.
1278         (ppc_elf_relocate_section): Rename relocations to match draft.
1279
1280 Thu Sep 21 21:53:18 1995  Michael Meissner  <[email protected]>
1281
1282         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
1283         compiled with -mrelocatable-lib to be linked with either normal
1284         modules or -mrelocatable modules.
1285
1286 Wed Sep 20 12:03:26 1995  Ian Lance Taylor  <[email protected]>
1287
1288         * coffcode.h (coff_write_object_contents): Clear the vstamp field
1289         in the a.out header.
1290
1291         * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
1292         a reloc against a local symbol, even if it's not a section.
1293
1294 Tue Sep 19 17:02:26 1995  Ian Lance Taylor  <[email protected]>
1295
1296         * targets.c (bfd_target): Remove unused align_power_min field.
1297         * bfd-in2.h: Rebuild.
1298         * All backends: Remove initialization of align_power_min.
1299
1300 Tue Sep 19 14:02:21 1995  steve chamberlain  <[email protected]>
1301
1302         * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
1303
1304 Mon Sep 18 14:35:01 1995  Arne H. Juul  <[email protected]>
1305
1306         * config.bfd (mips-dec-netbsd*): New target.
1307         * configure.host (mips-dec-netbsd*): New host.
1308         * configure.in (mips-dec-netbsd*): New native.
1309         * configure: Rebuild.
1310
1311 Fri Sep 15 10:24:36 1995  Ian Lance Taylor  <[email protected]>
1312
1313         Make the COFF backend linker merge common types:
1314         * cofflink.c (struct coff_debug_merge_element): Define.
1315         (struct coff_debug_merge_type): Define.
1316         (struct coff_debug_merge_hash_entry): Define.
1317         (struct coff_debug_merge_hash_table): Define.
1318         (coff_debug_merge_hash_table_init): Define.
1319         (coff_debug_merge_hash_table_free): Define.
1320         (coff_debug_merge_hash_lookup): Define.
1321         (struct coff_final_link_info): Add debug_merge field.
1322         (coff_debug_merge_hash_newfunc): New static function.
1323         (_bfd_coff_final_link): Allocate and free debug_merge table.
1324         (coff_link_input_bfd): Merge identical enum, struct and union
1325         types.
1326
1327 Thu Sep 14 14:53:58 1995  Ian Lance Taylor  <[email protected]>
1328
1329         Convert i960 COFF to use COFF backend linker.
1330         * coff-i960.c (coff_i960_relocate): Use a coff_section_data
1331         structure to store the symbol being used.
1332         (coff_i960_start_final_link): New static function.
1333         (coff_i960_relocate_section): New static function.
1334         (coff_i960_adjust_symndx): New static function.
1335         (coff_start_final_link): Define.
1336         (coff_relocate_section): Define.
1337         (coff_adjust_symndx): Define.
1338         * coffcode.h (bfd_coff_backend_data): Add new callback function
1339         _bfd_coff_start_final_link.
1340         (bfd_coff_start_final_link): Define.
1341         (coff_start_final_link): Define if not defined.
1342         (bfd_coff_std_swap_table): Add coff_start_final_link.
1343         * cofflink.c (_bfd_coff_internal_syment_name): Make globally
1344         visible.
1345         (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
1346         function callback is not NULL.
1347         * libcoff-in.h (struct coff_section_tdata): Add tdata field.
1348         (_bfd_coff_internal_syment_name): Declare.
1349         * libcoff.h: Rebuild.
1350         * configure.in (icoff_big_vec): Add cofflink.o.
1351         (icoff_little_vec): Likewise.
1352         * configure: Rebuild.
1353
1354 Wed Sep 13 17:38:23 1995  Fred Fish  <[email protected]>
1355
1356         * Makefile.in (clean-info): Remove extraneous tab from line
1357         following action.
1358
1359 Wed Sep 13 13:27:53 1995  Ian Lance Taylor  <[email protected]>
1360
1361         * cofflink.c (coff_link_input_bfd): Fail if a section with no
1362         contents has relocs.
1363
1364 Thu Sep 12 12:45:34 1995  steve chamberlain  <[email protected]>
1365
1366         * coffcode.h (coff_compute_section_file_positions): Keep the
1367         raw size safe. 
1368         (coff_write_object_contents): Remember if it's a relocatable
1369         file.
1370         * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
1371         * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
1372         if relocatable file. Swap out saved raw size.
1373
1374 Tue Sep 12 12:14:33 1995  Ian Lance Taylor  <[email protected]>
1375
1376         * Makefile.in (do_maintainer_clean): Rename from do_realclean.
1377         (maintainer-clean): Rename from realclean, passing
1378         maintainer-clean down to subdirectories, but leave realclean as a
1379         synonym.
1380
1381         * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
1382         warning callback.
1383
1384         * dep-in.sed: Remove config.h from generated dependencies.
1385
1386         * sunos.c (sunos_slurp_dynamic_symtab): New static function,
1387         broken out of sunos_canonicalize_dynamic_symtab.
1388         (sunos_canonicalize_dynamic_symtab): Call new function
1389         sunos_slurp_dynamic_symtab.
1390         (sunos_add_dynamic_symbols): Add three new parameters.  Return the
1391         dynamic symbol table to the caller.
1392         * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
1393         callback to override the symbols being read.
1394         * libaout.h (struct aout_backend_data): Add three new parameters
1395         to add_dynamic_symbols callback.
1396
1397         Extensive minor changes to avoid various gcc warnings.  Also:
1398         * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
1399         * archures.c (bfd_arch_info_type): Change mach field from long to
1400         unsigned long.
1401         (bfd_lookup_arch): Change machine parameter from long to unsigned
1402         long.
1403
1404 Mon Sep 11 10:55:47 1995  Ian Lance Taylor  <[email protected]>
1405
1406         * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
1407         a symbol with a non-zero plt_offset.
1408
1409 Fri Sep  8 11:47:24 1995  Ian Lance Taylor  <[email protected]>
1410
1411         * elfcode.h (align_file_position): Remove; not used.
1412
1413         * configure.in: Only check for <sys/procfs.h> on a native system,
1414         and make sure it defines prstatus_t.
1415         * configure: Rebuild.
1416
1417 Thu Sep  7 12:48:01 1995  Ian Lance Taylor  <[email protected]>
1418
1419         * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
1420
1421         * config.in: Rename from config.h.in.
1422         * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
1423         Check for config.h:config.in when creating stamp-h.
1424         * configure: Rebuild.
1425         * Makefile.in (stamp-h): Depend upon config.in rather than
1426         config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
1427         calling config.status.
1428
1429         * Makefile.in (do_distclean): Remove config.h and stamp-h.
1430         (Makefile): Just rebuild Makefile.
1431         (config.h, stamp-h): New targets.
1432         * configure.in: Create stamp-h when rebuilding config.h.
1433         * configure: Rebuild.
1434
1435 Wed Sep  6 15:00:33 1995  Ian Lance Taylor  <[email protected]>
1436
1437         * configure.in: Call AC_CONFIG_HEADER.  Substitute
1438         HOST_64BIT_LONG.  Check that various header files exist.  Check
1439         that fcntl exists.  Call BFD_BINARY_FOPEN.  Check whether malloc
1440         and/or free need to be declared.  Don't make a link to sysdep.h.
1441         Define TRAD_HEADER for various hosts.
1442         * configure: Rebuild.
1443         * configure.host: Don't set my_host.  Add definitions taken from
1444         host header files for various entries.  Remove entries which now
1445         do nothing.
1446         * acconfig.h: New file.
1447         * config.h.in: New file, built by autoheader.
1448         * sysdep.h: New file.
1449         * Makefile.in (do_distclean): Don't remove sysdep.h.
1450         (RECONFIG): Remove.
1451         (LOCAL_H_DEPS): New variable.
1452         ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
1453         $(RECONFIG).
1454         ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
1455         ($(OPTIONAL_BACKENDS)): Likewise.
1456         (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
1457         looking through sysdep.h.
1458         * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
1459         (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
1460         (fprintf_vma, sprintf_vma): Likewise.
1461         (int64_type, uint64_type): Don't define.
1462         * bfd-in2.h: Rebuild.
1463         * archures.c, bfd.c, srec.c: Include <ctype.h>.
1464         * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
1465         * lynx-core.c: Include stuff from old hosts/lynx.h.
1466         * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
1467         rather than NO_FCNTL.
1468         * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
1469         rather than NATIVE_HPPAHPUX_COMPILER.
1470         * trad-core.c: Don't include <errno.h>.  Include TRAD_HEADER if it
1471         is defined.
1472         * hosts/*.h: Remove all header files which merely include,
1473         declare, and define things.  Leave header files which define
1474         information needed by trad-core.c.
1475
1476         * aclocal.m4 (BFD_BINARY_FOPEN): Define.
1477         (BFD_CC_FOR_BUILD): Define.
1478         * configure.in: Use BFD_CC_FOR_BUILD.
1479         * configure: Rebuild.
1480
1481 Tue Sep  5 19:35:28 1995  Ian Lance Taylor  <[email protected]>
1482
1483         * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
1484         * configure: Rebuild.
1485
1486         * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
1487         a global symbol.
1488
1489 Tue Sep  5 12:48:26 1995  Jason Molenda   ([email protected])
1490
1491         * config.bfd: i386pe_ve -> i386pe_vec.
1492
1493 Mon Sep  4 14:02:43 1995  Ian Lance Taylor  <[email protected]>
1494
1495         * configure.host: Incorporate host Makefile fragments by setting
1496         shell variables.
1497         * configure.in: Call AC_PROG_CC.  Substitute CFLAGS, HDEFINES and
1498         AR.  Call AC_PROG_INSTALL.  Substitute CC_FOR_BUILD, choosing a
1499         value based on whether the code is being compiled by a cross
1500         compiler.  Don't substitute host_makefile_frag or frags.
1501         * aclocal.m4: New file to define local AC_PROG_CC.
1502         * configure: Rebuild.
1503         * Makefile.in (INSTALL): Set to @INSTALL@.
1504         (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
1505         (INSTALL_DATA): Set to @INSTALL_DATA@.
1506         (AR): Set to @AR@.
1507         (CC): Define as @CC@.
1508         (CFLAGS): Set to @CFLAGS@.
1509         (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
1510         (@host_makefile_frag@): Remove.
1511         (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@.  Move $(CFLAGS)
1512         after other options.
1513         (config.status): Remove dependency upon @frags@.
1514         * config/*.mh, config/README: Remove.
1515
1516         * config.bfd: Rewrite to incorporate the contents of the Makefile
1517         fragments by setting shell variables, rather than merely returning
1518         the name of a Makefile fragment.
1519         * configure.in: Use shell variables set by config.bfd rather than
1520         looking at the target Makefile fragment files.  Don't substitute
1521         target_makefile_frag.  Do substitute TDEFINES.
1522         * configure: Rebuild.
1523         * Makefile.in (@target_makefile_frag@): Remove.
1524         (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
1525         * config/*.mt: Remove.
1526
1527 Mon Sep  4 03:13:28 1995  Ken Raeburn  <[email protected]>
1528
1529         * configure.in: Put changequote lines around "i[345]86" patterns
1530         section of core file support.
1531
1532 Sun Sep  3 11:31:58 1995  Jeff Law  ([email protected])
1533
1534         * som.c (som_bfd_print_private_bfd_data): Define to use the
1535         generic version.
1536
1537 Fri Sep  1 17:08:40 1995  steve chamberlain  <[email protected]>
1538
1539         * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
1540         entry, text_start and data_start.
1541
1542 Fri Sep  1 18:06:28 1995  Ian Lance Taylor  <[email protected]>
1543
1544         * Makefile.in (OFILES): Remove $(TDEPFILES).
1545         * config/apollo.mt (TDEPFILES): Remove.
1546         * config/README: Update.
1547
1548         * configure.in: For a native configuration, set COREFILE and
1549         COREFLAG based on the canonical host name.
1550         * configure: Rebuild.
1551         * Makefile.in: Rebuild dependencies.
1552         (ALL_CFLAGS): Add @COREFLAG@.
1553         (OFILES): Replace $(HDEPFILES) with @COREFILE@.
1554         * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
1555         support routines.  Check LYNX_CORE rather than HOST_LYNX.
1556         * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
1557         * i386lynx.c: Likewise.
1558         * m68klynx.c: Likewise.
1559         * sparclynx.c: Likewise.
1560         * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
1561         * *-core.c: Comment changes.
1562         * config/decstation.mh (HDEPFILES): Remove.
1563         (HDEFINES): Remove -DTRAD_CORE.
1564         * config/irix3.mh (RANLIB): Remove.
1565         * config/irix4.mh (HDEPFILES, RANLIB): Remove.
1566         (HDEFINES): Remove -DIRIX_CORE.
1567         * config/riscos.mh (RANLIB, HDEPFILES): Remove.
1568         (HDEFINES): Remove -DTRAD_CORE.
1569         * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
1570         * config/ultra3.mh (RANLIB): Remove.
1571         * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
1572         * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
1573         * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
1574         * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
1575         * config/hppahpux.mh, config/hppaosf.mh: Remove.
1576         * config/i386aix.mh, config/i386bsd.mh: Remove.
1577         * config/i386linux.mh, config/i386mach3.mh: Remove.
1578         * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
1579         * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
1580         * config/mipsmach3.mh, config/news-mips.mh: Remove.
1581         * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
1582         * config/rs600.mh, config/rs6000lynx.mh: Remove.
1583         * config/solaris2.mh, config/stratus.mh: Remove.
1584         * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
1585         * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
1586
1587 Fri Sep  1 15:18:50 1995  Kazumoto Kojima  <[email protected]>
1588
1589         * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
1590         DT_FINI entry if the appropriate symbol is not in the hash table.
1591
1592         * libelf.h (struct elf_backend_data): Add create_program_headers
1593         and want_hdr_in_seg fields.
1594         * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
1595         defined.
1596         (elf_backend_create_program_headers): Likewise.
1597         (elfNN_bed): Initialize create_program_headers and
1598         want_hdr_in_seg.
1599         * elf.c (get_program_header_size): Call create_program_headers
1600         backend routine.
1601         (map_program_segments): Check want_hdr_in_seg backend field.  Call
1602         create_program_headers backend routine.
1603
1604         * elf.c (assign_file_positions_except_relocs): Align non allocated
1605         sections when creating an executable.
1606
1607         * elfcode.h (elf_swap_phdr_in): Make non static.
1608         (elf_swap_phdr_out): Make non static.
1609         * libelf.h (bfd_elf32_swap_phdr_in): Declare.
1610         (bfd_elf32_swap_phdr_out): Declare.
1611         (bfd_elf64_swap_phdr_in): Declare.
1612         (bfd_elf64_swap_phdr_out): Declare.
1613
1614         * ecofflink.c (ecoff_collect_shuffle): New static function.
1615         (_bfd_ecoff_get_accumulated_pdr): New function.
1616         (_bfd_ecoff_get_accumulated_sym): New function.
1617         (_bfd_ecoff_get_accumulated_ss): New function.
1618         * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
1619         (_bfd_ecoff_get_accumulated_sym): Declare.
1620         (_bfd_ecoff_get_accumulated_ss): Declare.
1621         * libbfd.h: Rebuild.
1622
1623 Fri Sep  1 13:20:25 1995  Ian Lance Taylor  <[email protected]>
1624
1625         * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
1626
1627         * elflink.h (elf_link_add_object_symbols): Handle indirect and
1628         warning symbols.  If any section is named .gnu.warning.XXX, treat
1629         the contents as a warning to be issued if the symbol XXX is
1630         referenced.
1631         (elf_link_output_extsym): For an indirect or warning symbol, just
1632         output the symbol it points to.
1633
1634         * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
1635         if bfd_hash_allocate fails, since it will already be set.
1636         (generic_link_hash_newfunc): Likewise.
1637         (archive_hash_newfunc): Likewise.
1638         (hash_entry_bfd): New static function.
1639         (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
1640         callback.  Allocate a new warning using the hash table newfunc.
1641         Use bfd_hash_replace to update the entry in the hash table, rather
1642         than assuming we can copy the fields with structure assignment.
1643
1644         * hash.c (bfd_hash_replace): New function.
1645         * bfd-in.h (bfd_hash_replace): Declare.
1646         * bfd-in2.h: Rebuild.
1647
1648 Fri Sep  1 08:12:50 1995  James G. Smith  <[email protected]>
1649
1650         * config.bfd: Add mips*vr4300-*-elf* target.
1651         * config/mipsbvr4300.mt: Added.
1652
1653 See file ChangeLog.2
1654
1655 \f
1656 Local Variables:
1657 mode: indented-text
1658 left-margin: 8
1659 fill-column: 74
1660 version-control: never
1661 End:
This page took 0.142352 seconds and 4 git commands to generate.