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