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