* coffcode.h (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2
3 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
4 NULL.
5
6 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
7 Mac object file formats.
8
9 Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
10
11 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
12 read-only/host-only support.
13
14 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
15 BSF_LOCAL.
16 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
17 RS6000COFF_C.
18
19 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
20 BFD_JUMP_TABLE_ARCHIVE accordingly.
21 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
22 (_bfd_compute_and_write_armap): Declare.
23 (_bfd_generic_read_ar_hdr): Declare.
24 (_bfd_read_ar_hdr): Define.
25 (_bfd_noarchive_read_ar_hdr): Define.
26 (_bfd_archive_bsd_read_ar_hdr): Define.
27 (_bfd_archive_coff_read_ar_hdr): Define.
28 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
29 _bfd_read_ar_hdr instead.
30 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
31 (_bfd_compute_and_write_armap): Rename from
32 compute_and_write_armap. Make non-static. Change all callers.
33 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
34 than _bfd_snarf_ar_hdr.
35 * aout-target.h (MY_read_ar_hdr): Define if not defined.
36 * ieee.c (ieee_read_ar_hdr): Define.
37 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
38 * oasys.c (oasys_read_ar_hdr): Define.
39 * som.c (som_read_ar_hdr): Define.
40 * bfd-in2.h, libbfd.h: Rebuild.
41
42 Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
43
44 * peicode.c (coff_swap_filehdr_in): If symptr is
45 zero, there aren't any symbols, even if nsyms is set.
46
47 Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
48
49 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
50 field.
51 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
52 sections, and set styp correctly for them: .got, .hash, .dynamic,
53 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
54 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
55 types.
56 (ecoff_sort_hdrs): New static function.
57 (ecoff_compute_section_file_positions): Return boolean, not void.
58 Sort the sections by VMA before looking through them. Put the
59 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
60 section on an appropriate boundary within the page.
61 (ecoff_compute_reloc_file_positions): Check return value of
62 ecoff_compute_section_file_positions.
63 (_bfd_ecoff_set_section_contents): Likewise.
64 (_bfd_ecoff_write_object_contents): Check for various Alpha
65 section types when incrementing text_size and data_size. Call
66 adjust_headers backend function if it exists.
67 * coff-alpha.c (alpha_adjust_headers): New static function.
68 (alpha_ecoff_backend_data): Initialize adjust_headers field.
69 * coff-mips.c (mips_ecoff_backend_data): Likewise.
70
71 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
72
73 Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
74
75 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
76 of ALTERNATE_AIX_CORE_FORMAT.
77 * configure.in (aix4): No longer need CORE_FLAGS.
78 * configure: Updated.
79
80 Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
81
82 NS32k changes from Ian Dall:
83 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
84 macros.
85 (aout_link_input_section_std, aout_link_input_section_ext,
86 aout_link_reloc_link_order): Call them instead of _bfd_*
87 versions.
88 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
89 to zero.
90 (backend_data): Use it instead of hardcoded zero.
91
92 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
93 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
94
95 * ns32knetbsd.c: Include bfd.h.
96 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
97 (MY_bfd_reloc_type_lookup): Declare function too.
98 * pc532-mach.c (set_sizes): Don't declare.
99 (MY_text_includes_header, MY_exec_header_not_counted): Define.
100 (backend_data, MY_backend_data): Don't define.
101
102 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
103 ns32k-*-lites* like ns32k-*-netbsd*.
104
105 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
106 compile on lites.
107
108 Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
109
110 * coffcode.h (coff_write_object_contents): Restore setting
111 f_timdat to 0, deleted on August 22.
112
113 Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
114
115 * coffcode.h (coff_bfd_copy_private_symbol_data,
116 coff_bfd_copy_private_section_data,
117 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
118 * peicode.h (coff_bfd_copy_private_bfd_data): New
119 (pe_bfd_copy_private_bfd_data): New.
120 (coff_swap_scnhdr_in): Swap bss size into the right place.
121 (pe_print_private_bfd_data): Add some newlines.
122
123 Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
124
125 * som.c (setup_sections): Don't die if a space has no subspaces.
126
127 Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
128
129 * elflink.h (elf_link_add_object_symbols): Don't let a weak
130 dynamic symbol override a common symbol. Don't change the size or
131 type if they have been set and the new symbol is not a definition.
132 Warn if the size or type changes.
133
134 Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
135
136 * som.c (som_begin_writing): Don't write the symbol table or
137 symbol strings.
138 (som_finish_writing): Write them here. Place them after the
139 subspace data, but before the relocs.
140
141 Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
142
143 * sunos.c (sunos_add_one_symbol): Just pass false, not
144 info->shared_library, to sunos_create_dynamic_sections.
145 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
146 section.
147 (sunos_check_dynamic_reloc): Remove .text section assertion.
148
149 Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
150
151 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
152 * configure, configure.in: Add pmac_xcoff_vec case.
153 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
154 * coff-pmac.c: New file, PowerMac XCOFF support.
155 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
156 * targets.c (pmac_xcoff_vec): Declare.
157
158 * mpw-config.in: Various changes to be compatible with the
159 autoconf-based configury.
160 * mpw-make.sed: New file, sed commands to translate Unix
161 makefile into MPW syntax.
162 * mpw-make.in: Remove.
163 * hosts/mpw.h: Remove.
164 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
165 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
166
167 Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
168
169 * binary.c (binary_get_symtab): Return an empty string on error.
170 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
171
172 Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
173
174 * coff-ppc.c: Reformatted according to gnu conventions
175 Removed irrelevant "if 0" code
176
177 Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
178
179 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
180 symbols rather than as indirect symbols.
181 (MY(slurp_symbol_table)): Don't do anything special about
182 secondary symbols.
183
184 * coffcode.h (coff_new_section_hook): Make sure that the alignment
185 of .ctors and .dtors sections is no larger than 2.
186
187 * sunos.c (sunos_add_one_symbol): Don't change
188 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
189 undef list.
190 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
191 dynamic symbols when creating a shared library.
192 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
193 shared library.
194 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
195 written even if it is not defined in a regular object.
196 (sunos_write_dynamic_symbol): Use plt_offset for the address of
197 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
198 rather than the constant 22.
199 (sunos_check_dynamic_reloc): Handle creating a shared library.
200 (sunos_finish_dynamic_link): Set the first entry in the GOT to
201 zero when creating a shared library.
202 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
203 write it out at the start of the symbol table.
204
205 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
206
207 Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
208
209 * config.bfd: Add arm-*-coff.
210 * configure.in, configure: Add armcoff_{little,big}_vec.
211 * targets.c (armcoff_{little,big}_vec): Declare.
212 (bfd_target_vector): Add armcoff_{little,big}_vec.
213 * coff-arm.c (armcoff_{little,big}_vec): Always define.
214
215 Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
216
217 * targets.c (bfd_find_target): Remove debugging code.
218
219 Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
220
221 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
222 support on powerpc.
223 * Makefile.in: added *-ppc files
224 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
225 allow pe based .o's to be shared with other tools on ppc/NT
226 * config.bfd: added powerpc[le]-[pe|winnt] config support
227 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
228 * peicode.h: Added more section flags for PE on ppc
229 Added coff_swap_filehdr_out to allow peicode.h to be
230 used for non-image PE files on ppc.
231 Check for image, or not, before copying pe_opthdr
232 * targets.c: Added new bfd's
233 * targets.c: Removed two inactive bfds that shouldn't have made it this
234 far.
235
236 Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
237
238 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
239 explicit values to initialize all relocs. Change all users.
240 (ppc_elf_brtaken_inner): New function to handle branch predicition
241 relocs.
242 (ppc_elf_brtaken_reloc): Ditto.
243 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
244 relocs use ppc_elf_unsupported_reloc.
245 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
246 needs to be reported.
247 (ppc_elf_relocate_section): Support branch prediction relocs.
248
249 Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
250
251 * bfd.c (bfd_assert): Remove \n from string passed to
252 _bfd_error_handler.
253
254 * coff-i386.c: (TWO_DATA_SECS): Don't define.
255 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
256 (bfd_coff_make_section_hook): Don't define.
257 (coff_make_section_hook): Remove.
258 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
259 (styp_to_sec_flags): Likewise.
260 (coff_write_object_contents): Likewise.
261 (bfd_coff_std_swap_table): Don't initialize make_section_hook
262 field.
263 * libcoff.h: Rebuild.
264 * coffgen.c (make_a_section_from_file): Just call
265 bfd_make_section_anyway, not bfd_make_section or
266 bfd_coff_make_section_hook.
267 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
268 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
269 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
270 make_section_hook field.
271 * coff-mips.c (mips_ecoff_backend_data): Likewise.
272
273 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
274 pointers into value field for warning and indirect symbols; just
275 leave the value field alone.
276 * linker.c (generic_link_add_symbol_list): Use next symbol for
277 warning and indirect symbols, rather than looking in symbol value.
278 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
279 parameter. Change all callers. Remove support for indirect
280 symbols; it didn't work anyhow.
281 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
282 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
283 * bfd-in2.h: Rebuild.
284
285 Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
286
287 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
288 go back to telling the tools this reloc operates on 32 bits.
289
290 Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
291
292 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
293 rather than a direct fprintf.
294 * archive.c (_bfd_write_archive_contents): Likewise.
295 * coffcode.h (coff_slurp_symbol_table): Likewise.
296 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
297 (ppc_elf_unsupported_reloc): Likewise.
298 (ppc_elf_relocate_section): Likewise.
299 * i386linux.c (linux_tally_symbols): Likewise.
300 (linux_finish_dynamic_link): Likewise.
301 * osf-core.c (osf_core_core_file_p): Likewise.
302 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
303 * som.c (som_sizeof_headers): Likewise.
304 * srec.c (srec_bad_byte): Likewise.
305 * bfd.c (bfd_assert): Likewise. Also change file to be const.
306 * libbfd-in.h (bfd_assert): Declare first parameter const.
307 * libbfd.h: Rebuild.
308 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
309 bfd_reloc_overflow is enough.
310 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
311 * coff-h8500.c (rtype2howto): Likewise.
312 * coff-z8k.c (rtype2howto): Likewise.
313 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
314 * elf.c (_bfd_elf_get_lineno): Likewise.
315 (_bfd_elf_no_info_to_howto): Likewise.
316 (_bfd_elf_no_info_to_howto_rel): Likewise.
317 * hp300hpux.c (convert_sym_type): Likewise.
318 (MY(swap_std_reloc_in)): Likewise.
319 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
320
321 * libaout.h (struct aoutdata): Add line_buf field.
322 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
323 and filename_buffer. Instead, use a malloc buffer stored in the
324 new line_buf field. Remove length restrictions.
325
326 * coffgen.c (string_size): Remove static variable.
327 (debug_string_size, debug_string_section): Likewise.
328 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
329 and debug_string_size_p parameters. Use them instead of the
330 global variables. Change all callers.
331 (coff_write_symbol): Likewise.
332 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
333 (coff_write_symbols): Add local variables to replace removed
334 global variables.
335
336 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
337 function, and line_base fields.
338 * libcoff.h: Rebuild.
339 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
340 information, rather than using static variables.
341
342 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
343 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
344
345 * init.c (initialized): Remove static variable.
346 (bfd_init): Don't bother setting initialized.
347 (bfd_check_init): Remove.
348 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
349 * libbfd.h: Rebuild.
350
351 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
352
353 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
354 size for full core dumps. Copy core file header to private data.
355 (rs6000coff_core_file_failing_command,
356 rs6000coff_core_file_failing_signal): New functions to extract
357 the file name and terminating signal from the core file.
358 * coff-rs6000.c: Use them.
359
360 Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
361
362 Change arch info to be const, initialized at compile time.
363 * archures.c: Reindent many functions. Change CONST to const.
364 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
365 nothing set it anyhow. Make next const.
366 (bfd_arch_info_list): Remove.
367 (bfd_archures_list): Rename from archures_init_table. Change from
368 a table of function pointers to a table of bfd_arch_info_type
369 structure addresses.
370 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
371 (bfd_lookup_arch): Likewise.
372 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
373 const pointer.
374 (bfd_default_arch_struct): Make const.
375 (bfd_arch_init, bfd_arch_linkin): Remove.
376 (bfd_get_arch_info): Return a const pointer.
377 * init.c (bfd_init): Don't call bfd_arch_init.
378 * bfd.c (struct _bfd): Make arch_info const.
379 * bfd-in2.h: Rebuild.
380 * libbfd.h: Rebuild.
381 * configure.in: Put & before everything in $selarchs.
382 * configure: Rebuild.
383 * cpu-*.c: Change bfd_*_arch from a function which calls
384 bfd_arch_linkin to a const structure.
385 * ieee.c (ieee_object_p): Make arch const.
386
387 Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
388
389 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
390 PowerPC V.4.
391 * bfd-in2.h: Regenerate.
392 * libbfd.h: Regenerate.
393
394 * elf32-ppc.c (reloc_type): Update names to match current draft.
395 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
396 relative. Update names to current V.4 draft.
397 (ppc_elf_reloc_type_lookup): Add support for more relocations.
398 (ppc_elf_relocate_section): Rename relocations to match draft.
399
400 Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
401
402 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
403 compiled with -mrelocatable-lib to be linked with either normal
404 modules or -mrelocatable modules.
405
406 Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
407
408 * coffcode.h (coff_write_object_contents): Clear the vstamp field
409 in the a.out header.
410
411 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
412 a reloc against a local symbol, even if it's not a section.
413
414 Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
415
416 * targets.c (bfd_target): Remove unused align_power_min field.
417 * bfd-in2.h: Rebuild.
418 * All backends: Remove initialization of align_power_min.
419
420 Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
421
422 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
423
424 Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
425
426 * config.bfd (mips-dec-netbsd*): New target.
427 * configure.host (mips-dec-netbsd*): New host.
428 * configure.in (mips-dec-netbsd*): New native.
429 * configure: Rebuild.
430
431 Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
432
433 Make the COFF backend linker merge common types:
434 * cofflink.c (struct coff_debug_merge_element): Define.
435 (struct coff_debug_merge_type): Define.
436 (struct coff_debug_merge_hash_entry): Define.
437 (struct coff_debug_merge_hash_table): Define.
438 (coff_debug_merge_hash_table_init): Define.
439 (coff_debug_merge_hash_table_free): Define.
440 (coff_debug_merge_hash_lookup): Define.
441 (struct coff_final_link_info): Add debug_merge field.
442 (coff_debug_merge_hash_newfunc): New static function.
443 (_bfd_coff_final_link): Allocate and free debug_merge table.
444 (coff_link_input_bfd): Merge identical enum, struct and union
445 types.
446
447 Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
448
449 Convert i960 COFF to use COFF backend linker.
450 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
451 structure to store the symbol being used.
452 (coff_i960_start_final_link): New static function.
453 (coff_i960_relocate_section): New static function.
454 (coff_i960_adjust_symndx): New static function.
455 (coff_start_final_link): Define.
456 (coff_relocate_section): Define.
457 (coff_adjust_symndx): Define.
458 * coffcode.h (bfd_coff_backend_data): Add new callback function
459 _bfd_coff_start_final_link.
460 (bfd_coff_start_final_link): Define.
461 (coff_start_final_link): Define if not defined.
462 (bfd_coff_std_swap_table): Add coff_start_final_link.
463 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
464 visible.
465 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
466 function callback is not NULL.
467 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
468 (_bfd_coff_internal_syment_name): Declare.
469 * libcoff.h: Rebuild.
470 * configure.in (icoff_big_vec): Add cofflink.o.
471 (icoff_little_vec): Likewise.
472 * configure: Rebuild.
473
474 Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
475
476 * Makefile.in (clean-info): Remove extraneous tab from line
477 following action.
478
479 Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
480
481 * cofflink.c (coff_link_input_bfd): Fail if a section with no
482 contents has relocs.
483
484 Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
485
486 * coffcode.h (coff_compute_section_file_positions): Keep the
487 raw size safe.
488 (coff_write_object_contents): Remember if it's a relocatable
489 file.
490 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
491 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
492 if relocatable file. Swap out saved raw size.
493
494 Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
495
496 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
497 (maintainer-clean): Rename from realclean, passing
498 maintainer-clean down to subdirectories, but leave realclean as a
499 synonym.
500
501 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
502 warning callback.
503
504 * dep-in.sed: Remove config.h from generated dependencies.
505
506 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
507 broken out of sunos_canonicalize_dynamic_symtab.
508 (sunos_canonicalize_dynamic_symtab): Call new function
509 sunos_slurp_dynamic_symtab.
510 (sunos_add_dynamic_symbols): Add three new parameters. Return the
511 dynamic symbol table to the caller.
512 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
513 callback to override the symbols being read.
514 * libaout.h (struct aout_backend_data): Add three new parameters
515 to add_dynamic_symbols callback.
516
517 Extensive minor changes to avoid various gcc warnings. Also:
518 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
519 * archures.c (bfd_arch_info_type): Change mach field from long to
520 unsigned long.
521 (bfd_lookup_arch): Change machine parameter from long to unsigned
522 long.
523
524 Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
525
526 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
527 a symbol with a non-zero plt_offset.
528
529 Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
530
531 * elfcode.h (align_file_position): Remove; not used.
532
533 * configure.in: Only check for <sys/procfs.h> on a native system,
534 and make sure it defines prstatus_t.
535 * configure: Rebuild.
536
537 Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
538
539 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
540
541 * config.in: Rename from config.h.in.
542 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
543 Check for config.h:config.in when creating stamp-h.
544 * configure: Rebuild.
545 * Makefile.in (stamp-h): Depend upon config.in rather than
546 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
547 calling config.status.
548
549 * Makefile.in (do_distclean): Remove config.h and stamp-h.
550 (Makefile): Just rebuild Makefile.
551 (config.h, stamp-h): New targets.
552 * configure.in: Create stamp-h when rebuilding config.h.
553 * configure: Rebuild.
554
555 Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
556
557 * configure.in: Call AC_CONFIG_HEADER. Substitute
558 HOST_64BIT_LONG. Check that various header files exist. Check
559 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
560 and/or free need to be declared. Don't make a link to sysdep.h.
561 Define TRAD_HEADER for various hosts.
562 * configure: Rebuild.
563 * configure.host: Don't set my_host. Add definitions taken from
564 host header files for various entries. Remove entries which now
565 do nothing.
566 * acconfig.h: New file.
567 * config.h.in: New file, built by autoheader.
568 * sysdep.h: New file.
569 * Makefile.in (do_distclean): Don't remove sysdep.h.
570 (RECONFIG): Remove.
571 (LOCAL_H_DEPS): New variable.
572 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
573 $(RECONFIG).
574 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
575 ($(OPTIONAL_BACKENDS)): Likewise.
576 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
577 looking through sysdep.h.
578 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
579 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
580 (fprintf_vma, sprintf_vma): Likewise.
581 (int64_type, uint64_type): Don't define.
582 * bfd-in2.h: Rebuild.
583 * archures.c, bfd.c, srec.c: Include <ctype.h>.
584 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
585 * lynx-core.c: Include stuff from old hosts/lynx.h.
586 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
587 rather than NO_FCNTL.
588 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
589 rather than NATIVE_HPPAHPUX_COMPILER.
590 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
591 is defined.
592 * hosts/*.h: Remove all header files which merely include,
593 declare, and define things. Leave header files which define
594 information needed by trad-core.c.
595
596 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
597 (BFD_CC_FOR_BUILD): Define.
598 * configure.in: Use BFD_CC_FOR_BUILD.
599 * configure: Rebuild.
600
601 Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
602
603 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
604 * configure: Rebuild.
605
606 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
607 a global symbol.
608
609 Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
610
611 * config.bfd: i386pe_ve -> i386pe_vec.
612
613 Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
614
615 * configure.host: Incorporate host Makefile fragments by setting
616 shell variables.
617 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
618 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
619 value based on whether the code is being compiled by a cross
620 compiler. Don't substitute host_makefile_frag or frags.
621 * aclocal.m4: New file to define local AC_PROG_CC.
622 * configure: Rebuild.
623 * Makefile.in (INSTALL): Set to @INSTALL@.
624 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
625 (INSTALL_DATA): Set to @INSTALL_DATA@.
626 (AR): Set to @AR@.
627 (CC): Define as @CC@.
628 (CFLAGS): Set to @CFLAGS@.
629 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
630 (@host_makefile_frag@): Remove.
631 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
632 after other options.
633 (config.status): Remove dependency upon @frags@.
634 * config/*.mh, config/README: Remove.
635
636 * config.bfd: Rewrite to incorporate the contents of the Makefile
637 fragments by setting shell variables, rather than merely returning
638 the name of a Makefile fragment.
639 * configure.in: Use shell variables set by config.bfd rather than
640 looking at the target Makefile fragment files. Don't substitute
641 target_makefile_frag. Do substitute TDEFINES.
642 * configure: Rebuild.
643 * Makefile.in (@target_makefile_frag@): Remove.
644 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
645 * config/*.mt: Remove.
646
647 Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
648
649 * configure.in: Put changequote lines around "i[345]86" patterns
650 section of core file support.
651
652 Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
653
654 * som.c (som_bfd_print_private_bfd_data): Define to use the
655 generic version.
656
657 Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
658
659 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
660 entry, text_start and data_start.
661
662 Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
663
664 * Makefile.in (OFILES): Remove $(TDEPFILES).
665 * config/apollo.mt (TDEPFILES): Remove.
666 * config/README: Update.
667
668 * configure.in: For a native configuration, set COREFILE and
669 COREFLAG based on the canonical host name.
670 * configure: Rebuild.
671 * Makefile.in: Rebuild dependencies.
672 (ALL_CFLAGS): Add @COREFLAG@.
673 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
674 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
675 support routines. Check LYNX_CORE rather than HOST_LYNX.
676 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
677 * i386lynx.c: Likewise.
678 * m68klynx.c: Likewise.
679 * sparclynx.c: Likewise.
680 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
681 * *-core.c: Comment changes.
682 * config/decstation.mh (HDEPFILES): Remove.
683 (HDEFINES): Remove -DTRAD_CORE.
684 * config/irix3.mh (RANLIB): Remove.
685 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
686 (HDEFINES): Remove -DIRIX_CORE.
687 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
688 (HDEFINES): Remove -DTRAD_CORE.
689 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
690 * config/ultra3.mh (RANLIB): Remove.
691 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
692 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
693 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
694 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
695 * config/hppahpux.mh, config/hppaosf.mh: Remove.
696 * config/i386aix.mh, config/i386bsd.mh: Remove.
697 * config/i386linux.mh, config/i386mach3.mh: Remove.
698 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
699 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
700 * config/mipsmach3.mh, config/news-mips.mh: Remove.
701 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
702 * config/rs600.mh, config/rs6000lynx.mh: Remove.
703 * config/solaris2.mh, config/stratus.mh: Remove.
704 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
705 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
706
707 Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
708
709 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
710 DT_FINI entry if the appropriate symbol is not in the hash table.
711
712 * libelf.h (struct elf_backend_data): Add create_program_headers
713 and want_hdr_in_seg fields.
714 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
715 defined.
716 (elf_backend_create_program_headers): Likewise.
717 (elfNN_bed): Initialize create_program_headers and
718 want_hdr_in_seg.
719 * elf.c (get_program_header_size): Call create_program_headers
720 backend routine.
721 (map_program_segments): Check want_hdr_in_seg backend field. Call
722 create_program_headers backend routine.
723
724 * elf.c (assign_file_positions_except_relocs): Align non allocated
725 sections when creating an executable.
726
727 * elfcode.h (elf_swap_phdr_in): Make non static.
728 (elf_swap_phdr_out): Make non static.
729 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
730 (bfd_elf32_swap_phdr_out): Declare.
731 (bfd_elf64_swap_phdr_in): Declare.
732 (bfd_elf64_swap_phdr_out): Declare.
733
734 * ecofflink.c (ecoff_collect_shuffle): New static function.
735 (_bfd_ecoff_get_accumulated_pdr): New function.
736 (_bfd_ecoff_get_accumulated_sym): New function.
737 (_bfd_ecoff_get_accumulated_ss): New function.
738 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
739 (_bfd_ecoff_get_accumulated_sym): Declare.
740 (_bfd_ecoff_get_accumulated_ss): Declare.
741 * libbfd.h: Rebuild.
742
743 Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
744
745 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
746
747 * elflink.h (elf_link_add_object_symbols): Handle indirect and
748 warning symbols. If any section is named .gnu.warning.XXX, treat
749 the contents as a warning to be issued if the symbol XXX is
750 referenced.
751 (elf_link_output_extsym): For an indirect or warning symbol, just
752 output the symbol it points to.
753
754 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
755 if bfd_hash_allocate fails, since it will already be set.
756 (generic_link_hash_newfunc): Likewise.
757 (archive_hash_newfunc): Likewise.
758 (hash_entry_bfd): New static function.
759 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
760 callback. Allocate a new warning using the hash table newfunc.
761 Use bfd_hash_replace to update the entry in the hash table, rather
762 than assuming we can copy the fields with structure assignment.
763
764 * hash.c (bfd_hash_replace): New function.
765 * bfd-in.h (bfd_hash_replace): Declare.
766 * bfd-in2.h: Rebuild.
767
768 Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
769
770 * config.bfd: Add mips*vr4300-*-elf* target.
771 * config/mipsbvr4300.mt: Added.
772
773 See file ChangeLog.2
774
775 \f
776 Local Variables:
777 mode: indented-text
778 left-margin: 8
779 fill-column: 74
780 version-control: never
781 End:
This page took 0.045878 seconds and 5 git commands to generate.