Commit graph

466 commits

Author SHA1 Message Date
Ken Raeburn
7e37f9ff25 more prototypes, in libelf.h 1993-07-06 21:14:36 +00:00
Ken Raeburn
72fc67ed29 Several changes: type fixes; prototypes; minimal-bfd work; elf fixes. 1993-07-06 20:48:07 +00:00
David Edelsohn
a76b3e14b1 * cpu-h8300.c (h8300_scan): Fix parsing of architecture string. 1993-07-05 23:50:15 +00:00
Jim Kingdon
bb552c64cf * Makefile.in (clean): Remove bfd.h and stmp-bfd.h.
(realclean): Remove generated headers.
1993-07-02 23:57:52 +00:00
Ian Lance Taylor
3de08d72db * hosts/std-host.h: Removed declarations of printf, fprintf,
fcntl, fread and fwrite.  They are all error prone for one reason
	or another.  Changed declaration of memchr from char * to PTR.
1993-07-02 17:38:16 +00:00
Ian Lance Taylor
125d719751 * configure.in (mips-*-riscos*): New target; use riscos.
* configure.host (mips-*-riscos*): New host; use riscos.
1993-07-02 16:46:48 +00:00
Ian Lance Taylor
d6b4c1d79d * config/riscos.mh (HDEFINES): Add -G 4. 1993-07-02 16:41:14 +00:00
Ian Lance Taylor
d10a9a4628 * libaout.h (GET_SWORD): Use the bfd_h_get_signed entry points
rather than casting the result of bfd_h_get.
1993-07-02 16:32:54 +00:00
Jim Kingdon
af40ced804 * configure.in, hosts/delta68.h, config/delta68.mh: Add stuff for
Motorola Delta 68.
1993-07-02 15:19:18 +00:00
Ian Lance Taylor
64485c8910 * coff-mips.c (ecoff_find_nearest_line): If procedure has no line
number information, return 0 for line number.
1993-06-29 17:51:34 +00:00
Jim Kingdon
09a78a3d12 * hosts/riscos.h: Define NBPG and UPAGES. 1993-06-28 14:58:42 +00:00
Ken Raeburn
36689999e2 elf32.c (slurp_symbol_table): fix cast-as-lvalue bug 1993-06-27 20:32:32 +00:00
David MacKenzie
3caa6924bc * aoutx.h (hash, compare, struct stringtab_entry, add_to_stringtab):
Use unsigned hash values for better hashing.
	(hash): Hash in the string length for long strings.
	* aoutx.h (compare): Replace 3 if's with a subtraction.
	(translate_to_native_sym_flags, add_to_stringtab): Reorder tests
	in decreasing order of success, as an optimization.
	(hash): Take a length arg; ignore chars after #25, for speed.
	(add_to_stringtab): Pass length to hash.
1993-06-26 15:00:47 +00:00
Jim Kingdon
d297ca717f * hosts/riscos.h: New file. 1993-06-23 18:38:41 +00:00
David MacKenzie
042c6907f3 * aoutx.h (howto_table_ext): Comment the field names.
* reloc.c (bfd_perform_relocation): Fix max and min values.
1993-06-22 21:57:24 +00:00
Ken Raeburn
9110f70b26 elfcode.h:bfd_section_from_shdr change 1993-06-22 21:42:31 +00:00
Jim Kingdon
fdebd6296a * hosts/std-host.h: Return value of puts and fputs is int not void. 1993-06-22 21:40:17 +00:00
Ken Raeburn
a1865d8049 Lots o' changes.
Mostly ELF changes, or misc cleanup.
1993-06-22 03:24:48 +00:00
Jim Kingdon
9b4be067af make mips-sony-bsd work 1993-06-21 19:37:13 +00:00
Ken Raeburn
09058bfd6f Recent changes, mostly ELF and bfd.h generation. 1993-06-21 00:54:46 +00:00
David MacKenzie
65cab5894f * reloc.c (bfd_perform_relocation): Check for overflow on
pc-relative relocations if the howto asked for it.
1993-06-19 03:06:36 +00:00
Jim Kingdon
06cdad7ff4 * Makefile.in (stmp-bfd.h): Ignore nonzero exit status from grep. 1993-06-18 23:02:56 +00:00
Jim Kingdon
b32ae8e2c4 * config/riscos.m{h,t}: New files.
* configure.{host,in}: Use them.
1993-06-18 22:47:06 +00:00
K. Richard Pixley
3681a95291 comment change. This is a mips file, not 88k. 1993-06-18 19:56:00 +00:00
Jim Kingdon
41126f153d * cache.c (bfd_cache_init): Increment open_files and call close_one
if necessary.
	(bfd_open_file): Don't increment open_files here.
1993-06-18 18:40:02 +00:00
Jim Kingdon
6278bcbda7 * config/delta88.mh: Don't set CC. 1993-06-18 18:38:05 +00:00
Jim Kingdon
244ffee7f1 * Makefile.in: Add elf32-{mips,m88k,generic}.
elf32-{mips,m88k,generic}.c: New files.
	targets.c (target_vector): Include bfd_elf32_{mips,m88k,generic}_vec.
	elfcode.h (elf_object_p): Match elf32-generic for all machines which
	don't match a different target.
1993-06-18 17:45:41 +00:00
Jim Kingdon
2c4f2c7296 * Makefile.in: Add elf32-{mips,m88k}.
elf32-{mips,m88k}.c: New files.
	targets.c (target_vector): Include bfd_elf32_{mips,m88k}_vec.
1993-06-18 16:07:34 +00:00
John Gilmore
34dd8ba311 Eliminate "int8_type", "int16_type", "int32_type", and their
variants from the BFD universe.  Leave the 64-bit types for now,
since they are in flux.

