Commit a9b01f00 by David Edelsohn Committed by David Edelsohn

simple-object-xcoff.c: New file.

        * simple-object-xcoff.c: New file.
        * Makefile.in: Add it to build machinery.
        * simple-object-common.h (simple_object_xcoff_functions): Declare.
        * simple-object.c (format_functions): Add
        simple_object_xcoff_functions.

From-SVN: r194774
parent 0331d94d
2013-01-01 David Edelsohn <dje.gcc@gmail.com>
* simple-object-xcoff.c: New file.
* Makefile.in: Add it to build machinery.
* simple-object-common.h (simple_object_xcoff_functions): Declare.
* simple-object.c (format_functions): Add
simple_object_xcoff_functions.
2012-11-10 Jason Merrill <jason@redhat.com> 2012-11-10 Jason Merrill <jason@redhat.com>
* cp-demangle.c (d_unqualified_name): Handle abi tags here. * cp-demangle.c (d_unqualified_name): Handle abi tags here.
......
...@@ -146,7 +146,7 @@ CFILES = alloca.c argv.c asprintf.c atexit.c \ ...@@ -146,7 +146,7 @@ CFILES = alloca.c argv.c asprintf.c atexit.c \
random.c regex.c rename.c rindex.c \ random.c regex.c rename.c rindex.c \
safe-ctype.c setenv.c setproctitle.c sha1.c sigsetmask.c \ safe-ctype.c setenv.c setproctitle.c sha1.c sigsetmask.c \
simple-object.c simple-object-coff.c simple-object-elf.c \ simple-object.c simple-object-coff.c simple-object-elf.c \
simple-object-mach-o.c \ simple-object-mach-o.c simple-object-xcoff.c \
snprintf.c sort.c \ snprintf.c sort.c \
spaces.c splay-tree.c stack-limit.c stpcpy.c stpncpy.c \ spaces.c splay-tree.c stack-limit.c stpcpy.c stpncpy.c \
strcasecmp.c strchr.c strdup.c strerror.c strncasecmp.c \ strcasecmp.c strchr.c strdup.c strerror.c strncasecmp.c \
...@@ -183,6 +183,7 @@ REQUIRED_OFILES = \ ...@@ -183,6 +183,7 @@ REQUIRED_OFILES = \
./safe-ctype.$(objext) \ ./safe-ctype.$(objext) \
./simple-object.$(objext) ./simple-object-coff.$(objext) \ ./simple-object.$(objext) ./simple-object-coff.$(objext) \
./simple-object-elf.$(objext) ./simple-object-mach-o.$(objext) \ ./simple-object-elf.$(objext) ./simple-object-mach-o.$(objext) \
./simple-object-xcoff.$(objext) \
./sort.$(objext) ./spaces.$(objext) \ ./sort.$(objext) ./spaces.$(objext) \
./splay-tree.$(objext) ./stack-limit.$(objext) \ ./splay-tree.$(objext) ./stack-limit.$(objext) \
./strerror.$(objext) ./strsignal.$(objext) \ ./strerror.$(objext) ./strsignal.$(objext) \
...@@ -1009,6 +1010,14 @@ $(CONFIGURED_OFILES): stamp-picdir ...@@ -1009,6 +1010,14 @@ $(CONFIGURED_OFILES): stamp-picdir
else true; fi else true; fi
$(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION) $(COMPILE.c) $(srcdir)/simple-object-mach-o.c $(OUTPUT_OPTION)
./simple-object-xcoff.$(objext): $(srcdir)/simple-object-xcoff.c config.h \
$(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
$(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
if [ x"$(PICFLAG)" != x ]; then \
$(COMPILE.c) $(PICFLAG) $(srcdir)/simple-object-xcoff.c -o pic/$@; \
else true; fi
$(COMPILE.c) $(srcdir)/simple-object-xcoff.c $(OUTPUT_OPTION)
./simple-object.$(objext): $(srcdir)/simple-object.c config.h \ ./simple-object.$(objext): $(srcdir)/simple-object.c config.h \
$(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
$(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h $(srcdir)/simple-object-common.h $(INCDIR)/simple-object.h
......
...@@ -148,6 +148,7 @@ struct simple_object_functions ...@@ -148,6 +148,7 @@ struct simple_object_functions
extern const struct simple_object_functions simple_object_coff_functions; extern const struct simple_object_functions simple_object_coff_functions;
extern const struct simple_object_functions simple_object_elf_functions; extern const struct simple_object_functions simple_object_elf_functions;
extern const struct simple_object_functions simple_object_mach_o_functions; extern const struct simple_object_functions simple_object_mach_o_functions;
extern const struct simple_object_functions simple_object_xcoff_functions;
/* Read SIZE bytes from DESCRIPTOR at file offset OFFSET into BUFFER. /* Read SIZE bytes from DESCRIPTOR at file offset OFFSET into BUFFER.
Return non-zero on success. On failure return 0 and set *ERRMSG Return non-zero on success. On failure return 0 and set *ERRMSG
......
...@@ -51,7 +51,8 @@ static const struct simple_object_functions * const format_functions[] = ...@@ -51,7 +51,8 @@ static const struct simple_object_functions * const format_functions[] =
{ {
&simple_object_elf_functions, &simple_object_elf_functions,
&simple_object_mach_o_functions, &simple_object_mach_o_functions,
&simple_object_coff_functions &simple_object_coff_functions,
&simple_object_xcoff_functions
}; };
/* Read data from a file using the simple_object error reporting /* Read data from a file using the simple_object error reporting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment