1 Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
3 * coffcode.h (coff_write_object_contents): Clear the vstamp field
6 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
7 a reloc against a local symbol, even if it's not a section.
9 Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
11 * targets.c (bfd_target): Remove unused align_power_min field.
13 * All backends: Remove initialization of align_power_min.
15 Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
17 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
19 Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
21 * config.bfd (mips-dec-netbsd*): New target.
22 * configure.host (mips-dec-netbsd*): New host.
23 * configure.in (mips-dec-netbsd*): New native.
26 Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
28 Make the COFF backend linker merge common types:
29 * cofflink.c (struct coff_debug_merge_element): Define.
30 (struct coff_debug_merge_type): Define.
31 (struct coff_debug_merge_hash_entry): Define.
32 (struct coff_debug_merge_hash_table): Define.
33 (coff_debug_merge_hash_table_init): Define.
34 (coff_debug_merge_hash_table_free): Define.
35 (coff_debug_merge_hash_lookup): Define.
36 (struct coff_final_link_info): Add debug_merge field.
37 (coff_debug_merge_hash_newfunc): New static function.
38 (_bfd_coff_final_link): Allocate and free debug_merge table.
39 (coff_link_input_bfd): Merge identical enum, struct and union
42 Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
44 Convert i960 COFF to use COFF backend linker.
45 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
46 structure to store the symbol being used.
47 (coff_i960_start_final_link): New static function.
48 (coff_i960_relocate_section): New static function.
49 (coff_i960_adjust_symndx): New static function.
50 (coff_start_final_link): Define.
51 (coff_relocate_section): Define.
52 (coff_adjust_symndx): Define.
53 * coffcode.h (bfd_coff_backend_data): Add new callback function
54 _bfd_coff_start_final_link.
55 (bfd_coff_start_final_link): Define.
56 (coff_start_final_link): Define if not defined.
57 (bfd_coff_std_swap_table): Add coff_start_final_link.
58 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
60 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
61 function callback is not NULL.
62 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
63 (_bfd_coff_internal_syment_name): Declare.
65 * configure.in (icoff_big_vec): Add cofflink.o.
66 (icoff_little_vec): Likewise.
69 Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
71 * Makefile.in (clean-info): Remove extraneous tab from line
74 Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
76 * cofflink.c (coff_link_input_bfd): Fail if a section with no
79 Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
81 * coffcode.h (coff_compute_section_file_positions): Keep the
83 (coff_write_object_contents): Remember if it's a relocatable
85 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
86 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
87 if relocatable file. Swap out saved raw size.
89 Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
91 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
92 (maintainer-clean): Rename from realclean, passing
93 maintainer-clean down to subdirectories, but leave realclean as a
96 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
99 * dep-in.sed: Remove config.h from generated dependencies.
101 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
102 broken out of sunos_canonicalize_dynamic_symtab.
103 (sunos_canonicalize_dynamic_symtab): Call new function
104 sunos_slurp_dynamic_symtab.
105 (sunos_add_dynamic_symbols): Add three new parameters. Return the
106 dynamic symbol table to the caller.
107 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
108 callback to override the symbols being read.
109 * libaout.h (struct aout_backend_data): Add three new parameters
110 to add_dynamic_symbols callback.
112 Extensive minor changes to avoid various gcc warnings. Also:
113 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
114 * archures.c (bfd_arch_info_type): Change mach field from long to
116 (bfd_lookup_arch): Change machine parameter from long to unsigned
119 Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
121 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
122 a symbol with a non-zero plt_offset.
124 Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
126 * elfcode.h (align_file_position): Remove; not used.
128 * configure.in: Only check for <sys/procfs.h> on a native system,
129 and make sure it defines prstatus_t.
130 * configure: Rebuild.
132 Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
134 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
136 * config.in: Rename from config.h.in.
137 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
138 Check for config.h:config.in when creating stamp-h.
139 * configure: Rebuild.
140 * Makefile.in (stamp-h): Depend upon config.in rather than
141 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
142 calling config.status.
144 * Makefile.in (do_distclean): Remove config.h and stamp-h.
145 (Makefile): Just rebuild Makefile.
146 (config.h, stamp-h): New targets.
147 * configure.in: Create stamp-h when rebuilding config.h.
148 * configure: Rebuild.
150 Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
152 * configure.in: Call AC_CONFIG_HEADER. Substitute
153 HOST_64BIT_LONG. Check that various header files exist. Check
154 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
155 and/or free need to be declared. Don't make a link to sysdep.h.
156 Define TRAD_HEADER for various hosts.
157 * configure: Rebuild.
158 * configure.host: Don't set my_host. Add definitions taken from
159 host header files for various entries. Remove entries which now
161 * acconfig.h: New file.
162 * config.h.in: New file, built by autoheader.
163 * sysdep.h: New file.
164 * Makefile.in (do_distclean): Don't remove sysdep.h.
166 (LOCAL_H_DEPS): New variable.
167 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
169 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
170 ($(OPTIONAL_BACKENDS)): Likewise.
171 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
172 looking through sysdep.h.
173 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
174 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
175 (fprintf_vma, sprintf_vma): Likewise.
176 (int64_type, uint64_type): Don't define.
177 * bfd-in2.h: Rebuild.
178 * archures.c, bfd.c, srec.c: Include <ctype.h>.
179 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
180 * lynx-core.c: Include stuff from old hosts/lynx.h.
181 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
182 rather than NO_FCNTL.
183 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
184 rather than NATIVE_HPPAHPUX_COMPILER.
185 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
187 * hosts/*.h: Remove all header files which merely include,
188 declare, and define things. Leave header files which define
189 information needed by trad-core.c.
191 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
192 (BFD_CC_FOR_BUILD): Define.
193 * configure.in: Use BFD_CC_FOR_BUILD.
194 * configure: Rebuild.
196 Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
198 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
199 * configure: Rebuild.
201 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
204 Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
206 * config.bfd: i386pe_ve -> i386pe_vec.
208 Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
210 * configure.host: Incorporate host Makefile fragments by setting
212 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
213 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
214 value based on whether the code is being compiled by a cross
215 compiler. Don't substitute host_makefile_frag or frags.
216 * aclocal.m4: New file to define local AC_PROG_CC.
217 * configure: Rebuild.
218 * Makefile.in (INSTALL): Set to @INSTALL@.
219 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
220 (INSTALL_DATA): Set to @INSTALL_DATA@.
222 (CC): Define as @CC@.
223 (CFLAGS): Set to @CFLAGS@.
224 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
225 (@host_makefile_frag@): Remove.
226 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
228 (config.status): Remove dependency upon @frags@.
229 * config/*.mh, config/README: Remove.
231 * config.bfd: Rewrite to incorporate the contents of the Makefile
232 fragments by setting shell variables, rather than merely returning
233 the name of a Makefile fragment.
234 * configure.in: Use shell variables set by config.bfd rather than
235 looking at the target Makefile fragment files. Don't substitute
236 target_makefile_frag. Do substitute TDEFINES.
237 * configure: Rebuild.
238 * Makefile.in (@target_makefile_frag@): Remove.
239 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
240 * config/*.mt: Remove.
242 Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
244 * configure.in: Put changequote lines around "i[345]86" patterns
245 section of core file support.
247 Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
249 * som.c (som_bfd_print_private_bfd_data): Define to use the
252 Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
254 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
255 entry, text_start and data_start.
257 Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
259 * Makefile.in (OFILES): Remove $(TDEPFILES).
260 * config/apollo.mt (TDEPFILES): Remove.
261 * config/README: Update.
263 * configure.in: For a native configuration, set COREFILE and
264 COREFLAG based on the canonical host name.
265 * configure: Rebuild.
266 * Makefile.in: Rebuild dependencies.
267 (ALL_CFLAGS): Add @COREFLAG@.
268 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
269 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
270 support routines. Check LYNX_CORE rather than HOST_LYNX.
271 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
272 * i386lynx.c: Likewise.
273 * m68klynx.c: Likewise.
274 * sparclynx.c: Likewise.
275 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
276 * *-core.c: Comment changes.
277 * config/decstation.mh (HDEPFILES): Remove.
278 (HDEFINES): Remove -DTRAD_CORE.
279 * config/irix3.mh (RANLIB): Remove.
280 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
281 (HDEFINES): Remove -DIRIX_CORE.
282 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
283 (HDEFINES): Remove -DTRAD_CORE.
284 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
285 * config/ultra3.mh (RANLIB): Remove.
286 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
287 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
288 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
289 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
290 * config/hppahpux.mh, config/hppaosf.mh: Remove.
291 * config/i386aix.mh, config/i386bsd.mh: Remove.
292 * config/i386linux.mh, config/i386mach3.mh: Remove.
293 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
294 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
295 * config/mipsmach3.mh, config/news-mips.mh: Remove.
296 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
297 * config/rs600.mh, config/rs6000lynx.mh: Remove.
298 * config/solaris2.mh, config/stratus.mh: Remove.
299 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
300 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
302 Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
304 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
305 DT_FINI entry if the appropriate symbol is not in the hash table.
307 * libelf.h (struct elf_backend_data): Add create_program_headers
308 and want_hdr_in_seg fields.
309 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
311 (elf_backend_create_program_headers): Likewise.
312 (elfNN_bed): Initialize create_program_headers and
314 * elf.c (get_program_header_size): Call create_program_headers
316 (map_program_segments): Check want_hdr_in_seg backend field. Call
317 create_program_headers backend routine.
319 * elf.c (assign_file_positions_except_relocs): Align non allocated
320 sections when creating an executable.
322 * elfcode.h (elf_swap_phdr_in): Make non static.
323 (elf_swap_phdr_out): Make non static.
324 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
325 (bfd_elf32_swap_phdr_out): Declare.
326 (bfd_elf64_swap_phdr_in): Declare.
327 (bfd_elf64_swap_phdr_out): Declare.
329 * ecofflink.c (ecoff_collect_shuffle): New static function.
330 (_bfd_ecoff_get_accumulated_pdr): New function.
331 (_bfd_ecoff_get_accumulated_sym): New function.
332 (_bfd_ecoff_get_accumulated_ss): New function.
333 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
334 (_bfd_ecoff_get_accumulated_sym): Declare.
335 (_bfd_ecoff_get_accumulated_ss): Declare.
338 Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
340 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
342 * elflink.h (elf_link_add_object_symbols): Handle indirect and
343 warning symbols. If any section is named .gnu.warning.XXX, treat
344 the contents as a warning to be issued if the symbol XXX is
346 (elf_link_output_extsym): For an indirect or warning symbol, just
347 output the symbol it points to.
349 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
350 if bfd_hash_allocate fails, since it will already be set.
351 (generic_link_hash_newfunc): Likewise.
352 (archive_hash_newfunc): Likewise.
353 (hash_entry_bfd): New static function.
354 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
355 callback. Allocate a new warning using the hash table newfunc.
356 Use bfd_hash_replace to update the entry in the hash table, rather
357 than assuming we can copy the fields with structure assignment.
359 * hash.c (bfd_hash_replace): New function.
360 * bfd-in.h (bfd_hash_replace): Declare.
361 * bfd-in2.h: Rebuild.
363 Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
365 * config.bfd: Add mips*vr4300-*-elf* target.
366 * config/mipsbvr4300.mt: Added.
375 version-control: never