Commit graph

1012 commits

Author SHA1 Message Date
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
e213ebd6a4 update .Sanitize for delta68 1993-07-02 15:24:17 +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
Jim Kingdon
a77d35b0e5 new file for delta 68 1993-07-02 15:05:47 +00:00
Ken Raeburn
7d9bb6dab4 (CAT4): Added Saber-C (ANSI mode) version.
(bfd_elf64_*): New decls.
1993-06-30 10:04:58 +00:00
Ken Raeburn
5b53e0c1b1 delete setting of a variable i wound up not using 1993-06-30 09:17:06 +00:00
Ken Raeburn
b864c03c2f list new files, new stuff to sanitize 1993-06-30 02:54:35 +00:00
Ken Raeburn
3adad029e0 new generic elf64 stuff 1993-06-30 02:52:52 +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
Ken Raeburn
998ce1e0c7 Thu Jun 24 17:25:51 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
* elfcode.h (elf_new_section_hook): Do nothing for now.
	(elf_write_object_contents): Output common symbols the way ELF
	wants them.

Wed Jun 23 16:20:07 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)

	* libelf.h (struct elf_obj_tdata and associated macros): Moved
	here from elfcode.h.  A couple of size-specific structure pointers
	were changed to PTR; uses fixed appropriately.
	(elf32_symbol_type, elf64_symbol_type): Separated definitions.
	(bfd_elf_mkobject): Renamed from bfd_elf32_mkobject.
	(bfd_elf32_mkobject, bfd_elf64_mkobject, elf_mkobject): New
	temporary macros to ease name change.
	* elf.c (elf_read, elf_mkobject, elf_get_str_section,
	elf_string_from_elf_section, bfd_elf_find_section): Moved here
	from elfcode.h.
	* doc/Makefile.in (libbfd.h): Process elf.c too.
	* Makefile.in (elf.o): Note new dependencies.

	* elfcode.h: Lots of stuff moved elsewhere.  Deleted some unused
	code, tweaked some debug hooks.
	(elf_slurp_reloca_table): Translate ELF section symbols into BFD
	section symbols.
1993-06-24 21:30:26 +00:00
Steve Chamberlain
ef323d7076 Get 64bit stuff right. 1993-06-24 20:45:31 +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
15012ad131 Sigh. Null pointer return might be right in some cases; don't abort. 1993-06-22 21:39:40 +00:00
Ken Raeburn
94dbb655ba More get_word/put_word changes.
(bfd_section_from_shdr, case SHT_PROGBITS): If section already exists, still
use its address to fill in the rawdata slot.
(section_from_elf_index): Abort if section pointer is null.
1993-06-22 21:38:10 +00:00
Ken Raeburn
a1865d8049 Lots o' changes.
Mostly ELF changes, or misc cleanup.
1993-06-22 03:24:48 +00:00
Ken Raeburn
3ceaa2556e regenerated 1993-06-22 03:22:54 +00:00
Ken Raeburn
238ac6ecd2 Use new size-independent elf internal data structures.
(put_word, get_word): Define as appropriate for architecture word size.
Structure swapping functions changed to use them as appropriate.
(bfd_add_to_strtab): Now static.
(sym_is_global): New function.
(elf_map_symbols): Call it.  Now returns void.  Removed unused local variable.
(bfd_section_from_shdr): Mark string tables other than for section and symbol
names as normal sections having contents.
(fix_up_strtabs): New function; fixes up ELF header fields for stab sections
with string tables associated.
(elf_write_object_contents): Map fix_up_strtabs over all BFD sections.
Reordered condition tests for symbol flags; default to local-object value
instead of global-object.
(elf_symbol_from_bfd_symbol): Hid conditionally-used variable inside condition
test.
(elf_print_symbol): Use fprintf_vma.
(elf_idx_of_sym, bfd_shdr_from_section): Unused functions commented out.
1993-06-22 03:21:12 +00:00
Ken Raeburn
ab00002f15 Use new size-independent elf internal data structures. 1993-06-22 03:07:39 +00:00
Ken Raeburn
268f94aca3 Use new size-independent versions of elf internal data structures. 1993-06-22 03:06:29 +00:00
Ken Raeburn
c48ff89fe1 Before casting a pointer into an integer field, verify that the field is
wide enough to hold it.
1993-06-22 03:00:43 +00:00
Ken Raeburn
2c3b9e4714 (srec_write_symbols): Use sprintf_vma, in case bfd_vma is too wide for
printf to handle.
1993-06-22 02:58:25 +00:00
Ken Raeburn
d429d6064c Don't define int64 stuff here. 1993-06-22 02:56:29 +00:00
Jim Kingdon
9b4be067af make mips-sony-bsd work 1993-06-21 19:37:13 +00:00
Jim Kingdon
6418521d71 fix typo in name of elf32-generic.c 1993-06-21 17:27:37 +00:00
Fred Fish
0bbc1a34ee Add news.h to list of files to keep. 1993-06-21 16:34:36 +00:00
Fred Fish
8d936d1f5b Add elf32-generic.c to list of files to keep. 1993-06-21 15:27:00 +00:00
Ken Raeburn
09058bfd6f Recent changes, mostly ELF and bfd.h generation. 1993-06-21 00:54:46 +00:00
Ken Raeburn
fce361373d * elfcode.h (bfd_add_to_strtab): Now static.
(sym_is_global): New function.
(bfd_section_from_shdr): Makr stirng tables other than for section and symbol
names as normal sections having contents.
(fix_up_strtabs): New function; fixes up ELF header fields for stab sections
with string tables associated.
(elf_write_object_contents): Map fix_up_strtabs over all BFD sections.
Reordered condition tests for symbol flags; default to local-object value
instead of global-object.

* elfcode.h (new_section_hook): Define here.
1993-06-21 00:53:45 +00:00
Ken Raeburn
87cc59ceb6 Regenerated after my changes to bfd-in.h. 1993-06-21 00:50:48 +00:00
Ken Raeburn
898728d4c5 Regenerated after Kingdon's changes to cache.c.
(Declaration for bfd_cache_init is gone now.)
1993-06-21 00:50:12 +00:00
Ken Raeburn
ada315eae4 No longer use dummy new-section-hook. 1993-06-21 00:36:35 +00:00
Ken Raeburn
12f367a13e Generate bfd.h in current directory by grabbing 64-bit definition (if any)
from sysdep.h (and nothing else) and inserting it into bfd-in2.h.
Remove ../include/bfd.h if found, in case it's left over from previous
versions of this code.
1993-06-21 00:34:11 +00:00
Ken Raeburn
58488bc652 Change insertion marker for new bfd.h generation scheme. 1993-06-21 00:30:11 +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
394d1b3f0d #if 0 out some more declarations which conflict with system headers 1993-06-18 18:15:58 +00:00