1 Tue Nov 30 16:45:23 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3 * irix-core.c: New file for Irix 4 and Irix 5 core support.
4 Functions taken out of coff-mips.c. Handle vmap type VMAPFILE.
5 * coff-mips.c: Irix 4 core file support moved to irix-core.c.
6 * targets.c: If IRIX_CORE defined, include irix_core_vec in
8 * config/irix4.mh (HDEFINES): Add -DIRIX_CORE.
9 (HDEPFILES): Define to be irix-core.o.
10 * config/irix5.mh (HDEFINES): Define to be -DIRIX_CORE.
11 (HDEPFILES): Define to be irix-core.o.
12 * Makefile.in (OPTIONAL_BACKENDS): Added irix-core.o. Removed
13 sco-core.o, which no longer exists.
14 (CFILES): Added all *-core.c files.
17 Wed Nov 24 02:02:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
19 * elfcode.h (map_program_segments): Restore check of file_size !=
20 mem_size, but only if SHT_PROGBITS.
22 * ecofflink.c: New file to hold ECOFF debug information linking
24 * ecoff.c (ecoff_clear_output_flags, ecoff_rel, ecoff_dump_seclet,
25 ecoff_add_string, ecoff_get_debug): Removed. Functionality now in
27 (ecoff_get_extr, ecoff_set_index): New functions.
28 (ecoff_slurp_symbolic_info): Don't save raw_size.
29 (ecoff_bfd_seclet_link): Rewrote to use ecofflink.c functions.
30 (ecoff_compute_section_file_positions): Don't set EXEC_P just
31 because there is a start address.
32 (ecoff_write_object_contents): Handle external symbols here. Use
33 ecofflink.c functions to write out debugging information.
34 * elf32-mips.c (mips_elf_read_ecoff_info, mips_elf_get_extr,
35 mips_elf_set_index): New functions.
36 (mips_elf_seclet_link): Discard empty sections, the .options
37 section and .gptab sections. Handle linking .mdebug section.
38 * libecoff.h (ecoff_data_type): Removed raw_size and ifdbase.
39 * libelf.h (elf_symbol_type): Added mips_extr to tc_data union.
40 * bfd-in.h: Added prototypes for routines in ecofflink.c (some are
41 called by gas, so they are public).
43 * Makefile.in (BFD_LIBS): Added ecofflink.o.
44 (CFILES): Added ecofflink.c.
45 (ecofflink.o): New target. Rebuilt dependencies.
47 Mon Nov 22 22:26:42 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
49 * som.c (hppa_object_p): Also recognize SHARED_MAGIC_CNX as
50 a valid magic number if it's been defined.
52 Mon Nov 22 14:17:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
54 * ecoff.c (ecoff_mkobject): Don't create .scommon section; linker
55 no longer requires it.
56 (ecoff_bfd_seclet_link, ecoff_sizeof_headers,
57 ecoff_write_object_contents): Don't treat .scommon section
60 Mon Nov 22 10:54:27 1993 Fred Fish (fnf@cygnus.com)
62 Merged changes from kev@spuds.geg.mot.com (Kevin A. Buettner):
63 * bfd/config/delta88.mh (HDEFINES): Define this to be -DPTRACE_CORE.
64 * bfd/config/delta88.mh (HDEPFILES): Defined to be ptrace-core.o.
65 * bfd/ptrace-core.c: New file for dealing with core files with
66 start with the ptrace_user structure found on BCS compliant systems.
67 * bfd/targets.c (ptrace_core_vec): New vector.
69 Mon Nov 22 02:33:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
71 * Minimal support for reading SOM fixup streams. Allows
72 objdump -r to do something reasonable.
73 * som.c (som_get_reloc_upper_bound): Implement.
74 (som_canonicalize_reloc): Implement.
75 (som_set_reloc_info, som_slurp_reloc_table): New functions.
77 Sun Nov 21 13:46:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
79 * hosts/lynx.h (FPRINTF_ALREADY_DECLARED): Define.
80 * hosts/sparclynx.h: Include lynx.h instead of duplicating it.
82 Fri Nov 19 14:34:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
84 * coff-a29k.c (a29k_reloc): For R_IREL, don't left shift
85 signed_value before sign extending it. Don't subtract out
86 reloc_entry->address. This makes it compatible with what gas is
89 * elfcode.h (elf_fake_sections): Accept .sbss as the name for a
91 (map_program_segments): Don't leave the loop after the first
93 (assign_file_positions_except_relocs): Only force sh_offset and
94 sh_addr to match modulo maxpagesize for a section which is not
95 SHT_NOBITS. Changed the method used to force page alignment after
96 a SHT_NOBITS section to only do it for the last such consecutive
97 section, and to really force page alignment.
99 Fri Nov 19 04:02:01 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
101 * coffcode.h (coff_slurp_symbol_table): Print more verbose message
102 in the case of an unknown (or unhandled) storage class.
104 * config/i386-lynx.mt (TDEFINES): FPRINTF_ALREADY_DECLARED should
105 not be defined here, since it is a host attribute, not a target
107 * config/m68k-lynx.mt, config/sparc-lynx.mt: Ditto.
109 * coffcode.h (coff_bfd_reloc_type_lookup): Don't define if already
112 * coff-sparc.c: Define some relocations, based on ELF relocations.
113 (enum reloc_type, bfd_coff_generic_reloc, coff_sparc_howto_table,
114 struct coff_reloc_map, sparc_reloc_map,
115 coff_sparc_reloc_type_lookup): Borrowed from elf32-sparc.c and
117 (coff_bfd_reloc_type_lookup): Define to be coff_sparc_reloc_....
118 (rtype2howto): Index into coff_sparc_howto_table using
121 Thu Nov 18 11:45:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
123 * config.bfd (mips*-*-irix5*): New target; use mipsbelf.
124 * configure.host (mips-sgi-irix5*) New host; use irix5 (no
125 hosts/irix5.h created; just use std-host.h).
126 * config/irix5.mh: New file; like irix4.mh, but don't use -G or
128 * Makefile.in: Rebuilt dependencies.
130 * ecoffswap.h: Changed type of internal pointers for swap out
131 functions to const *.
133 * elf32-mips.c (mips_elf_got16_reloc): New function. Handle GOT16
134 correctly for assembler, but linker support not implemented.
135 (elf_mips_howto_table): Use mips_elf_got16_reloc for GOT16.
136 (mips_elf_sym_is_global): New function; at least on Irix 5, all
137 non section symbols are considered global.
138 (elf_backend_sym_is_global): Define.
139 (mips_elf_final_write_processing): New function. Set the MIPS
140 architecture level correctly.
141 (elf_backend_final_write_processing): Define.
142 (mips_elf_section_from_shdr): Handle SHT_MIPS_OPTIONS.
143 (mips_elf_fake_sections): Set entsize of .mdebug or .reginfo
144 section to 1. Handle .options section.
145 (mips_elf_acom_section, mips_elf_acom_symbol,
146 mips_elf_acom_symbol_ptr): New static variables, used to build a
147 generic .acommon section to hold SHN_MIPS_ACOMMON symbols.
148 (mips_elf_symbol_processing): Handle SHN_MIPS_ACOMMON symbols by
149 putting them all in a global .acommon section.
151 * elfcode.h (bfd_section_from_shdr): Don't dump core if target
152 section has no ELF section data.
153 (elf_make_sections): Set addralign of reloc section to 4.
154 (elf_fake_sections): Likewise.
155 (map_program_segments): Don't consider section 0.
156 (assign_file_positions_except_relocs): Don't consider section 0.
157 In the main loop, skip the symtab and strtab sections, since their
158 positions are set elsewhere.
159 (swap_out_syms): Set addralign of symtab section to 4. Set
160 addralign of strtab sections to 1.
161 (assign_file_positions_for_relocs): Don't consider section 0.
162 (write_object_contents): Don't write out section 0.
164 * libelf.h (struct elf_backend_data): Added fields
165 elf_backend_sym_is_global and elf_backend_final_write_processing.
166 * elf32-target.h (elf32_bed): Added corresponding initializers.
167 * elf64-target.h (elf64_bed): Likewise.
168 * elfcode.h (sym_is_global): Take abfd argument. Call
169 elf_backend_sym_is_global if it is not NULL.
170 (elf_map_symbols): Pass abfd to sym_is_global.
171 (write_object_contents): Call elf_backend_final_write_processing
174 Wed Nov 17 18:43:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
176 * libecoff.h: Include coff/ecoff.h.
177 (struct ecoff_backend_data): Move external debugging information
178 fields into a single field pointing to an ecoff_debug_swap
180 (ecoff_data_type): Move debugging information fields into a single
181 field pointing to an ecoff_debug_info structure.
182 * coff-alpha.c, coff-mips.c, ecoff.c: Corresponding changes.
184 Wed Nov 17 13:56:10 1993 Stan Shebs (shebs@rtl.cygnus.com)
186 * i386lynx.c (swap_std_reloc_in, swap_ext_reloc_in): Ignore
187 garbage bits appearing in the upper end of symbolnums.
189 * config/sparc-lynx.mt (TDEFINES): Add -DFPRINTF_ALREADY_DECLARED.
191 Tue Nov 16 17:03:41 1993 Stu Grossman (grossman at cygnus.com)
193 * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc.
194 * m68klynx.c: Define core file macros.
195 * hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h: Move all
196 non-architecture specific stuff into lynx.h.
198 Tue Nov 16 15:45:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
200 * i386linux.c: Define new macro ZMAGIC_DISK_BLOCK_SIZE to 1024, and
201 change PAGE_SIZE to 4096.
203 Mon Nov 15 11:48:08 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
205 * Makefile.in (diststuff): New target.
209 Sun Nov 14 23:33:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
211 * som.c (som_object_setup): Do not create dummy ".text", ".data",
213 (setup_sections): Do not set SEC_HAS_CONTENTS if a section's size
214 is zero. Recognize BSS type sections and turn off SEC_LOAD and
215 SEC_DATA (so binutils/size works). Set the correct value for
216 a section's _raw_size.
217 (som_slurp_symbol_table): Program entry points, and millicode are
218 also functions. Mark them as such. Also mark L$* symbols as
221 * bfd-in2.h: Rebuilt.
223 Sat Nov 13 15:27:15 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
225 * som.c (som_bfd_reloc_type_lookup): Add missing prototype. Returns
226 a pointer to constant data. Delete bogus #define which made the
229 * som.c (som_prep_for_fixups): New function.
230 (som_write_fixups): New function.
231 (som_write_space_strings): New function.
232 (som_write_symbol_strings): New function.
233 (som_begin_writing): New function.
235 Fri Nov 12 15:29:36 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
237 * som.c (som_write_object_contents): Do not abort. Flesh out.
238 (som_set_section_contents): Do not abort. Flesh out.
240 * som.c (som_write_headers): New function.
241 (som_prep_headers): New function.
242 (som_build_and_write_symbol_table): New function.
244 * som.c (som_sizeof_headers): Add missing prototype.
245 (som_set_arch_mach): Do not abort.
247 * som.c (som_count_spaces): New function.
248 (som_count_subspaces): New function.
249 (compare_syms): New function.
250 (som_compute_checksum): New function.
252 * som.c (hppa_som_gen_reloc_type): New function.
253 (som_bfd_reloc_type_lookup): New function.
255 * som.c (try_prev_fixup): New function.
256 (som_reloc_skip): New function.
257 (som_reloc_addend): New function.
258 (som_reloc_call): New function.
260 * som.c (som_initialize_reloc_queue): New function.
261 (som_reloc_queue_insert): Likewise.
262 (som_reloc_queue_fix): Likewise.
263 (som_reloc_queue_find): Likewise.
265 * som.c (som_hppa_howto_table): SOM howto relocation table.
266 (hppa_som_reloc): New function.
268 * som.c (struct reloc_queue): New structure to keep track of
269 the last four multibyte relocations emitted.
270 (enum pa_symbol_type): Type to fully describe the symbol types
271 associated with .import/.export assembler directives.
273 * som.c: Include libhppa.h
275 * som.c (bfd_som_set_section_attributes): New function.
276 (bfd_som_set_subsection_attributes): Likewise.
277 (bfd_som_set_symboL_type): Likewise.
278 (bfd_som_attach_unwind_info): Likewise.
279 * som.h: Declare new exported functions.
281 * som.h (struct som_symbol): Add new fields to hold additional
282 information needed to build/write symbol tables and fixup streams.
283 (struct som_section_data_struct): Add new fields to hold additional
284 information needed to build/write space and subspace headers.
285 (som_symbol_data): New accessor macro for SOM symbol information.
286 (R_HPPA_*): Basic relocation types to be used by the assembler.
288 Fri Nov 12 11:00:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
290 * trad-core.c (trad_unix_core_file_p): If new hook
291 TRAD_CORE_ALLOW_ANY_EXTRA_SIZE defined, then skip the check for the
292 corefile being too big.
293 * hosts/i386sco.h: Define it.
295 Thu Nov 11 15:16:28 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
297 * bfd.c (struct _bfd): Add hppabsd_core_data.
298 * targets.c (target_vector): Add hppabsd_core_vec.
299 * hpux-core.c (hpux_core_core_file_p): Fail if an unknown core
300 section is encountered during core section scanning.
301 * hppabsd-core.c: New file.
302 * config/hppabsd.mh: Enable HPPA BSD core files.
304 * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove code
305 which is either commented out or ifdef'd out. Add, update and
306 clean comments. Fix various indention and spacing problems. Handle
307 problems related to using "ble" to jump to a stub rather than "bl"
308 (%r31 is trashed by "ble", but not by "bl").
309 (NEW_INSTRUCTION): Put inside curly braces.
310 (CURRENT_STUB_OFFSET): Fix indention problems.
311 (hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems.
312 Add, update and clean comments. Handle "ble" %r31 lossage problems.
313 (hppa_elf_build_long_branch_stub): Likewise.
314 (hppa_look_for_stubs_in_section): Likewise.
315 (hppa_elf_stub_check): Remove obsolete function.
317 * hppa_stubs.h: Add new instructions to deal with %r31 lossage
318 problems. Delete unused instructions.
320 Tue Nov 9 11:40:27 1993 Stan Shebs (shebs@rtl.cygnus.com)
322 * m68klynx.c (TARGET_IS_BIG_ENDIAN_P): Define.
324 Tue Nov 9 11:26:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
326 * elfcode.h (elf_object_p): Rather than looking through an array
327 of architectures, get the ELF EM_xxx code from the backend
328 information. Let the generic ELF target match any EM_xxx code not
329 matched by another ELF target. Call elf_backend_object_p to let
330 the backend do more checks and set global information.
331 * libelf.h (struct elf_backend_data): Added elf_machine_code and
332 elf_backend_object_p fields.
333 (struct bfd_elf_arch_map): Removed.
334 (bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare.
335 * elf32-target.h, elf64-target.h: Initialize elf_machine_code
336 field with ELF_MACHINE_CODE. Initialize elf_backend_object_p
337 field with elf_backend_object_p (if it is defined).
338 * elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c,
339 elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c,
340 elf64-gen.c (ELF_MACHINE_CODE): Defined.
341 * elf32-mips.c: Include ecoffswap.h to get ECOFF swapping
343 (mips_elf_object_p): Set the right machine number.
344 (mips_elf_ecoff_debug_swap): Defined.
345 (elf_backend_object_p): Defined to be mips_elf_object_p.
346 (elf_backend_ecoff_debug_swap): Defined to be
347 mips_elf_ecoff_debug_swap.
348 * elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed.
350 * libbfd-in.h (target_vector, default_vector): Declare.
352 * format.c (target_vector, default_vector): Don't declare.
354 * elf32-mips.c (elf_mips_howto_table): Don't complain on overflow
355 for R_MIPS_26. Correct overflow detection requires matching the
356 upper four bits of the destination against the PC. From Ted Lemon
357 <mellon@pepper.ncd.com>.
359 * bout.c (b_out_reloc_type_lookup): Return type should point to
361 * coff-i960.c (coff_i960_reloc_type_lookup): Likewise.
362 * elf32-hppa.c (elf_hppa_reloc_type_lookup): Likewise.
363 * mipsbsd.c (MY(reloc_howto_type_lookup)): Likewise.
364 * coff-i386.c (coff_i386_reloc): Made howto const.
365 * oasys.c (oasys_write_data): Made how const.
367 * libelf.h: Added some comments.
368 (struct elf_backend_data): Added elf_backend_ecoff_debug_swap
369 field. Removed unused write_relocs field.
370 * elf32-target.h: Adjusted elf_backend_data initialization
372 * elf64-target.h: Corrected elf_backend_data initialization to
373 fill in all fields and to set elf_64_p to 1.
375 Mon Nov 8 18:13:14 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
377 * elfcode.h (bfd_section_from_shdr): Remove duplicate assignment
378 to filepos in SHT_STRTAB case.
379 (assign_file_position_for_section): Set BFD section filepos as
380 well as ELF section sh_offset.
382 * reloc.c: Use const instead of CONST.
383 (bfd_perform_relocation): Make variable howto a const pointer.
384 * bfd-in2.h, libbfd.h: Rebuilt.
386 Mon Nov 8 12:19:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
388 * Makefile.in (realclean): Don't remove generated headers. Reverts
389 change of 2 Jul 1993.
391 Mon Nov 8 06:08:31 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com)
393 * configure.bfd: make unixware equivalent to sysv4.
395 * config/i386-nlm.mt: bring in elf config; make it the default.
397 Sun Nov 7 20:21:38 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
399 * libbfd.c (bfd_put_8): Add parens around reference to "val"
402 Fri Nov 5 21:45:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
404 * hosts/i386mach3.h (HOST_SEGMENT_SIZE),
405 i386mach3.c (SEGMENT_SIZE, TEXT_START_ADDR): Correct values (?).
407 Fri Nov 5 15:17:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
409 * coffcode.h (coff_write_object_contents): Zero out internal_a.
411 Fri Nov 5 10:41:07 1993 David J. Mackenzie (djm@thepub.cygnus.com)
413 * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coffcode.h,
414 core.c, ctor.c, format.c, init.c, libbfd.c, opncls.c, reloc.c,
415 section.c, syms.c, targets.c:
416 Doc cleanup (spelling, punctuation, grammar, formatting).
417 * bfd-in2.h, libbfd.h: Rebuild.
419 Thu Nov 4 14:46:14 1993 John Gilmore (gnu@rtl.cygnus.com)
421 * bfd-in.h (bfd_get_cacheable, bfd_set_cacheable): New accessors.
422 * bfd.c, opncls.c: Improve comments on file descriptor cacheing.
424 Thu Nov 4 08:54:30 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
426 * From Pete Hoogenboom (hoogen@cs.utah.edu)
427 * elf32-hppa.c (hppa_elf_get_section_contents): Fix logic error
428 in last change. Always rebuild symbol extension section the first
429 time though if output sections exist (fixes ld -r problems).
431 Thu Nov 04 08:08:46 1993 Jeffrey Wheat (cassidy@cygnus.com)
433 * Makefile.in: Add .PHONY for check and installcheck rules.
435 Tue Nov 2 14:42:27 1993 Bill Cox (bill@tarkas.cygnus.com)
437 * libbfd-in.h (artdata): Use long, not time_t for portability, at
438 least to HPUX. File below is a derived file.
440 Tue Nov 2 14:42:27 1993 Bill Cox (bill@tarkas.cygnus.com)
442 * libbfd.h (artdata): Use long, not time_t for portability, at
445 Tue Nov 2 09:32:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
447 * config.bfd: Use bigmips for mips*-*-bsd*.
449 Mon Nov 1 14:30:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
451 * elfcode.h (elf_slurp_reloca_table, elf_slurp_reloc_table):
452 Handle symbol number of zero.
454 * reloc.c (enum bfd_reloc_code_real): Added
455 BFD_RELOC_MIPS_LITERAL, BFD_RELOC_MIPS_GOT16,
456 BFD_RELOC_MIPS_CALL16, BFD_RELOC_MIPS_GPREL32.
457 * bfd-in2.h: Rebuilt.
458 * coff-mips.c (mips_bfd_reloc_type_lookup): Handle
459 BFD_RELOC_MIPS_LITERAL.
460 * elf32-mips.c (mips_reloc_map): Handle new relocs.
461 (mips_elf_hi16_reloc, mips_elf_lo16_reloc): Rearrange _gp_disp
464 * aout-target.h (MY_bfd_debug_info_start, MY_bfd_debug_info_end,
465 MY_bfd_debug_info_accumulat [sic]): Remove unused definitions.
466 (MY_bfd_get_relocated_section_contents, MY_bfd_relax_section,
467 MY_bfd_seclet_link): Define.
468 (MY_bfd_reloc_type_lookup): Rename from
469 MY_reloc_howto_type_lookup.
470 (MY_bfd_make_debug_symbol): Rename from MY_make_debug_symbol.
471 (MY(vec)): Use JUMP_TABLE rather than listing functions.
472 * hp300hpux.c (MY_get_symtab, MY_get_symtab_upper_bound,
473 MY_canonicalize_reloc, MY_write_object_contents): Don't define in
474 terms of MY, because that causes a recusive invocation of CAT when
475 expanded within JUMP_TABLE, and ANSI compilers don't expand
477 * mipsbsd.c (MY_bfd_reloc_type_lookup): Rename from
478 MY_reloc_howto_type_lookup, and don't define in terms of MY.
479 (MY_canonicalize_reloc): Don't define in terms of MY.
480 (aout_mips_little_vec, aout_mips_big_vec): Use JUMP_TABLE rather
481 than listing functions.
483 Mon Nov 1 09:12:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
485 * config.bfd: Use m68k-elf for m68*-*-sysv4*.
494 version-control: never