]> Git Repo - binutils.git/blob - bfd/ChangeLog
Fri Oct 13 11:22:01 1995 steve chamberlain <[email protected]>
[binutils.git] / bfd / ChangeLog
1 Fri Oct 13 11:22:01 1995  steve chamberlain  <[email protected]>
2
3         * coff-arm.c (in_reloc_p): New.
4         * coff-i386.c (in_reloc_p): New.
5         * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
6         (coff_write_object_contents): Only set has_reloc_section
7         if PE_IMAGE.
8         * cofflink.c (_bfd_coff_generic_relocate_section): Call
9         in_reloc_p to decide if reloc should be emitted.
10         * libcoff.h (pe_data_type.in_reloc_p): New.
11         * peicode.h (pe_mkobject): Initialize in_reloc_p.
12
13 Wed Oct 11 00:49:29 1995  Ian Lance Taylor  <[email protected]>
14
15         * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
16         (_bfd_coff_read_internal_relocs): Likewise.
17         * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
18         (_bfd_coff_read_internal_relocs): Likewise.
19
20         * elflink.h (elf_link_add_object_symbols): Correct conditions
21         under which type and size change warnings are issued.
22
23 Tue Oct 10 18:32:46 1995  Ian Lance Taylor  <[email protected]>
24
25         * coffgen.c (coff_count_linenumbers): Don't count line numbers for
26         a symbol which is not in a real section.
27         (coff_write_native_symbol): Corresponding change.
28
29         * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
30         coff_link_hash_newfunc and make non-static.
31         (_bfd_coff_link_hash_table_init): New function, broken out of
32         _bfd_coff_link_hash_table_create.
33         (_bfd_coff_link_hash_table_create): Use it.
34         (process_embedded_commands): Make static.
35         * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
36         (_bfd_coff_link_hash_table_init): Declare.
37         * libcoff.h: Rebuild.
38
39         * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
40         field in XCOFF tdata.
41         (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
42         U802ROMAGIC, for clarity.  Try to set arch and machine correctly
43         based on cputype stored in a.out header, or in n_type of initial
44         .file symbol.
45         (coff_write_object_contents): Set cputype correctly in a.out
46         header.
47         (coff_slurp_symbol_table): Add casts to file_ptr to avoid
48         warnings.
49         * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
50         (coff_swap_aouthdr_out): Swap out cputype field.  Don't clear
51         old resv1 field.
52         * libcoff-in.h (struct xcoff_tdata): Add cputype field.
53         * libcoff.h: Rebuild.
54
55         * cpu-rs6000.c (rs6000_compatible): New static function.
56         (bfd_rs6000_arch): Use it.
57         * cpu-powerpc.c (powerpc_compatible): New static function.
58         (arch_info_struct): Define various flavours of PowerPC.
59         (bfd_powerpc_arch): Use powerpc_compatible.  Point at
60         arch_info_struct.
61
62 Tue Oct 10 10:50:46 1995  Fred Fish  <[email protected]>
63
64         * Makefile.in (FLAGS_TO_PASS):  Remove BISON.
65
66 Tue Oct 10 01:28:29 1995  Ian Lance Taylor  <[email protected]>
67
68         * elflink.h (elf_link_add_object_symbols): Don't warn about
69         changing the size or type if the old definition was weak.
70
71 Mon Oct  9 11:24:08 1995  Ian Lance Taylor  <[email protected]>
72
73         * coffcode.h (combined_entry_type): Add fix_line field.
74         (coff_slurp_line_table): Warn if we try to set the lineno field of
75         a symbol twice.
76         (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
77         C_EINCL by setting fix_line.  Fix C_BSTAT symbol value.
78         * coffgen.c (coff_mangle_symbols): Handle fix_line.
79         (coff_write_symbol): Only use N_DEBUG if the symbol is in the
80         absolute section.
81         (coff_print_symbol): Print fix_value symbols in a useful fashion.
82         * libcoff.h: Rebuild.
83
84         * libcoff-in.h (struct xcoff_tdata): Define.
85         (xcoff_data): Define.
86         * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
87         * bfd-in2.h, libcoff.h: Rebuild.
88         * coff-rs6000.c (xcoff_mkobject): New static function.
89         (coff_mkobject): Define.
90         (xcoff_copy_private_bfd_data): New static function.
91         (coff_bfd_copy_private_bfd_data): Define.
92         (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
93         signed to bitfield.
94         (rs6000coff_vec): Add DYNAMIC to object_flags.
95         * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
96         .loader sections specially.
97         (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
98         section alignment from the XCOFF tdata information.
99         (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
100         F_SHROBJ, and copy the extra a.out header information into the
101         XCOFF tdata structure.
102         (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
103         F_DYNLOAD and the extra a.out header information.
104         (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
105         C_HIDEXT symbol with attached csect information.
106         * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
107         in the o_maxdata field.
108         (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
109         * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
110         end if BSF_NOT_AT_END is set.
111
112         * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
113         _bfd_read_ar_hdr_fn.
114         * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
115         * bfd-in2.h, libbfd.h: Rebuild.
116         * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
117         return value.
118         (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
119         (bfd_slurp_bsd_armap_f2): Likewise.
120         (_bfd_slurp_extended_name_table): Likewise.
121
122 Fri Oct  6 16:18:35 1995  Ken Raeburn  <[email protected]>
123
124         Mon Sep 25 22:49:32 1995  Andreas Schwab  <[email protected]>
125
126         * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
127         when the symbol table is empty.
128
129         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
130         space for section symbols, since we don't output them either.
131         (elf_m68k_adjust_dynindx): Removed.
132
133         * ptrace-core.c (rawptr): Make it a local variable of
134         ptrace_unix_core_file_p.
135         * trad-core.c (rawptr): Likewise, for trad_unix_core_file_p.
136
137 Fri Oct  6 12:24:47 1995  Michael Meissner  <[email protected]>
138
139         * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
140         NULL.
141
142         * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
143         Mac object file formats.
144
145 Fri Oct  6 12:04:02 1995  Ian Lance Taylor  <[email protected]>
146
147         * coffgen.c (coff_fix_symbol_name): Don't try to set up file
148         auxent if there isn't one.
149         (coff_write_symbols): If there is no file auxent, use SYMNMLEN
150         rather than FILNMLEN as the maximum name length.
151
152         * coffcode.h (bfd_coff_backend_data): Add new field
153         _bfd_coff_print_aux.
154         (bfd_coff_print_aux): New static function.
155         (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
156         scnlen field of an XTY_LD csect aux entry.
157         (coff_print_aux): New static function.
158         (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
159         in coff_pointerize_aux_hook.
160         (bfd_coff_std_swap_table): Initialize new field.
161         * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
162         * libcoff.h: Rebuild.
163         * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
164         * coff-mips.c (mips_ecoff_backend_data): Likewise.
165
166         * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
167         if there are symbols, for native AIX ld compatibility.
168
169         * coffcode.h (bfd_coff_backend_data): Add new field
170         _bfd_coff_pointerize_aux_hook.
171         (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
172         or I960, and as 0 otherwise.
173         (bfd_coff_std_swap_table): Initialize new field.
174         * libcoff.h: Rebuild.
175         * coffgen.c (coff_pointerize_aux): Change parameters  to take
176         symbol pointer instead of type and class, and to take aux index.
177         Call _bfd_coff_pointerize_aux_hook if it is defined.
178         (coff_get_normalized_symtab): Always call coff_pointerize_aux.
179         * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
180         * coff-mips.c (mips_ecoff_backend_data): Likewise.
181
182         * coff-rs6000.c: Add full support for AIX archives.  Rewrite old
183         read-only/host-only support.
184
185         * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
186         BSF_LOCAL.
187         (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
188         RS6000COFF_C.
189
190         * targets.c (bfd_target): Add _bfd_read_ar_hdr field.  Modify
191         BFD_JUMP_TABLE_ARCHIVE accordingly.
192         * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
193         (_bfd_compute_and_write_armap): Declare.
194         (_bfd_generic_read_ar_hdr): Declare.
195         (_bfd_read_ar_hdr): Define.
196         (_bfd_noarchive_read_ar_hdr): Define.
197         (_bfd_archive_bsd_read_ar_hdr): Define.
198         (_bfd_archive_coff_read_ar_hdr): Define.
199         * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
200         _bfd_read_ar_hdr instead.
201         (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
202         (_bfd_compute_and_write_armap): Rename from
203         compute_and_write_armap.  Make non-static.  Change all callers.
204         * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
205         than _bfd_snarf_ar_hdr.
206         * aout-target.h (MY_read_ar_hdr): Define if not defined.
207         * ieee.c (ieee_read_ar_hdr): Define.
208         * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
209         * oasys.c (oasys_read_ar_hdr): Define.
210         * som.c (som_read_ar_hdr): Define.
211         * bfd-in2.h, libbfd.h: Rebuild.
212
213 Thu Oct  5 14:04:07 1995  steve chamberlain  <[email protected]>
214
215         * peicode.c (coff_swap_filehdr_in): If symptr is
216         zero, there aren't any symbols, even if nsyms is set.
217
218 Thu Oct  5 11:45:02 1995  Ian Lance Taylor  <[email protected]>
219
220         * libecoff.h (struct ecoff_backend_data): Add adjust_headers
221         field.
222         * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
223         sections, and set styp correctly for them: .got, .hash, .dynamic,
224         .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
225         (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
226         types.
227         (ecoff_sort_hdrs): New static function.
228         (ecoff_compute_section_file_positions): Return boolean, not void.
229         Sort the sections by VMA before looking through them.  Put the
230         first non SEC_ALLOC section on a new page.  Put every SEC_ALLOC
231         section on an appropriate boundary within the page.
232         (ecoff_compute_reloc_file_positions): Check return value of
233         ecoff_compute_section_file_positions.
234         (_bfd_ecoff_set_section_contents): Likewise.
235         (_bfd_ecoff_write_object_contents): Check for various Alpha
236         section types when incrementing text_size and data_size.  Call
237         adjust_headers backend function if it exists.
238         * coff-alpha.c (alpha_adjust_headers): New static function.
239         (alpha_ecoff_backend_data): Initialize adjust_headers field.
240         * coff-mips.c (mips_ecoff_backend_data): Likewise.
241
242         * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
243
244 Wed Oct  4 18:15:02 1995  Jeff Law  ([email protected])
245
246         * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
247         of ALTERNATE_AIX_CORE_FORMAT.
248         * configure.in (aix4): No longer need CORE_FLAGS.
249         * configure: Updated.
250
251 Wed Oct  4 15:36:36 1995  Ken Raeburn  <[email protected]>
252
253         NS32k changes from Ian Dall:
254         * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
255         macros.
256         (aout_link_input_section_std, aout_link_input_section_ext,
257         aout_link_reloc_link_order): Call them instead of _bfd_*
258         versions.
259         * aout-target.h (MY_exec_header_not_counted): New macro, defaults
260         to zero.
261         (backend_data): Use it instead of hardcoded zero.
262
263         * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
264         (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
265
266         * ns32knetbsd.c: Include bfd.h.
267         (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
268         (MY_bfd_reloc_type_lookup): Declare function too.
269         * pc532-mach.c (set_sizes): Don't declare.
270         (MY_text_includes_header, MY_exec_header_not_counted): Define.
271         (backend_data, MY_backend_data): Don't define.
272
273         * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
274         ns32k-*-lites* like ns32k-*-netbsd*.
275
276         * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
277         compile on lites.
278
279 Wed Oct  4 14:15:52 1995  Ian Lance Taylor  <[email protected]>
280
281         * coffcode.h (coff_write_object_contents): Restore setting
282         f_timdat to 0, deleted on August 22.
283
284 Tue Oct  3 16:28:32 1995  steve chamberlain  <[email protected]>
285
286         * coffcode.h (coff_bfd_copy_private_symbol_data,
287         coff_bfd_copy_private_section_data,
288         coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
289         * peicode.h (coff_bfd_copy_private_bfd_data): New
290         (pe_bfd_copy_private_bfd_data): New.
291         (coff_swap_scnhdr_in): Swap bss size into the right place.
292         (pe_print_private_bfd_data): Add some newlines.
293
294 Tue Oct  3 11:53:04 1995  Jeff Law  ([email protected])
295
296         * som.c (setup_sections): Don't die if a space has no subspaces.
297
298 Mon Oct  2 14:08:55 1995  Ian Lance Taylor  <[email protected]>
299
300         * elflink.h (elf_link_add_object_symbols): Don't let a weak
301         dynamic symbol override a common symbol.  Don't change the size or
302         type if they have been set and the new symbol is not a definition.
303         Warn if the size or type changes.
304
305 Sun Oct  1 01:34:41 1995  Jeff Law  ([email protected])
306
307         * som.c (som_begin_writing): Don't write the symbol table or
308         symbol  strings.
309         (som_finish_writing): Write them here.  Place them after the
310         subspace data, but before the relocs.
311
312 Fri Sep 29 11:01:55 1995  Ian Lance Taylor  <[email protected]>
313
314         * sunos.c (sunos_add_one_symbol): Just pass false, not
315         info->shared_library, to sunos_create_dynamic_sections.
316         (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
317         section.
318         (sunos_check_dynamic_reloc): Remove .text section assertion.
319
320 Thu Sep 28 18:48:47 1995  Stan Shebs  <[email protected]>
321
322         * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
323         * configure, configure.in: Add pmac_xcoff_vec case.
324         * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
325         * coff-pmac.c: New file, PowerMac XCOFF support.
326         * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
327         * targets.c (pmac_xcoff_vec): Declare.
328
329         * mpw-config.in: Various changes to be compatible with the
330         autoconf-based configury.
331         * mpw-make.sed: New file, sed commands to translate Unix
332         makefile into MPW syntax.
333         * mpw-make.in: Remove.
334         * hosts/mpw.h: Remove.
335         * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
336         true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
337
338 Thu Sep 28 17:06:23 1995  steve chamberlain  <[email protected]>
339
340         * binary.c (binary_get_symtab): Return an empty string on error.
341         * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
342
343 Thu Sep 28 15:30:44 1995  Kim Knuttila  <krk@nellie>
344
345         * coff-ppc.c: Reformatted according to gnu conventions
346                       Removed irrelevant "if 0" code
347
348 Thu Sep 28 11:19:53 1995  Ian Lance Taylor  <[email protected]>
349
350         * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
351         symbols rather than as indirect symbols.
352         (MY(slurp_symbol_table)): Don't do anything special about
353         secondary symbols.
354
355         * coffcode.h (coff_new_section_hook): Make sure that the alignment
356         of .ctors and .dtors sections is no larger than 2.
357
358         * sunos.c (sunos_add_one_symbol): Don't change
359         bfd_link_hash_common to bfd_link_hash_new, since it may be on the
360         undef list.
361         (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
362         dynamic symbols when creating a shared library.
363         (sunos_scan_ext_relocs): Handle relocs correctly when creating a
364         shared library.
365         (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
366         written even if it is not defined in a regular object.
367         (sunos_write_dynamic_symbol): Use plt_offset for the address of
368         the jump table reloc.  Add an assertion.  Use RELOC_JMP_SLOT
369         rather than the constant 22.
370         (sunos_check_dynamic_reloc): Handle creating a shared library.
371         (sunos_finish_dynamic_link): Set the first entry in the GOT to
372         zero when creating a shared library.
373         * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
374         write it out at the start of the symbol table.
375
376         * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
377
378 Thu Sep 28 00:58:05 1995  Doug Evans  <[email protected]>
379
380         * config.bfd: Add arm-*-coff.
381         * configure.in, configure: Add armcoff_{little,big}_vec.
382         * targets.c (armcoff_{little,big}_vec): Declare.
383         (bfd_target_vector): Add armcoff_{little,big}_vec.
384         * coff-arm.c (armcoff_{little,big}_vec): Always define.
385
386 Wed Sep 27 10:37:14 1995  Ian Lance Taylor  <[email protected]>
387
388         * targets.c (bfd_find_target): Remove debugging code.
389
390 Wed Sep 27 07:23:39 1995  Kim Knuttila  <krk@nellie>
391
392         * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE 
393         support on powerpc.
394         * Makefile.in: added *-ppc files
395         * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
396         allow pe based .o's to be shared with other tools on ppc/NT
397         * config.bfd: added powerpc[le]-[pe|winnt] config support
398         * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec 
399         * peicode.h: Added more section flags for PE on ppc
400                      Added coff_swap_filehdr_out to allow peicode.h to be
401                      used for non-image PE files on ppc.
402                      Check for image, or not, before copying pe_opthdr
403         * targets.c: Added new bfd's
404         * targets.c: Removed two inactive bfds that shouldn't have made it this
405                      far.
406
407 Tue Sep 26 14:06:41 1995  Michael Meissner  <[email protected]>
408
409         * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
410         explicit values to initialize all relocs.  Change all users.
411         (ppc_elf_brtaken_inner): New function to handle branch predicition
412         relocs.
413         (ppc_elf_brtaken_reloc): Ditto.
414         (ppc_elf_howto_raw): Use new functions.  Make sure all unsupported
415         relocs use ppc_elf_unsupported_reloc.
416         (ppc_elf_merge_private_bfd_data): Keep track of whether an error
417         needs to be reported.
418         (ppc_elf_relocate_section): Support branch prediction relocs.
419
420 Tue Sep 26 12:48:05 1995  Ian Lance Taylor  <[email protected]>
421
422         * bfd.c (bfd_assert): Remove \n from string passed to
423         _bfd_error_handler.
424
425         * coff-i386.c: (TWO_DATA_SECS): Don't define.
426         * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
427         (bfd_coff_make_section_hook): Don't define.
428         (coff_make_section_hook): Remove.
429         (sec_to_styp_flags): Remove TWO_DATA_SECS case.
430         (styp_to_sec_flags): Likewise.
431         (coff_write_object_contents): Likewise.
432         (bfd_coff_std_swap_table): Don't initialize make_section_hook
433         field.
434         * libcoff.h: Rebuild.
435         * coffgen.c (make_a_section_from_file): Just call
436         bfd_make_section_anyway, not bfd_make_section or
437         bfd_coff_make_section_hook.
438         * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
439         * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
440         * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
441         make_section_hook field.
442         * coff-mips.c (mips_ecoff_backend_data): Likewise.
443
444         * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
445         pointers into value field for warning and indirect symbols; just
446         leave the value field alone.
447         * linker.c (generic_link_add_symbol_list): Use next symbol for
448         warning and indirect symbols, rather than looking in symbol value.
449         * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
450         parameter.  Change all callers.  Remove support for indirect
451         symbols; it didn't work anyhow.
452         (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
453         * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
454         * bfd-in2.h: Rebuild.
455
456 Mon Sep 25 16:04:09 1995  Michael Meissner  <[email protected]>
457
458         * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
459         go back to telling the tools this reloc operates on 32 bits.
460
461 Mon Sep 25 11:48:02 1995  Ian Lance Taylor  <[email protected]>
462
463         * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
464         rather than a direct fprintf.
465         * archive.c (_bfd_write_archive_contents): Likewise.
466         * coffcode.h (coff_slurp_symbol_table): Likewise.
467         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
468         (ppc_elf_unsupported_reloc): Likewise.
469         (ppc_elf_relocate_section): Likewise.
470         * i386linux.c (linux_tally_symbols): Likewise.
471         (linux_finish_dynamic_link): Likewise.
472         * osf-core.c (osf_core_core_file_p): Likewise.
473         * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
474         * som.c (som_sizeof_headers): Likewise.
475         * srec.c (srec_bad_byte): Likewise.
476         * bfd.c (bfd_assert): Likewise.  Also change file to be const.
477         * libbfd-in.h (bfd_assert): Declare first parameter const.
478         * libbfd.h: Rebuild.
479         * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
480         bfd_reloc_overflow is enough.
481         * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
482         * coff-h8500.c (rtype2howto): Likewise.
483         * coff-z8k.c (rtype2howto): Likewise.
484         * coffcode.h (dummy_reloc16_extra_cases): Likewise.
485         * elf.c (_bfd_elf_get_lineno): Likewise.
486         (_bfd_elf_no_info_to_howto): Likewise.
487         (_bfd_elf_no_info_to_howto_rel): Likewise.
488         * hp300hpux.c (convert_sym_type): Likewise.
489         (MY(swap_std_reloc_in)): Likewise.
490         * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
491
492         * libaout.h (struct aoutdata): Add line_buf field.
493         * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
494         and filename_buffer.  Instead, use a malloc buffer stored in the
495         new line_buf field.  Remove length restrictions.
496
497         * coffgen.c (string_size): Remove static variable.
498         (debug_string_size, debug_string_section): Likewise.
499         (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
500         and debug_string_size_p parameters.  Use them instead of the
501         global variables.  Change all callers.
502         (coff_write_symbol): Likewise.
503         (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
504         (coff_write_symbols): Add local variables to replace removed
505         global variables.
506
507         * libcoff-in.h (struct coff_section_tdata): Add offset, i,
508         function, and line_base fields.
509         * libcoff.h: Rebuild.
510         * coffgen.c (coff_find_nearest_line): Use section tdata to cache
511         information, rather than using static variables.
512
513         * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
514         file.  From Peter DeWolf <[email protected]>.
515
516         * init.c (initialized): Remove static variable.
517         (bfd_init): Don't bother setting initialized.
518         (bfd_check_init): Remove.
519         * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
520         * libbfd.h: Rebuild.
521
522 Sat Sep 23 01:22:23 1995  Peter Schauer  ([email protected])
523
524         * rs6000-core.c (rs6000coff_core_p):  Don't check the core file
525         size for full core dumps. Copy core file header to private data.
526         (rs6000coff_core_file_failing_command,
527         rs6000coff_core_file_failing_signal):  New functions to extract
528         the file name and terminating signal from the core file.
529         * coff-rs6000.c:  Use them.
530
531 Fri Sep 22 17:44:47 1995  Ian Lance Taylor  <[email protected]>
532
533         Change arch info to be const, initialized at compile time.
534         * archures.c: Reindent many functions.  Change CONST to const.
535         (bfd_arch_info_type): Make arch_name const.  Remove disassemble;
536         nothing set it anyhow.  Make next const.
537         (bfd_arch_info_list): Remove.
538         (bfd_archures_list): Rename from archures_init_table.  Change from
539         a table of function pointers to a table of bfd_arch_info_type
540         structure addresses.
541         (bfd_scan_arch): Rewrite accordingly.  Return a const pointer.
542         (bfd_lookup_arch): Likewise.
543         (bfd_set_arch_info): Rewrite accordingly.  Change argument to be a
544         const pointer.
545         (bfd_default_arch_struct): Make const.
546         (bfd_arch_init, bfd_arch_linkin): Remove.
547         (bfd_get_arch_info): Return a const pointer.
548         * init.c (bfd_init): Don't call bfd_arch_init.
549         * bfd.c (struct _bfd): Make arch_info const.
550         * bfd-in2.h: Rebuild.
551         * libbfd.h: Rebuild.
552         * configure.in: Put & before everything in $selarchs.
553         * configure: Rebuild.
554         * cpu-*.c: Change bfd_*_arch from a function which calls
555         bfd_arch_linkin to a const structure.
556         * ieee.c (ieee_object_p): Make arch const.
557
558 Fri Sep 22 16:23:18 1995  Michael Meissner  <[email protected]>
559
560         * reloc.c (bfd_reloc_code_type): Add relocations to support all of
561         PowerPC V.4.
562         * bfd-in2.h: Regenerate.
563         * libbfd.h: Regenerate.
564
565         * elf32-ppc.c (reloc_type): Update names to match current draft.
566         (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
567         relative.  Update names to current V.4 draft.
568         (ppc_elf_reloc_type_lookup): Add support for more relocations.
569         (ppc_elf_relocate_section): Rename relocations to match draft.
570
571 Thu Sep 21 21:53:18 1995  Michael Meissner  <[email protected]>
572
573         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
574         compiled with -mrelocatable-lib to be linked with either normal
575         modules or -mrelocatable modules.
576
577 Wed Sep 20 12:03:26 1995  Ian Lance Taylor  <[email protected]>
578
579         * coffcode.h (coff_write_object_contents): Clear the vstamp field
580         in the a.out header.
581
582         * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
583         a reloc against a local symbol, even if it's not a section.
584
585 Tue Sep 19 17:02:26 1995  Ian Lance Taylor  <[email protected]>
586
587         * targets.c (bfd_target): Remove unused align_power_min field.
588         * bfd-in2.h: Rebuild.
589         * All backends: Remove initialization of align_power_min.
590
591 Tue Sep 19 14:02:21 1995  steve chamberlain  <[email protected]>
592
593         * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
594
595 Mon Sep 18 14:35:01 1995  Arne H. Juul  <[email protected]>
596
597         * config.bfd (mips-dec-netbsd*): New target.
598         * configure.host (mips-dec-netbsd*): New host.
599         * configure.in (mips-dec-netbsd*): New native.
600         * configure: Rebuild.
601
602 Fri Sep 15 10:24:36 1995  Ian Lance Taylor  <[email protected]>
603
604         Make the COFF backend linker merge common types:
605         * cofflink.c (struct coff_debug_merge_element): Define.
606         (struct coff_debug_merge_type): Define.
607         (struct coff_debug_merge_hash_entry): Define.
608         (struct coff_debug_merge_hash_table): Define.
609         (coff_debug_merge_hash_table_init): Define.
610         (coff_debug_merge_hash_table_free): Define.
611         (coff_debug_merge_hash_lookup): Define.
612         (struct coff_final_link_info): Add debug_merge field.
613         (coff_debug_merge_hash_newfunc): New static function.
614         (_bfd_coff_final_link): Allocate and free debug_merge table.
615         (coff_link_input_bfd): Merge identical enum, struct and union
616         types.
617
618 Thu Sep 14 14:53:58 1995  Ian Lance Taylor  <[email protected]>
619
620         Convert i960 COFF to use COFF backend linker.
621         * coff-i960.c (coff_i960_relocate): Use a coff_section_data
622         structure to store the symbol being used.
623         (coff_i960_start_final_link): New static function.
624         (coff_i960_relocate_section): New static function.
625         (coff_i960_adjust_symndx): New static function.
626         (coff_start_final_link): Define.
627         (coff_relocate_section): Define.
628         (coff_adjust_symndx): Define.
629         * coffcode.h (bfd_coff_backend_data): Add new callback function
630         _bfd_coff_start_final_link.
631         (bfd_coff_start_final_link): Define.
632         (coff_start_final_link): Define if not defined.
633         (bfd_coff_std_swap_table): Add coff_start_final_link.
634         * cofflink.c (_bfd_coff_internal_syment_name): Make globally
635         visible.
636         (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
637         function callback is not NULL.
638         * libcoff-in.h (struct coff_section_tdata): Add tdata field.
639         (_bfd_coff_internal_syment_name): Declare.
640         * libcoff.h: Rebuild.
641         * configure.in (icoff_big_vec): Add cofflink.o.
642         (icoff_little_vec): Likewise.
643         * configure: Rebuild.
644
645 Wed Sep 13 17:38:23 1995  Fred Fish  <[email protected]>
646
647         * Makefile.in (clean-info): Remove extraneous tab from line
648         following action.
649
650 Wed Sep 13 13:27:53 1995  Ian Lance Taylor  <[email protected]>
651
652         * cofflink.c (coff_link_input_bfd): Fail if a section with no
653         contents has relocs.
654
655 Thu Sep 12 12:45:34 1995  steve chamberlain  <[email protected]>
656
657         * coffcode.h (coff_compute_section_file_positions): Keep the
658         raw size safe. 
659         (coff_write_object_contents): Remember if it's a relocatable
660         file.
661         * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
662         * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
663         if relocatable file. Swap out saved raw size.
664
665 Tue Sep 12 12:14:33 1995  Ian Lance Taylor  <[email protected]>
666
667         * Makefile.in (do_maintainer_clean): Rename from do_realclean.
668         (maintainer-clean): Rename from realclean, passing
669         maintainer-clean down to subdirectories, but leave realclean as a
670         synonym.
671
672         * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
673         warning callback.
674
675         * dep-in.sed: Remove config.h from generated dependencies.
676
677         * sunos.c (sunos_slurp_dynamic_symtab): New static function,
678         broken out of sunos_canonicalize_dynamic_symtab.
679         (sunos_canonicalize_dynamic_symtab): Call new function
680         sunos_slurp_dynamic_symtab.
681         (sunos_add_dynamic_symbols): Add three new parameters.  Return the
682         dynamic symbol table to the caller.
683         * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
684         callback to override the symbols being read.
685         * libaout.h (struct aout_backend_data): Add three new parameters
686         to add_dynamic_symbols callback.
687
688         Extensive minor changes to avoid various gcc warnings.  Also:
689         * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
690         * archures.c (bfd_arch_info_type): Change mach field from long to
691         unsigned long.
692         (bfd_lookup_arch): Change machine parameter from long to unsigned
693         long.
694
695 Mon Sep 11 10:55:47 1995  Ian Lance Taylor  <[email protected]>
696
697         * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
698         a symbol with a non-zero plt_offset.
699
700 Fri Sep  8 11:47:24 1995  Ian Lance Taylor  <[email protected]>
701
702         * elfcode.h (align_file_position): Remove; not used.
703
704         * configure.in: Only check for <sys/procfs.h> on a native system,
705         and make sure it defines prstatus_t.
706         * configure: Rebuild.
707
708 Thu Sep  7 12:48:01 1995  Ian Lance Taylor  <[email protected]>
709
710         * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
711
712         * config.in: Rename from config.h.in.
713         * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
714         Check for config.h:config.in when creating stamp-h.
715         * configure: Rebuild.
716         * Makefile.in (stamp-h): Depend upon config.in rather than
717         config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
718         calling config.status.
719
720         * Makefile.in (do_distclean): Remove config.h and stamp-h.
721         (Makefile): Just rebuild Makefile.
722         (config.h, stamp-h): New targets.
723         * configure.in: Create stamp-h when rebuilding config.h.
724         * configure: Rebuild.
725
726 Wed Sep  6 15:00:33 1995  Ian Lance Taylor  <[email protected]>
727
728         * configure.in: Call AC_CONFIG_HEADER.  Substitute
729         HOST_64BIT_LONG.  Check that various header files exist.  Check
730         that fcntl exists.  Call BFD_BINARY_FOPEN.  Check whether malloc
731         and/or free need to be declared.  Don't make a link to sysdep.h.
732         Define TRAD_HEADER for various hosts.
733         * configure: Rebuild.
734         * configure.host: Don't set my_host.  Add definitions taken from
735         host header files for various entries.  Remove entries which now
736         do nothing.
737         * acconfig.h: New file.
738         * config.h.in: New file, built by autoheader.
739         * sysdep.h: New file.
740         * Makefile.in (do_distclean): Don't remove sysdep.h.
741         (RECONFIG): Remove.
742         (LOCAL_H_DEPS): New variable.
743         ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
744         $(RECONFIG).
745         ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
746         ($(OPTIONAL_BACKENDS)): Likewise.
747         (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
748         looking through sysdep.h.
749         * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
750         (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
751         (fprintf_vma, sprintf_vma): Likewise.
752         (int64_type, uint64_type): Don't define.
753         * bfd-in2.h: Rebuild.
754         * archures.c, bfd.c, srec.c: Include <ctype.h>.
755         * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
756         * lynx-core.c: Include stuff from old hosts/lynx.h.
757         * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
758         rather than NO_FCNTL.
759         * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
760         rather than NATIVE_HPPAHPUX_COMPILER.
761         * trad-core.c: Don't include <errno.h>.  Include TRAD_HEADER if it
762         is defined.
763         * hosts/*.h: Remove all header files which merely include,
764         declare, and define things.  Leave header files which define
765         information needed by trad-core.c.
766
767         * aclocal.m4 (BFD_BINARY_FOPEN): Define.
768         (BFD_CC_FOR_BUILD): Define.
769         * configure.in: Use BFD_CC_FOR_BUILD.
770         * configure: Rebuild.
771
772 Tue Sep  5 19:35:28 1995  Ian Lance Taylor  <[email protected]>
773
774         * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
775         * configure: Rebuild.
776
777         * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
778         a global symbol.
779
780 Tue Sep  5 12:48:26 1995  Jason Molenda   ([email protected])
781
782         * config.bfd: i386pe_ve -> i386pe_vec.
783
784 Mon Sep  4 14:02:43 1995  Ian Lance Taylor  <[email protected]>
785
786         * configure.host: Incorporate host Makefile fragments by setting
787         shell variables.
788         * configure.in: Call AC_PROG_CC.  Substitute CFLAGS, HDEFINES and
789         AR.  Call AC_PROG_INSTALL.  Substitute CC_FOR_BUILD, choosing a
790         value based on whether the code is being compiled by a cross
791         compiler.  Don't substitute host_makefile_frag or frags.
792         * aclocal.m4: New file to define local AC_PROG_CC.
793         * configure: Rebuild.
794         * Makefile.in (INSTALL): Set to @INSTALL@.
795         (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
796         (INSTALL_DATA): Set to @INSTALL_DATA@.
797         (AR): Set to @AR@.
798         (CC): Define as @CC@.
799         (CFLAGS): Set to @CFLAGS@.
800         (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
801         (@host_makefile_frag@): Remove.
802         (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@.  Move $(CFLAGS)
803         after other options.
804         (config.status): Remove dependency upon @frags@.
805         * config/*.mh, config/README: Remove.
806
807         * config.bfd: Rewrite to incorporate the contents of the Makefile
808         fragments by setting shell variables, rather than merely returning
809         the name of a Makefile fragment.
810         * configure.in: Use shell variables set by config.bfd rather than
811         looking at the target Makefile fragment files.  Don't substitute
812         target_makefile_frag.  Do substitute TDEFINES.
813         * configure: Rebuild.
814         * Makefile.in (@target_makefile_frag@): Remove.
815         (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
816         * config/*.mt: Remove.
817
818 Mon Sep  4 03:13:28 1995  Ken Raeburn  <[email protected]>
819
820         * configure.in: Put changequote lines around "i[345]86" patterns
821         section of core file support.
822
823 Sun Sep  3 11:31:58 1995  Jeff Law  ([email protected])
824
825         * som.c (som_bfd_print_private_bfd_data): Define to use the
826         generic version.
827
828 Fri Sep  1 17:08:40 1995  steve chamberlain  <[email protected]>
829
830         * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
831         entry, text_start and data_start.
832
833 Fri Sep  1 18:06:28 1995  Ian Lance Taylor  <[email protected]>
834
835         * Makefile.in (OFILES): Remove $(TDEPFILES).
836         * config/apollo.mt (TDEPFILES): Remove.
837         * config/README: Update.
838
839         * configure.in: For a native configuration, set COREFILE and
840         COREFLAG based on the canonical host name.
841         * configure: Rebuild.
842         * Makefile.in: Rebuild dependencies.
843         (ALL_CFLAGS): Add @COREFLAG@.
844         (OFILES): Replace $(HDEPFILES) with @COREFILE@.
845         * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
846         support routines.  Check LYNX_CORE rather than HOST_LYNX.
847         * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
848         * i386lynx.c: Likewise.
849         * m68klynx.c: Likewise.
850         * sparclynx.c: Likewise.
851         * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
852         * *-core.c: Comment changes.
853         * config/decstation.mh (HDEPFILES): Remove.
854         (HDEFINES): Remove -DTRAD_CORE.
855         * config/irix3.mh (RANLIB): Remove.
856         * config/irix4.mh (HDEPFILES, RANLIB): Remove.
857         (HDEFINES): Remove -DIRIX_CORE.
858         * config/riscos.mh (RANLIB, HDEPFILES): Remove.
859         (HDEFINES): Remove -DTRAD_CORE.
860         * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
861         * config/ultra3.mh (RANLIB): Remove.
862         * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
863         * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
864         * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
865         * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
866         * config/hppahpux.mh, config/hppaosf.mh: Remove.
867         * config/i386aix.mh, config/i386bsd.mh: Remove.
868         * config/i386linux.mh, config/i386mach3.mh: Remove.
869         * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
870         * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
871         * config/mipsmach3.mh, config/news-mips.mh: Remove.
872         * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
873         * config/rs600.mh, config/rs6000lynx.mh: Remove.
874         * config/solaris2.mh, config/stratus.mh: Remove.
875         * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
876         * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
877
878 Fri Sep  1 15:18:50 1995  Kazumoto Kojima  <[email protected]>
879
880         * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
881         DT_FINI entry if the appropriate symbol is not in the hash table.
882
883         * libelf.h (struct elf_backend_data): Add create_program_headers
884         and want_hdr_in_seg fields.
885         * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
886         defined.
887         (elf_backend_create_program_headers): Likewise.
888         (elfNN_bed): Initialize create_program_headers and
889         want_hdr_in_seg.
890         * elf.c (get_program_header_size): Call create_program_headers
891         backend routine.
892         (map_program_segments): Check want_hdr_in_seg backend field.  Call
893         create_program_headers backend routine.
894
895         * elf.c (assign_file_positions_except_relocs): Align non allocated
896         sections when creating an executable.
897
898         * elfcode.h (elf_swap_phdr_in): Make non static.
899         (elf_swap_phdr_out): Make non static.
900         * libelf.h (bfd_elf32_swap_phdr_in): Declare.
901         (bfd_elf32_swap_phdr_out): Declare.
902         (bfd_elf64_swap_phdr_in): Declare.
903         (bfd_elf64_swap_phdr_out): Declare.
904
905         * ecofflink.c (ecoff_collect_shuffle): New static function.
906         (_bfd_ecoff_get_accumulated_pdr): New function.
907         (_bfd_ecoff_get_accumulated_sym): New function.
908         (_bfd_ecoff_get_accumulated_ss): New function.
909         * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
910         (_bfd_ecoff_get_accumulated_sym): Declare.
911         (_bfd_ecoff_get_accumulated_ss): Declare.
912         * libbfd.h: Rebuild.
913
914 Fri Sep  1 13:20:25 1995  Ian Lance Taylor  <[email protected]>
915
916         * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
917
918         * elflink.h (elf_link_add_object_symbols): Handle indirect and
919         warning symbols.  If any section is named .gnu.warning.XXX, treat
920         the contents as a warning to be issued if the symbol XXX is
921         referenced.
922         (elf_link_output_extsym): For an indirect or warning symbol, just
923         output the symbol it points to.
924
925         * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
926         if bfd_hash_allocate fails, since it will already be set.
927         (generic_link_hash_newfunc): Likewise.
928         (archive_hash_newfunc): Likewise.
929         (hash_entry_bfd): New static function.
930         (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
931         callback.  Allocate a new warning using the hash table newfunc.
932         Use bfd_hash_replace to update the entry in the hash table, rather
933         than assuming we can copy the fields with structure assignment.
934
935         * hash.c (bfd_hash_replace): New function.
936         * bfd-in.h (bfd_hash_replace): Declare.
937         * bfd-in2.h: Rebuild.
938
939 Fri Sep  1 08:12:50 1995  James G. Smith  <[email protected]>
940
941         * config.bfd: Add mips*vr4300-*-elf* target.
942         * config/mipsbvr4300.mt: Added.
943
944 See file ChangeLog.2
945
946 \f
947 Local Variables:
948 mode: indented-text
949 left-margin: 8
950 fill-column: 74
951 version-control: never
952 End:
This page took 0.085297 seconds and 4 git commands to generate.