* aoutx.h, hp300hpux.c:  Eliminate needless (int32_type) casts.
* libaout.h (GET_SWORD):  Convert (int32_type) to (int).
* ieee.c:  Convert uint8e_type => unsigned char.
* oasys.c:  Extensive changes to eliminate obsolete types.
These depend on changes in ../include/oasys.h as well.
1993-06-18 10:26:55 +00:00
Jim Kingdon
ec604f5f6c * hosts/delta88.h: #if 0 out some declarations which conflict with
system headers.
1993-06-18 03:12:04 +00:00
David D. Zuhn
75ff789515 remove parentdir support 1993-06-16 00:44:27 +00:00
Stu Grossman
7747812757 * hppa.c (hppa_get_symbol_info): Remove redundant copy.
* Expurgate random DEFUNs that have crept in.
1993-06-15 02:06:29 +00:00
Ian Lance Taylor
9caf15da51 * coff-mips.c (ecoff_set_symbol_info): Constructor sections should
only be aligned to a 4 byte boundary.
1993-06-14 17:25:15 +00:00
Jim Kingdon
6d792f42f3 * hosts/std-host.h (struct int64e_struct): Remove needless typedef
keyword.
1993-06-12 23:15:20 +00:00
David Edelsohn
628d152d66 * hosts/std-host.h (int64e_type): Fix definition. 1993-06-11 03:39:22 +00:00
Ian Lance Taylor
9b946448f6 * coff-mips.c (ecoff_sec_to_styp_flags): Use STYP_MIPS_INIT for
section named _INIT.  Don't set STYP_TEXT unless SEC_CODE is set.
	(ecoff_styp_to_sec_flags): Treat a STYP_MIPS_INIT section like
	a STYP_TEXT section.
1993-06-10 18:51:48 +00:00
David D. Zuhn
8742e21ac1 fix comment portability problem (ultrix) 1993-06-09 23:49:32 +00:00
Ian Lance Taylor
de17306e90 * coff-mips.c (ecoff_mkobject_hook): Mark ZMAGIC files as D_PAGED.
(ecoff_write_object_contents): If not D_PAGED, don't add the
	section headers to text_size.  If not D_PAGED, set the magic
	number to OMAGIC rather than ZMAGIC.  If creating a D_PAGED
	executable, the executable must fully occupy an even number of
	pages.
	(ecoff_set_symbol_info, make_bfd_asection, ecoff_little_vec,
	ecoff_big_vec): Consistently set section alignment power to 4,
	since ECOFF sections should be multiples of 16 bytes.
	(ecoff_little_vec, ecoff_big_vec): Added D_PAGED to object_flags.
	Made ar_pad_char and ar_max_namelen agree for both.
1993-06-09 22:08:13 +00:00
Mark Eichin
9d206bcf99 * elfcode.h (elf_slurp_symbol_table): subtract section vma from
symbol value, since bfd symbols are section relative, but ELF
	symbols aren't.
for previous change.
1993-06-09 00:30:58 +00:00
Steve Chamberlain
e96d656243 * cpu-i960.c, cpu-h8300.c (compatible): Make static. 1993-06-08 21:31:12 +00:00
Jim Kingdon
2ee2023eb1 new stuff for Sony News 1993-06-08 21:30:08 +00:00
Steve Chamberlain
b08a074860 * bfd-in2.h, archures.c (bfd_mach_h8300[h]): new defines.
* coff-h8300.c: More addressing modes.
	* coffcode.h (coff_set_arch_mach_hook): Cope with H8300 magic
	number.
	* cpu-h8300.c: Removed disassemble stuff. (h8300_scan): Recognise
	H8/300H name. (compatible): New function.
	* reloc16.c (bfd_coff_reloc16_get_relocated_sec): Cope with more
	addressing modes.
1993-06-08 19:15:35 +00:00
Ian Lance Taylor
dc75a8af91 * coff-mips.c (ecoff_compute_section_file_positions,
ecoff_write_object_contents): Only round to page boundaries if
	D_PAGED flag is set for the output BFD.
1993-06-08 17:35:27 +00:00
Steve Chamberlain
fbe5495ad3 * coffcode.h (get_index, coff_slurp_symbol_table): Fix pointer
casts to work on machine where sizeof(long) != sizeof(int) !=
	sizeof(char *).
        * coffgen.c (coff_get_normalized_symtab): Ditto.
	* cpu-h8300.c coff-h8300.c: Support for H8/300-H.
1993-06-04 22:54:20 +00:00
Stu Grossman
2f2831f030 Remove comments about adding new news config stuff. 1993-06-04 20:39:10 +00:00
Stu Grossman
6c9936f7cd * Sony News config stuff from Jyrki Kuoppala <jkp@cs.hut.fi>.
* hosts/news.h, config/news.mh:  New configs for Sony News hosts.
1993-06-04 20:19:54 +00:00
Ian Lance Taylor
69cfe7e8fc * configure.in (mips-*-ecoffl*): New target; use decstation.
(mips-*-ecoff*): Added trailing '*'.
1993-06-04 19:37:33 +00:00
Ian Lance Taylor
9d6088ccac * coff-mips.c (ecoff_get_debug): Get the offset from the first PDR
for the FDR, not from the first PDR in the file.
1993-06-04 14:49:42 +00:00
Stu Grossman
42d8399382 * hppa.c (hppa_get_symbol_info): New func needed for JUMP_TABLE. 1993-06-03 23:42:40 +00:00
David MacKenzie
4645cce479 Define hppa_get_symbol_info. Missed it when updating for nm. 1993-06-03 22:35:06 +00:00