* opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
64ecde46
ILT
1Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
2
a9713b91
ILT
3 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
4 obstack_alloc fails.
5 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
6 fails.
7 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
8 * Many files: don't set bfd_error_no_memory if one of the above
9 routines fails.
10
3dbf33ee
ILT
11 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
12 if p_paddr_valid is set.
13 (copy_private_bfd_data): New static function.
14 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
15
44ef8897
ILT
16 * elf.c (assign_file_positions_for_segments): Fix case where extra
17 program headers were allocated.
18
27fb8f29
ILT
19 * elf.c (_bfd_elf_print_private_bfd_data): New function.
20 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
21 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
22 _bfd_elf_print_private_bfd_data.
23
64ecde46
ILT
24 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
25 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
26 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
27 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
28 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
29 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
30 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
31
fd0198f0
ILT
32Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
33
34 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
35 * elf.c (make_mapping): New static function.
36 (map_sections_to_segments): New static function.
37 (elf_sort_sections): New static function.
38 (assign_file_positions_for_segments): New static function.
39 (map_program_segments): Remove.
40 (get_program_header_size): Remove sorted_hdrs, count, and
41 maxpagesize parameters. Simplify.
42 (assign_file_positions_except_relocs): When generating an
43 executable, use assign_file_positions_for_segments.
44 (elf_sort_hdrs): Remove.
45 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
46 to get_program_header_size.
47
3b3f7625
ILT
48Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
49
1ff0461b
ILT
50 * hp300hpux.c (MY(callback)): Set lma as well as vma.
51
80c8485c
ILT
52 * configure, config.in: Regenerate with autoconf 2.7.
53
3b3f7625
ILT
54 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
55 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
56
fa63d1ef
ILT
57Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
58
a877f591
ILT
59 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
60 (ecoff_sec_to_styp_flags): Likewise.
61 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
62 (ecoff_set_symbol_info): Handle scRConst.
63 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
64 (ecoff_compute_section_file_positions): Handle .rconst section.
65 (_bfd_ecoff_write_object_contents): Likewise.
66 (ecoff_link_check_archive_element): Handle scRConst.
67 (ecoff_link_add_externals): Likewise.
68 (ecoff_link_write_external): Handle .rconst section.
69 (ecoff_reloc_link_order): Likewise.
70 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
71 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
72 section.
73 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
74
fa63d1ef
ILT
75 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
76 DEF_DYNAMIC flag is set.
77
25bada65
KR
78Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
79
80 * host-aout.c: If TRAD_HEADER is defined, include it.
81
7938b4cb
ILT
82Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
83
85e493f0
ILT
84 * aclocal.m4 (AC_PROG_CC): Remove local definition.
85 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
86 (BFD_NEED_DECLARATION): New function.
87 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
88 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
89 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 90
83dcdc61
ILT
91 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
92 special_sections before returning when called with a non XCOFF
93 BFD.
94
7938b4cb
ILT
95 * coffgen.c (coff_renumber_symbols): Sort common symbols with
96 global symbols.
97
98 * coffcode.h (coff_compute_section_file_positions): Only pad the
99 previous section to force file alignment when creating an
100 executable.
101
b5403ad7
ILT
102Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
103
a418e05d
ILT
104 * coffcode.h (coff_compute_section_file_positions): If
105 RS6000COFF_C, set up the .debug section.
106
b5403ad7
ILT
107 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
108 if it is not large enough to accomodate the entire TOC area with
109 signed 16 bit offsets.
110 (xcoff_write_global_symbol): Handle negative TOC offsets in global
111 linkage code.
112 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
113 TOC anchor to use the TOC value used in the output file.
114
90a7abbc
ILT
115Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
116
117 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
118 (_bfd_coff_read_string_table): Likewise.
119
177b1932
DE
120Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
121
122 * pe-arm.c: Fix typos.
123 * coff-arm.c: Likewise.
124
125Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
126
127 * coff-ppc.c (list_ele): Added "cat"egory member.
128 (record_toc): New category parameter (priv or pub).
129 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
130 (ppc_process_before_allocation): Removed embrionic data-in-toc from
131 the mainline. It addes extra toc cells in error.
132 (ppc_coff_swap_sym_in_hook): Added some documentation.
133 (dump_toc): Can now diagnose "virtual toc" chicanery.
134
e34314c4
ILT
135Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
136
137 * elf-bfd.h (struct elf_link_hash_table): Change type of
138 dynsymcount and bucketcount fields from size_t to bfd_size_type.
139
73a68447
ILT
140Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
141
535e9e29
ILT
142 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
143 pointerize C_LEAFSTAT or C_LEAFEXT entries.
144
73a68447
ILT
145 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
146 DT_INIT and DT_FINI entries if the _init or _fini symbol is
147 defined or mentioned in a regular file.
148
cd2b2402
KK
149Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
150
151 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
152 (coff_ppc_relocate_section): Handle TOCDEFN attribute
153 (coff_ppc_relocate_section): Correct REL24 handling
154 (ppc_process_before_allocation): Correct TOCDEFN handling
155
156 * peicode.h (dir_names): Added name descriptions
157
b218076e
KR
158Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
159
160 * VERSION: Updated to cygnus-2.6.
161
162Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
163
164 * targets.c (m68k4knetbsd_vec): Declare.
165
e9f30616
ILT
166Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
167
168 * targets.c (bfd_target): Change type of second argument to
169 _bfd_print_private_bfd_data from void * to PTR.
170 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
171 using PTR rather than void *.
172 * bfd-in2, libbfd.h: Rebuild.
173 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
174 to PTR.
175 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
176 _bfd_generic_bfd_print_private_bfd_data rather than casting
177 bfd_true.
178
ae75c4a4
KR
179Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
180
181 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
182 "DO NOT DELETE" lines or blank lines that mkdep writes on some
183 systems.
184 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
185 BFD64_BACKENDS_CFILES): New variables.
186 (CFILES): Use them.
187
bebcd3db
ILT
188Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
189
4b71e164
ILT
190 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
191 not at the file position of the first section.
192 * coffcode.h (coff_compute_section_file_positions): Avoid using
193 unportable #elif.
194 (coff_write_object_contents): When generating a PPC PE executable
195 with no symbols, round up the file size to a COFF_PAGE_SIZE
196 boundary.
197 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
198 don't write out a string table.
199
631b10f4
ILT
200 * elf.c (bfd_section_from_shdr): When using a different section
201 header, pass the new one to _bfd_elf_make_section_from_shdr.
202 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
203 (elf_map_symbols): Add section VMA to symbol value when comparing
204 against 0.
205 (_bfd_elf_compute_section_file_positions): Only build symbol table
206 if there are some symbols. Set file offset of symtab and strtab
207 sections.
208 (assign_file_positions_except_relocs): Remove dosyms parameter.
209 Change all callers. Never set file offset of symtab and strtab
210 sections.
211 (_bfd_elf_copy_private_section_data): New function.
212 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
213 (_bfd_elf_copy_private_symbol_data): New function.
214 (swap_out_syms): Check for special mapping of st_shndx created by
215 copy_private_symbol_data.
216 * elfxx-target.h: Use new copy routines.
217 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
218 (_bfd_elf_copy_private_section_data): Declare.
219
220 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
221
222 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
223 C_NT_WEAK.
224
bebcd3db
ILT
225 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
226 _bfd_dummy_target, matching the recent change to archive
227 recognition.
228
7ad4ba81
ILT
229Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
230
afa67334
ILT
231 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
232 arithmetic on PTR types.
233
f2bd8915
ILT
234 * aout-target.h (MY(callback)): Set the lma of the sections.
235
7ad4ba81
ILT
236 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
237 symbol into a reloc against the section.
238
93b6a3f8
KK
239Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
240
241 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
242 glue for the relocs: IMGLUE and IFGLUE.
243 (record_toc): new function - tracks toc contents
244 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
245 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
246 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
247 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 248 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
249
250 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
251 (pe_print_idata): New function - formats the idata section data
252 (pe_print_pdata): New function - formats the pdata section data
253 (pe_print_private_bfd_data): calls to above
254
c769947b
SS
255Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
256
257 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
258 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
259 TARGET_SYM and TARGET_NAME for vector and BFD name.
260 * coff-pmac.c (pmac_xcoff_vec): Remove.
261 (TARGET_SYM, TARGET_NAME): Define.
262 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
263 machine to 0, not all PowerMacs are 601s.
264
265Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
266
267 * elfcode.h (elf_object_p): Read in any program headers.
268 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
269 based on the program headers, if any.
270 (elf_fake_sections): Set sh_addr from the vma, not the lma.
271 (map_program_segments): Set p_paddr of program headers based on
272 the lma.
273
ee174815
ILT
274Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
275
839087b7
ILT
276 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
277 failure.
278
922530a6
ILT
279 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
280 trying to do a relocateable link with a non-a.out object file.
281
282 * archive.c (bfd_generic_archive_p): Check the first object file
283 in an archive even if target_defaulted is set. If the object file
284 has the wrong xvec, reject it.
285
a1774c51
ILT
286 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
287 be represented, report the name via _bfd_error_handler.
288 (translate_to_native_sym_flags): Likewise.
289 * elf32-mips.c (mips_elf_final_link): Likewise.
290 * oasys.c (oasys_write_sections): Likewise.
291
4a378b13
ILT
292 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
293 which checks for STYP_OVRFLO sections.
294 (coff_compute_section_file_positions): If RS6000COFF_C, handle
295 reloc and lineno count overflows.
296 (coff_write_object_contents): Call coff_count_linenumbers before
297 coff_compute_section_file_positions. If RS6000COFF_C, handle
298 reloc and lineno count overflows.
299 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
300 relocs before dealing with .pad sections. Count overflow section
301 headers when handling .pad sections.
302
7906bf87
ILT
303 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
304 if RS6000COFF_C.
305
ee174815
ILT
306 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
307 (struct xcoff_link_hash_table): Add descriptor_section and
308 special_sections fields.
309 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
310 (xcoff_link_add_symbols): Set linkage section alignment. Create
311 descriptor section. Check for magic symbol names (_text, etc.),
312 and record them in special_sections if found. Set
313 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
314 descriptor field to point back to the function code symbol.
315 (xcoff_sweep): Always mark the special descriptor_section.
316 (bfd_xcoff_export_symbol): Check whether the symbol might be a
317 function descriptor, and mark it if it is.
318 (bfd_xcoff_size_dynamic_sections): Add new special_sections
319 parameter, and fill it in. Allocate space for the descriptor
320 section.
321 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
322 global linkage code. If an undefined function descriptor is
323 exported, arrange to define it. Warn about any other undefined
324 exported symbol.
325 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
326 (xcoff_write_global_symbol): Create a function descriptor when
327 necessary.
328 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
329 * bfd-in2.h: Rebuild.
330
0e829f18
KK
331Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
332
333 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
334 (ppc_coff_link_hash_table): new types for hashing
335 (ppc_coff_link_hash_newfunc): hash entry constructor
336 (ppc_coff_link_hash_table_init): hash table initializer
337 (ppc_coff_link_hash_table_create): hash table constructor
338 (ppc_record_toc_entry): changed references to hash table
339 (coff_ppc_relocate_section): changed references to hash table
340
341 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
342 * libcoff.h: Rebuild
343
344 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
345 (coff_link_add_symbols): removed toc_offset init
346
7ac84736
KR
347Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
348
b27cc4bc
KR
349 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
350 first.
351
7ac84736
KR
352 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
353 if it is given and mmep is available.
354 * acconfig.h: Undef USE_MMAP.
355 * configure, config.in: Regenerated.
356 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
357 table handling the old way.
358 (aout_get_external_symbols): Don't complain if last byte of string
359 table is nonzero.
360 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
361 (bfd_free_window) [! USE_MMAP]: Don't define.
362 (bfd_get_file_window,
363 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
364
1b3b0c03
ILT
365Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
366
367 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
368 0xffff0000.
369
092abcdf
ILT
370Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
371
33698029
ILT
372 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
373 compatible with AMD generated COFF files. Try to support both AMD
374 and GNU formats simultaneously.
375 (coff_a29k_relocate_section): Likewise.
376
0bb8ff19
ILT
377 * libbfd.c (bfd_get_file_window): Change writable parameter from
378 int to boolean; update all callers. Pass MAP_SHARED if not
379 writable--it's required on Solaris. Cast fprintf argument to
380 avoid warning.
381 * bfd-in.h (bfd_get_file_window): Update declaration.
382 * bfd-in2.h: Rebuild.
383 * aoutx.h: Update calls to bfd_get_file_window.
384
0634a431
ILT
385 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
386 Change all uses.
387 (xcoff_swap_ldhdr_in): New static function.
388 (xcoff_swap_ldsym_in): New static function.
7812bf9c 389 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
390 (xcoff_link_add_symbols): If we just created a descriptor, pass it
391 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 392 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
393 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
394 rather than normal symbol table.
417acf22
ILT
395 (bfd_xcoff_import_symbol): It's not an error if the symbol is
396 already defined with the same absolute value.
0634a431
ILT
397 (xcoff_mark): When considering called symbols, check whether the
398 descriptor is from a dynamic object, rather than the symbol
399 itself.
400 (xcoff_build_ldsyms): Likewise.
401
092abcdf
ILT
402 * libbfd.c (bfd_get_file_window): Change return type to boolean.
403 Cast realloc and malloc return values. If malloc or realloc fail,
404 set bfd_error_no_memory.
405 * bfd-in.h (bfd_get_file_window): Change type to boolean.
406 * bfd-in2.h: Rebuild.
407
d6f41a7d
KK
408Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
409
410 * coff-ppc.c (ppc_record_toc_entry): new function.
411 (in_reloc_p): changed return value.
412 (coff_ppc_relocate_section): much rework.
413 (ppc_allocate_toc_section): new function.
414 (ppc_process_before_allocation): new function.
415 (ppc_coff_swap_sym_in_hook): new function.
416
417 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
418 (coff_link_add_symbols): initialize toc_offset.
419
420 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
421 (coff_swap_aouthdr_out): Added more sections to the data
422 dictionary for the pe file header. Also changed linker version
423 number on the ppc side.
424 (dir_names): small improvements to the dictionary printing.
425 (pe_mkobject_hook): save the file level flags.
426
427 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
428 (pe_tdata): added real_flags field
429 (coff_tdata): added local_toc_sym_map and access macro
430
431 * libcoff.h (coff_link_hash_entry): added toc_offset field
432 (pe_tdata): added real_flags field
433 (coff_tdata): added local_toc_sym_map and access macro
434
435 * coffcode.h (coff_set_alignment_hook): added hook for PE.
436 (coff_mkobject): init for local_toc_sym_map
437 (coff_write_object_contents): set the internal_a.magic to
438 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
439 ppc compilers use.
440
6bc200f2
ILT
441Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
442
c0971298
ILT
443 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
444 entries until both the line number address and the function name
445 address are too large.
446
6a468850
ILT
447 * configure.in: Call AC_CHECK_PROG to find and cache AR.
448 * configure: Rebuilt.
449
6bc200f2
ILT
450 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
451 is defined in the environment.
452
c44bf94c
JL
453Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
454
455 * som.c (som_get_section_contents_in_window): Define to use
456 generic version.
457
cf587de8
ILT
458Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
459
460 * coff-i860.c: New file, based on coff-i386.c.
461 * cpu-i860.c: New file, based on cpu-i386.c.
462 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
463 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
464 targets, using i860coff_vec.
465 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
466 trad-core.o and hosts/i860mach3.h.
467 (i860coff_vec): Use coff-i860.o and cofflink.o.
468 * configure: Rebuild.
469 * Makefile.in: Rebuild dependencies.
470 (ALL_MACHINES): Add cpu-i860.o.
471 (BFD32_BACKENDS): Add coff-i860.o.
472 (CFILES): Add cpu-i860.c and coff-i860.c.
473 * targets.c (i860coff_vec): Declare.
474 (bfd_target_vector): Add &i860coff_vec.
475 * archures.c (bfd_i860_arch): Declare.
476 (bfd_archures_list): Add &bfd_i860_arch.
477 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
478 (coff_set_flags): Handle bfd_arch_i860.
479 (coff_write_object_contents): Handle I860 a.out magic number.
480
83c23fca
ILT
481Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
482
483 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
484 the created .tc section to 2.
485 (xcoff_mark): Don't keep a .loader reloc for a call to an
486 undefined symbol when creating a shared library.
487 (xcoff_build_ldsyms): When creating a shared library, generate
488 global linkage code for a call to an undefined symbol.
489
5d9eb9c3
KR
490Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
491
492 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
493 BFD32_BACKENDS, BFD64_BACKENDS.
494 (.dep1): Put mkdep output in a separate file.
495 Rebuilt dependencies.
496
ffacb892
KR
497 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
498 value.
499
4fe6d901
KR
500 Permit use of mmap when available:
501
502 * configure.in: Check for mmap, madvise, mprotect.
503 * config.in, configure: Regenerated.
504
505 * libbfd.c (struct _bfd_window_internal): Define type.
506 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
507 functions.
508 (ok_to_map): New static variable for debugging.
509 (_bfd_generic_get_section_contents_in_window): New function.
510 * bfd-in.h (bfd_window_internal): Declare type.
511 (bfd_window): Define type.
512 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
513 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
514 Declare.
515
516 * libaout.h (struct aoutdata): Add two window fields.
517 (obj_aout_sym_window, obj_aout_string_window): New macros.
518 * aoutx.h (some_aout_object_p): Initialize windows.
519 (aout_get_external_symbols): Get symbol data and strings in
520 windows instead of explicitly allocated buffers.
521 (slurp_symbol_table): Free window instead of memory.
522 (bfd_free_cached_info): Release windows instead of freeing storage
523 directly.
524 (aout_link_free_symbols): Ditto.
525
526 * targets.c (bfd_target): Add new field for
527 get_section_contents_in_window.
528 (BFD_JUMP_TABLE_GENERIC): Updated.
529 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
530 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
531 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
532 macros for get_section_contents_in_window field.
533
d9e771e3
FF
534Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
535
536 * core.c: Renamed to corefile.c
537 * makefile.dos (OBJS): Change core.o to corefile.o
538 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
539
bf917766
SG
540start-sanitize-gm
541Sat Nov 4 10:16:54 1995 Stu Grossman (grossman@cygnus.com)
542
543 * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to
544 targ_selvecs to allow debugging under Irix-5 native.
545
546end-sanitize-gm
583db7a8
ILT
547Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
548
549 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
550 to o. Clobber and restore the list of new csects around the call
551 to _bfd_generic_link_add_one_symbol, in case it wants to report a
552 linker error and the linker wants to read the symbol table. Reset
553 the line number count of a real section even if it has no relocs.
554 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
555
556 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
557 is too small.
558
68aed7db
ILT
559Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
560
18a9609c
ILT
561 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
562 an undefined symbol in a shared link.
563
68aed7db
ILT
564 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
565 oldtype from bfd_link_order_type to bfd_link_hash_type. From
566 phdm@info.ucl.ac.be (Philippe De Muyter).
567
7f82c7e1
ILT
568Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
569
570 * coff-m88k.c (rtype2howto): New static function.
571 (RTYPE2HOWTO): Use it rather than a macro definition.
572
573 * coffcode.h (coff_write_object_contents): set internal_a.magic
574 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
575
4c8b9746 576 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
577 define TRAD_HEADER to new file hosts/delta68.h.
578 m88*-motorola-sysv*, however, does use ptrace-core.o.
579 * hosts/delta68.h: New file.
580
581 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
582 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
583
619c7730
KR
584Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
585
586 * i386linux.c (MY(vec)): Declare before use.
587
73246ff8
ILT
588Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
589
e8d6d5d0
ILT
590 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
591 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
592
b2193cc5
ILT
593 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
594 BFD is not of the right type.
595 (bfd_elf_get_needed_list): Likewise.
596 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
597 * sunos.c (bfd_sunos_get_needed_list): Likewise.
598 * xcofflink.c (XCOFF_XVECP): Define.
599 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
600 of the right type.
601 (bfd_xcoff_import_symbol): Likewise.
602 (bfd_xcoff_export_symbol): Likewise.
603 (bfd_xcoff_link_count_reloc): Likewise.
604 (bfd_xcoff_record_link_assignment): Likewise.
605 (bfd_xcoff_size_dynamic_sections): Likewise.
606
baabeb74
ILT
607 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
608 table index against the number of symbols for a base relative
609 reloc.
610
73246ff8
ILT
611 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
612 static function.
613 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
614 full_aouthdr flag here...
615 (_bfd_xcoff_bfd_final_link): ...not here.
616
6ab826bd
FF
617Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
618
619 * libelf.h: Rename to elf-bfd.h to avoid conflict with
620 systems that have a system <libelf.h>.
621 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
622 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
623 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
624 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
625 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
626 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
627 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
628
999cc186
ILT
629Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
630
0652d579
ILT
631 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
632 set, set BSF_WEAK in symbol. Change all callers.
633 (ecoff_get_extr): Set weakext based on BSF_WEAK.
634 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
635 _bfd_generic_link_add_one_symbol.
636 (ecoff_indirect_link_order): Check that the section tdata relocs
637 are not NULL before using them.
638
999cc186
ILT
639 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
640 define TRAD_HEADER as hosts/alphalinux.h.
641 * configure: Rebuild.
642 * hosts/alphalinux.h: New file.
643 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
644 not int.
645
e6080520
ILT
646Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
647
2bd0aeb9
ILT
648 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
649 C_ECOMM storage classes.
650
e6080520
ILT
651 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
652 of xcoff_mark.
653 (xcoff_mark): Call xcoff_mark_symbol.
654 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
655 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
656 doing it by hand.
657 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
658
5fe14a9f
ILT
659Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
660
f630a0a4
ILT
661 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
662 field.
663 (xcoff_find_reloc): New static function.
664 (xcoff_link_add_symbols): Use it.
665 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
666 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
667 relocate the value of C_DECL.
668
5fe14a9f
ILT
669 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
670
dff77ed7
SC
671Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
672
673 * cofflink.c (_bfd_coff_generic_relocate_section): Make
674 callback decide what goes in .relocs.
675 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
676 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
677 there is one.
678
697a8fe8
ILT
679Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
680
681 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
682 absolute section.
683
2d7de17d
ILT
684Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
685
686 * xcofflink.c: More improvements, mostly to fix handling of
687 constructors and a few other special cases.
688 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
689 zero, reverting yesterday's change.
690 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
691 (bfd_xcoff_link_count_reloc): Declare.
692 (bfd_xcoff_record_link_assignment): Declare.
693 * bfd-in2.h: Rebuild.
694
f552f751
NH
695Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
696
697 * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
698 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
699 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
700 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
701 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
702 Change PAGE_SIZE to TARGET_PAGE_SIZE.
703
704 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
705 format.
706
707 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
708 segments includes the a.out header. See to that the magic number
709 *always* is big-endian.
710
711 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
712 m68k4k NetBSD configurations.
713
714 * configure.in, configure: Separate i386 & mips NetBSD
715 configurations from other BSD ones. Don't assume DEC is the only
716 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
717 configurations. Add support for m68k4k NetBSD object format.
718
719 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
720
721 * m68k4knetbsd.c: New file.
f552f751
NH
722
723 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
724
725 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
726 <machine/endian.h>.
727
6fd1f40d
NH
728 * hosts/mipsnbsd.h: New file.
729
d6d44ef9
SG
730start-sanitize-gm
731Fri Oct 27 09:41:51 1995 Stu Grossman (grossman@cygnus.com)
732
733 * config.bfd: Add config stuff for mips*-*-magic* to set
734 targ_defvec to ecoff_big_vec.
735
736end-sanitize-gm
867d923d
ILT
737Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
738
739 * xcofflink.c: Numerous changes to get closer to a working XCOFF
740 linker.
741 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
742 toc_section, and entry_section fields.
743 (struct xcoff_section_tdata): Remove ldrel_count field.
744 * libcoff.h: Rebuild.
745 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
746 fields.
747 (coff_compute_section_file_positions): If RS6000COFF_C, generate
748 full a.out header if full_aouthdr is set in xcoff_data.
749 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
750 based on sections stored in xcoff_data.
751 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
752 fields.
aad2c618
ILT
753 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
754 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
755 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
756 value stored in ret rather than returning a pointer value.
757
6bd9ffdb
MM
758Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
759
760 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
761 format for now.
762
9d14250f
JL
763Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
764
765 * som.c (som_slurp_string_table): Allocate the strings with malloc
766 since they're free'd by free_cached_info.
767 (som_slurp_symbol_table): Similarly for the symbol table.
768
a2bd0529
PB
769Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
770
771 * Makefile.in (diststuff): Don't make headers.
772
28a0c103
ILT
773Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
774
356cd465
ILT
775 * Makefile.in: Rebuild dependencies.
776
1edd3a7b
ILT
777 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
778 output_bfd is not SunOS.
779 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
780 non-SunOS input files.
781
28a0c103
ILT
782 * xcofflink.c: Extensive changes to support linking shared objects
783 and generating a .loader section.
784 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
785 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
786 last_symndx, and ldrel_count fields.
28a0c103
ILT
787 * libcoff.h: Rebuild.
788 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
789 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
790 is set.
791 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
792 (bfd_xcoff_export_symbol): Declare.
793 (bfd_xcoff_size_dynamic_sections): Declare.
794 * bfd-in2.h: Rebuild.
795
aadf04f7
SS
796Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
797
798 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
799 * configure: Rebuild.
800 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
801 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
802 contents.
803 (pmac_xcoff_vec): Update to use new xcoff support.
804 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
805 (xcoff_write_armap): Declare buf as unsigned char.
806 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
807
808 * mpw-make.sed: Generalize subdir_do edit.
809
ddf4639b
JL
810Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
811
812 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
813 correctly. Don't initialize asect->vma.
814
e7bedf65
KR
815Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
816
817 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
818 something a little less than the page size.
819
820Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
821
822 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
823
3a70e298
SC
824Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
825
826 * coff-i386.c (coff_i386_reloc_type_lookup): New.
827 * coffcode.h (coff_write_object_contents): If .bss is before
828 .data us that as data_start.
829 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
830 calc correct.
831 * peicode.h (add_data_entry): Use _cooked_size of data directory.
832 (coff_swap_outhdr_out): Hardwire in version number.
833
5a2846e3
KR
834Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
835
3c3a5268
KR
836 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
837 major and minor to *_vno, since the former are also macros in
838 SunOS header files. Cast result of bfd_alloc to appropriate
839 type.
840
5a2846e3
KR
841 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
842 before assigning to sec_data.
843
0f6c885e
ILT
844Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
845
846 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
847 now relative to the section, not absolute.
848 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
849 get the file name when there is a N_SO directory name. When
850 handling stabs, remember that section->vma was added to the
851 offset.
852
11fa6636
ILT
853Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
854
855 * sunos.c (struct sunos_link_hash_table): Add needed field.
856 (sunos_link_hash_table_create): Call bfd_release, not free.
857 (sunos_link_hash_table_create): Initialize needed field.
858 (sunos_add_dynamic_symbols): Record needed objects.
859 (bfd_sunos_get_needed_list): New function.
860 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
861 * bfd-in2.h: Rebuild.
862
c974e19e
SC
863Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
864
865 * libcoff-in.h (pe_data_type.in_reloc_p): New.
866
22a35f0b
ILT
867Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
868
54406786
ILT
869 * bfd-in.h (struct bfd_link_needed_list): Rename from
870 bfd_elf_link_needed_list.
871 * bfd-in2.h: Rebuild.
872 * elf.c, elflink.h, libelf.h: Corresponding changes.
873
dd984644
ILT
874 Add start at AIX linker support; no shared libraries yet.
875 * xcofflink.c: New file.
876 * configure.in (rs600coff_vec): Use xcofflink.o.
877 * configure: Rebuild.
878 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
879 fields.
880 (struct xcoff_section_tdata): Define.
881 (xcoff_section_data): Define macro.
882 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
883 (_bfd_xcoff_bfd_link_add_symbols): Declare.
884 (_bfd_xcoff_bfd_final_link): Declare.
885 (_bfd_ppc_xcoff_relocate_section): Declare.
886 * libcoff.h: Rebuild.
887 * coff-rs6000.c: Clean up a bit.
888 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
889 cputype, csects, and debug_indices.
890 (xcoff_copy_private_bfd_data): Copy cputype.
891 (xcoff_howto_table): Rename from rs6000coff_howto_table.
892 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
893 (xcoff_reloc_type_lookup): Rename from
894 rs6000coff_reloc_type_lookup.
895 (coff_relocate_section): Define.
896 (_bfd_xcoff_sizeof_headers): Define.
897 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
898 (_bfd_xcoff_bfd_relax_section): Define.
899 (_bfd_xcoff_bfd_link_split_section): Define.
900 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
901 coff.
902 * coffcode.h (coff_compute_section_file_positions): If AIX,
903 increment sofar by SMALL_AOUTSZ if not executable.
904 (coff_write_object_contents): If AIX, always output an a.out
905 header; if not executable, header size of SMALL_AOUTSZ.
906 * hash.c (struct bfd_strtab_hash): Add xcoff field.
907 (_bfd_stringtab_init): Initialize xcoff field.
908 (_bfd_xcoff_stringtab_init): New function.
909 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
910 (_bfd_stringtab_emit): In XCOFF mode, write out length.
911 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
912 * libbfd.h: Rebuild.
913 * Makefile.in: Rebuild dependencies.
914 (BFD32_BACKENDS): Add xcofflink.o.
915 (CFILES): Add xcofflink.c.
916
22a35f0b
ILT
917 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
918 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
919 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
920
fb417a21
MM
921Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
922
923 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
924
925Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
926
927 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
928 * config.in: Regenerated.
929
930 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
931 (_bfd_chunksize): New variable.
932 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
933 for obstack chunk size.
934 * configure.in: Check for getpagesize.
935 * configure: Regenerated.
936
937 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
938
939 * trad-core.c (rawptr): Make it a local variable of
940 ptrace_unix_core_file_p.
941
b1e46369
SC
942Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
943
944 * coff-arm.c (in_reloc_p): New.
945 * coff-i386.c (in_reloc_p): New.
946 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
947 (coff_write_object_contents): Only set has_reloc_section
948 if PE_IMAGE.
949 * cofflink.c (_bfd_coff_generic_relocate_section): Call
950 in_reloc_p to decide if reloc should be emitted.
951 * libcoff.h (pe_data_type.in_reloc_p): New.
952 * peicode.h (pe_mkobject): Initialize in_reloc_p.
953
ee9f09cd
ILT
954Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
955
b1e46369
SC
956 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
957 (_bfd_coff_read_internal_relocs): Likewise.
958 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
959 (_bfd_coff_read_internal_relocs): Likewise.
960
ee9f09cd
ILT
961 * elflink.h (elf_link_add_object_symbols): Correct conditions
962 under which type and size change warnings are issued.
963
78b31b6b
ILT
964Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
965
966 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
967 a symbol which is not in a real section.
968 (coff_write_native_symbol): Corresponding change.
969
970 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
971 coff_link_hash_newfunc and make non-static.
972 (_bfd_coff_link_hash_table_init): New function, broken out of
973 _bfd_coff_link_hash_table_create.
974 (_bfd_coff_link_hash_table_create): Use it.
975 (process_embedded_commands): Make static.
976 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
977 (_bfd_coff_link_hash_table_init): Declare.
978 * libcoff.h: Rebuild.
979
980 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
981 field in XCOFF tdata.
982 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
983 U802ROMAGIC, for clarity. Try to set arch and machine correctly
984 based on cputype stored in a.out header, or in n_type of initial
985 .file symbol.
986 (coff_write_object_contents): Set cputype correctly in a.out
987 header.
988 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
989 warnings.
990 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
991 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
992 old resv1 field.
993 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
994 * libcoff.h: Rebuild.
995
996 * cpu-rs6000.c (rs6000_compatible): New static function.
997 (bfd_rs6000_arch): Use it.
998 * cpu-powerpc.c (powerpc_compatible): New static function.
999 (arch_info_struct): Define various flavours of PowerPC.
1000 (bfd_powerpc_arch): Use powerpc_compatible. Point at
1001 arch_info_struct.
1002
9dd7e56f
FF
1003Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
1004
78b31b6b 1005 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 1006
8235c112
ILT
1007Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
1008
1009 * elflink.h (elf_link_add_object_symbols): Don't warn about
1010 changing the size or type if the old definition was weak.
1011
0322af0d
ILT
1012Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
1013
49488f2b
ILT
1014 * coffcode.h (combined_entry_type): Add fix_line field.
1015 (coff_slurp_line_table): Warn if we try to set the lineno field of
1016 a symbol twice.
1017 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
1018 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
1019 * coffgen.c (coff_mangle_symbols): Handle fix_line.
1020 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
1021 absolute section.
1022 (coff_print_symbol): Print fix_value symbols in a useful fashion.
1023 * libcoff.h: Rebuild.
1024
5f710a3a
ILT
1025 * libcoff-in.h (struct xcoff_tdata): Define.
1026 (xcoff_data): Define.
1027 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
1028 * bfd-in2.h, libcoff.h: Rebuild.
1029 * coff-rs6000.c (xcoff_mkobject): New static function.
1030 (coff_mkobject): Define.
1031 (xcoff_copy_private_bfd_data): New static function.
1032 (coff_bfd_copy_private_bfd_data): Define.
1033 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
1034 signed to bitfield.
1035 (rs6000coff_vec): Add DYNAMIC to object_flags.
1036 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
1037 .loader sections specially.
1038 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
1039 section alignment from the XCOFF tdata information.
1040 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
1041 F_SHROBJ, and copy the extra a.out header information into the
1042 XCOFF tdata structure.
1043 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
1044 F_DYNLOAD and the extra a.out header information.
1045 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
1046 C_HIDEXT symbol with attached csect information.
1047 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
1048 in the o_maxdata field.
1049 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
1050 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
1051 end if BSF_NOT_AT_END is set.
3f2c5b2d 1052
0322af0d
ILT
1053 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
1054 _bfd_read_ar_hdr_fn.
1055 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
1056 * bfd-in2.h, libbfd.h: Rebuild.
1057 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
1058 return value.
1059 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
1060 (bfd_slurp_bsd_armap_f2): Likewise.
1061 (_bfd_slurp_extended_name_table): Likewise.
1062
3266eaff
KR
1063Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
1064
1065 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1066
1067 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
1068 when the symbol table is empty.
1069
1070 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
1071 space for section symbols, since we don't output them either.
1072 (elf_m68k_adjust_dynindx): Removed.
1073
1074 * ptrace-core.c (rawptr): Make it a local variable of
1075 ptrace_unix_core_file_p.
3266eaff 1076
249479fa
MM
1077Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1078
45b5d2f0
MM
1079 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
1080 NULL.
1081
249479fa
MM
1082 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
1083 Mac object file formats.
1084
c53fac12
ILT
1085Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
1086
4372f33f
ILT
1087 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
1088 auxent if there isn't one.
1089 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
1090 rather than FILNMLEN as the maximum name length.
1091
0fc9ada9
ILT
1092 * coffcode.h (bfd_coff_backend_data): Add new field
1093 _bfd_coff_print_aux.
1094 (bfd_coff_print_aux): New static function.
1095 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
1096 scnlen field of an XTY_LD csect aux entry.
1097 (coff_print_aux): New static function.
1098 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
1099 in coff_pointerize_aux_hook.
1100 (bfd_coff_std_swap_table): Initialize new field.
1101 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
1102 * libcoff.h: Rebuild.
1103 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
1104 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1105
7860fe38
ILT
1106 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
1107 if there are symbols, for native AIX ld compatibility.
1108
c80cc833
ILT
1109 * coffcode.h (bfd_coff_backend_data): Add new field
1110 _bfd_coff_pointerize_aux_hook.
1111 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
1112 or I960, and as 0 otherwise.
1113 (bfd_coff_std_swap_table): Initialize new field.
1114 * libcoff.h: Rebuild.
1115 * coffgen.c (coff_pointerize_aux): Change parameters to take
1116 symbol pointer instead of type and class, and to take aux index.
1117 Call _bfd_coff_pointerize_aux_hook if it is defined.
1118 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
1119 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
1120 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1121
c53fac12
ILT
1122 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
1123 read-only/host-only support.
1124
1125 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
1126 BSF_LOCAL.
d11e6b52
ILT
1127 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
1128 RS6000COFF_C.
c53fac12
ILT
1129
1130 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
1131 BFD_JUMP_TABLE_ARCHIVE accordingly.
1132 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
1133 (_bfd_compute_and_write_armap): Declare.
1134 (_bfd_generic_read_ar_hdr): Declare.
1135 (_bfd_read_ar_hdr): Define.
1136 (_bfd_noarchive_read_ar_hdr): Define.
1137 (_bfd_archive_bsd_read_ar_hdr): Define.
1138 (_bfd_archive_coff_read_ar_hdr): Define.
1139 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
1140 _bfd_read_ar_hdr instead.
1141 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
1142 (_bfd_compute_and_write_armap): Rename from
1143 compute_and_write_armap. Make non-static. Change all callers.
1144 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
1145 than _bfd_snarf_ar_hdr.
1146 * aout-target.h (MY_read_ar_hdr): Define if not defined.
1147 * ieee.c (ieee_read_ar_hdr): Define.
1148 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
1149 * oasys.c (oasys_read_ar_hdr): Define.
1150 * som.c (som_read_ar_hdr): Define.
1151 * bfd-in2.h, libbfd.h: Rebuild.
1152
f8e47484
SC
1153Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
1154
1155 * peicode.c (coff_swap_filehdr_in): If symptr is
1156 zero, there aren't any symbols, even if nsyms is set.
1157
2b874a2d
ILT
1158Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
1159
aca73687
ILT
1160 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
1161 field.
1162 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
1163 sections, and set styp correctly for them: .got, .hash, .dynamic,
1164 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
1165 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
1166 types.
1167 (ecoff_sort_hdrs): New static function.
1168 (ecoff_compute_section_file_positions): Return boolean, not void.
1169 Sort the sections by VMA before looking through them. Put the
1170 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
1171 section on an appropriate boundary within the page.
1172 (ecoff_compute_reloc_file_positions): Check return value of
1173 ecoff_compute_section_file_positions.
1174 (_bfd_ecoff_set_section_contents): Likewise.
1175 (_bfd_ecoff_write_object_contents): Check for various Alpha
1176 section types when incrementing text_size and data_size. Call
1177 adjust_headers backend function if it exists.
1178 * coff-alpha.c (alpha_adjust_headers): New static function.
1179 (alpha_ecoff_backend_data): Initialize adjust_headers field.
1180 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1181
2b874a2d
ILT
1182 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
1183
c780e5db
JL
1184Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
1185
1186 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
1187 of ALTERNATE_AIX_CORE_FORMAT.
1188 * configure.in (aix4): No longer need CORE_FLAGS.
1189 * configure: Updated.
1190
2a01c351
KR
1191Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
1192
1193 NS32k changes from Ian Dall:
1194 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
1195 macros.
1196 (aout_link_input_section_std, aout_link_input_section_ext,
1197 aout_link_reloc_link_order): Call them instead of _bfd_*
1198 versions.
1199 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
1200 to zero.
1201 (backend_data): Use it instead of hardcoded zero.
1202
1203 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
1204 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
1205
1206 * ns32knetbsd.c: Include bfd.h.
1207 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
1208 (MY_bfd_reloc_type_lookup): Declare function too.
1209 * pc532-mach.c (set_sizes): Don't declare.
1210 (MY_text_includes_header, MY_exec_header_not_counted): Define.
1211 (backend_data, MY_backend_data): Don't define.
1212
1213 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
1214 ns32k-*-lites* like ns32k-*-netbsd*.
1215
1216 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
1217 compile on lites.
1218
5944d75b
ILT
1219Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
1220
1221 * coffcode.h (coff_write_object_contents): Restore setting
1222 f_timdat to 0, deleted on August 22.
1223
db344f82
SC
1224Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
1225
1226 * coffcode.h (coff_bfd_copy_private_symbol_data,
1227 coff_bfd_copy_private_section_data,
1228 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
1229 * peicode.h (coff_bfd_copy_private_bfd_data): New
1230 (pe_bfd_copy_private_bfd_data): New.
1231 (coff_swap_scnhdr_in): Swap bss size into the right place.
1232 (pe_print_private_bfd_data): Add some newlines.
5944d75b 1233
c780e5db 1234Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
97f1feda
JL
1235
1236 * som.c (setup_sections): Don't die if a space has no subspaces.
1237
3d7c42c9
ILT
1238Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
1239
1240 * elflink.h (elf_link_add_object_symbols): Don't let a weak
1241 dynamic symbol override a common symbol. Don't change the size or
1242 type if they have been set and the new symbol is not a definition.
1243 Warn if the size or type changes.
1244
c780e5db 1245Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
709af562
JL
1246
1247 * som.c (som_begin_writing): Don't write the symbol table or
1248 symbol strings.
1249 (som_finish_writing): Write them here. Place them after the
1250 subspace data, but before the relocs.
1251
1252Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
1253
1254 * sunos.c (sunos_add_one_symbol): Just pass false, not
1255 info->shared_library, to sunos_create_dynamic_sections.
1256 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
1257 section.
1258 (sunos_check_dynamic_reloc): Remove .text section assertion.
1259
7009e451
SS
1260Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
1261
1262 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
1263 * configure, configure.in: Add pmac_xcoff_vec case.
1264 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
1265 * coff-pmac.c: New file, PowerMac XCOFF support.
1266 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
1267 * targets.c (pmac_xcoff_vec): Declare.
1268
1269 * mpw-config.in: Various changes to be compatible with the
1270 autoconf-based configury.
1271 * mpw-make.sed: New file, sed commands to translate Unix
1272 makefile into MPW syntax.
1273 * mpw-make.in: Remove.
1274 * hosts/mpw.h: Remove.
1275 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
1276 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
1277
b91537be
SC
1278Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
1279
1280 * binary.c (binary_get_symtab): Return an empty string on error.
1281 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
1282
30360a6f
KK
1283Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
1284
1285 * coff-ppc.c: Reformatted according to gnu conventions
1286 Removed irrelevant "if 0" code
1287
20d1e233
ILT
1288Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
1289
69fd4fdd
ILT
1290 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
1291 symbols rather than as indirect symbols.
1292 (MY(slurp_symbol_table)): Don't do anything special about
1293 secondary symbols.
1294
46b5a892
ILT
1295 * coffcode.h (coff_new_section_hook): Make sure that the alignment
1296 of .ctors and .dtors sections is no larger than 2.
1297
9db59230
ILT
1298 * sunos.c (sunos_add_one_symbol): Don't change
1299 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
1300 undef list.
1301 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
1302 dynamic symbols when creating a shared library.
1303 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
1304 shared library.
1305 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
1306 written even if it is not defined in a regular object.
1307 (sunos_write_dynamic_symbol): Use plt_offset for the address of
1308 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
1309 rather than the constant 22.
1310 (sunos_check_dynamic_reloc): Handle creating a shared library.
1311 (sunos_finish_dynamic_link): Set the first entry in the GOT to
1312 zero when creating a shared library.
1313 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
1314 write it out at the start of the symbol table.
1315
20d1e233
ILT
1316 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
1317
a11e10fe
DE
1318Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
1319
1320 * config.bfd: Add arm-*-coff.
1321 * configure.in, configure: Add armcoff_{little,big}_vec.
1322 * targets.c (armcoff_{little,big}_vec): Declare.
1323 (bfd_target_vector): Add armcoff_{little,big}_vec.
1324 * coff-arm.c (armcoff_{little,big}_vec): Always define.
1325
99062cfc
ILT
1326Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
1327
1328 * targets.c (bfd_find_target): Remove debugging code.
1329
deacbe0f
KK
1330Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
1331
1332 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
1333 support on powerpc.
1334 * Makefile.in: added *-ppc files
1335 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
1336 allow pe based .o's to be shared with other tools on ppc/NT
1337 * config.bfd: added powerpc[le]-[pe|winnt] config support
1338 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
1339 * peicode.h: Added more section flags for PE on ppc
1340 Added coff_swap_filehdr_out to allow peicode.h to be
1341 used for non-image PE files on ppc.
1342 Check for image, or not, before copying pe_opthdr
1343 * targets.c: Added new bfd's
30360a6f
KK
1344 * targets.c: Removed two inactive bfds that shouldn't have made it this
1345 far.
deacbe0f 1346
d22b02e0
MM
1347Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1348
1349 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
1350 explicit values to initialize all relocs. Change all users.
1351 (ppc_elf_brtaken_inner): New function to handle branch predicition
1352 relocs.
1353 (ppc_elf_brtaken_reloc): Ditto.
1354 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
1355 relocs use ppc_elf_unsupported_reloc.
1356 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
1357 needs to be reported.
1358 (ppc_elf_relocate_section): Support branch prediction relocs.
1359
fcf490c0
ILT
1360Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
1361
e6cb7b41
ILT
1362 * bfd.c (bfd_assert): Remove \n from string passed to
1363 _bfd_error_handler.
1364
1af85fbb
ILT
1365 * coff-i386.c: (TWO_DATA_SECS): Don't define.
1366 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
1367 (bfd_coff_make_section_hook): Don't define.
1368 (coff_make_section_hook): Remove.
1369 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
1370 (styp_to_sec_flags): Likewise.
1371 (coff_write_object_contents): Likewise.
1372 (bfd_coff_std_swap_table): Don't initialize make_section_hook
1373 field.
1374 * libcoff.h: Rebuild.
1375 * coffgen.c (make_a_section_from_file): Just call
1376 bfd_make_section_anyway, not bfd_make_section or
1377 bfd_coff_make_section_hook.
1378 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
1379 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
1380 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
1381 make_section_hook field.
1382 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1383
fcf490c0
ILT
1384 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
1385 pointers into value field for warning and indirect symbols; just
1386 leave the value field alone.
1387 * linker.c (generic_link_add_symbol_list): Use next symbol for
1388 warning and indirect symbols, rather than looking in symbol value.
1389 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
1390 parameter. Change all callers. Remove support for indirect
1391 symbols; it didn't work anyhow.
1392 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
1393 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
1394 * bfd-in2.h: Rebuild.
1395
cc47d19a
MM
1396Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1397
1398 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
1399 go back to telling the tools this reloc operates on 32 bits.
1400
81449d47
ILT
1401Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
1402
7a7fbffb
ILT
1403 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
1404 rather than a direct fprintf.
1405 * archive.c (_bfd_write_archive_contents): Likewise.
1406 * coffcode.h (coff_slurp_symbol_table): Likewise.
1407 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
1408 (ppc_elf_unsupported_reloc): Likewise.
1409 (ppc_elf_relocate_section): Likewise.
1410 * i386linux.c (linux_tally_symbols): Likewise.
1411 (linux_finish_dynamic_link): Likewise.
1412 * osf-core.c (osf_core_core_file_p): Likewise.
1413 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
1414 * som.c (som_sizeof_headers): Likewise.
1415 * srec.c (srec_bad_byte): Likewise.
1416 * bfd.c (bfd_assert): Likewise. Also change file to be const.
1417 * libbfd-in.h (bfd_assert): Declare first parameter const.
1418 * libbfd.h: Rebuild.
1419 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
1420 bfd_reloc_overflow is enough.
1421 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
1422 * coff-h8500.c (rtype2howto): Likewise.
1423 * coff-z8k.c (rtype2howto): Likewise.
1424 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
1425 * elf.c (_bfd_elf_get_lineno): Likewise.
1426 (_bfd_elf_no_info_to_howto): Likewise.
1427 (_bfd_elf_no_info_to_howto_rel): Likewise.
1428 * hp300hpux.c (convert_sym_type): Likewise.
1429 (MY(swap_std_reloc_in)): Likewise.
1430 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
1431
f1c6dd5d
ILT
1432 * libaout.h (struct aoutdata): Add line_buf field.
1433 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
1434 and filename_buffer. Instead, use a malloc buffer stored in the
1435 new line_buf field. Remove length restrictions.
1436
f0500a41
ILT
1437 * coffgen.c (string_size): Remove static variable.
1438 (debug_string_size, debug_string_section): Likewise.
1439 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
1440 and debug_string_size_p parameters. Use them instead of the
1441 global variables. Change all callers.
1442 (coff_write_symbol): Likewise.
1443 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
1444 (coff_write_symbols): Add local variables to replace removed
1445 global variables.
1446
25b5a53d
ILT
1447 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
1448 function, and line_base fields.
1449 * libcoff.h: Rebuild.
1450 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
1451 information, rather than using static variables.
1452
641ac26a
ILT
1453 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
1454 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
1455
81449d47
ILT
1456 * init.c (initialized): Remove static variable.
1457 (bfd_init): Don't bother setting initialized.
1458 (bfd_check_init): Remove.
1459 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
1460 * libbfd.h: Rebuild.
1461
138b9b81
PS
1462Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1463
1464 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
1465 size for full core dumps. Copy core file header to private data.
1466 (rs6000coff_core_file_failing_command,
1467 rs6000coff_core_file_failing_signal): New functions to extract
1468 the file name and terminating signal from the core file.
1469 * coff-rs6000.c: Use them.
1470
2ffbb79a
ILT
1471Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
1472
1473 Change arch info to be const, initialized at compile time.
1474 * archures.c: Reindent many functions. Change CONST to const.
1475 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
1476 nothing set it anyhow. Make next const.
1477 (bfd_arch_info_list): Remove.
1478 (bfd_archures_list): Rename from archures_init_table. Change from
1479 a table of function pointers to a table of bfd_arch_info_type
1480 structure addresses.
1481 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
1482 (bfd_lookup_arch): Likewise.
1483 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
1484 const pointer.
1485 (bfd_default_arch_struct): Make const.
1486 (bfd_arch_init, bfd_arch_linkin): Remove.
1487 (bfd_get_arch_info): Return a const pointer.
1488 * init.c (bfd_init): Don't call bfd_arch_init.
1489 * bfd.c (struct _bfd): Make arch_info const.
1490 * bfd-in2.h: Rebuild.
1491 * libbfd.h: Rebuild.
1492 * configure.in: Put & before everything in $selarchs.
1493 * configure: Rebuild.
1494 * cpu-*.c: Change bfd_*_arch from a function which calls
1495 bfd_arch_linkin to a const structure.
1496 * ieee.c (ieee_object_p): Make arch const.
1497
02f85cda
MM
1498Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1499
1500 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
1501 PowerPC V.4.
1502 * bfd-in2.h: Regenerate.
1503 * libbfd.h: Regenerate.
1504
1505 * elf32-ppc.c (reloc_type): Update names to match current draft.
1506 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
1507 relative. Update names to current V.4 draft.
1508 (ppc_elf_reloc_type_lookup): Add support for more relocations.
1509 (ppc_elf_relocate_section): Rename relocations to match draft.
1510
dd82c578
MM
1511Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
1512
1513 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
1514 compiled with -mrelocatable-lib to be linked with either normal
1515 modules or -mrelocatable modules.
1516
f69e888e
ILT
1517Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
1518
e18c4e8f
ILT
1519 * coffcode.h (coff_write_object_contents): Clear the vstamp field
1520 in the a.out header.
1521
f69e888e
ILT
1522 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
1523 a reloc against a local symbol, even if it's not a section.
1524
a5655244
ILT
1525Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
1526
1527 * targets.c (bfd_target): Remove unused align_power_min field.
1528 * bfd-in2.h: Rebuild.
1529 * All backends: Remove initialization of align_power_min.
1530
500d7394
SC
1531Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
1532
1533 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 1534
049df0a8
ILT
1535Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
1536
1537 * config.bfd (mips-dec-netbsd*): New target.
1538 * configure.host (mips-dec-netbsd*): New host.
1539 * configure.in (mips-dec-netbsd*): New native.
1540 * configure: Rebuild.
1541
1862bbd8
ILT
1542Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
1543
1544 Make the COFF backend linker merge common types:
1545 * cofflink.c (struct coff_debug_merge_element): Define.
1546 (struct coff_debug_merge_type): Define.
1547 (struct coff_debug_merge_hash_entry): Define.
1548 (struct coff_debug_merge_hash_table): Define.
1549 (coff_debug_merge_hash_table_init): Define.
1550 (coff_debug_merge_hash_table_free): Define.
1551 (coff_debug_merge_hash_lookup): Define.
1552 (struct coff_final_link_info): Add debug_merge field.
1553 (coff_debug_merge_hash_newfunc): New static function.
1554 (_bfd_coff_final_link): Allocate and free debug_merge table.
1555 (coff_link_input_bfd): Merge identical enum, struct and union
1556 types.
1557
a208a70f
ILT
1558Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
1559
1560 Convert i960 COFF to use COFF backend linker.
1561 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
1562 structure to store the symbol being used.
1563 (coff_i960_start_final_link): New static function.
1564 (coff_i960_relocate_section): New static function.
1565 (coff_i960_adjust_symndx): New static function.
1566 (coff_start_final_link): Define.
1567 (coff_relocate_section): Define.
1568 (coff_adjust_symndx): Define.
1569 * coffcode.h (bfd_coff_backend_data): Add new callback function
1570 _bfd_coff_start_final_link.
1571 (bfd_coff_start_final_link): Define.
1572 (coff_start_final_link): Define if not defined.
1573 (bfd_coff_std_swap_table): Add coff_start_final_link.
1574 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
1575 visible.
1576 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
1577 function callback is not NULL.
1578 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
1579 (_bfd_coff_internal_syment_name): Declare.
1580 * libcoff.h: Rebuild.
1581 * configure.in (icoff_big_vec): Add cofflink.o.
1582 (icoff_little_vec): Likewise.
1583 * configure: Rebuild.
1584
f0abedbe
FF
1585Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
1586
1587 * Makefile.in (clean-info): Remove extraneous tab from line
1588 following action.
1589
aa4b3dc5
ILT
1590Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
1591
1592 * cofflink.c (coff_link_input_bfd): Fail if a section with no
1593 contents has relocs.
1594
4ca63811 1595Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
beee31b1
SC
1596
1597 * coffcode.h (coff_compute_section_file_positions): Keep the
1598 raw size safe.
1599 (coff_write_object_contents): Remember if it's a relocatable
1600 file.
1601 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
1602 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
1603 if relocatable file. Swap out saved raw size.
1604
ae115e51
ILT
1605Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
1606
9521bac3
ILT
1607 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
1608 (maintainer-clean): Rename from realclean, passing
1609 maintainer-clean down to subdirectories, but leave realclean as a
1610 synonym.
1611
4ca63811
ILT
1612 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
1613 warning callback.
1614
5aa4c3ff
ILT
1615 * dep-in.sed: Remove config.h from generated dependencies.
1616
396aaeb2
ILT
1617 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
1618 broken out of sunos_canonicalize_dynamic_symtab.
1619 (sunos_canonicalize_dynamic_symtab): Call new function
1620 sunos_slurp_dynamic_symtab.
1621 (sunos_add_dynamic_symbols): Add three new parameters. Return the
1622 dynamic symbol table to the caller.
1623 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
1624 callback to override the symbols being read.
1625 * libaout.h (struct aout_backend_data): Add three new parameters
1626 to add_dynamic_symbols callback.
1627
ae115e51
ILT
1628 Extensive minor changes to avoid various gcc warnings. Also:
1629 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
1630 * archures.c (bfd_arch_info_type): Change mach field from long to
1631 unsigned long.
1632 (bfd_lookup_arch): Change machine parameter from long to unsigned
1633 long.
1634
b088e4b2
ILT
1635Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
1636
1637 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
1638 a symbol with a non-zero plt_offset.
1639
1dff7902
ILT
1640Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
1641
2b71e1e4
ILT
1642 * elfcode.h (align_file_position): Remove; not used.
1643
1dff7902
ILT
1644 * configure.in: Only check for <sys/procfs.h> on a native system,
1645 and make sure it defines prstatus_t.
1646 * configure: Rebuild.
1647
870015b1
ILT
1648Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
1649
535c89f0
ILT
1650 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
1651
936b870c
ILT
1652 * config.in: Rename from config.h.in.
1653 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 1654 Check for config.h:config.in when creating stamp-h.
936b870c 1655 * configure: Rebuild.
a7873a6c
ILT
1656 * Makefile.in (stamp-h): Depend upon config.in rather than
1657 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
1658 calling config.status.
936b870c 1659
870015b1
ILT
1660 * Makefile.in (do_distclean): Remove config.h and stamp-h.
1661 (Makefile): Just rebuild Makefile.
1662 (config.h, stamp-h): New targets.
1663 * configure.in: Create stamp-h when rebuilding config.h.
1664 * configure: Rebuild.
1665
b7577823
ILT
1666Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
1667
1668 * configure.in: Call AC_CONFIG_HEADER. Substitute
1669 HOST_64BIT_LONG. Check that various header files exist. Check
1670 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
1671 and/or free need to be declared. Don't make a link to sysdep.h.
1672 Define TRAD_HEADER for various hosts.
1673 * configure: Rebuild.
1674 * configure.host: Don't set my_host. Add definitions taken from
1675 host header files for various entries. Remove entries which now
1676 do nothing.
1677 * acconfig.h: New file.
1678 * config.h.in: New file, built by autoheader.
1679 * sysdep.h: New file.
1680 * Makefile.in (do_distclean): Don't remove sysdep.h.
1681 (RECONFIG): Remove.
1682 (LOCAL_H_DEPS): New variable.
1683 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
1684 $(RECONFIG).
1685 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
1686 ($(OPTIONAL_BACKENDS)): Likewise.
1687 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
1688 looking through sysdep.h.
1689 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
1690 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
1691 (fprintf_vma, sprintf_vma): Likewise.
1692 (int64_type, uint64_type): Don't define.
1693 * bfd-in2.h: Rebuild.
1694 * archures.c, bfd.c, srec.c: Include <ctype.h>.
1695 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
1696 * lynx-core.c: Include stuff from old hosts/lynx.h.
1697 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
1698 rather than NO_FCNTL.
1699 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
1700 rather than NATIVE_HPPAHPUX_COMPILER.
1701 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
1702 is defined.
1703 * hosts/*.h: Remove all header files which merely include,
1704 declare, and define things. Leave header files which define
1705 information needed by trad-core.c.
1706
1707 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
1708 (BFD_CC_FOR_BUILD): Define.
1709 * configure.in: Use BFD_CC_FOR_BUILD.
1710 * configure: Rebuild.
1711
7a93ebdd
ILT
1712Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
1713
4c2e4d0e
ILT
1714 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
1715 * configure: Rebuild.
1716
7a93ebdd
ILT
1717 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
1718 a global symbol.
1719
866bb9e5
JM
1720Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
1721
1722 * config.bfd: i386pe_ve -> i386pe_vec.
1723
2b79a104
ILT
1724Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
1725
f515fb2f
ILT
1726 * configure.host: Incorporate host Makefile fragments by setting
1727 shell variables.
1728 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
1729 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
1730 value based on whether the code is being compiled by a cross
1731 compiler. Don't substitute host_makefile_frag or frags.
1732 * aclocal.m4: New file to define local AC_PROG_CC.
1733 * configure: Rebuild.
1734 * Makefile.in (INSTALL): Set to @INSTALL@.
1735 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
1736 (INSTALL_DATA): Set to @INSTALL_DATA@.
1737 (AR): Set to @AR@.
1738 (CC): Define as @CC@.
1739 (CFLAGS): Set to @CFLAGS@.
1740 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
1741 (@host_makefile_frag@): Remove.
1742 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
1743 after other options.
1744 (config.status): Remove dependency upon @frags@.
1745 * config/*.mh, config/README: Remove.
1746
2b79a104
ILT
1747 * config.bfd: Rewrite to incorporate the contents of the Makefile
1748 fragments by setting shell variables, rather than merely returning
1749 the name of a Makefile fragment.
1750 * configure.in: Use shell variables set by config.bfd rather than
1751 looking at the target Makefile fragment files. Don't substitute
1752 target_makefile_frag. Do substitute TDEFINES.
1753 * configure: Rebuild.
1754 * Makefile.in (@target_makefile_frag@): Remove.
1755 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
1756 * config/*.mt: Remove.
1757
2cb159a5
KR
1758Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
1759
1760 * configure.in: Put changequote lines around "i[345]86" patterns
1761 section of core file support.
1762
ef07871c
JL
1763Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
1764
1765 * som.c (som_bfd_print_private_bfd_data): Define to use the
1766 generic version.
1767
1613e075
SC
1768Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
1769
1770 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
1771 entry, text_start and data_start.
1772
a52a3ce8
ILT
1773Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
1774
a21227ef
ILT
1775 * Makefile.in (OFILES): Remove $(TDEPFILES).
1776 * config/apollo.mt (TDEPFILES): Remove.
1777 * config/README: Update.
1778
a52a3ce8
ILT
1779 * configure.in: For a native configuration, set COREFILE and
1780 COREFLAG based on the canonical host name.
1781 * configure: Rebuild.
1782 * Makefile.in: Rebuild dependencies.
1783 (ALL_CFLAGS): Add @COREFLAG@.
1784 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
1785 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
1786 support routines. Check LYNX_CORE rather than HOST_LYNX.
1787 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
1788 * i386lynx.c: Likewise.
1789 * m68klynx.c: Likewise.
1790 * sparclynx.c: Likewise.
1791 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
1792 * *-core.c: Comment changes.
1793 * config/decstation.mh (HDEPFILES): Remove.
1794 (HDEFINES): Remove -DTRAD_CORE.
1795 * config/irix3.mh (RANLIB): Remove.
1796 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
1797 (HDEFINES): Remove -DIRIX_CORE.
1798 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
1799 (HDEFINES): Remove -DTRAD_CORE.
1800 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
1801 * config/ultra3.mh (RANLIB): Remove.
1802 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
1803 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
1804 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
1805 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
1806 * config/hppahpux.mh, config/hppaosf.mh: Remove.
1807 * config/i386aix.mh, config/i386bsd.mh: Remove.
1808 * config/i386linux.mh, config/i386mach3.mh: Remove.
1809 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
1810 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
1811 * config/mipsmach3.mh, config/news-mips.mh: Remove.
1812 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
1813 * config/rs600.mh, config/rs6000lynx.mh: Remove.
1814 * config/solaris2.mh, config/stratus.mh: Remove.
1815 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
1816 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
1817
d6f672b8
ILT
1818Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
1819
1820 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
1821 DT_FINI entry if the appropriate symbol is not in the hash table.
1822
1823 * libelf.h (struct elf_backend_data): Add create_program_headers
1824 and want_hdr_in_seg fields.
1825 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
1826 defined.
1827 (elf_backend_create_program_headers): Likewise.
1828 (elfNN_bed): Initialize create_program_headers and
1829 want_hdr_in_seg.
1830 * elf.c (get_program_header_size): Call create_program_headers
1831 backend routine.
1832 (map_program_segments): Check want_hdr_in_seg backend field. Call
1833 create_program_headers backend routine.
1834
1835 * elf.c (assign_file_positions_except_relocs): Align non allocated
1836 sections when creating an executable.
1837
1838 * elfcode.h (elf_swap_phdr_in): Make non static.
1839 (elf_swap_phdr_out): Make non static.
1840 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
1841 (bfd_elf32_swap_phdr_out): Declare.
1842 (bfd_elf64_swap_phdr_in): Declare.
1843 (bfd_elf64_swap_phdr_out): Declare.
1844
1845 * ecofflink.c (ecoff_collect_shuffle): New static function.
1846 (_bfd_ecoff_get_accumulated_pdr): New function.
1847 (_bfd_ecoff_get_accumulated_sym): New function.
1848 (_bfd_ecoff_get_accumulated_ss): New function.
1849 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
1850 (_bfd_ecoff_get_accumulated_sym): Declare.
1851 (_bfd_ecoff_get_accumulated_ss): Declare.
1852 * libbfd.h: Rebuild.
1853
0cb70568
ILT
1854Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
1855
d6f672b8
ILT
1856 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
1857
0cb70568
ILT
1858 * elflink.h (elf_link_add_object_symbols): Handle indirect and
1859 warning symbols. If any section is named .gnu.warning.XXX, treat
1860 the contents as a warning to be issued if the symbol XXX is
1861 referenced.
1862 (elf_link_output_extsym): For an indirect or warning symbol, just
1863 output the symbol it points to.
1864
1865 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
1866 if bfd_hash_allocate fails, since it will already be set.
1867 (generic_link_hash_newfunc): Likewise.
1868 (archive_hash_newfunc): Likewise.
1869 (hash_entry_bfd): New static function.
1870 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
1871 callback. Allocate a new warning using the hash table newfunc.
1872 Use bfd_hash_replace to update the entry in the hash table, rather
1873 than assuming we can copy the fields with structure assignment.
1874
1875 * hash.c (bfd_hash_replace): New function.
1876 * bfd-in.h (bfd_hash_replace): Declare.
1877 * bfd-in2.h: Rebuild.
1878
f14db880
JSC
1879Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
1880
1881 * config.bfd: Add mips*vr4300-*-elf* target.
1882 * config/mipsbvr4300.mt: Added.
1883
1613e075 1884See file ChangeLog.2
e6d739eb 1885
41126f15
JK
1886\f
1887Local Variables:
1888mode: indented-text
1889left-margin: 8
6ec3bb6a
ILT
1890fill-column: 74
1891version-control: never
1892End:
This page took 0.371015 seconds and 4 git commands to generate.