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
Jim Kingdon
e23b7b308a
new file
1993-06-18 17:54:36 +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
6b4b4d1791
* cache.c, bfd-in.h: New function bfd_make_cacheable.
...
opncls.c (bfd_fdopenr): Suggest it in the comment.
* cache.c (bfd_cache_init): Increment open_files.
1993-06-18 16:13:10 +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
933ae8d4fd
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.
* hosts/*.h: Remove declarations of all these types.
1993-06-18 10:29:14 +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
Ken Raeburn
2dce435218
allow "make bfd.h" to still dtrt
1993-06-16 02:32:27 +00:00
Ken Raeburn
fdcb04536c
updated
1993-06-16 02:25:53 +00:00
Ken Raeburn
a5220fb952
Move bfd.h to ../include. (Directory is created if it doesn't exist.)
...
Insert sysdep.h into it, so manually including it isn't required for every
single file using bfd.h.
Search ../include when compiling.
1993-06-16 02:22:02 +00:00
Ken Raeburn
034a8a56a4
Put in marker for sysdep.h inclusion.
...
(int64_type, uint64_type): Define when using "long long" fallback for
HOST_64_BIT.
1993-06-16 02:08:29 +00:00
Ken Raeburn
c2623b7d30
comment branches in ARCH_SIZE test
1993-06-16 01:51:56 +00:00
David D. Zuhn
75ff789515
remove parentdir support
1993-06-16 00:44:27 +00:00
Ken Raeburn
638616cafb
Second try at getting elfNAME macros right.
...
Under ANSI C, "32_" is not a valid pp-token...
1993-06-15 23:29:48 +00:00
Ken Raeburn
e6858d1b68
(elfNAME, ElfNAME): Use CAT directly rather than going through NAME.
...
(bfd_elf32_new_section_hook): Declare.
1993-06-15 21:44:03 +00:00
Ken Raeburn
8bd4e54bc3
protect against multiple inclusions
1993-06-15 18:36:11 +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
David Edelsohn
06d408d2c1
(int64e_type): Fix definition.
1993-06-11 03:38:16 +00:00
Steve Chamberlain
d7276c0ab4
Add ansidecl.h
1993-06-10 20:31:17 +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
Jim Kingdon
7f4bf88f6c
move to hosts
1993-06-09 00:33:55 +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