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