Remove libr dependency and add LLVM dependency in bfd
This commit is contained in:
parent
0cf0e48af0
commit
12d1289ad6
|
@ -52,10 +52,13 @@ ZLIBINC = @zlibinc@
|
||||||
|
|
||||||
WARN_CFLAGS = @WARN_CFLAGS@
|
WARN_CFLAGS = @WARN_CFLAGS@
|
||||||
NO_WERROR = @NO_WERROR@
|
NO_WERROR = @NO_WERROR@
|
||||||
AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) $(DEPS_CFLAGS)
|
|
||||||
AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"'
|
|
||||||
|
|
||||||
AM_LIBS = $(DEPS_LIBS)
|
AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
|
||||||
|
AM_CXXFLAGS = -Werror $(LLVM_CXXFLAGS)
|
||||||
|
AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"'
|
||||||
|
AM_LIBS = $(LLVM_LIBS)
|
||||||
|
|
||||||
|
libbfd_la_LDFLAGS += $(LLVM_LDFLAGS)
|
||||||
|
|
||||||
if PLUGINS
|
if PLUGINS
|
||||||
bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
|
bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
|
||||||
|
@ -400,8 +403,7 @@ BFD32_BACKENDS = \
|
||||||
xcofflink.lo \
|
xcofflink.lo \
|
||||||
xsym.lo \
|
xsym.lo \
|
||||||
xtensa-isa.lo \
|
xtensa-isa.lo \
|
||||||
xtensa-modules.lo \
|
xtensa-modules.lo
|
||||||
pdb.lo
|
|
||||||
|
|
||||||
BFD32_BACKENDS_CFILES = \
|
BFD32_BACKENDS_CFILES = \
|
||||||
aout-cris.c \
|
aout-cris.c \
|
||||||
|
@ -536,8 +538,13 @@ BFD32_BACKENDS_CFILES = \
|
||||||
xcofflink.c \
|
xcofflink.c \
|
||||||
xsym.c \
|
xsym.c \
|
||||||
xtensa-isa.c \
|
xtensa-isa.c \
|
||||||
xtensa-modules.c \
|
xtensa-modules.c
|
||||||
pdb.c
|
|
||||||
|
PDB_CXXFILES = \
|
||||||
|
pdb.cpp
|
||||||
|
|
||||||
|
PDB_OBJS = \
|
||||||
|
pdb.lo
|
||||||
|
|
||||||
# The .o files needed by all of the 64 bit vectors that are configured into
|
# The .o files needed by all of the 64 bit vectors that are configured into
|
||||||
# target_vector in targets.c if configured with --enable-targets=all
|
# target_vector in targets.c if configured with --enable-targets=all
|
||||||
|
@ -743,7 +750,7 @@ all diststuff: info
|
||||||
# BFD_MACHINES Architecture-specific routines the configured targets need.
|
# BFD_MACHINES Architecture-specific routines the configured targets need.
|
||||||
# COREFILE Core file routines for a native configuration
|
# COREFILE Core file routines for a native configuration
|
||||||
# bfd64_libs Routines for 64bit support
|
# bfd64_libs Routines for 64bit support
|
||||||
OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
|
OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@ $(PDB_OBJS)
|
||||||
|
|
||||||
stamp-ofiles: Makefile
|
stamp-ofiles: Makefile
|
||||||
rm -f tofiles
|
rm -f tofiles
|
||||||
|
@ -764,7 +771,7 @@ ofiles: stamp-ofiles ; @true
|
||||||
# libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
|
# libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
|
||||||
# However, list all sources in EXTRA_libbfd_la_SOURCES so the
|
# However, list all sources in EXTRA_libbfd_la_SOURCES so the
|
||||||
# dependency tracking fragments are picked up in the Makefile.
|
# dependency tracking fragments are picked up in the Makefile.
|
||||||
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
|
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES) $(PDB_CXXFILES)
|
||||||
EXTRA_libbfd_la_SOURCES = $(CFILES)
|
EXTRA_libbfd_la_SOURCES = $(CFILES)
|
||||||
libbfd_la_DEPENDENCIES = $(OFILES) ofiles
|
libbfd_la_DEPENDENCIES = $(OFILES) ofiles
|
||||||
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB)
|
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB)
|
||||||
|
@ -902,7 +909,8 @@ $(BFD32_LIBS) \
|
||||||
$(ALL_MACHINES) \
|
$(ALL_MACHINES) \
|
||||||
$(BFD32_BACKENDS) \
|
$(BFD32_BACKENDS) \
|
||||||
$(BFD64_BACKENDS) \
|
$(BFD64_BACKENDS) \
|
||||||
$(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
|
$(OPTIONAL_BACKENDS) \
|
||||||
|
$(PDB_OBJS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
|
||||||
|
|
||||||
host-aout.lo: Makefile
|
host-aout.lo: Makefile
|
||||||
|
|
||||||
|
|
|
@ -187,15 +187,16 @@ am__objects_1 = archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo \
|
||||||
opncls.lo reloc.lo section.lo simple.lo stab-syms.lo stabs.lo \
|
opncls.lo reloc.lo section.lo simple.lo stab-syms.lo stabs.lo \
|
||||||
syms.lo targets.lo binary.lo ihex.lo srec.lo tekhex.lo \
|
syms.lo targets.lo binary.lo ihex.lo srec.lo tekhex.lo \
|
||||||
verilog.lo
|
verilog.lo
|
||||||
am_libbfd_la_OBJECTS = $(am__objects_1)
|
am__objects_2 = pdb.lo
|
||||||
|
am_libbfd_la_OBJECTS = $(am__objects_1) $(am__objects_2)
|
||||||
libbfd_la_OBJECTS = $(am_libbfd_la_OBJECTS)
|
libbfd_la_OBJECTS = $(am_libbfd_la_OBJECTS)
|
||||||
AM_V_lt = $(am__v_lt_@AM_V@)
|
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||||
am__v_lt_0 = --silent
|
am__v_lt_0 = --silent
|
||||||
am__v_lt_1 =
|
am__v_lt_1 =
|
||||||
libbfd_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
libbfd_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||||
$(libbfd_la_LDFLAGS) $(LDFLAGS) -o $@
|
$(CXXFLAGS) $(libbfd_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
@INSTALL_LIBBFD_FALSE@am_libbfd_la_rpath =
|
@INSTALL_LIBBFD_FALSE@am_libbfd_la_rpath =
|
||||||
@INSTALL_LIBBFD_TRUE@am_libbfd_la_rpath = -rpath $(bfdlibdir)
|
@INSTALL_LIBBFD_TRUE@am_libbfd_la_rpath = -rpath $(bfdlibdir)
|
||||||
AM_V_P = $(am__v_P_@AM_V@)
|
AM_V_P = $(am__v_P_@AM_V@)
|
||||||
|
@ -383,6 +384,24 @@ AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||||
am__v_CCLD_1 =
|
am__v_CCLD_1 =
|
||||||
|
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||||
|
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
|
||||||
|
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||||
|
$(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
AM_V_CXX = $(am__v_CXX_@AM_V@)
|
||||||
|
am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
|
||||||
|
am__v_CXX_0 = @echo " CXX " $@;
|
||||||
|
am__v_CXX_1 =
|
||||||
|
CXXLD = $(CXX)
|
||||||
|
CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||||
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||||
|
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
|
||||||
|
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
|
||||||
|
am__v_CXXLD_0 = @echo " CXXLD " $@;
|
||||||
|
am__v_CXXLD_1 =
|
||||||
SOURCES = $(libbfd_a_SOURCES) $(libbfd_la_SOURCES) \
|
SOURCES = $(libbfd_a_SOURCES) $(libbfd_la_SOURCES) \
|
||||||
$(EXTRA_libbfd_la_SOURCES)
|
$(EXTRA_libbfd_la_SOURCES)
|
||||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||||
|
@ -456,13 +475,15 @@ COREFILE = @COREFILE@
|
||||||
COREFLAG = @COREFLAG@
|
COREFLAG = @COREFLAG@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
CXXDEPMODE = @CXXDEPMODE@
|
||||||
|
CXXFLAGS = @CXXFLAGS@
|
||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DATADIRNAME = @DATADIRNAME@
|
DATADIRNAME = @DATADIRNAME@
|
||||||
DEBUGDIR = @DEBUGDIR@
|
DEBUGDIR = @DEBUGDIR@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
DEPS_CFLAGS = @DEPS_CFLAGS@
|
|
||||||
DEPS_LIBS = @DEPS_LIBS@
|
|
||||||
DSYMUTIL = @DSYMUTIL@
|
DSYMUTIL = @DSYMUTIL@
|
||||||
DUMPBIN = @DUMPBIN@
|
DUMPBIN = @DUMPBIN@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
|
@ -492,6 +513,10 @@ LIBOBJS = @LIBOBJS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LLVM_CONFIG_FOUND = @LLVM_CONFIG_FOUND@
|
||||||
|
LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
|
||||||
|
LLVM_LDFLAGS = @LLVM_LDFLAGS@
|
||||||
|
LLVM_LIBS = @LLVM_LIBS@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAINT = @MAINT@
|
MAINT = @MAINT@
|
||||||
|
@ -516,9 +541,6 @@ PACKAGE_URL = @PACKAGE_URL@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
PKGVERSION = @PKGVERSION@
|
PKGVERSION = @PKGVERSION@
|
||||||
PKG_CONFIG = @PKG_CONFIG@
|
|
||||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
|
||||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
|
||||||
POSUB = @POSUB@
|
POSUB = @POSUB@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
REPORT_BUGS_TEXI = @REPORT_BUGS_TEXI@
|
REPORT_BUGS_TEXI = @REPORT_BUGS_TEXI@
|
||||||
|
@ -541,6 +563,7 @@ abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
abs_top_srcdir = @abs_top_srcdir@
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
ac_ct_CC = @ac_ct_CC@
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_CXX = @ac_ct_CXX@
|
||||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
all_backends = @all_backends@
|
all_backends = @all_backends@
|
||||||
am__include = @am__include@
|
am__include = @am__include@
|
||||||
|
@ -618,8 +641,8 @@ INCDIR = $(srcdir)/../include
|
||||||
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
||||||
SUBDIRS = doc po
|
SUBDIRS = doc po
|
||||||
bfddocdir = doc
|
bfddocdir = doc
|
||||||
libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
|
libbfd_la_LDFLAGS = $(am__append_1) $(LLVM_LDFLAGS) -release `cat \
|
||||||
@SHARED_LDFLAGS@ $(am__empty)
|
libtool-soversion` @SHARED_LDFLAGS@
|
||||||
@INSTALL_LIBBFD_TRUE@bfdlib_LTLIBRARIES = libbfd.la
|
@INSTALL_LIBBFD_TRUE@bfdlib_LTLIBRARIES = libbfd.la
|
||||||
@INSTALL_LIBBFD_FALSE@bfdinclude_HEADERS = $(am__append_2)
|
@INSTALL_LIBBFD_FALSE@bfdinclude_HEADERS = $(am__append_2)
|
||||||
@INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) \
|
@INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) \
|
||||||
|
@ -634,11 +657,12 @@ libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
|
||||||
# case both are empty.
|
# case both are empty.
|
||||||
ZLIB = @zlibdir@ -lz
|
ZLIB = @zlibdir@ -lz
|
||||||
ZLIBINC = @zlibinc@
|
ZLIBINC = @zlibinc@
|
||||||
AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) $(DEPS_CFLAGS)
|
AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
|
||||||
|
AM_CXXFLAGS = -Werror $(LLVM_CXXFLAGS)
|
||||||
AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"' @HDEFINES@ \
|
AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"' @HDEFINES@ \
|
||||||
@COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) $(HAVEVECS) \
|
@COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) $(HAVEVECS) \
|
||||||
@INCINTL@ $(am__empty)
|
@INCINTL@ $(am__empty)
|
||||||
AM_LIBS = $(DEPS_LIBS)
|
AM_LIBS = $(LLVM_LIBS)
|
||||||
@PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@
|
@PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@
|
||||||
|
|
||||||
# bfd.h goes here, for now
|
# bfd.h goes here, for now
|
||||||
|
@ -979,8 +1003,7 @@ BFD32_BACKENDS = \
|
||||||
xcofflink.lo \
|
xcofflink.lo \
|
||||||
xsym.lo \
|
xsym.lo \
|
||||||
xtensa-isa.lo \
|
xtensa-isa.lo \
|
||||||
xtensa-modules.lo \
|
xtensa-modules.lo
|
||||||
pdb.lo
|
|
||||||
|
|
||||||
BFD32_BACKENDS_CFILES = \
|
BFD32_BACKENDS_CFILES = \
|
||||||
aout-cris.c \
|
aout-cris.c \
|
||||||
|
@ -1115,8 +1138,13 @@ BFD32_BACKENDS_CFILES = \
|
||||||
xcofflink.c \
|
xcofflink.c \
|
||||||
xsym.c \
|
xsym.c \
|
||||||
xtensa-isa.c \
|
xtensa-isa.c \
|
||||||
xtensa-modules.c \
|
xtensa-modules.c
|
||||||
pdb.c
|
|
||||||
|
PDB_CXXFILES = \
|
||||||
|
pdb.cpp
|
||||||
|
|
||||||
|
PDB_OBJS = \
|
||||||
|
pdb.lo
|
||||||
|
|
||||||
|
|
||||||
# The .o files needed by all of the 64 bit vectors that are configured into
|
# The .o files needed by all of the 64 bit vectors that are configured into
|
||||||
|
@ -1305,13 +1333,13 @@ BLD_POTFILES = $(BUILD_CFILES) $(BUILD_HFILES)
|
||||||
# BFD_MACHINES Architecture-specific routines the configured targets need.
|
# BFD_MACHINES Architecture-specific routines the configured targets need.
|
||||||
# COREFILE Core file routines for a native configuration
|
# COREFILE Core file routines for a native configuration
|
||||||
# bfd64_libs Routines for 64bit support
|
# bfd64_libs Routines for 64bit support
|
||||||
OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
|
OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@ $(PDB_OBJS)
|
||||||
|
|
||||||
# Since BFD64_LIBS is optional and we can't have substitution in
|
# Since BFD64_LIBS is optional and we can't have substitution in
|
||||||
# libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
|
# libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
|
||||||
# However, list all sources in EXTRA_libbfd_la_SOURCES so the
|
# However, list all sources in EXTRA_libbfd_la_SOURCES so the
|
||||||
# dependency tracking fragments are picked up in the Makefile.
|
# dependency tracking fragments are picked up in the Makefile.
|
||||||
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
|
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES) $(PDB_CXXFILES)
|
||||||
EXTRA_libbfd_la_SOURCES = $(CFILES)
|
EXTRA_libbfd_la_SOURCES = $(CFILES)
|
||||||
libbfd_la_DEPENDENCIES = $(OFILES) ofiles
|
libbfd_la_DEPENDENCIES = $(OFILES) ofiles
|
||||||
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB)
|
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB)
|
||||||
|
@ -1343,7 +1371,7 @@ all: $(BUILT_SOURCES) config.h
|
||||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .lo .o .obj
|
.SUFFIXES: .c .cpp .lo .o .obj
|
||||||
am--refresh: Makefile
|
am--refresh: Makefile
|
||||||
@:
|
@:
|
||||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
@ -1447,7 +1475,7 @@ clean-noinstLTLIBRARIES:
|
||||||
}
|
}
|
||||||
|
|
||||||
libbfd.la: $(libbfd_la_OBJECTS) $(libbfd_la_DEPENDENCIES) $(EXTRA_libbfd_la_DEPENDENCIES)
|
libbfd.la: $(libbfd_la_OBJECTS) $(libbfd_la_DEPENDENCIES) $(EXTRA_libbfd_la_DEPENDENCIES)
|
||||||
$(AM_V_CCLD)$(libbfd_la_LINK) $(am_libbfd_la_rpath) $(libbfd_la_OBJECTS) $(libbfd_la_LIBADD) $(LIBS)
|
$(AM_V_CXXLD)$(libbfd_la_LINK) $(am_libbfd_la_rpath) $(libbfd_la_OBJECTS) $(libbfd_la_LIBADD) $(LIBS)
|
||||||
|
|
||||||
mostlyclean-compile:
|
mostlyclean-compile:
|
||||||
-rm -f *.$(OBJEXT)
|
-rm -f *.$(OBJEXT)
|
||||||
|
@ -1784,6 +1812,27 @@ am--depfiles: $(am__depfiles_remade)
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cpp.o:
|
||||||
|
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
|
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
.cpp.obj:
|
||||||
|
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.cpp.lo:
|
||||||
|
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
|
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
mostlyclean-libtool:
|
mostlyclean-libtool:
|
||||||
-rm -f *.lo
|
-rm -f *.lo
|
||||||
|
|
||||||
|
@ -2795,7 +2844,8 @@ $(BFD32_LIBS) \
|
||||||
$(ALL_MACHINES) \
|
$(ALL_MACHINES) \
|
||||||
$(BFD32_BACKENDS) \
|
$(BFD32_BACKENDS) \
|
||||||
$(BFD64_BACKENDS) \
|
$(BFD64_BACKENDS) \
|
||||||
$(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
|
$(OPTIONAL_BACKENDS) \
|
||||||
|
$(PDB_OBJS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
|
||||||
|
|
||||||
host-aout.lo: Makefile
|
host-aout.lo: Makefile
|
||||||
|
|
||||||
|
|
|
@ -20,350 +20,6 @@ You have another version of autoconf. It may work, but is not guaranteed to.
|
||||||
If you have problems, you may need to regenerate the build system entirely.
|
If you have problems, you may need to regenerate the build system entirely.
|
||||||
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
||||||
|
|
||||||
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
|
||||||
# serial 11 (pkg-config-0.29.1)
|
|
||||||
|
|
||||||
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
|
||||||
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
|
|
||||||
dnl
|
|
||||||
dnl This program is free software; you can redistribute it and/or modify
|
|
||||||
dnl it under the terms of the GNU General Public License as published by
|
|
||||||
dnl the Free Software Foundation; either version 2 of the License, or
|
|
||||||
dnl (at your option) any later version.
|
|
||||||
dnl
|
|
||||||
dnl This program is distributed in the hope that it will be useful, but
|
|
||||||
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
dnl General Public License for more details.
|
|
||||||
dnl
|
|
||||||
dnl You should have received a copy of the GNU General Public License
|
|
||||||
dnl along with this program; if not, write to the Free Software
|
|
||||||
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
||||||
dnl 02111-1307, USA.
|
|
||||||
dnl
|
|
||||||
dnl As a special exception to the GNU General Public License, if you
|
|
||||||
dnl distribute this file as part of a program that contains a
|
|
||||||
dnl configuration script generated by Autoconf, you may include it under
|
|
||||||
dnl the same distribution terms that you use for the rest of that
|
|
||||||
dnl program.
|
|
||||||
|
|
||||||
dnl PKG_PREREQ(MIN-VERSION)
|
|
||||||
dnl -----------------------
|
|
||||||
dnl Since: 0.29
|
|
||||||
dnl
|
|
||||||
dnl Verify that the version of the pkg-config macros are at least
|
|
||||||
dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
|
|
||||||
dnl installed version of pkg-config, this checks the developer's version
|
|
||||||
dnl of pkg.m4 when generating configure.
|
|
||||||
dnl
|
|
||||||
dnl To ensure that this macro is defined, also add:
|
|
||||||
dnl m4_ifndef([PKG_PREREQ],
|
|
||||||
dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
|
|
||||||
dnl
|
|
||||||
dnl See the "Since" comment for each macro you use to see what version
|
|
||||||
dnl of the macros you require.
|
|
||||||
m4_defun([PKG_PREREQ],
|
|
||||||
[m4_define([PKG_MACROS_VERSION], [0.29.1])
|
|
||||||
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
|
|
||||||
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
|
|
||||||
])dnl PKG_PREREQ
|
|
||||||
|
|
||||||
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
|
||||||
dnl ----------------------------------
|
|
||||||
dnl Since: 0.16
|
|
||||||
dnl
|
|
||||||
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
|
|
||||||
dnl first found in the path. Checks that the version of pkg-config found
|
|
||||||
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
|
|
||||||
dnl used since that's the first version where most current features of
|
|
||||||
dnl pkg-config existed.
|
|
||||||
AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
|
||||||
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
|
||||||
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
|
|
||||||
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
|
|
||||||
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
|
|
||||||
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
|
|
||||||
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
|
|
||||||
|
|
||||||
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
|
||||||
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
|
||||||
fi
|
|
||||||
if test -n "$PKG_CONFIG"; then
|
|
||||||
_pkg_min_version=m4_default([$1], [0.9.0])
|
|
||||||
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
PKG_CONFIG=""
|
|
||||||
fi
|
|
||||||
fi[]dnl
|
|
||||||
])dnl PKG_PROG_PKG_CONFIG
|
|
||||||
|
|
||||||
dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
|
||||||
dnl -------------------------------------------------------------------
|
|
||||||
dnl Since: 0.18
|
|
||||||
dnl
|
|
||||||
dnl Check to see whether a particular set of modules exists. Similar to
|
|
||||||
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
|
|
||||||
dnl
|
|
||||||
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
||||||
dnl only at the first occurence in configure.ac, so if the first place
|
|
||||||
dnl it's called might be skipped (such as if it is within an "if", you
|
|
||||||
dnl have to call PKG_CHECK_EXISTS manually
|
|
||||||
AC_DEFUN([PKG_CHECK_EXISTS],
|
|
||||||
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
|
||||||
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
|
||||||
m4_default([$2], [:])
|
|
||||||
m4_ifvaln([$3], [else
|
|
||||||
$3])dnl
|
|
||||||
fi])
|
|
||||||
|
|
||||||
dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
|
||||||
dnl ---------------------------------------------
|
|
||||||
dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
|
|
||||||
dnl pkg_failed based on the result.
|
|
||||||
m4_define([_PKG_CONFIG],
|
|
||||||
[if test -n "$$1"; then
|
|
||||||
pkg_cv_[]$1="$$1"
|
|
||||||
elif test -n "$PKG_CONFIG"; then
|
|
||||||
PKG_CHECK_EXISTS([$3],
|
|
||||||
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
|
|
||||||
test "x$?" != "x0" && pkg_failed=yes ],
|
|
||||||
[pkg_failed=yes])
|
|
||||||
else
|
|
||||||
pkg_failed=untried
|
|
||||||
fi[]dnl
|
|
||||||
])dnl _PKG_CONFIG
|
|
||||||
|
|
||||||
dnl _PKG_SHORT_ERRORS_SUPPORTED
|
|
||||||
dnl ---------------------------
|
|
||||||
dnl Internal check to see if pkg-config supports short errors.
|
|
||||||
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
|
|
||||||
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
||||||
_pkg_short_errors_supported=yes
|
|
||||||
else
|
|
||||||
_pkg_short_errors_supported=no
|
|
||||||
fi[]dnl
|
|
||||||
])dnl _PKG_SHORT_ERRORS_SUPPORTED
|
|
||||||
|
|
||||||
|
|
||||||
dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
|
||||||
dnl [ACTION-IF-NOT-FOUND])
|
|
||||||
dnl --------------------------------------------------------------
|
|
||||||
dnl Since: 0.4.0
|
|
||||||
dnl
|
|
||||||
dnl Note that if there is a possibility the first call to
|
|
||||||
dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
|
|
||||||
dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
|
||||||
AC_DEFUN([PKG_CHECK_MODULES],
|
|
||||||
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
||||||
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
|
||||||
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
|
||||||
|
|
||||||
pkg_failed=no
|
|
||||||
AC_MSG_CHECKING([for $1])
|
|
||||||
|
|
||||||
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
|
||||||
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
|
||||||
|
|
||||||
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
|
|
||||||
and $1[]_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details.])
|
|
||||||
|
|
||||||
if test $pkg_failed = yes; then
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
_PKG_SHORT_ERRORS_SUPPORTED
|
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
|
||||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
|
||||||
else
|
|
||||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
|
||||||
fi
|
|
||||||
# Put the nasty error message in config.log where it belongs
|
|
||||||
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
|
||||||
|
|
||||||
m4_default([$4], [AC_MSG_ERROR(
|
|
||||||
[Package requirements ($2) were not met:
|
|
||||||
|
|
||||||
$$1_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
||||||
installed software in a non-standard prefix.
|
|
||||||
|
|
||||||
_PKG_TEXT])[]dnl
|
|
||||||
])
|
|
||||||
elif test $pkg_failed = untried; then
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
m4_default([$4], [AC_MSG_FAILURE(
|
|
||||||
[The pkg-config script could not be found or is too old. Make sure it
|
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
||||||
path to pkg-config.
|
|
||||||
|
|
||||||
_PKG_TEXT
|
|
||||||
|
|
||||||
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
|
|
||||||
])
|
|
||||||
else
|
|
||||||
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
|
||||||
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
$3
|
|
||||||
fi[]dnl
|
|
||||||
])dnl PKG_CHECK_MODULES
|
|
||||||
|
|
||||||
|
|
||||||
dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
|
||||||
dnl [ACTION-IF-NOT-FOUND])
|
|
||||||
dnl ---------------------------------------------------------------------
|
|
||||||
dnl Since: 0.29
|
|
||||||
dnl
|
|
||||||
dnl Checks for existence of MODULES and gathers its build flags with
|
|
||||||
dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
|
|
||||||
dnl and VARIABLE-PREFIX_LIBS from --libs.
|
|
||||||
dnl
|
|
||||||
dnl Note that if there is a possibility the first call to
|
|
||||||
dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
|
|
||||||
dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
|
|
||||||
dnl configure.ac.
|
|
||||||
AC_DEFUN([PKG_CHECK_MODULES_STATIC],
|
|
||||||
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
||||||
_save_PKG_CONFIG=$PKG_CONFIG
|
|
||||||
PKG_CONFIG="$PKG_CONFIG --static"
|
|
||||||
PKG_CHECK_MODULES($@)
|
|
||||||
PKG_CONFIG=$_save_PKG_CONFIG[]dnl
|
|
||||||
])dnl PKG_CHECK_MODULES_STATIC
|
|
||||||
|
|
||||||
|
|
||||||
dnl PKG_INSTALLDIR([DIRECTORY])
|
|
||||||
dnl -------------------------
|
|
||||||
dnl Since: 0.27
|
|
||||||
dnl
|
|
||||||
dnl Substitutes the variable pkgconfigdir as the location where a module
|
|
||||||
dnl should install pkg-config .pc files. By default the directory is
|
|
||||||
dnl $libdir/pkgconfig, but the default can be changed by passing
|
|
||||||
dnl DIRECTORY. The user can override through the --with-pkgconfigdir
|
|
||||||
dnl parameter.
|
|
||||||
AC_DEFUN([PKG_INSTALLDIR],
|
|
||||||
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
|
|
||||||
m4_pushdef([pkg_description],
|
|
||||||
[pkg-config installation directory @<:@]pkg_default[@:>@])
|
|
||||||
AC_ARG_WITH([pkgconfigdir],
|
|
||||||
[AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
|
|
||||||
[with_pkgconfigdir=]pkg_default)
|
|
||||||
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
|
|
||||||
m4_popdef([pkg_default])
|
|
||||||
m4_popdef([pkg_description])
|
|
||||||
])dnl PKG_INSTALLDIR
|
|
||||||
|
|
||||||
|
|
||||||
dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
|
|
||||||
dnl --------------------------------
|
|
||||||
dnl Since: 0.27
|
|
||||||
dnl
|
|
||||||
dnl Substitutes the variable noarch_pkgconfigdir as the location where a
|
|
||||||
dnl module should install arch-independent pkg-config .pc files. By
|
|
||||||
dnl default the directory is $datadir/pkgconfig, but the default can be
|
|
||||||
dnl changed by passing DIRECTORY. The user can override through the
|
|
||||||
dnl --with-noarch-pkgconfigdir parameter.
|
|
||||||
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
|
|
||||||
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
|
|
||||||
m4_pushdef([pkg_description],
|
|
||||||
[pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
|
|
||||||
AC_ARG_WITH([noarch-pkgconfigdir],
|
|
||||||
[AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
|
|
||||||
[with_noarch_pkgconfigdir=]pkg_default)
|
|
||||||
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
|
|
||||||
m4_popdef([pkg_default])
|
|
||||||
m4_popdef([pkg_description])
|
|
||||||
])dnl PKG_NOARCH_INSTALLDIR
|
|
||||||
|
|
||||||
|
|
||||||
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
|
|
||||||
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
|
||||||
dnl -------------------------------------------
|
|
||||||
dnl Since: 0.28
|
|
||||||
dnl
|
|
||||||
dnl Retrieves the value of the pkg-config variable for the given module.
|
|
||||||
AC_DEFUN([PKG_CHECK_VAR],
|
|
||||||
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
||||||
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
|
|
||||||
|
|
||||||
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
|
|
||||||
AS_VAR_COPY([$1], [pkg_cv_][$1])
|
|
||||||
|
|
||||||
AS_VAR_IF([$1], [""], [$5], [$4])dnl
|
|
||||||
])dnl PKG_CHECK_VAR
|
|
||||||
|
|
||||||
dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
||||||
dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
|
|
||||||
dnl [DESCRIPTION], [DEFAULT])
|
|
||||||
dnl ------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Prepare a "--with-" configure option using the lowercase
|
|
||||||
dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
|
|
||||||
dnl PKG_CHECK_MODULES in a single macro.
|
|
||||||
AC_DEFUN([PKG_WITH_MODULES],
|
|
||||||
[
|
|
||||||
m4_pushdef([with_arg], m4_tolower([$1]))
|
|
||||||
|
|
||||||
m4_pushdef([description],
|
|
||||||
[m4_default([$5], [build with ]with_arg[ support])])
|
|
||||||
|
|
||||||
m4_pushdef([def_arg], [m4_default([$6], [auto])])
|
|
||||||
m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
|
|
||||||
m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
|
|
||||||
|
|
||||||
m4_case(def_arg,
|
|
||||||
[yes],[m4_pushdef([with_without], [--without-]with_arg)],
|
|
||||||
[m4_pushdef([with_without],[--with-]with_arg)])
|
|
||||||
|
|
||||||
AC_ARG_WITH(with_arg,
|
|
||||||
AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
|
|
||||||
[AS_TR_SH([with_]with_arg)=def_arg])
|
|
||||||
|
|
||||||
AS_CASE([$AS_TR_SH([with_]with_arg)],
|
|
||||||
[yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
|
|
||||||
[auto],[PKG_CHECK_MODULES([$1],[$2],
|
|
||||||
[m4_n([def_action_if_found]) $3],
|
|
||||||
[m4_n([def_action_if_not_found]) $4])])
|
|
||||||
|
|
||||||
m4_popdef([with_arg])
|
|
||||||
m4_popdef([description])
|
|
||||||
m4_popdef([def_arg])
|
|
||||||
|
|
||||||
])dnl PKG_WITH_MODULES
|
|
||||||
|
|
||||||
dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
||||||
dnl [DESCRIPTION], [DEFAULT])
|
|
||||||
dnl -----------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
|
|
||||||
dnl check._[VARIABLE-PREFIX] is exported as make variable.
|
|
||||||
AC_DEFUN([PKG_HAVE_WITH_MODULES],
|
|
||||||
[
|
|
||||||
PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
|
|
||||||
|
|
||||||
AM_CONDITIONAL([HAVE_][$1],
|
|
||||||
[test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
|
|
||||||
])dnl PKG_HAVE_WITH_MODULES
|
|
||||||
|
|
||||||
dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
||||||
dnl [DESCRIPTION], [DEFAULT])
|
|
||||||
dnl ------------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
|
|
||||||
dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
|
|
||||||
dnl and preprocessor variable.
|
|
||||||
AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
|
|
||||||
[
|
|
||||||
PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
|
|
||||||
|
|
||||||
AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
|
|
||||||
[AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
|
|
||||||
])dnl PKG_HAVE_DEFINE_WITH_MODULES
|
|
||||||
|
|
||||||
# Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
# Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -36,6 +36,7 @@ dnl configure option --enable-shared.
|
||||||
AC_DISABLE_SHARED
|
AC_DISABLE_SHARED
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
AC_PROG_CXX
|
||||||
AC_GNU_SOURCE
|
AC_GNU_SOURCE
|
||||||
AC_USE_SYSTEM_EXTENSIONS
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
|
||||||
|
@ -405,7 +406,7 @@ tb=
|
||||||
elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
|
elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
|
||||||
dwarf1.lo dwarf2.lo"
|
dwarf1.lo dwarf2.lo"
|
||||||
coffgen="coffgen.lo dwarf2.lo"
|
coffgen="coffgen.lo dwarf2.lo"
|
||||||
coff="cofflink.lo $coffgen pdb.lo"
|
coff="cofflink.lo $coffgen"
|
||||||
ecoff="ecofflink.lo $coffgen"
|
ecoff="ecofflink.lo $coffgen"
|
||||||
xcoff="xcofflink.lo $coffgen"
|
xcoff="xcofflink.lo $coffgen"
|
||||||
|
|
||||||
|
@ -1125,6 +1126,10 @@ AC_SUBST(docdir)
|
||||||
AC_SUBST(htmldir)
|
AC_SUBST(htmldir)
|
||||||
AC_SUBST(pdfdir)
|
AC_SUBST(pdfdir)
|
||||||
|
|
||||||
PKG_CHECK_MODULES([DEPS], [r_bin r_util])
|
AC_CHECK_PROG(LLVM_CONFIG_FOUND, llvm-config, yes)
|
||||||
|
AS_IF([test x"$LLVM_CONFIG_FOUND" != x"yes"], [AC_MSG_ERROR([Please make sure llvm-config is in your PATH.])])
|
||||||
|
AC_SUBST([LLVM_CXXFLAGS], [$(llvm-config --cxxflags)])
|
||||||
|
AC_SUBST([LLVM_LDFLAGS], [$(llvm-config --ldflags)])
|
||||||
|
AC_SUBST([LLVM_LIBS], [$(llvm-config --libs)])
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
@ -247,13 +247,15 @@ COREFILE = @COREFILE@
|
||||||
COREFLAG = @COREFLAG@
|
COREFLAG = @COREFLAG@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
CXXDEPMODE = @CXXDEPMODE@
|
||||||
|
CXXFLAGS = @CXXFLAGS@
|
||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DATADIRNAME = @DATADIRNAME@
|
DATADIRNAME = @DATADIRNAME@
|
||||||
DEBUGDIR = @DEBUGDIR@
|
DEBUGDIR = @DEBUGDIR@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
DEPS_CFLAGS = @DEPS_CFLAGS@
|
|
||||||
DEPS_LIBS = @DEPS_LIBS@
|
|
||||||
DSYMUTIL = @DSYMUTIL@
|
DSYMUTIL = @DSYMUTIL@
|
||||||
DUMPBIN = @DUMPBIN@
|
DUMPBIN = @DUMPBIN@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
|
@ -283,6 +285,10 @@ LIBOBJS = @LIBOBJS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LLVM_CONFIG_FOUND = @LLVM_CONFIG_FOUND@
|
||||||
|
LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
|
||||||
|
LLVM_LDFLAGS = @LLVM_LDFLAGS@
|
||||||
|
LLVM_LIBS = @LLVM_LIBS@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAINT = @MAINT@
|
MAINT = @MAINT@
|
||||||
|
@ -307,9 +313,6 @@ PACKAGE_URL = @PACKAGE_URL@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
PKGVERSION = @PKGVERSION@
|
PKGVERSION = @PKGVERSION@
|
||||||
PKG_CONFIG = @PKG_CONFIG@
|
|
||||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
|
||||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
|
||||||
POSUB = @POSUB@
|
POSUB = @POSUB@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
REPORT_BUGS_TEXI = @REPORT_BUGS_TEXI@
|
REPORT_BUGS_TEXI = @REPORT_BUGS_TEXI@
|
||||||
|
@ -332,6 +335,7 @@ abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
abs_top_srcdir = @abs_top_srcdir@
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
ac_ct_CC = @ac_ct_CC@
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_CXX = @ac_ct_CXX@
|
||||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
all_backends = @all_backends@
|
all_backends = @all_backends@
|
||||||
am__include = @am__include@
|
am__include = @am__include@
|
||||||
|
|
|
@ -127,7 +127,7 @@ static inline char *
|
||||||
bfd_strdup (const char *str)
|
bfd_strdup (const char *str)
|
||||||
{
|
{
|
||||||
size_t len = strlen (str) + 1;
|
size_t len = strlen (str) + 1;
|
||||||
char *buf = bfd_malloc (len);
|
char *buf = (char*) bfd_malloc (len);
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
memcpy (buf, str, len);
|
memcpy (buf, str, len);
|
||||||
return buf;
|
return buf;
|
||||||
|
|
|
@ -132,7 +132,7 @@ static inline char *
|
||||||
bfd_strdup (const char *str)
|
bfd_strdup (const char *str)
|
||||||
{
|
{
|
||||||
size_t len = strlen (str) + 1;
|
size_t len = strlen (str) + 1;
|
||||||
char *buf = bfd_malloc (len);
|
char *buf = (char*) bfd_malloc (len);
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
memcpy (buf, str, len);
|
memcpy (buf, str, len);
|
||||||
return buf;
|
return buf;
|
||||||
|
|
|
@ -1,21 +1,11 @@
|
||||||
/* PDB support for BFD. */
|
/* PDB support for BFD. */
|
||||||
|
|
||||||
/* Includes code from radare2:
|
|
||||||
radare - LGPL - Copyright 2014 - inisider
|
|
||||||
(https://github.com/radareorg/radare2) */
|
|
||||||
|
|
||||||
#include "pdb.h"
|
#include "pdb.h"
|
||||||
|
|
||||||
/* Called when the BFD is being closed to do any necessary cleanup. */
|
/* Called when the BFD is being closed to do any necessary cleanup. */
|
||||||
bfd_boolean
|
bfd_boolean
|
||||||
bfd_pdb_close_and_cleanup (bfd *abfd)
|
bfd_pdb_close_and_cleanup (bfd *abfd)
|
||||||
{
|
{
|
||||||
if (abfd->tdata.pdb_data
|
|
||||||
&& abfd->tdata.pdb_data->pdb
|
|
||||||
&& abfd->tdata.pdb_data->pdb->finish_pdb_parse)
|
|
||||||
{
|
|
||||||
abfd->tdata.pdb_data->pdb->finish_pdb_parse (abfd->tdata.pdb_data->pdb);
|
|
||||||
}
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,87 +81,15 @@ bfd_pdb_find_nearest_line (bfd *abfd,
|
||||||
#define bfd_pdb_read_minisymbols _bfd_nosymbols_read_minisymbols
|
#define bfd_pdb_read_minisymbols _bfd_nosymbols_read_minisymbols
|
||||||
#define bfd_pdb_minisymbol_to_symbol _bfd_nosymbols_minisymbol_to_symbol
|
#define bfd_pdb_minisymbol_to_symbol _bfd_nosymbols_minisymbol_to_symbol
|
||||||
|
|
||||||
static st64
|
|
||||||
r_buffer_read (RBuffer *buffer, ut8 *out, ut64 length)
|
|
||||||
{
|
|
||||||
bfd *abfd = buffer->priv;
|
|
||||||
return abfd->iovec->bread (abfd, out, length);
|
|
||||||
}
|
|
||||||
|
|
||||||
static st64
|
|
||||||
r_buffer_seek (RBuffer *buffer, st64 address, int whence)
|
|
||||||
{
|
|
||||||
bfd *abfd = buffer->priv;
|
|
||||||
return abfd->iovec->bseek (abfd, address, whence);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool
|
|
||||||
r_buffer_fini(RBuffer *buffer)
|
|
||||||
{
|
|
||||||
//if we return TRUE, radare2 will try calling free on our bfd_alloc'ed buffer
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bfd_pdb_data_struct *
|
static bfd_pdb_data_struct *
|
||||||
get_bfd_pdb_data (bfd *abfd)
|
get_bfd_pdb_data (bfd *abfd)
|
||||||
{
|
{
|
||||||
RBufferMethods *buffer_methods = bfd_zalloc (abfd, sizeof (RBufferMethods));
|
|
||||||
buffer_methods->read = &r_buffer_read;
|
|
||||||
buffer_methods->seek = &r_buffer_seek;
|
|
||||||
buffer_methods->fini = &r_buffer_fini;
|
|
||||||
|
|
||||||
RBuffer *r_buffer = bfd_zalloc (abfd, sizeof (RBuffer));
|
|
||||||
r_buffer->methods = buffer_methods;
|
|
||||||
r_buffer->priv = abfd;
|
|
||||||
r_buffer->readonly = TRUE;
|
|
||||||
|
|
||||||
R_PDB *pdb = bfd_zalloc (abfd, sizeof (R_PDB));
|
|
||||||
if (init_pdb_parser_with_buf (pdb, r_buffer))
|
|
||||||
{
|
|
||||||
bfd_pdb_data_struct *result = bfd_alloc (abfd, sizeof (bfd_pdb_data_struct));
|
|
||||||
result->pdb = pdb;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
bfd_pdb_get_sections (bfd *abfd)
|
bfd_pdb_get_sections (bfd *abfd)
|
||||||
{
|
{
|
||||||
R_PDB *r_pdb = abfd->tdata.pdb_data->pdb;
|
|
||||||
|
|
||||||
SPEStream *section_stream = NULL;
|
|
||||||
|
|
||||||
RListIter *it = r_list_iterator (r_pdb->pdb_streams2);
|
|
||||||
while (r_list_iter_next (it))
|
|
||||||
{
|
|
||||||
SStreamParseFunc *stream = r_list_iter_get (it);
|
|
||||||
if (stream->type == ePDB_STREAM_SECT_HDR)
|
|
||||||
section_stream = stream->stream;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!section_stream)
|
|
||||||
{
|
|
||||||
_bfd_error_handler (_("%pB: no sections found in PDB"), abfd);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
it = r_list_iterator (section_stream->sections_hdrs);
|
|
||||||
while (r_list_iter_next (it))
|
|
||||||
{
|
|
||||||
SIMAGE_SECTION_HEADER *section_header = r_list_iter_get (it);
|
|
||||||
if (section_header)
|
|
||||||
{
|
|
||||||
//FIXME: These flags are probably not correct
|
|
||||||
asection *section = bfd_make_section_with_flags (abfd,
|
|
||||||
section_header->name,
|
|
||||||
SEC_LOAD);
|
|
||||||
section->vma = section_header->virtual_address;
|
|
||||||
section->size = section_header->size_of_raw_data;
|
|
||||||
//section->userdata = section_header;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const bfd_target *
|
const bfd_target *
|
||||||
|
@ -179,15 +97,8 @@ bfd_pdb_check_format (bfd *abfd)
|
||||||
{
|
{
|
||||||
if ((abfd->tdata.pdb_data = get_bfd_pdb_data (abfd)))
|
if ((abfd->tdata.pdb_data = get_bfd_pdb_data (abfd)))
|
||||||
{
|
{
|
||||||
R_PDB *r_pdb = abfd->tdata.pdb_data->pdb;
|
if (true)
|
||||||
|
|
||||||
if (r_pdb->pdb_parse (r_pdb))
|
|
||||||
{
|
{
|
||||||
bfd_pdb_get_sections (abfd);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_bfd_error_handler (_("%pB: malformed PDB file"), abfd);
|
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,6 +110,7 @@ bfd_pdb_check_format (bfd *abfd)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C"
|
||||||
const bfd_target pdb_vec =
|
const bfd_target pdb_vec =
|
||||||
{
|
{
|
||||||
"pdb", /* Name. */
|
"pdb", /* Name. */
|
|
@ -1,12 +1,11 @@
|
||||||
/* PDB support for BFD. */
|
/* PDB support for BFD. */
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "libbfd.h"
|
#include "libbfd.h"
|
||||||
|
|
||||||
#include <libr/r_pdb.h>
|
|
||||||
#include "pdb-types.h"
|
|
||||||
|
|
||||||
typedef struct pdb_data_struct {
|
typedef struct pdb_data_struct {
|
||||||
R_PDB *pdb;
|
|
||||||
} bfd_pdb_data_struct;
|
} bfd_pdb_data_struct;
|
||||||
|
}
|
Loading…
Reference in New Issue