3 * dep-in.sed: Remove config.h from generated dependencies.
5 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
6 broken out of sunos_canonicalize_dynamic_symtab.
7 (sunos_canonicalize_dynamic_symtab): Call new function
8 sunos_slurp_dynamic_symtab.
9 (sunos_add_dynamic_symbols): Add three new parameters. Return the
10 dynamic symbol table to the caller.
11 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
12 callback to override the symbols being read.
13 * libaout.h (struct aout_backend_data): Add three new parameters
14 to add_dynamic_symbols callback.
16 Extensive minor changes to avoid various gcc warnings. Also:
17 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
18 * archures.c (bfd_arch_info_type): Change mach field from long to
20 (bfd_lookup_arch): Change machine parameter from long to unsigned
25 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
26 a symbol with a non-zero plt_offset.
30 * elfcode.h (align_file_position): Remove; not used.
32 * configure.in: Only check for <sys/procfs.h> on a native system,
33 and make sure it defines prstatus_t.
38 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
40 * config.in: Rename from config.h.in.
41 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
42 Check for config.h:config.in when creating stamp-h.
44 * Makefile.in (stamp-h): Depend upon config.in rather than
45 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
46 calling config.status.
48 * Makefile.in (do_distclean): Remove config.h and stamp-h.
49 (Makefile): Just rebuild Makefile.
50 (config.h, stamp-h): New targets.
51 * configure.in: Create stamp-h when rebuilding config.h.
56 * configure.in: Call AC_CONFIG_HEADER. Substitute
57 HOST_64BIT_LONG. Check that various header files exist. Check
58 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
59 and/or free need to be declared. Don't make a link to sysdep.h.
60 Define TRAD_HEADER for various hosts.
62 * configure.host: Don't set my_host. Add definitions taken from
63 host header files for various entries. Remove entries which now
65 * acconfig.h: New file.
66 * config.h.in: New file, built by autoheader.
68 * Makefile.in (do_distclean): Don't remove sysdep.h.
70 (LOCAL_H_DEPS): New variable.
71 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
73 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
74 ($(OPTIONAL_BACKENDS)): Likewise.
75 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
76 looking through sysdep.h.
77 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
78 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
79 (fprintf_vma, sprintf_vma): Likewise.
80 (int64_type, uint64_type): Don't define.
82 * archures.c, bfd.c, srec.c: Include <ctype.h>.
83 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
84 * lynx-core.c: Include stuff from old hosts/lynx.h.
85 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
87 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
88 rather than NATIVE_HPPAHPUX_COMPILER.
89 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
91 * hosts/*.h: Remove all header files which merely include,
92 declare, and define things. Leave header files which define
93 information needed by trad-core.c.
95 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
96 (BFD_CC_FOR_BUILD): Define.
97 * configure.in: Use BFD_CC_FOR_BUILD.
102 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
103 * configure: Rebuild.
105 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
110 * config.bfd: i386pe_ve -> i386pe_vec.
114 * configure.host: Incorporate host Makefile fragments by setting
116 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
117 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
118 value based on whether the code is being compiled by a cross
119 compiler. Don't substitute host_makefile_frag or frags.
120 * aclocal.m4: New file to define local AC_PROG_CC.
121 * configure: Rebuild.
122 * Makefile.in (INSTALL): Set to @INSTALL@.
123 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
124 (INSTALL_DATA): Set to @INSTALL_DATA@.
126 (CC): Define as @CC@.
127 (CFLAGS): Set to @CFLAGS@.
128 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
129 (@host_makefile_frag@): Remove.
130 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
132 (config.status): Remove dependency upon @frags@.
133 * config/*.mh, config/README: Remove.
135 * config.bfd: Rewrite to incorporate the contents of the Makefile
136 fragments by setting shell variables, rather than merely returning
137 the name of a Makefile fragment.
138 * configure.in: Use shell variables set by config.bfd rather than
139 looking at the target Makefile fragment files. Don't substitute
140 target_makefile_frag. Do substitute TDEFINES.
141 * configure: Rebuild.
142 * Makefile.in (@target_makefile_frag@): Remove.
143 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
144 * config/*.mt: Remove.
148 * configure.in: Put changequote lines around "i[345]86" patterns
149 section of core file support.
153 * som.c (som_bfd_print_private_bfd_data): Define to use the
158 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
159 entry, text_start and data_start.
163 * Makefile.in (OFILES): Remove $(TDEPFILES).
164 * config/apollo.mt (TDEPFILES): Remove.
165 * config/README: Update.
167 * configure.in: For a native configuration, set COREFILE and
168 COREFLAG based on the canonical host name.
169 * configure: Rebuild.
170 * Makefile.in: Rebuild dependencies.
171 (ALL_CFLAGS): Add @COREFLAG@.
172 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
173 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
174 support routines. Check LYNX_CORE rather than HOST_LYNX.
175 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
176 * i386lynx.c: Likewise.
177 * m68klynx.c: Likewise.
178 * sparclynx.c: Likewise.
179 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
180 * *-core.c: Comment changes.
181 * config/decstation.mh (HDEPFILES): Remove.
182 (HDEFINES): Remove -DTRAD_CORE.
183 * config/irix3.mh (RANLIB): Remove.
184 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
185 (HDEFINES): Remove -DIRIX_CORE.
186 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
187 (HDEFINES): Remove -DTRAD_CORE.
188 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
189 * config/ultra3.mh (RANLIB): Remove.
190 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
191 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
192 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
193 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
194 * config/hppahpux.mh, config/hppaosf.mh: Remove.
195 * config/i386aix.mh, config/i386bsd.mh: Remove.
196 * config/i386linux.mh, config/i386mach3.mh: Remove.
197 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
198 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
199 * config/mipsmach3.mh, config/news-mips.mh: Remove.
200 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
201 * config/rs600.mh, config/rs6000lynx.mh: Remove.
202 * config/solaris2.mh, config/stratus.mh: Remove.
203 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
204 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
208 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
209 DT_FINI entry if the appropriate symbol is not in the hash table.
211 * libelf.h (struct elf_backend_data): Add create_program_headers
212 and want_hdr_in_seg fields.
213 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
215 (elf_backend_create_program_headers): Likewise.
216 (elfNN_bed): Initialize create_program_headers and
218 * elf.c (get_program_header_size): Call create_program_headers
220 (map_program_segments): Check want_hdr_in_seg backend field. Call
221 create_program_headers backend routine.
223 * elf.c (assign_file_positions_except_relocs): Align non allocated
224 sections when creating an executable.
226 * elfcode.h (elf_swap_phdr_in): Make non static.
227 (elf_swap_phdr_out): Make non static.
228 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
229 (bfd_elf32_swap_phdr_out): Declare.
230 (bfd_elf64_swap_phdr_in): Declare.
231 (bfd_elf64_swap_phdr_out): Declare.
233 * ecofflink.c (ecoff_collect_shuffle): New static function.
234 (_bfd_ecoff_get_accumulated_pdr): New function.
235 (_bfd_ecoff_get_accumulated_sym): New function.
236 (_bfd_ecoff_get_accumulated_ss): New function.
237 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
238 (_bfd_ecoff_get_accumulated_sym): Declare.
239 (_bfd_ecoff_get_accumulated_ss): Declare.
244 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
246 * elflink.h (elf_link_add_object_symbols): Handle indirect and
247 warning symbols. If any section is named .gnu.warning.XXX, treat
248 the contents as a warning to be issued if the symbol XXX is
250 (elf_link_output_extsym): For an indirect or warning symbol, just
251 output the symbol it points to.
253 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
254 if bfd_hash_allocate fails, since it will already be set.
255 (generic_link_hash_newfunc): Likewise.
256 (archive_hash_newfunc): Likewise.
257 (hash_entry_bfd): New static function.
258 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
259 callback. Allocate a new warning using the hash table newfunc.
260 Use bfd_hash_replace to update the entry in the hash table, rather
261 than assuming we can copy the fields with structure assignment.
263 * hash.c (bfd_hash_replace): New function.
264 * bfd-in.h (bfd_hash_replace): Declare.
265 * bfd-in2.h: Rebuild.
269 * config.bfd: Add mips*vr4300-*-elf* target.
270 * config/mipsbvr4300.mt: Added.
279 version-control: never