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.
This commit is contained in:
parent
4a074bea28
commit
d01cd8fc75
|
@ -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)
|
Tue Jan 28 10:46:32 1992 Steve Chamberlain (sac at rtl.cygnus.com)
|
||||||
|
|
||||||
* coffcode.h (bfd_coff_relax_section): now static.
|
* coffcode.h (bfd_coff_relax_section): now static.
|
||||||
|
|
|
@ -37,9 +37,9 @@ man6dir = $(mandir)/man6
|
||||||
man7dir = $(mandir)/man7
|
man7dir = $(mandir)/man7
|
||||||
man8dir = $(mandir)/man8
|
man8dir = $(mandir)/man8
|
||||||
man9dir = $(mandir)/man9
|
man9dir = $(mandir)/man9
|
||||||
infodir = $(prefix)/info
|
infodir = $(datadir)/info
|
||||||
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
||||||
docdir = $(datadir)/doc
|
docdir = $(srcdir)/doc
|
||||||
|
|
||||||
SHELL = /bin/sh
|
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 \
|
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 \
|
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
|
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 \
|
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 \
|
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 \
|
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 \
|
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-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
|
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
|
etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
|
||||||
|
|
||||||
clean:
|
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)"
|
$(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)"
|
||||||
|
|
||||||
clobber realclean: clean
|
clobber realclean: clean
|
||||||
|
@ -275,7 +275,13 @@ Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
|
||||||
dep: $(CFILES)
|
dep: $(CFILES)
|
||||||
mkdep $(CFLAGS) $?
|
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:
|
headers:
|
||||||
(cd $(docdir); $(MAKE) protos)
|
(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
|
$(INCDIR)/ieee.h libieee.h
|
||||||
coff-h8300.o: coff-h8300.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.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
|
$(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 \
|
format.o : format.c $(INCDIR)/bfd.h \
|
||||||
$(INCDIR)/obstack.h libbfd.h
|
$(INCDIR)/obstack.h libbfd.h
|
||||||
section.o : section.c $(INCDIR)/bfd.h \
|
section.o : section.c $(INCDIR)/bfd.h \
|
||||||
|
|
29
bfd/elf.c
29
bfd/elf.c
|
@ -106,8 +106,8 @@ typedef struct elf_core_tdata_struct
|
||||||
void *prpsinfo; /* The raw /proc prpsinfo structure */
|
void *prpsinfo; /* The raw /proc prpsinfo structure */
|
||||||
} elf_core_tdata;
|
} elf_core_tdata;
|
||||||
|
|
||||||
#define core_prpsinfo(bfd) (((bfd)->tdata.elf_core_data))->prpsinfo)
|
#define core_prpsinfo(bfd) (((bfd)->tdata.elf_core_data) -> prpsinfo)
|
||||||
#define core_prpstatus(bfd) (((bfd)->tdata.elf_core_data))->prpstatus)
|
#define core_prstatus(bfd) (((bfd)->tdata.elf_core_data) -> prstatus)
|
||||||
|
|
||||||
|
|
||||||
typedef struct elf_obj_tdata_struct
|
typedef struct elf_obj_tdata_struct
|
||||||
|
@ -357,7 +357,7 @@ DEFUN(bfd_prstatus,(abfd, descdata, descsz, filepos),
|
||||||
if (descsz == sizeof (prstatus_t))
|
if (descsz == sizeof (prstatus_t))
|
||||||
{
|
{
|
||||||
newsect = bfd_make_section (abfd, ".reg");
|
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 -> filepos = filepos + (long) (((prstatus_t *)0) -> pr_reg);
|
||||||
newsect -> flags = SEC_ALLOC | SEC_HAS_CONTENTS;
|
newsect -> flags = SEC_ALLOC | SEC_HAS_CONTENTS;
|
||||||
newsect -> alignment_power = 2;
|
newsect -> alignment_power = 2;
|
||||||
|
@ -400,7 +400,7 @@ DEFUN(bfd_fpregset,(abfd, descdata, descsz, filepos),
|
||||||
if (descsz == sizeof (fpregset_t))
|
if (descsz == sizeof (fpregset_t))
|
||||||
{
|
{
|
||||||
newsect = bfd_make_section (abfd, ".reg2");
|
newsect = bfd_make_section (abfd, ".reg2");
|
||||||
newsect -> size = sizeof (fpregset_t);
|
newsect -> _raw_size = sizeof (fpregset_t);
|
||||||
newsect -> filepos = filepos;
|
newsect -> filepos = filepos;
|
||||||
newsect -> flags = SEC_ALLOC | SEC_HAS_CONTENTS;
|
newsect -> flags = SEC_ALLOC | SEC_HAS_CONTENTS;
|
||||||
newsect -> alignment_power = 2;
|
newsect -> alignment_power = 2;
|
||||||
|
@ -1157,13 +1157,22 @@ DEFUN (elf_get_symtab, (abfd, alocation),
|
||||||
}
|
}
|
||||||
|
|
||||||
static asymbol *
|
static asymbol *
|
||||||
elf_make_empty_symbol(abfd)
|
DEFUN (elf_make_empty_symbol, (abfd),
|
||||||
bfd *abfd;
|
bfd *abfd)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "elf_make_empty_symbol unimplemented\n");
|
elf_symbol_type *new;
|
||||||
fflush (stderr);
|
|
||||||
abort ();
|
new = (elf_symbol_type *) bfd_zalloc (abfd, sizeof (elf_symbol_type));
|
||||||
|
if (new == NULL)
|
||||||
|
{
|
||||||
|
bfd_error = no_memory;
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
new -> symbol.the_bfd = abfd;
|
||||||
|
return (&new -> symbol);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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_debug_info_accumulate (PROTO(void,(*),(bfd*, struct sec *))) bfd_void
|
||||||
#define elf_bfd_get_relocated_section_contents \
|
#define elf_bfd_get_relocated_section_contents \
|
||||||
bfd_generic_get_relocated_section_contents
|
bfd_generic_get_relocated_section_contents
|
||||||
|
#define elf_bfd_relax_section bfd_generic_relax_section
|
||||||
bfd_target elf_big_vec =
|
bfd_target elf_big_vec =
|
||||||
{
|
{
|
||||||
/* name: identify kind of target */
|
/* name: identify kind of target */
|
||||||
|
|
Loading…
Reference in New Issue