diff options
author | Fred Fish <fnf@specifix.com> | 1992-01-29 05:16:49 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-01-29 05:16:49 +0000 |
commit | d01cd8fc7586cacab92f7320bc55f0877b7570b4 (patch) | |
tree | 4862ee812bfe2a7906042fac6353b168e168d9c2 /bfd | |
parent | 4a074bea28cc88cc0c1d2b69e1b2723aa0f4a519 (diff) | |
download | gdb-d01cd8fc7586cacab92f7320bc55f0877b7570b4.zip gdb-d01cd8fc7586cacab92f7320bc55f0877b7570b4.tar.gz gdb-d01cd8fc7586cacab92f7320bc55f0877b7570b4.tar.bz2 |
Makefile.in: Add dependencies for various coff-*.o files.
elf.c: Remove extraneous paren from core_prpsinfo and core_prpstatus
macros, rename core_prpstatus to core_prstatus. Replace references to
old section "size" member with new "_raw_size" member. Implement
elf_make_empty_symbol, which is now used.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 15 | ||||
-rw-r--r-- | bfd/Makefile.in | 30 | ||||
-rw-r--r-- | bfd/elf.c | 31 |
3 files changed, 60 insertions, 16 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f1e4565..27f9df4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,18 @@ +Tue Jan 28 21:10:51 1992 Fred Fish (fnf at cygnus.com) + + * Makefile.in: Add dependencies for various coff-*.o files. + + * elf.c: Remove extraneous paren from core_prpsinfo and + core_prpstatus macros, rename core_prpstatus to core_prstatus. + Replace references to old section "size" member with new + "_raw_size" member. Implement elf_make_empty_symbol, which + is now used. + +Tue Jan 28 14:51:40 1992 Stu Grossman (grossman at cygnus.com) + + * trad-core.c, bfd.c, ../include/bfd.h: Various fixes for PMAX + core reading. + Tue Jan 28 10:46:32 1992 Steve Chamberlain (sac at rtl.cygnus.com) * coffcode.h (bfd_coff_relax_section): now static. diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 160aece..1572e98 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -37,9 +37,9 @@ man6dir = $(mandir)/man6 man7dir = $(mandir)/man7 man8dir = $(mandir)/man8 man9dir = $(mandir)/man9 -infodir = $(prefix)/info +infodir = $(datadir)/info includedir = $(prefix)/include -docdir = $(datadir)/doc +docdir = $(srcdir)/doc SHELL = /bin/sh @@ -70,7 +70,7 @@ CFLAGS = $(MINUS_G) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960 BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \ - archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o + archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o seclet.o BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \ cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o @@ -91,7 +91,7 @@ BFD_H=$(INCDIR)/bfd.h CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \ coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \ oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c \ - format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c \ + format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c seclet.c \ coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \ cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \ cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h8300.c @@ -176,7 +176,7 @@ TAGS: force etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c clean: - rm -f *.[oa] *~ core *.E *.p *.ip + rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" clobber realclean: clean @@ -275,7 +275,13 @@ Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) dep: $(CFILES) mkdep $(CFLAGS) $? +gen-aout: $(srcdir)/gen-aout.c + $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c +aout-params.h: gen-aout + ./gen-aout > aout-params.h + +host-aout.o: aout-params.h headers: (cd $(docdir); $(MAKE) protos) @@ -322,6 +328,20 @@ ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ $(INCDIR)/ieee.h libieee.h coff-h8300.o: coff-h8300.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ $(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h +coff-a29k.o: coff-a29k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h +coff-i386.o: coff-i386.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h +coff-i960.o: coff-i960.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h +coff-m68k.o: coff-m68k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h +coff-m88k.o: coff-m88k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h +coff-mips.o: coff-mips.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff/mips.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h +coff-rs6000.o: coff-rs6000.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff/rs6000.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h format.o : format.c $(INCDIR)/bfd.h \ $(INCDIR)/obstack.h libbfd.h section.o : section.c $(INCDIR)/bfd.h \ @@ -106,8 +106,8 @@ typedef struct elf_core_tdata_struct void *prpsinfo; /* The raw /proc prpsinfo structure */ } elf_core_tdata; -#define core_prpsinfo(bfd) (((bfd)->tdata.elf_core_data))->prpsinfo) -#define core_prpstatus(bfd) (((bfd)->tdata.elf_core_data))->prpstatus) +#define core_prpsinfo(bfd) (((bfd)->tdata.elf_core_data) -> prpsinfo) +#define core_prstatus(bfd) (((bfd)->tdata.elf_core_data) -> prstatus) typedef struct elf_obj_tdata_struct @@ -357,7 +357,7 @@ DEFUN(bfd_prstatus,(abfd, descdata, descsz, filepos), if (descsz == sizeof (prstatus_t)) { newsect = bfd_make_section (abfd, ".reg"); - newsect -> size = sizeof (gregset_t); + newsect -> _raw_size = sizeof (gregset_t); newsect -> filepos = filepos + (long) (((prstatus_t *)0) -> pr_reg); newsect -> flags = SEC_ALLOC | SEC_HAS_CONTENTS; newsect -> alignment_power = 2; @@ -400,7 +400,7 @@ DEFUN(bfd_fpregset,(abfd, descdata, descsz, filepos), if (descsz == sizeof (fpregset_t)) { newsect = bfd_make_section (abfd, ".reg2"); - newsect -> size = sizeof (fpregset_t); + newsect -> _raw_size = sizeof (fpregset_t); newsect -> filepos = filepos; newsect -> flags = SEC_ALLOC | SEC_HAS_CONTENTS; newsect -> alignment_power = 2; @@ -1157,13 +1157,22 @@ DEFUN (elf_get_symtab, (abfd, alocation), } static asymbol * -elf_make_empty_symbol(abfd) -bfd *abfd; +DEFUN (elf_make_empty_symbol, (abfd), + bfd *abfd) { - fprintf (stderr, "elf_make_empty_symbol unimplemented\n"); - fflush (stderr); - abort (); - return (NULL); + elf_symbol_type *new; + + new = (elf_symbol_type *) bfd_zalloc (abfd, sizeof (elf_symbol_type)); + if (new == NULL) + { + bfd_error = no_memory; + return (NULL); + } + else + { + new -> symbol.the_bfd = abfd; + return (&new -> symbol); + } } static void @@ -1263,7 +1272,7 @@ DEFUN (elf_sizeof_headers, (abfd, reloc), #define elf_bfd_debug_info_accumulate (PROTO(void,(*),(bfd*, struct sec *))) bfd_void #define elf_bfd_get_relocated_section_contents \ bfd_generic_get_relocated_section_contents - +#define elf_bfd_relax_section bfd_generic_relax_section bfd_target elf_big_vec = { /* name: identify kind of target */ |