3 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
4 a reloc against a local symbol, even if it's not a section.
8 * targets.c (bfd_target): Remove unused align_power_min field.
10 * All backends: Remove initialization of align_power_min.
14 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
18 * config.bfd (mips-dec-netbsd*): New target.
19 * configure.host (mips-dec-netbsd*): New host.
20 * configure.in (mips-dec-netbsd*): New native.
25 Make the COFF backend linker merge common types:
26 * cofflink.c (struct coff_debug_merge_element): Define.
27 (struct coff_debug_merge_type): Define.
28 (struct coff_debug_merge_hash_entry): Define.
29 (struct coff_debug_merge_hash_table): Define.
30 (coff_debug_merge_hash_table_init): Define.
31 (coff_debug_merge_hash_table_free): Define.
32 (coff_debug_merge_hash_lookup): Define.
33 (struct coff_final_link_info): Add debug_merge field.
34 (coff_debug_merge_hash_newfunc): New static function.
35 (_bfd_coff_final_link): Allocate and free debug_merge table.
36 (coff_link_input_bfd): Merge identical enum, struct and union
41 Convert i960 COFF to use COFF backend linker.
42 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
43 structure to store the symbol being used.
44 (coff_i960_start_final_link): New static function.
45 (coff_i960_relocate_section): New static function.
46 (coff_i960_adjust_symndx): New static function.
47 (coff_start_final_link): Define.
48 (coff_relocate_section): Define.
49 (coff_adjust_symndx): Define.
50 * coffcode.h (bfd_coff_backend_data): Add new callback function
51 _bfd_coff_start_final_link.
52 (bfd_coff_start_final_link): Define.
53 (coff_start_final_link): Define if not defined.
54 (bfd_coff_std_swap_table): Add coff_start_final_link.
55 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
57 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
58 function callback is not NULL.
59 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
60 (_bfd_coff_internal_syment_name): Declare.
62 * configure.in (icoff_big_vec): Add cofflink.o.
63 (icoff_little_vec): Likewise.
68 * Makefile.in (clean-info): Remove extraneous tab from line
73 * cofflink.c (coff_link_input_bfd): Fail if a section with no
78 * coffcode.h (coff_compute_section_file_positions): Keep the
80 (coff_write_object_contents): Remember if it's a relocatable
82 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
83 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
84 if relocatable file. Swap out saved raw size.
88 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
89 (maintainer-clean): Rename from realclean, passing
90 maintainer-clean down to subdirectories, but leave realclean as a
93 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
96 * dep-in.sed: Remove config.h from generated dependencies.
98 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
99 broken out of sunos_canonicalize_dynamic_symtab.
100 (sunos_canonicalize_dynamic_symtab): Call new function
101 sunos_slurp_dynamic_symtab.
102 (sunos_add_dynamic_symbols): Add three new parameters. Return the
103 dynamic symbol table to the caller.
104 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
105 callback to override the symbols being read.
106 * libaout.h (struct aout_backend_data): Add three new parameters
107 to add_dynamic_symbols callback.
109 Extensive minor changes to avoid various gcc warnings. Also:
110 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
111 * archures.c (bfd_arch_info_type): Change mach field from long to
113 (bfd_lookup_arch): Change machine parameter from long to unsigned
118 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
119 a symbol with a non-zero plt_offset.
123 * elfcode.h (align_file_position): Remove; not used.
125 * configure.in: Only check for <sys/procfs.h> on a native system,
126 and make sure it defines prstatus_t.
127 * configure: Rebuild.
131 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
133 * config.in: Rename from config.h.in.
134 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
135 Check for config.h:config.in when creating stamp-h.
136 * configure: Rebuild.
137 * Makefile.in (stamp-h): Depend upon config.in rather than
138 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
139 calling config.status.
141 * Makefile.in (do_distclean): Remove config.h and stamp-h.
142 (Makefile): Just rebuild Makefile.
143 (config.h, stamp-h): New targets.
144 * configure.in: Create stamp-h when rebuilding config.h.
145 * configure: Rebuild.
149 * configure.in: Call AC_CONFIG_HEADER. Substitute
150 HOST_64BIT_LONG. Check that various header files exist. Check
151 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
152 and/or free need to be declared. Don't make a link to sysdep.h.
153 Define TRAD_HEADER for various hosts.
154 * configure: Rebuild.
155 * configure.host: Don't set my_host. Add definitions taken from
156 host header files for various entries. Remove entries which now
158 * acconfig.h: New file.
159 * config.h.in: New file, built by autoheader.
160 * sysdep.h: New file.
161 * Makefile.in (do_distclean): Don't remove sysdep.h.
163 (LOCAL_H_DEPS): New variable.
164 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
166 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
167 ($(OPTIONAL_BACKENDS)): Likewise.
168 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
169 looking through sysdep.h.
170 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
171 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
172 (fprintf_vma, sprintf_vma): Likewise.
173 (int64_type, uint64_type): Don't define.
174 * bfd-in2.h: Rebuild.
175 * archures.c, bfd.c, srec.c: Include <ctype.h>.
176 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
177 * lynx-core.c: Include stuff from old hosts/lynx.h.
178 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
179 rather than NO_FCNTL.
180 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
181 rather than NATIVE_HPPAHPUX_COMPILER.
182 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
184 * hosts/*.h: Remove all header files which merely include,
185 declare, and define things. Leave header files which define
186 information needed by trad-core.c.
188 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
189 (BFD_CC_FOR_BUILD): Define.
190 * configure.in: Use BFD_CC_FOR_BUILD.
191 * configure: Rebuild.
195 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
196 * configure: Rebuild.
198 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
203 * config.bfd: i386pe_ve -> i386pe_vec.
207 * configure.host: Incorporate host Makefile fragments by setting
209 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
210 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
211 value based on whether the code is being compiled by a cross
212 compiler. Don't substitute host_makefile_frag or frags.
213 * aclocal.m4: New file to define local AC_PROG_CC.
214 * configure: Rebuild.
215 * Makefile.in (INSTALL): Set to @INSTALL@.
216 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
217 (INSTALL_DATA): Set to @INSTALL_DATA@.
219 (CC): Define as @CC@.
220 (CFLAGS): Set to @CFLAGS@.
221 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
222 (@host_makefile_frag@): Remove.
223 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
225 (config.status): Remove dependency upon @frags@.
226 * config/*.mh, config/README: Remove.
228 * config.bfd: Rewrite to incorporate the contents of the Makefile
229 fragments by setting shell variables, rather than merely returning
230 the name of a Makefile fragment.
231 * configure.in: Use shell variables set by config.bfd rather than
232 looking at the target Makefile fragment files. Don't substitute
233 target_makefile_frag. Do substitute TDEFINES.
234 * configure: Rebuild.
235 * Makefile.in (@target_makefile_frag@): Remove.
236 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
237 * config/*.mt: Remove.
241 * configure.in: Put changequote lines around "i[345]86" patterns
242 section of core file support.
246 * som.c (som_bfd_print_private_bfd_data): Define to use the
251 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
252 entry, text_start and data_start.
256 * Makefile.in (OFILES): Remove $(TDEPFILES).
257 * config/apollo.mt (TDEPFILES): Remove.
258 * config/README: Update.
260 * configure.in: For a native configuration, set COREFILE and
261 COREFLAG based on the canonical host name.
262 * configure: Rebuild.
263 * Makefile.in: Rebuild dependencies.
264 (ALL_CFLAGS): Add @COREFLAG@.
265 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
266 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
267 support routines. Check LYNX_CORE rather than HOST_LYNX.
268 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
269 * i386lynx.c: Likewise.
270 * m68klynx.c: Likewise.
271 * sparclynx.c: Likewise.
272 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
273 * *-core.c: Comment changes.
274 * config/decstation.mh (HDEPFILES): Remove.
275 (HDEFINES): Remove -DTRAD_CORE.
276 * config/irix3.mh (RANLIB): Remove.
277 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
278 (HDEFINES): Remove -DIRIX_CORE.
279 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
280 (HDEFINES): Remove -DTRAD_CORE.
281 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
282 * config/ultra3.mh (RANLIB): Remove.
283 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
284 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
285 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
286 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
287 * config/hppahpux.mh, config/hppaosf.mh: Remove.
288 * config/i386aix.mh, config/i386bsd.mh: Remove.
289 * config/i386linux.mh, config/i386mach3.mh: Remove.
290 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
291 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
292 * config/mipsmach3.mh, config/news-mips.mh: Remove.
293 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
294 * config/rs600.mh, config/rs6000lynx.mh: Remove.
295 * config/solaris2.mh, config/stratus.mh: Remove.
296 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
297 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
301 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
302 DT_FINI entry if the appropriate symbol is not in the hash table.
304 * libelf.h (struct elf_backend_data): Add create_program_headers
305 and want_hdr_in_seg fields.
306 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
308 (elf_backend_create_program_headers): Likewise.
309 (elfNN_bed): Initialize create_program_headers and
311 * elf.c (get_program_header_size): Call create_program_headers
313 (map_program_segments): Check want_hdr_in_seg backend field. Call
314 create_program_headers backend routine.
316 * elf.c (assign_file_positions_except_relocs): Align non allocated
317 sections when creating an executable.
319 * elfcode.h (elf_swap_phdr_in): Make non static.
320 (elf_swap_phdr_out): Make non static.
321 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
322 (bfd_elf32_swap_phdr_out): Declare.
323 (bfd_elf64_swap_phdr_in): Declare.
324 (bfd_elf64_swap_phdr_out): Declare.
326 * ecofflink.c (ecoff_collect_shuffle): New static function.
327 (_bfd_ecoff_get_accumulated_pdr): New function.
328 (_bfd_ecoff_get_accumulated_sym): New function.
329 (_bfd_ecoff_get_accumulated_ss): New function.
330 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
331 (_bfd_ecoff_get_accumulated_sym): Declare.
332 (_bfd_ecoff_get_accumulated_ss): Declare.
337 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
339 * elflink.h (elf_link_add_object_symbols): Handle indirect and
340 warning symbols. If any section is named .gnu.warning.XXX, treat
341 the contents as a warning to be issued if the symbol XXX is
343 (elf_link_output_extsym): For an indirect or warning symbol, just
344 output the symbol it points to.
346 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
347 if bfd_hash_allocate fails, since it will already be set.
348 (generic_link_hash_newfunc): Likewise.
349 (archive_hash_newfunc): Likewise.
350 (hash_entry_bfd): New static function.
351 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
352 callback. Allocate a new warning using the hash table newfunc.
353 Use bfd_hash_replace to update the entry in the hash table, rather
354 than assuming we can copy the fields with structure assignment.
356 * hash.c (bfd_hash_replace): New function.
357 * bfd-in.h (bfd_hash_replace): Declare.
358 * bfd-in2.h: Rebuild.
362 * config.bfd: Add mips*vr4300-*-elf* target.
363 * config/mipsbvr4300.mt: Added.
372 version-control: never