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