Fred Fish
af0175cf41
* elfcode.h: Fix several illegal pointer combination warnings for
...
usages of bfd_alloc and alloca.
1993-07-20 22:42:59 +00:00
Fred Fish
f03b1f0d44
* libnlm.h (nlm_obj_tdata): Rename hidden struct members to avoid
...
apparent Sun C preprocessor recursion. Fix access macros.
* nlmcode.h: Remove spurious '&' before several array references.
1993-07-20 22:07:39 +00:00
Jim Kingdon
df61743d3e
* Rename for DOS uniqueness: coff-m68k-un.c -> coff-u68k.c
...
config/m68k-coffun.mt -> u68k-coff.mt.
* Makefile.in, configure.in: Corresponding changes.
1993-07-20 21:45:32 +00:00
Ken Raeburn
051cdcb33e
* elf32-sparc.c (elf_sparc_howto_table): Don't use "^&" before
...
function name; it's valid without, and some compilers give
warnings with it there.
1993-07-20 20:26:51 +00:00
Jim Kingdon
d39d83c1be
Reflect symmetry changes
1993-07-20 18:12:53 +00:00
Fred Fish
b70cb81eb5
* bfd.c (union tdata): Add nlm_obj_data;
...
* targets.c (enum target_flavour): Add bfd_target_nlm_flavour.
1993-07-20 15:30:58 +00:00
Fred Fish
2b87236749
* bfd-in.h: Apply some of the changes that were made to bfd-in2.h.
1993-07-20 15:22:37 +00:00
Fred Fish
c3e964b955
* configure.in (*-*-netware, i[34]86-*-netware): New configs.
...
* Makefile.in (BFD32_BACKENDS): Add nlm.o, nlm32.o, nlm32-gen.o.
* Makefile.in (BFD64_BACKENDS): Add nlm64.o, nlm64-gen.o.
* Makefile.in (CFILES): Add nlm{32,64}.c, nlm{32,64}-gen.c.
* Makefile.in (nlm.o, nlm{32,64}.o, nlm{32,64}-gen.o: New targets.
* bfd-in2.h (INLINE): Defines moved here.
* {aoutx.h, elf.c, elfcode.h}: Move INLINE defines to bfd-in2.h.
* libelf.h (CAT4): Move define to bfd-in2.h.
* bfd-in2.h (CAT4): Merge CAT4 macro with other CAT macros.
* bfd-in2.h (union tdata): Add nlm_obj_data.
* bfd-in2.h (enum target_flavour): Add bfd_target_nlm_flavour.
* targets.c (bfd_nlm{32,64}_{big,little}_vec): Add prototypes.
* targets.c (target_vector): Add bfd_nlm{32,64}_{big,little}_vec.
* (libnlm.h, nlm.c, nlmcode.h, nlm{32,64}-gen.c,
nlm{32,64}-target.h, nlm{32,64}.c, config/i386-nlm.mt): New files
for NLM support.
1993-07-20 04:45:13 +00:00
David D. Zuhn
84d3f42292
fix stupid typo
1993-07-19 22:24:56 +00:00
David D. Zuhn
56e28f3a9b
add i386-lynx support
1993-07-19 22:14:45 +00:00
Ken Raeburn
32090b8e4f
* elf.c, elfcode.h, libelf.h: Serious reorganization.
...
Deleted `thunk' structure, merged into tdata, duplicate data eliminated.
Rearranged functions, grouping by function.
Broke up many functions in elfcode.h, re-ordered many parts of file writing
to handle unpredictable state of section relocation table as provided by
various applications.
Still needs cleanup: Merge functions back together, split out data structure
with only data that is used only when writing out object file.
* elf.c (bfd_elf_generic_reloc): New function, taken from coff-mips.c.
* elf32-sparc.c (elf_sparc_howto_table): Use it, to work around
bfd_perform_relocation lossage.
1993-07-19 19:12:59 +00:00
Ken Raeburn
2fdca02194
(BFD_LIBS): Include coff-mips.o and coff-msym.o, so that gdb will link.
...
(ofiles): Don't use sort or uniq; do it with sh constructs.
1993-07-19 18:55:29 +00:00
Jim Kingdon
bea80b013d
* coffcode.h: Recognize I386PTXMAGIC.
...
* aoutf1.h, libaout.h: Add M_386_DYNIX.
* trad-core.c (TRAD_CORE_USER_OFFSET, TRAD_CORE_STACK_FILEPOS):
New macros; use it if defined.
* config/symmetry.mh, hosts/symmetry.h: New files.
1993-07-19 04:55:21 +00:00
Jim Kingdon
c55665ea6e
* Rename elf{32,64}-generic.c to *-gen.c for 14 char filenames.
...
* Makefile.in: Change accordingly.
(CFILES): Add elf64-gen.c.
1993-07-17 01:37:06 +00:00
Jim Kingdon
d9d9782312
* Rename elf{32,64}-generic.c to *-gen.c for 14 char filenames.
...
* Makefile.in: Change accordingly.
(CFILES): Add elf64-gen.c.
1993-07-17 01:28:11 +00:00
Ian Lance Taylor
851f2e3f00
* coff-mips.c: Use MIPS_AOUT_{OZ}MAGIC rather than {OZ}MAGIC.
1993-07-16 16:56:05 +00:00
Ian Lance Taylor
6585e9e347
* coff-m88k.c (howto_table): Corrected bitsize for R_PCR26L from
...
16 to 26.
1993-07-15 20:06:41 +00:00
Jim Kingdon
89c789f6fa
* hppa.c [HOST_HPPABSD]: Use hpux-style core files.
...
* libhppa.h [HOST_HPPABSD]: Include hpux version of core.h
1993-07-14 20:35:18 +00:00
David Edelsohn
7024033bfb
* configure.in: Recognize h8300h-*-*.
1993-07-14 16:32:34 +00:00
Steve Chamberlain
46dd06224b
* coff-h8500.c (reloc_processing, rtype2howto): New relocation
...
type R_H8500_HIGH_16.
* coff-sh.c (r_imm32): Get the width of the reloc right.
1993-07-13 19:08:25 +00:00
Ken Raeburn
fa088f5074
dtrt wrt v9 for elf64-sparc.c (sigh)
1993-07-13 18:52:44 +00:00
Jim Kingdon
25452831dc
* configure.in: Add new target m68k-coffun to the dpx/2.
...
* config/m68k-coffun.mt: New file, renamed from config/dpx2.mt.
1993-07-13 18:42:33 +00:00
Ken Raeburn
42b9004e46
make sanitize dtrt wrt v9
1993-07-13 18:39:22 +00:00
Ken Raeburn
b886bef191
Changes to reloc.c, libelf.h, config/sparc-elf.mt.
1993-07-12 14:50:45 +00:00
Ken Raeburn
5284a822d1
regenerated
1993-07-12 14:48:13 +00:00
Ken Raeburn
6ed3ddef4c
Use {start,end}-sanitize-v9 instead of `v9' on every line to be removed.
1993-07-12 14:47:30 +00:00
Ken Raeburn
cb6d724fb9
(struct elf_obj_tdata): Add field `thunk'.
1993-07-12 14:46:20 +00:00
Ken Raeburn
58acdbd76b
(enum bfd_reloc_code_real): Move SPARC_BASE13 and SPARC_WDISP19 to more
...
appropriate places.
(bfd_perform_relocation): Whitespace changes, more comments.
1993-07-12 14:44:30 +00:00
Ken Raeburn
2d56dfba5d
(sparc_reloc_map): Remove duplicate WDISP19 entry.
1993-07-12 14:39:40 +00:00
Ken Raeburn
1bea1b6fa7
Clean v9 stuff from reloc.c and bfd-in2.h also.
1993-07-12 14:37:44 +00:00
Jim Kingdon
a4b6affa7b
add file
1993-07-11 23:24:49 +00:00
Jim Kingdon
4d09e8acfb
* elfcode.h: Use memset not bzero.
...
* trad-core.c: Don't include <sys/file.h>.
* i386linux.h: Include <sys/file.h>.
* coff-m68k-un.c: new file to handle names with underscores on
svr3 machines.
* coff-m68k.c (m68k_rtype2howto): added #ifdef ONLY_DECLARE_RELOCS
to not duplicate the function in the executable.
(TARGET_SYM, TARGET_NAME, NAMES_HAVE_UNDERSCORE): new macros needed
by coff-m68k-un.c.
* coffcode.h (MC68KBCSMAGIC): case added.
* targets.c: Add m68kcoffun_vec.
* configure.host: added support for Bull dpx/2.
* config/dpx2.mh, hosts/dpx2.h: new files.
* Makefile.in: added target coff-m68k-un.
1993-07-11 23:23:20 +00:00
Jim Kingdon
6f4d6543da
new for dpx2
1993-07-11 22:58:00 +00:00
Jim Kingdon
a40fe908ce
* aoutf1.h: Add definition of MACHTYPE_OK.
1993-07-09 05:47:07 +00:00
Jim Kingdon
ce93f56967
* hosts/i386bsd.h: Conditionalize HOST_STACK_END_ADDR on __bsdi__.
...
i386bsd.c: Remove defines of N_TXT*; the versions in aout64.h should
be sufficient. Define TEXT_START_ADDR.
1993-07-08 19:24:29 +00:00
David MacKenzie
481d3f5a1b
New file bfdsumm.texi to share with ld.
1993-07-08 17:58:15 +00:00
Ian Lance Taylor
ebd2413529
* aoutx.h (translate_from_native_sym_flags): Removed statep
...
argument. Just let an indirect symbol point to the next symbol
without forcing the next symbol to be undefined. Changed all
callers.
* hp300hpux.c (slurp_symbol_table): Changed call to
translate_from_native_sym_flags.
* targets.c: Added hp300hpux_vec.
* Makefile.in (hp300hpux.o): Added dependencies.
1993-07-07 18:05:06 +00:00
Ian Lance Taylor
2fd415dfa2
Don't crash if with_minimal_bfd is the empty string.
1993-07-07 15:26:14 +00:00
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
Ken Raeburn
fa5ba2170f
regenerated
1993-07-06 20:46:32 +00:00
Ken Raeburn
6a3eb9b606
* elfcode.h (elf_read): Delete static declaration, since function has moved.
...
(elf_map_symbols): Write out section symbols for all sections, for now.
(elf_symbol_from_bfd_symbol): Allow match if both symbols are section symbols
for the same section.
(elf_find_nearest_line): Don't print message, just return false.
1993-07-06 20:43:42 +00:00
Ken Raeburn
789776d7be
fill out reloc table
1993-07-06 20:36:42 +00:00
Ken Raeburn
c812942fc5
Hack to cut down compilations needed for minimal-bfd:
...
* Makefile.in (ALL_MACHINES): Renamed from BFD_MACHINES.
(ofiles): New target. Build a list of unique file names, in case
any got duplicated.
(TARGETLIB): Use list of files from ofiles.
* configure.in: Set BFD_MACHINES and BFD_BACKENDS depending on
minimal-bfd flag and target makefile frag contents.
1993-07-06 20:27:25 +00:00
Ken Raeburn
70e009144e
Stricter prototyping, to force type conversions between 64-bit target and
...
32-bit host values.
* libbfd.c (bfd_xmalloc_by_size_t): New function.
* opncls.c (bfd_cache_init, bfd_open_file): Add prototypes to declarations.
(obstack_chunk_alloc): Use bfd_xmalloc_by_size_t.
(new_bfd): Prototype-style definition, using DEFUN.
(bfd_alloc_grow, bfd_alloc, bfd_zalloc, bfd_realloc): Size argument is type
size_t, not bfd_size_type.
* ieee.c (obstack_chunk_alloc): Use bfd_xmalloc_by_size_t.
* bfd.c (bfd_default_error_trap, bfd_error_trap,
bfd_error_nonrepresentabltrap): Prototypes.
* libbfd-in.h (bfd_alloc, bfd_zalloc, bfd_realloc, bfd_alloc_grow): Adjusted
prototypes for arg type change.
* archive.c (get_elt_at_filepos, do_slurp_bsd_armap, normalize,
do_slurp_coff_armap, bfd_construct_extended_name_table): Prototypes.
1993-07-06 20:20:31 +00:00
Ken Raeburn
defcfb5570
(enum bfd_reloc_code_real): Put simple power-to-two relocs together, and add
...
64-bit versions. Also add sparc v9 reloc types.
(bfd_generic_get_relocated_section_contents): Argument to alloca is size_t.
1993-07-06 19:29:36 +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
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
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
Jim Kingdon
2ee2023eb1
new stuff for Sony News
1993-06-08 21:30:08 +00:00
Jim Kingdon
0c46b5e73f
new file
1993-06-08 21:28:41 +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
0cd22b6a8d
include right headers
1993-06-04 22:55:00 +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
Ken Raeburn
2d1e6c9c07
Patch from minyard@bnr.ca: For empty symbol table, write out number "4" in
...
correct byte order.
1993-06-04 22:43:07 +00:00
Stu Grossman
2f2831f030
Remove comments about adding new news config stuff.
1993-06-04 20:39:10 +00:00
Stu Grossman
7dec8bcb2a
Per bashed me on the head. I am now right thinking once again!
1993-06-04 20:35:13 +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
Ken Raeburn
4bf86ecb11
oops -- keep elf64.c too
1993-06-04 00:21:04 +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
Ken Raeburn
c8f3a0e160
today's changes; details from Utah on their changes
1993-06-03 21:13:32 +00:00
Ken Raeburn
8f46088168
eliminate most prototypes so ansidecl.h isn't needed before this file (incomplete)
1993-06-03 20:58:50 +00:00
Ken Raeburn
e8f2240a5a
updates from Utah
1993-06-03 20:55:48 +00:00
David D. Zuhn
c332b51602
go32 needs math library
1993-06-03 07:26:52 +00:00
Ken Raeburn
d9ebd99e6a
rest of utah changes
1993-06-02 21:59:23 +00:00
Ken Raeburn
4732cd70bc
eliminate use of obsolete EXFUN
1993-06-02 21:57:33 +00:00
Ken Raeburn
7050286db6
elfcode.h
1993-06-02 21:24:35 +00:00
Ken Raeburn
cef91d759c
keep new files
1993-06-02 20:25:43 +00:00
Ken Raeburn
c986f2a6df
new file for hppa linker support
1993-06-02 20:24:22 +00:00
Per Bothner
3407596411
* Makefile.in (bfd.h): Move closer to headers - and after 'all'!
1993-06-02 00:13:46 +00:00
Per Bothner
3ef08dc3e3
* aoutx.h (translate_from_native_sym_flags): Don't set
...
BSF_DEBUGGING for constructor symbols, only BSF_CONSTRUCTOR.
* aoutx.h (translate_to_native_sym_flags): Translate
constructor symbols properly.
1993-06-01 22:43:29 +00:00
Fred Fish
ef7e172e5c
Add elfcode.h to list of things to keep.
1993-05-30 14:32:12 +00:00
Steve Chamberlain
eba2bc94c3
* aout-target.h (minimum_alignment): 8 byte alignment is right.
...
(fix ld/2680)
1993-05-27 23:12:21 +00:00
Ken Raeburn
b9653d8165
first cut at new maybe-64bit-handling configuration
1993-05-27 19:57:15 +00:00
K. Richard Pixley
87756e15db
added things-to-lose sections
1993-05-27 06:44:29 +00:00
Ken Raeburn
cb9914277d
elf, cleanup changes
1993-05-25 20:24:24 +00:00
Ken Raeburn
51300bdb0b
(elf64.c): Add to list of sources.
...
(elf64.o): List dependencies; don't build by default.
(elf32.o): Update dependencies.
(archures.o, targets.o): Depend on Makefile, for MINIMIZE &c.
1993-05-25 20:14:57 +00:00
Ken Raeburn
9942e68438
Updated for new macro, type, and structure names.
...
Cleaned up some namespace pollution; renamed elf vectors.
1993-05-25 20:11:26 +00:00
Ken Raeburn
da3cd00a63
(COERCE64): Avoid out-of-range numbers
1993-05-25 19:48:12 +00:00
Ken Raeburn
7075689376
begin reorganization to support 64-bit elf
1993-05-25 18:50:49 +00:00
Stu Grossman
aef0bd9996
Add i386lynx.c.
1993-05-24 21:04:09 +00:00
Stu Grossman
43152fe57b
* i386lynx.c: New module for Lynx variant of a.out.
...
* Makefile.in (BFD_BACKENDS CFILES depends): Add i386lynx.c.
* gen-aout.c: Get rid of defunct endian stuff, print out true
pagesize.
* targets.c (target_vector): Add i386lynx_vec.
1993-05-22 02:08:20 +00:00
Jim Kingdon
01e8df99e5
ISC changes
1993-05-21 22:34:16 +00:00
David MacKenzie
c881d68721
Move printing from bfd to nm.
1993-05-21 21:09:02 +00:00
David MacKenzie
93b4f01814
Move printing from bfd to nm and add POSIX and SysV formats.
1993-05-21 21:06:25 +00:00
Jim Kingdon
67a113cf3e
* trad-core.c: Check macro TRAD_CORE_EXTRA_SIZE_ALLOWED.
...
hosts/i386linux.h: Define it.
1993-05-19 21:11:49 +00:00
Jim Kingdon
b7e80156db
* trad-core.c: Check macro TRAD_CORE_EXTRA_SIZE_ALLOWED.
...
hosts/i386linux.h: Define it.
1993-05-19 20:57:20 +00:00
Ken Raeburn
09f080a55e
hppa assembler/disasm support routines
1993-05-17 19:04:58 +00:00
Ken Raeburn
00312bc1b2
bump version number
1993-05-17 19:03:44 +00:00
Ken Raeburn
71f73518ed
keep miniframe.h
1993-05-14 10:18:18 +00:00
Ken Raeburn
8e40bcd8ec
expand comment about "global_sym" complaint
1993-05-14 09:43:28 +00:00
Ken Raeburn
024b9649f6
add ct miniframe host support
1993-05-14 09:39:38 +00:00
Ian Lance Taylor
979227d480
* bout.c (aout32_slurp_extended_name_table): Define to be
...
_bfd_slurp_extended_name_table rather than bfd_true.
1993-05-12 21:44:18 +00:00
Ian Lance Taylor
bb511e8a1e
* coff-mips.c: Include libaout.h and aout/aout64.h to get
...
definitions for N_SET[ATDB].
(ecoff_howto_table): Moved near top of file.
(ecoff_set_symbol_info): If a STABS symbol of type N_SET[ATDB] is
seen, cook up a constructor section of the same name and put in a
reloc pointing to the symbol. This lets the GNU linker build
global constructors and destructors without using collect.
1993-05-12 21:42:20 +00:00
Fred Fish
aa9a648958
* configure.in (hppa*-*-bsd): Change to hppa*-*-bsd*
...
* configure.in (hppa*-*-hpux): Change to hppa*-*-hpux*
* configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
* configure.in (m68*-*-hpux): Change to m68*-*-hpux*
* configure.in (*-*-bsd): Change to *-*-bsd*
1993-05-09 23:42:50 +00:00
Per Bothner
df6dfda7fb
* elf32-hppa.c (elf_hppa_reloc_type_lookup): Cast enums to
...
int, for the sake of the old Portable C Compiler.
1993-05-05 23:12:11 +00:00
Fred Fish
cc8e9e5b5f
* trad-core.c (NO_SIGNED_GET): New macro.
...
* trad-core.c (trad_core_vec): Use new NO_SIGNED_GET instead of
signed NO_GET, where appropriate.
1993-05-02 21:53:13 +00:00
Fred Fish
772b5e9b59
* configure.in (i[34]86-*-linux*): Add; bfd_target = i386-linux.
...
* configure.in (*-*-linux*): Remove until linux port for a
non-i386/i486 system is actually available.
1993-05-02 18:43:09 +00:00
Stu Grossman
b2057735d8
* libhppa.h: #undef e_* symbols which come from <machine/som.h>
...
when compiling under HPUX.
1993-05-01 03:05:18 +00:00
Stu Grossman
d325e28cfd
* The following patches are from Jeffrey Law <law@cs.utah.edu>.
...
* hppa.c (hppa_core_file_p): Provide a temporary dummy routine
for HOST_HPPABSD.
* bfd/hosts/hppabsd.h: Fix declarations of malloc and free.
* bfd/libhppa.h: Include sysdep here. Conditionalize
includes based on HOST_HPPAHPUX or HOST_HPPABSD.
Provide definitions for MAXCOMLEN and _PA_RISC_ID suitable
for BSD.
1993-05-01 00:57:03 +00:00
Ken Raeburn
89c88702c0
Don't include system a.out.h in elf32-hppa.c.
...
Apparently include/aout/*.h isn't needed either, so just omit it.
Should compile on Solaris now...
1993-04-30 21:49:02 +00:00
Jim Kingdon
9e768fa213
* coffcode.h: use dummy_reloc16_extra_cases rather than casting abort.
1993-04-30 17:22:39 +00:00
Ken Raeburn
19e0e2211c
Log for changes already checked in today.
...
(Yes, this changelog entry is well tested and reasonably localized. :-)
1993-04-29 22:05:53 +00:00
Ken Raeburn
c268b400ad
keep hp300hpux and hppa-elf files
1993-04-29 16:10:34 +00:00
Ken Raeburn
18f81c053a
hppaosf target support
1993-04-29 15:59:58 +00:00
Ken Raeburn
8ddd7ab3a9
fixed up to use elf32-target.h
1993-04-29 15:48:49 +00:00
Ken Raeburn
fb6e80d50b
hppa support, initial linker support
1993-04-29 15:48:35 +00:00
Ken Raeburn
8568acaa92
new reloc enum types
1993-04-29 15:38:41 +00:00
Ken Raeburn
db232882e0
copyright; gas changes
1993-04-29 15:36:54 +00:00
David MacKenzie
9773646c14
Fix an unclear sentence.
1993-04-29 05:49:07 +00:00
David MacKenzie
20a9ac229e
Clean up English and Texinfo usage.
1993-04-29 03:45:24 +00:00
Ken Raeburn
bafe0602a0
checkpoint hp300hpux code from HP; needs cleanup before using
1993-04-28 22:56:31 +00:00
Ken Raeburn
4c85cbfac5
checkpoint hppa-elf code from Utah (Sanitize out until it's cleaned up & working)
1993-04-28 22:55:25 +00:00
Ken Raeburn
9eb73722ae
add new field for subformat (for hp300 work)
1993-04-28 22:52:50 +00:00
Ken Raeburn
ae06054e4b
allow overrides of armap defaults
1993-04-28 22:49:48 +00:00
Steve Chamberlain
9faacb925f
Support for Hitachi SH
1993-04-27 01:17:32 +00:00
Jim Kingdon
31568a6f41
* trad-core.c (trad_unix_core_file_p): Check the file size.
1993-04-26 21:03:35 +00:00
Ian Lance Taylor
e5351028c7
* sco-core.c (sco_core_vec): Add initializers for new target
...
fields.
1993-04-26 18:27:40 +00:00
Jim Kingdon
35d835c405
* coffcode.h [_LIT]: Recognize .lit section.
1993-04-25 04:45:31 +00:00
Steve Chamberlain
5f8f6d56f2
Support for the alpha
1993-04-24 02:10:09 +00:00
Stu Grossman
9a5e3a9ac5
* Merge in HPPA/BSD changes from Utah.
...
* hppa.c: Use this for both HPUX & BSD.
* targets.c: Enable hppa_vec for both HPUX & BSD.
* config/hppabsd.mt: TDEFINES => TDEFAULTS.
* hosts/hppabsd.h: #define HOST_HPPABSD.
1993-04-24 00:00:41 +00:00
John Gilmore
5e6d9f49be
* libbfd.c: Whitespace changes around byteswap macros.
...
* libbfd-in.h: Whitespace changes around byteswap declarations.
1993-04-21 09:31:42 +00:00
Stu Grossman
d4152352a8
* aoutf1.h (sunos4_core_file_p): Don't default bfd_error to
...
system_error anymore. It confuses bfd_check_format().
1993-04-20 23:00:58 +00:00
Stu Grossman
8171711b53
* bfd.c: Add sgi_core_data to tdata union.
...
* coff-mips.c: Add Irix 4.x core file support.
* hosts/irix4.h: #define HOST_IRIX4.
1993-04-20 06:11:51 +00:00
Ken Raeburn
0f213cc206
a.out string table reduction code, take two.
...
Also fixed a bug in reading symbol tables on some systems...
1993-04-20 02:00:01 +00:00
Fred Fish
d9fc59c93f
* trad-core.c (trad_core_vec): Add 6 new initializers to match
...
new signed get/put fields. Minor reformatting to label
some fields.
1993-04-19 23:56:57 +00:00
Jim Kingdon
3f06498af4
changes for SVR3.2
1993-04-19 18:34:55 +00:00
Jim Kingdon
7e4db2548b
* libbfd.c: bfd_put*: Remove casts to bfd_vma.
1993-04-19 13:35:48 +00:00
Jim Kingdon
250351fc75
* aoutf1.h (internal_sunos_core): Make c_stacktop a bfd_vma.
...
(swapcore_sparc): Make sp a bfd_vma.
1993-04-17 01:44:18 +00:00
Jim Kingdon
14e3c2e47d
* libbfd.c: Add signed versions of bfd_{h_,}{get,put}_signed_<size>.
...
libbfd.c, libbfd-in.h: Add _do*signed*.
targets.c, all targets: Add bfd*signed*.
bfd-in.h: Add bfd_signed_vma. Add comments.
1993-04-17 00:39:36 +00:00
Jim Kingdon
34b6a8c305
Thu Apr 15 09:09:18 1993 Jim Kingdon (kingdon@cygnus.com)
...
* bfd-in.h (bfd_error), bfd.c (bfd_errmsgs): Add file_truncated.
* format.c (bfd_check_error): Check error return from
_bfd_check_format routines.
Wed Apr 14 23:48:25 1993 Jim Kingdon (kingdon@cygnus.com )
* rs6000-core.c (rs6000coff_core_p): Improve error checking and
recognize .data section if present.
1993-04-15 19:29:51 +00:00
John Gilmore
a99c3d7094
* aoutx.h (aout_*_adjust_sizes_and_vmas): Avoid `sanity'
...
check for the case where the user sets the address of the BSS
section (and the file header can't specify this). Let the user
set it wherever they want, regardless of what goes in the header.
Fixes #ld/1826 (the fix was never checked in by Steve or Ken).
1993-04-15 08:44:58 +00:00
John Gilmore
b07d03ba16
Fix minor merge botch in prev change.
1993-04-15 08:19:43 +00:00
John Gilmore
7185848601
* ieee.c (ieee_slurp_sections): Pass all ieee section names
...
straight through into BFD sections. Add comments.
1993-04-15 08:05:31 +00:00
John Gilmore
b6090f4d65
Cleanup in preparation for better 64-bit host support.
...
* bfd-in.h (bfd_64_type): Remove.
* libbfd.c (_do_getb64, _do_putb64): Use bfd_vma, not bfd_64_type.
* bfd-in.h (bfd_size): Remove.
* bfd-in.h (bfd_offset): Remove, after fixing ld/ldlang.[ch].
* bfd-in.h (bfd_word): Remove.
* reloc.c (reloc_howto_type): Replace bfd_word with bfd_vma.
* bfd-in.h (rawdata_offset): Remove.
* reloc.c (arelent): Replace rawdata_offset with bfd_size_type.
(bfd_perform_relocation): Lint.
(enum bfd_reloc_status): Comment cleanup.
1993-04-15 04:53:14 +00:00
John Gilmore
8f8fefccf5
* aout-adobe.c, cpu-h8300.c, mipsbsd.c, srec.c: lint -Wall.
1993-04-15 04:52:32 +00:00
Ken Raeburn
79f1d6a385
kill it dead
1993-04-13 05:32:52 +00:00
John Gilmore
d0b09ced76
Clean up old comments
1993-04-12 21:18:31 +00:00
Ian Lance Taylor
36c0a1ec22
* config/sun3.h: String argument to fprintf is const.
1993-04-09 18:50:36 +00:00
Ian Lance Taylor
032250cda4
* coff-mips.c: Renamed PAGE_SIZE to ROUND_SIZE, to avoid confusion
...
on systems which define PAGE_SIZE in <limits.h>.
1993-04-09 17:48:10 +00:00
Peter Schauer
98a445b0fa
* trad-core.c (trad_unix_core_file_failing_signal): Use new macro
...
TRAD_UNIX_CORE_FILE_FAILING_SIGNAL to allow host files to specify
the core file failing signal.
* hosts/decstation.h (TRAD_UNIX_CORE_FILE_FAILING_SIGNAL): Define
to supply the core file failing signal.
1993-04-08 17:30:28 +00:00
Ian Lance Taylor
a6235cbbc2
* coff-mips.c (PAGESIZE): Correct value.
...
With the wrong PAGESIZE everything worked just fine, with one
exception: emacs couldn't dump itself.
1993-04-07 18:34:25 +00:00
Ian Lance Taylor
46bc1bf6ba
These changes make shared library support work again on 386 COFF
...
systems.
* coffcode.h (styp_to_sec_flags): Set SEC_SHARED_LIBRARY for a
STYP_NOLOAD | STYP_BSS section. Don't set SEC_NEVER_LOAD for a
STYP_INFO section.
(coff_compute_section_file_positions): Force vma and lma of _LIB
section to be zero.
(coff_set_section_contents): Count number of entries in new lma
field, not in vma.
* coffgen.c (make_a_section_from_file): Force lineno_count of
SEC_SHARED_LIBRARY section to be zero, since it is non-zero on the
SCO 3.2v4 shared library.
* seclet.c (rel): Copy over any section with contents, not just
loadable sections.
* coff-mips.c (ecoff_make_empty_symbol): Zero out newly allocated
symbol.
1993-04-06 00:53:41 +00:00
Ian Lance Taylor
3cb4caa6b5
This makes ld -r work for i386-coff targets.
...
* coff-i386.c (coff_i386_reloc): New function, to generate
relocateable output correctly.
(howto_table): Use coff_i386_reloc for all reloc types.
(CALC_ADDEND): Use a more efficient hack to get the correct addend
for a common symbol.
(i386comm_value): Removed; no longer needed.
1993-04-05 20:09:58 +00:00
Steve Chamberlain
77f31b05cc
*** empty log message ***
1993-04-04 22:12:22 +00:00
Steve Chamberlain
55c95b041a
* coffcode.h (coff_set_section_contents): Don't write out
...
> >> * coffcode.h (coff_set_section_contents): Don't write out sections without a filepos.
1993-04-04 22:12:06 +00:00
Ian Lance Taylor
b580c2b543
* seclet.c (seclet_dump_seclet): Correct SEC_HAS_CONTENTS test.
1993-04-02 22:36:04 +00:00
Steve Chamberlain
21c7770362
* aoutx.h (translate_from_native_sym_flags): Now handles indirect
...
symbols in a better way. (translate_to_native_sym_flag): Set the
N_INDR bit when necessary. (aout<>slurp_symbol_table): Maintain
indirect state.
* section.c: Added BFD_IND_SECTION_NAME and bfd_ind_section.
(bfd_make_section): Cope with new builtin section.
* syms.c (bfd_decode_symclass): Can now print indirect section
info.
1993-03-30 17:40:51 +00:00
Per Bothner
f20c07d975
CVS botch. Add MACHTYPE_OK to mipsbsd.c; re-remove aout-mipsbsd.c.
1993-03-26 00:38:09 +00:00
Per Bothner
796dc40d63
* aout-target.h (MY(object_p)): Fail if MACHTYPE_OK is
...
defined, and yields false.
* aout-mipsbsd.c, i386bsd.c: Define MACHTYPE_OK appropriately.
* archive.c (snarf_ar_hdr): Add support for reading (only,
so far) BSD-4.4-style extended headers.
* archive.c: Some more comments.
1993-03-24 21:47:14 +00:00
David D. Zuhn
f2681266a7
update dvi & info targets
1993-03-24 10:34:02 +00:00
Ken Raeburn
828e987e6b
mipsbsd renaming, libbfd optimization fixes
1993-03-24 08:18:16 +00:00
Ken Raeburn
550fb7afd3
turn on file-position optimizations again
1993-03-24 08:01:07 +00:00
Ken Raeburn
a33a2b65c5
disable position-caching code for now
1993-03-24 05:10:05 +00:00
Ken Raeburn
e5b0286097
fix some (not all) bugs in previous changes
1993-03-24 05:09:18 +00:00
Ken Raeburn
044c1ba9e5
aout-mipsbsd -> mipsbsd
1993-03-23 20:21:47 +00:00
Ken Raeburn
07bb4e8abc
delete non-mips-related code
1993-03-23 20:19:16 +00:00
Ken Raeburn
db15c6b17a
rename for <=14 chars
1993-03-23 20:14:25 +00:00
Ken Raeburn
b31d06ca14
Eek, a bug!
...
Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET.
1993-03-23 20:11:25 +00:00
Ken Raeburn
33446e9093
oops, left some debug code in
1993-03-23 17:50:26 +00:00
Ken Raeburn
6c0eb6c8c9
FILE_OFFSET_IS_CHAR_INDEX changes to libbfd.c and hosts/sparc.h
1993-03-23 14:23:48 +00:00
Ken Raeburn
0d552306f8
libbfd.c: Maintain `where' field of BFD with current position while BFD is
...
in use. If FILE_OFFSET_IS_CHAR_INDEX, assume arithmetic can be done on it,
and ignore SEEK_SET requests that move to the current position.
hosts/sparc.h: Define FILE_OFFSET_IS_CHAR_INDEX.
1993-03-23 13:54:41 +00:00
Ken Raeburn
992be253d1
since bfd vers is > 2.0, make doc say so also
1993-03-23 13:10:30 +00:00
David D. Zuhn
76019c92cd
add installcheck target
1993-03-23 07:19:06 +00:00
Ian Lance Taylor
182b4c978d
* coff-mips.c (ecoff_set_symbol_info): Relocate encapsulated stabs
...
if the type is not stNil.
1993-03-22 22:59:29 +00:00
Per Bothner
76b527fa83
* Makefile.in: Add *clean rules.
1993-03-16 20:16:31 +00:00
Ken Raeburn
b47ca13f2a
elf32.c, elf32-sparc.c changes
1993-03-16 18:37:51 +00:00
David D. Zuhn
663a55364b
consistent use of -solaris2*
1993-03-13 02:59:38 +00:00
Jim Kingdon
2e0e34505d
* rs6000-core.c: Add .ldinfo section.
1993-03-12 23:05:12 +00:00
Ian Lance Taylor
204ae00cc1
* Makefile.in (MAKEOVERRIDES): Define to be empty.
1993-03-12 19:58:54 +00:00
Steve Chamberlain
ad7009aa91
* section.c (bfd_set_section_contents): whitespacs
...
* seclet.c (seclet_dump_seclet): Don't try and fill sections with
no contents.
1993-03-12 16:33:59 +00:00
David D. Zuhn
b3df94565a
don't define POSIX_UTIME for go32, makes ar & ranlib happy again
1993-03-12 03:32:47 +00:00
Fred Fish
286a4427e5
* elf32.c (elf_object_p): Use ELF_ARCH stored in xvec to match
...
against machine architecture stored in the ELF header, to resolve
ambiguities.
* elf32.c (bfd_section_from_shdr): Bfd_make_section can return
NULL, so only use results when non-NULL.
* targets.c (elf32_m68k_vec, elf32_i860_vec): Add extern decls
and add to vector of targets.
1993-03-09 18:59:58 +00:00
Ian Lance Taylor
16788ca9fd
Removed obsolete Makefile.dos.
1993-03-09 18:16:38 +00:00
Ken Raeburn
0093d9e67f
hppa.c: don't require DL_MAGIC, SHL_MAGIC, if they're not defined (hpux 7.0)
1993-03-08 21:30:29 +00:00
Ken Raeburn
59415c56b3
hppa and aix386-core changes
1993-03-08 20:58:34 +00:00
Ken Raeburn
155171dee5
from Noah Friedman: define some needed macros if hpux version < 8
1993-03-08 20:42:00 +00:00
Ian Lance Taylor
f68d8549cc
* coff-mips.c (ecoff_bfd_reloc_type_lookup): New function.
...
(ecoff_write_object_contents): Added BFD_ASSERT calls to ensure
relocs are reasonable.
* coff-msym.c: Eliminated uses of DEFUN.
(ecoff_swap_tir_out): New function.
1993-03-04 22:48:46 +00:00
Fred Fish
b84d84d7a6
(Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
...
* configure.host (vax-*-ultrix2*): Add triplet.
* hosts/vaxult2.h: New file.
* config/vaxult2.mh: New file.
1993-03-03 05:56:52 +00:00
Fred Fish
312bef9d21
* aoutx.h (string.h): Include for strchr and friends.
...
* archive.c (string.h): Include for memchr and friends.
* elf32.c (string.h): Include for strrchr and friends.
1993-03-03 01:54:42 +00:00
Ken Raeburn
4743848f07
keep new elf files
1993-03-02 17:36:08 +00:00
Ken Raeburn
14c5897713
Document damage^H^H^H^H^H^Hwork done so far tonight.
...
Mostly playing with elves.
1993-02-27 07:34:47 +00:00
Ken Raeburn
81187b5475
revised elf support
1993-02-27 07:05:09 +00:00
Steve Chamberlain
2ebd09764b
symbol srec stuff
1993-02-27 01:43:10 +00:00
Ken Raeburn
539a840f7b
* elf.c (elf_write_object_contents): Section ".shstrtab" should be
...
type SHT_STRTAB. Don't alter file offset for section 0.
(reloc_type_names): Now an array instead of a macro. Still inside
"#if 0", since it's used only in debugging code also in "#if 0".
(struct elf_reloc_map_elt, struct elf_reloc_map): New types.
(sort_reloc_map): New function.
(sparc_reloc_map): New variable.
(elf_bfd_reloc_type_lookup): New function.
Now bfd-gas can create valid empty object files for sun4sol2.
1993-02-25 14:28:02 +00:00
Ian Lance Taylor
c0f6093b0c
* Minor cleanups provoked by gcc warnings:
...
* aoutx.h (NAME(aout, reloc_type_lookup)),
cpu-h8300.c (local_bfd_reloc_type_lookup),
cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to
switches.
* archive.c (do_slurp_bsd_armap, do_slurp_coff_armap),
ieee.c (ieee_slurp_section_data),
elf.c (elf_make_sections, elf_fake_sections,
elf_compute_section_file_positions, elf_write_object_contents):
Removed unused variables.
* archures.c: Removed /* from within comment.
* bout.c (b_out_squirt_out_relocs): Initialize r_extern.
* oasys.c (oasys_write_data): Initialize i.
1993-02-23 21:08:32 +00:00
Ian Lance Taylor
8feff71726
* bfd-in.h (JUMP_TABLE): Added bfd_reloc_type_lookup and
...
bfd_make_debug_symbol; they were already in the target structure.
* Adjusted all uses of JUMP_TABLE.
* coffgen.c, libcoff-in.h (coff_bfd_make_debug_symbol): Renamed
from coff_make_debug_symbol.
* libcoff.h: Updated accordingly.
1993-02-23 20:24:06 +00:00
Per Bothner
85fe7cfff3
* libcoff.h (obj_raw_syment_coun): New macro.
...
* coffgen.c (coff_get_normalized_symtab): Initialize
raw_syment_count.
* coffgen.c (coff_find_nearest_line): Numerous little fixes.
1993-02-23 06:50:49 +00:00
Ian Lance Taylor
20f10b59ff
* coff-mips.c (ecoff_set_symbol_info): stBlock symbols are always
...
debugging symbols.
(ecoff_get_debug): Offset the fdr adr by the adr of the first pdr,
for compatibility with tools from MIPS.
* config/bigmips.mt: New file; default vector is ecoff_big_vec.
* config/irix3.mt, config/irix4.mt: Removed.
* configure.in (mips-*-ecoff): New target; uses bigmips.mt.
(mips-sgi-*, mips-big-*): Use bigmips rather than irix3.
1993-02-22 23:17:45 +00:00
K. Richard Pixley
2338f9c4dd
* trad-core.c (trad_unix_make_empty_symbol): wrap PARAMS around an
...
ansi definition which otherwise confuses non-ansi compilers.
1993-02-17 21:02:01 +00:00
K. Richard Pixley
ec69652fc5
aout-adobe.c (aout_adobe_object_p): eliminate a warning from vax
...
ultrix cc by forward declaring getenv as is done in bfd_find_target.
1993-02-17 20:30:19 +00:00
K. Richard Pixley
b40a3bf26f
cast an enum into unsigned char avoiding a fatal error in vax ultrix 4.2 cc.
1993-02-17 01:58:47 +00:00
Ian Lance Taylor
0dc1bc8b3f
Added 1993 copyrights to files that I have changed in 1993. Some were
...
missing 1992 copyrights, although they changed in 1992.
1993-02-16 16:54:20 +00:00
John Gilmore
ec30dfba17
Roll to version 2.1.
1993-02-16 08:49:29 +00:00
John Gilmore
3039e8eeaf
* oasys.c (oasys_write_object_contents): Lint.
...
* srec.c: Whitespace cleanup.
1993-02-16 04:44:28 +00:00
David D. Zuhn
372c8dcf81
no more v9 code in aoutx.h
1993-02-13 08:56:24 +00:00
Ian Lance Taylor
e61cfdf820
Fri Feb 12 14:23:07 1993 Ian Lance Taylor (ian@cygnus.com)
...
* coffgen.c (coff_print_symbol): Print correct tagndx value;
cleaned up output formatting a bit.
1993-02-12 22:24:47 +00:00
Steve Chamberlain
142ce43edd
* coffcode.h (coff_set_arch_mach_hook): *FIXME* the H8/300 is always
...
relaxable. Should be moved somewhere else.
1993-02-12 16:32:32 +00:00
Ken Raeburn
98e1c9e572
Eliminated uses of DEFUN. Added seclet_link element to vectors.
1993-02-11 19:26:40 +00:00
Steve Chamberlain
ff975a2c4c
H8/500 support
1993-02-04 20:59:55 +00:00
Ian Lance Taylor
a3b3dbdda5
Thu Feb 4 12:35:02 1993 Ian Lance Taylor (ian@cygnus.com)
...
* libecoff.h: New file. Defines ECOFF backend data for gdb.
* coff-mips.c: Now includes libecoff.h.
(ecoff_data_type): Moved to libecoff.h.
(ecoff_slurp_symbolic_info): Made globally visible so that gdb can
call it. If there is ever another ECOFF target, this and the
swapping functions should be accessed via an ECOFF specific target
vector.
Makefile.in (coff-mips.o): Depends on libecoff.h.
1993-02-04 20:47:10 +00:00
Ian Lance Taylor
1a8c6d5b92
Wed Feb 3 09:14:36 1993 Ian Lance Taylor (ian@cygnus.com)
...
* coffcode.h: Removed MIPS specific information, since coff-mips.c
no longer includes this file.
1993-02-03 20:08:22 +00:00
Ian Lance Taylor
63fd1097f5
Wed Feb 3 09:14:36 1993 Ian Lance Taylor (ian@cygnus.com)
...
* coff-msym.c (ecoff_swap_fdr_in, ecoff_swap_ext_in): Set reserved
bits to 0 to make comparison test useful.
* config/irix3.mh, config/irix4.mh (HDEFINES): Set to -G 4 to
avoid overflowing GP accessible sections in binutils/objdump.
1993-02-03 17:17:34 +00:00
Ian Lance Taylor
6d18a99d25
Fix some minor bugs, make work on big endian machines, remember
...
text_start and text_end for future use by gdb and current use by
find_nearest_line. Still covered by last ChangeLog entry, I think.
1993-02-03 17:14:11 +00:00
John Gilmore
4bdbc8d68d
Keep mipsbsd.h.
1993-02-03 07:42:00 +00:00
John Gilmore
3480cc3eb4
Remove "done in pwd" msg.
1993-02-03 07:41:32 +00:00
John Gilmore
c4fa327144
Eliminate extraneous messages and RCS log.
1993-02-03 07:41:07 +00:00
John Gilmore
2f15ee07dd
Remove "done in" message.
1993-02-03 07:39:55 +00:00
John Gilmore
9dec3920f0
Add aout-mipsbsd.c
1993-02-03 05:24:02 +00:00
Per Bothner
96f03b0f0d
* aoutx.h (NAME(aout,slurp_symbol_table)): Made symbol
...
reading more robust: Fail if string index is out of string
table range.
1993-02-02 23:38:38 +00:00
Ian Lance Taylor
f6409552c7
General cleanup--added prototypes, removed a few unused variables,
...
fixed up comments a bit. Also set version stamp in a.out header to
0x20a rather than 0, to keep the Ultrix linker happy.
1993-02-02 22:17:27 +00:00
Ian Lance Taylor
5e462ed938
Create a .scommon section for each input BFD so the linker has
...
something to attach small common symbols to. Then avoid writing out
the (empty) .scommon section for the output BFD.
Tue Feb 2 11:41:06 1993 Ian Lance Taylor (ian@cygnus.com )
* coff-mips.c: Completed support for linker and binutils.
1993-02-02 19:43:44 +00:00
Ken Raeburn
5cd3dcffba
from ralphc: mips-aout support
1993-02-01 21:42:59 +00:00
Ken Raeburn
71c0bae098
from ralphc: recognize some mips variants
1993-02-01 21:40:53 +00:00
Ken Raeburn
7a35367ceb
accept mips-dec-bsd* and i?86-*-elf
1993-02-01 21:36:59 +00:00
Ken Raeburn
00ee2c249f
changes from Ralph Campbell @ Pyramid for MIPS a.out (BSD 4.4) support
1993-02-01 21:35:16 +00:00
Ian Lance Taylor
23ba15b775
Checkpoint. Can now create MIPS style armap hash tables. Fixed some
...
linker problems. The linker still needs to learn to put SCommon
symbols in .sbss rather than .bss.
1993-01-29 23:24:20 +00:00
John Gilmore
9d9fa9dca8
Fix typo in file name.
1993-01-29 06:32:36 +00:00
John Gilmore
536c2ad4be
Fix minor bugs reported by Carl Greco, <cgreco@parrot.creighton.edu>:
...
* hosts/delta88.h (strtol): Fix prototype.
* config/m88k-coff.mh (SELECT_ARCHITECTURES): Fix name.
1993-01-29 05:04:45 +00:00
Ian Lance Taylor
bf4b84bc49
Checkpoint. Linker appears to work.
1993-01-27 19:33:48 +00:00