* init.c (initialized): Remove static variable.
[binutils-gdb.git] / bfd / ChangeLog
1 Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
2
3 * init.c (initialized): Remove static variable.
4 (bfd_init): Don't bother setting initialized.
5 (bfd_check_init): Remove.
6 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
7 * libbfd.h: Rebuild.
8
9 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10
11 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
12 size for full core dumps. Copy core file header to private data.
13 (rs6000coff_core_file_failing_command,
14 rs6000coff_core_file_failing_signal): New functions to extract
15 the file name and terminating signal from the core file.
16 * coff-rs6000.c: Use them.
17
18 Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
19
20 Change arch info to be const, initialized at compile time.
21 * archures.c: Reindent many functions. Change CONST to const.
22 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
23 nothing set it anyhow. Make next const.
24 (bfd_arch_info_list): Remove.
25 (bfd_archures_list): Rename from archures_init_table. Change from
26 a table of function pointers to a table of bfd_arch_info_type
27 structure addresses.
28 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
29 (bfd_lookup_arch): Likewise.
30 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
31 const pointer.
32 (bfd_default_arch_struct): Make const.
33 (bfd_arch_init, bfd_arch_linkin): Remove.
34 (bfd_get_arch_info): Return a const pointer.
35 * init.c (bfd_init): Don't call bfd_arch_init.
36 * bfd.c (struct _bfd): Make arch_info const.
37 * bfd-in2.h: Rebuild.
38 * libbfd.h: Rebuild.
39 * configure.in: Put & before everything in $selarchs.
40 * configure: Rebuild.
41 * cpu-*.c: Change bfd_*_arch from a function which calls
42 bfd_arch_linkin to a const structure.
43 * ieee.c (ieee_object_p): Make arch const.
44
45 Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
46
47 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
48 PowerPC V.4.
49 * bfd-in2.h: Regenerate.
50 * libbfd.h: Regenerate.
51
52 * elf32-ppc.c (reloc_type): Update names to match current draft.
53 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
54 relative. Update names to current V.4 draft.
55 (ppc_elf_reloc_type_lookup): Add support for more relocations.
56 (ppc_elf_relocate_section): Rename relocations to match draft.
57
58 Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
59
60 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
61 compiled with -mrelocatable-lib to be linked with either normal
62 modules or -mrelocatable modules.
63
64 Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
65
66 * coffcode.h (coff_write_object_contents): Clear the vstamp field
67 in the a.out header.
68
69 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
70 a reloc against a local symbol, even if it's not a section.
71
72 Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
73
74 * targets.c (bfd_target): Remove unused align_power_min field.
75 * bfd-in2.h: Rebuild.
76 * All backends: Remove initialization of align_power_min.
77
78 Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
79
80 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
81
82 Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
83
84 * config.bfd (mips-dec-netbsd*): New target.
85 * configure.host (mips-dec-netbsd*): New host.
86 * configure.in (mips-dec-netbsd*): New native.
87 * configure: Rebuild.
88
89 Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
90
91 Make the COFF backend linker merge common types:
92 * cofflink.c (struct coff_debug_merge_element): Define.
93 (struct coff_debug_merge_type): Define.
94 (struct coff_debug_merge_hash_entry): Define.
95 (struct coff_debug_merge_hash_table): Define.
96 (coff_debug_merge_hash_table_init): Define.
97 (coff_debug_merge_hash_table_free): Define.
98 (coff_debug_merge_hash_lookup): Define.
99 (struct coff_final_link_info): Add debug_merge field.
100 (coff_debug_merge_hash_newfunc): New static function.
101 (_bfd_coff_final_link): Allocate and free debug_merge table.
102 (coff_link_input_bfd): Merge identical enum, struct and union
103 types.
104
105 Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
106
107 Convert i960 COFF to use COFF backend linker.
108 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
109 structure to store the symbol being used.
110 (coff_i960_start_final_link): New static function.
111 (coff_i960_relocate_section): New static function.
112 (coff_i960_adjust_symndx): New static function.
113 (coff_start_final_link): Define.
114 (coff_relocate_section): Define.
115 (coff_adjust_symndx): Define.
116 * coffcode.h (bfd_coff_backend_data): Add new callback function
117 _bfd_coff_start_final_link.
118 (bfd_coff_start_final_link): Define.
119 (coff_start_final_link): Define if not defined.
120 (bfd_coff_std_swap_table): Add coff_start_final_link.
121 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
122 visible.
123 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
124 function callback is not NULL.
125 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
126 (_bfd_coff_internal_syment_name): Declare.
127 * libcoff.h: Rebuild.
128 * configure.in (icoff_big_vec): Add cofflink.o.
129 (icoff_little_vec): Likewise.
130 * configure: Rebuild.
131
132 Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
133
134 * Makefile.in (clean-info): Remove extraneous tab from line
135 following action.
136
137 Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
138
139 * cofflink.c (coff_link_input_bfd): Fail if a section with no
140 contents has relocs.
141
142 Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
143
144 * coffcode.h (coff_compute_section_file_positions): Keep the
145 raw size safe.
146 (coff_write_object_contents): Remember if it's a relocatable
147 file.
148 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
149 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
150 if relocatable file. Swap out saved raw size.
151
152 Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
153
154 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
155 (maintainer-clean): Rename from realclean, passing
156 maintainer-clean down to subdirectories, but leave realclean as a
157 synonym.
158
159 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
160 warning callback.
161
162 * dep-in.sed: Remove config.h from generated dependencies.
163
164 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
165 broken out of sunos_canonicalize_dynamic_symtab.
166 (sunos_canonicalize_dynamic_symtab): Call new function
167 sunos_slurp_dynamic_symtab.
168 (sunos_add_dynamic_symbols): Add three new parameters. Return the
169 dynamic symbol table to the caller.
170 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
171 callback to override the symbols being read.
172 * libaout.h (struct aout_backend_data): Add three new parameters
173 to add_dynamic_symbols callback.
174
175 Extensive minor changes to avoid various gcc warnings. Also:
176 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
177 * archures.c (bfd_arch_info_type): Change mach field from long to
178 unsigned long.
179 (bfd_lookup_arch): Change machine parameter from long to unsigned
180 long.
181
182 Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
183
184 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
185 a symbol with a non-zero plt_offset.
186
187 Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
188
189 * elfcode.h (align_file_position): Remove; not used.
190
191 * configure.in: Only check for <sys/procfs.h> on a native system,
192 and make sure it defines prstatus_t.
193 * configure: Rebuild.
194
195 Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
196
197 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
198
199 * config.in: Rename from config.h.in.
200 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
201 Check for config.h:config.in when creating stamp-h.
202 * configure: Rebuild.
203 * Makefile.in (stamp-h): Depend upon config.in rather than
204 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
205 calling config.status.
206
207 * Makefile.in (do_distclean): Remove config.h and stamp-h.
208 (Makefile): Just rebuild Makefile.
209 (config.h, stamp-h): New targets.
210 * configure.in: Create stamp-h when rebuilding config.h.
211 * configure: Rebuild.
212
213 Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
214
215 * configure.in: Call AC_CONFIG_HEADER. Substitute
216 HOST_64BIT_LONG. Check that various header files exist. Check
217 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
218 and/or free need to be declared. Don't make a link to sysdep.h.
219 Define TRAD_HEADER for various hosts.
220 * configure: Rebuild.
221 * configure.host: Don't set my_host. Add definitions taken from
222 host header files for various entries. Remove entries which now
223 do nothing.
224 * acconfig.h: New file.
225 * config.h.in: New file, built by autoheader.
226 * sysdep.h: New file.
227 * Makefile.in (do_distclean): Don't remove sysdep.h.
228 (RECONFIG): Remove.
229 (LOCAL_H_DEPS): New variable.
230 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
231 $(RECONFIG).
232 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
233 ($(OPTIONAL_BACKENDS)): Likewise.
234 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
235 looking through sysdep.h.
236 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
237 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
238 (fprintf_vma, sprintf_vma): Likewise.
239 (int64_type, uint64_type): Don't define.
240 * bfd-in2.h: Rebuild.
241 * archures.c, bfd.c, srec.c: Include <ctype.h>.
242 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
243 * lynx-core.c: Include stuff from old hosts/lynx.h.
244 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
245 rather than NO_FCNTL.
246 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
247 rather than NATIVE_HPPAHPUX_COMPILER.
248 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
249 is defined.
250 * hosts/*.h: Remove all header files which merely include,
251 declare, and define things. Leave header files which define
252 information needed by trad-core.c.
253
254 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
255 (BFD_CC_FOR_BUILD): Define.
256 * configure.in: Use BFD_CC_FOR_BUILD.
257 * configure: Rebuild.
258
259 Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
260
261 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
262 * configure: Rebuild.
263
264 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
265 a global symbol.
266
267 Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
268
269 * config.bfd: i386pe_ve -> i386pe_vec.
270
271 Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
272
273 * configure.host: Incorporate host Makefile fragments by setting
274 shell variables.
275 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
276 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
277 value based on whether the code is being compiled by a cross
278 compiler. Don't substitute host_makefile_frag or frags.
279 * aclocal.m4: New file to define local AC_PROG_CC.
280 * configure: Rebuild.
281 * Makefile.in (INSTALL): Set to @INSTALL@.
282 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
283 (INSTALL_DATA): Set to @INSTALL_DATA@.
284 (AR): Set to @AR@.
285 (CC): Define as @CC@.
286 (CFLAGS): Set to @CFLAGS@.
287 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
288 (@host_makefile_frag@): Remove.
289 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
290 after other options.
291 (config.status): Remove dependency upon @frags@.
292 * config/*.mh, config/README: Remove.
293
294 * config.bfd: Rewrite to incorporate the contents of the Makefile
295 fragments by setting shell variables, rather than merely returning
296 the name of a Makefile fragment.
297 * configure.in: Use shell variables set by config.bfd rather than
298 looking at the target Makefile fragment files. Don't substitute
299 target_makefile_frag. Do substitute TDEFINES.
300 * configure: Rebuild.
301 * Makefile.in (@target_makefile_frag@): Remove.
302 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
303 * config/*.mt: Remove.
304
305 Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
306
307 * configure.in: Put changequote lines around "i[345]86" patterns
308 section of core file support.
309
310 Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
311
312 * som.c (som_bfd_print_private_bfd_data): Define to use the
313 generic version.
314
315 Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
316
317 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
318 entry, text_start and data_start.
319
320 Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
321
322 * Makefile.in (OFILES): Remove $(TDEPFILES).
323 * config/apollo.mt (TDEPFILES): Remove.
324 * config/README: Update.
325
326 * configure.in: For a native configuration, set COREFILE and
327 COREFLAG based on the canonical host name.
328 * configure: Rebuild.
329 * Makefile.in: Rebuild dependencies.
330 (ALL_CFLAGS): Add @COREFLAG@.
331 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
332 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
333 support routines. Check LYNX_CORE rather than HOST_LYNX.
334 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
335 * i386lynx.c: Likewise.
336 * m68klynx.c: Likewise.
337 * sparclynx.c: Likewise.
338 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
339 * *-core.c: Comment changes.
340 * config/decstation.mh (HDEPFILES): Remove.
341 (HDEFINES): Remove -DTRAD_CORE.
342 * config/irix3.mh (RANLIB): Remove.
343 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
344 (HDEFINES): Remove -DIRIX_CORE.
345 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
346 (HDEFINES): Remove -DTRAD_CORE.
347 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
348 * config/ultra3.mh (RANLIB): Remove.
349 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
350 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
351 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
352 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
353 * config/hppahpux.mh, config/hppaosf.mh: Remove.
354 * config/i386aix.mh, config/i386bsd.mh: Remove.
355 * config/i386linux.mh, config/i386mach3.mh: Remove.
356 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
357 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
358 * config/mipsmach3.mh, config/news-mips.mh: Remove.
359 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
360 * config/rs600.mh, config/rs6000lynx.mh: Remove.
361 * config/solaris2.mh, config/stratus.mh: Remove.
362 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
363 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
364
365 Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
366
367 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
368 DT_FINI entry if the appropriate symbol is not in the hash table.
369
370 * libelf.h (struct elf_backend_data): Add create_program_headers
371 and want_hdr_in_seg fields.
372 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
373 defined.
374 (elf_backend_create_program_headers): Likewise.
375 (elfNN_bed): Initialize create_program_headers and
376 want_hdr_in_seg.
377 * elf.c (get_program_header_size): Call create_program_headers
378 backend routine.
379 (map_program_segments): Check want_hdr_in_seg backend field. Call
380 create_program_headers backend routine.
381
382 * elf.c (assign_file_positions_except_relocs): Align non allocated
383 sections when creating an executable.
384
385 * elfcode.h (elf_swap_phdr_in): Make non static.
386 (elf_swap_phdr_out): Make non static.
387 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
388 (bfd_elf32_swap_phdr_out): Declare.
389 (bfd_elf64_swap_phdr_in): Declare.
390 (bfd_elf64_swap_phdr_out): Declare.
391
392 * ecofflink.c (ecoff_collect_shuffle): New static function.
393 (_bfd_ecoff_get_accumulated_pdr): New function.
394 (_bfd_ecoff_get_accumulated_sym): New function.
395 (_bfd_ecoff_get_accumulated_ss): New function.
396 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
397 (_bfd_ecoff_get_accumulated_sym): Declare.
398 (_bfd_ecoff_get_accumulated_ss): Declare.
399 * libbfd.h: Rebuild.
400
401 Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
402
403 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
404
405 * elflink.h (elf_link_add_object_symbols): Handle indirect and
406 warning symbols. If any section is named .gnu.warning.XXX, treat
407 the contents as a warning to be issued if the symbol XXX is
408 referenced.
409 (elf_link_output_extsym): For an indirect or warning symbol, just
410 output the symbol it points to.
411
412 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
413 if bfd_hash_allocate fails, since it will already be set.
414 (generic_link_hash_newfunc): Likewise.
415 (archive_hash_newfunc): Likewise.
416 (hash_entry_bfd): New static function.
417 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
418 callback. Allocate a new warning using the hash table newfunc.
419 Use bfd_hash_replace to update the entry in the hash table, rather
420 than assuming we can copy the fields with structure assignment.
421
422 * hash.c (bfd_hash_replace): New function.
423 * bfd-in.h (bfd_hash_replace): Declare.
424 * bfd-in2.h: Rebuild.
425
426 Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
427
428 * config.bfd: Add mips*vr4300-*-elf* target.
429 * config/mipsbvr4300.mt: Added.
430
431 See file ChangeLog.2
432
433 \f
434 Local Variables:
435 mode: indented-text
436 left-margin: 8
437 fill-column: 74
438 version-control: never
439 End: