mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-29 18:27:37 +01:00
Cleanup some files from previous patch and rerurn autoconf tools.
This commit is contained in:
parent
3afd613545
commit
5c95d139df
4 changed files with 3 additions and 85 deletions
|
@ -298,11 +298,6 @@ endif
|
||||||
$(libunwind_setjmp_la_SOURCES_x86)
|
$(libunwind_setjmp_la_SOURCES_x86)
|
||||||
else
|
else
|
||||||
if ARCH_X86_64
|
if ARCH_X86_64
|
||||||
x86_64_gen_offsets_SOURCES = x86_64/gen-offsets.c
|
|
||||||
noinst_PROGRAMS = x86_64/gen-offsets
|
|
||||||
BUILT_SOURCES = _ucontext_i.h
|
|
||||||
_ucontext_i.h: x86_64/gen-offsets
|
|
||||||
x86_64/gen-offsets > $@
|
|
||||||
lib_LTLIBRARIES_arch = libunwind-x86_64.la
|
lib_LTLIBRARIES_arch = libunwind-x86_64.la
|
||||||
libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86_64)
|
libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86_64)
|
||||||
libunwind_x86_64_la_SOURCES = $(libunwind_x86_64_la_SOURCES_x86_64)
|
libunwind_x86_64_la_SOURCES = $(libunwind_x86_64_la_SOURCES_x86_64)
|
||||||
|
|
|
@ -39,7 +39,6 @@ POST_UNINSTALL = :
|
||||||
build_triplet = @build@
|
build_triplet = @build@
|
||||||
host_triplet = @host@
|
host_triplet = @host@
|
||||||
target_triplet = @target@
|
target_triplet = @target@
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@noinst_PROGRAMS = x86_64/gen-offsets$(EXEEXT)
|
|
||||||
@ARCH_IA64_TRUE@noinst_PROGRAMS = ia64/mk_Gcursor_i$(EXEEXT) \
|
@ARCH_IA64_TRUE@noinst_PROGRAMS = ia64/mk_Gcursor_i$(EXEEXT) \
|
||||||
@ARCH_IA64_TRUE@ ia64/mk_Lcursor_i$(EXEEXT)
|
@ARCH_IA64_TRUE@ ia64/mk_Lcursor_i$(EXEEXT)
|
||||||
subdir = src
|
subdir = src
|
||||||
|
@ -381,10 +380,6 @@ am__ia64_mk_Lcursor_i_SOURCES_DIST = ia64/mk_Lcursor_i.c
|
||||||
@ARCH_IA64_TRUE@ ia64/mk_Lcursor_i.$(OBJEXT)
|
@ARCH_IA64_TRUE@ ia64/mk_Lcursor_i.$(OBJEXT)
|
||||||
ia64_mk_Lcursor_i_OBJECTS = $(am_ia64_mk_Lcursor_i_OBJECTS)
|
ia64_mk_Lcursor_i_OBJECTS = $(am_ia64_mk_Lcursor_i_OBJECTS)
|
||||||
ia64_mk_Lcursor_i_LDADD = $(LDADD)
|
ia64_mk_Lcursor_i_LDADD = $(LDADD)
|
||||||
am__x86_64_gen_offsets_SOURCES_DIST = x86_64/gen-offsets.c
|
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@am_x86_64_gen_offsets_OBJECTS = x86_64/gen-offsets.$(OBJEXT)
|
|
||||||
x86_64_gen_offsets_OBJECTS = $(am_x86_64_gen_offsets_OBJECTS)
|
|
||||||
x86_64_gen_offsets_LDADD = $(LDADD)
|
|
||||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
|
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
|
||||||
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
|
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
|
||||||
am__depfiles_maybe = depfiles
|
am__depfiles_maybe = depfiles
|
||||||
|
@ -403,8 +398,7 @@ SOURCES = $(libunwind_ptrace_a_SOURCES) $(libunwind_hppa_la_SOURCES) \
|
||||||
$(libunwind_ia64_la_SOURCES) $(libunwind_ppc64_la_SOURCES) \
|
$(libunwind_ia64_la_SOURCES) $(libunwind_ppc64_la_SOURCES) \
|
||||||
$(libunwind_setjmp_la_SOURCES) $(libunwind_x86_la_SOURCES) \
|
$(libunwind_setjmp_la_SOURCES) $(libunwind_x86_la_SOURCES) \
|
||||||
$(libunwind_x86_64_la_SOURCES) $(libunwind_la_SOURCES) \
|
$(libunwind_x86_64_la_SOURCES) $(libunwind_la_SOURCES) \
|
||||||
$(ia64_mk_Gcursor_i_SOURCES) $(ia64_mk_Lcursor_i_SOURCES) \
|
$(ia64_mk_Gcursor_i_SOURCES) $(ia64_mk_Lcursor_i_SOURCES)
|
||||||
$(x86_64_gen_offsets_SOURCES)
|
|
||||||
DIST_SOURCES = $(libunwind_ptrace_a_SOURCES) \
|
DIST_SOURCES = $(libunwind_ptrace_a_SOURCES) \
|
||||||
$(am__libunwind_hppa_la_SOURCES_DIST) \
|
$(am__libunwind_hppa_la_SOURCES_DIST) \
|
||||||
$(am__libunwind_ia64_la_SOURCES_DIST) \
|
$(am__libunwind_ia64_la_SOURCES_DIST) \
|
||||||
|
@ -414,8 +408,7 @@ DIST_SOURCES = $(libunwind_ptrace_a_SOURCES) \
|
||||||
$(am__libunwind_x86_64_la_SOURCES_DIST) \
|
$(am__libunwind_x86_64_la_SOURCES_DIST) \
|
||||||
$(am__libunwind_la_SOURCES_DIST) \
|
$(am__libunwind_la_SOURCES_DIST) \
|
||||||
$(am__ia64_mk_Gcursor_i_SOURCES_DIST) \
|
$(am__ia64_mk_Gcursor_i_SOURCES_DIST) \
|
||||||
$(am__ia64_mk_Lcursor_i_SOURCES_DIST) \
|
$(am__ia64_mk_Lcursor_i_SOURCES_DIST)
|
||||||
$(am__x86_64_gen_offsets_SOURCES_DIST)
|
|
||||||
ETAGS = etags
|
ETAGS = etags
|
||||||
CTAGS = ctags
|
CTAGS = ctags
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
@ -812,7 +805,6 @@ libunwind_ppc64_la_SOURCES_ppc64 = $(libunwind_la_SOURCES_ppc64_common) \
|
||||||
@OS_LINUX_TRUE@libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_linux_local)
|
@OS_LINUX_TRUE@libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_linux_local)
|
||||||
@ARCH_IA64_TRUE@ia64_mk_Gcursor_i_SOURCES = ia64/mk_Gcursor_i.c
|
@ARCH_IA64_TRUE@ia64_mk_Gcursor_i_SOURCES = ia64/mk_Gcursor_i.c
|
||||||
@ARCH_IA64_TRUE@ia64_mk_Lcursor_i_SOURCES = ia64/mk_Lcursor_i.c
|
@ARCH_IA64_TRUE@ia64_mk_Lcursor_i_SOURCES = ia64/mk_Lcursor_i.c
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@BUILT_SOURCES = _ucontext_i.h
|
|
||||||
@ARCH_IA64_TRUE@BUILT_SOURCES = Gcursor_i.h Lcursor_i.h
|
@ARCH_IA64_TRUE@BUILT_SOURCES = Gcursor_i.h Lcursor_i.h
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_PPC64_TRUE@@ARCH_X86_64_FALSE@@ARCH_X86_FALSE@lib_LTLIBRARIES_arch = libunwind-ppc64.la
|
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_PPC64_TRUE@@ARCH_X86_64_FALSE@@ARCH_X86_FALSE@lib_LTLIBRARIES_arch = libunwind-ppc64.la
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@lib_LTLIBRARIES_arch = libunwind-x86_64.la
|
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@lib_LTLIBRARIES_arch = libunwind-x86_64.la
|
||||||
|
@ -848,7 +840,6 @@ libunwind_ppc64_la_SOURCES_ppc64 = $(libunwind_la_SOURCES_ppc64_common) \
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_TRUE@libunwind_x86_la_SOURCES = $(libunwind_x86_la_SOURCES_x86)
|
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_TRUE@libunwind_x86_la_SOURCES = $(libunwind_x86_la_SOURCES_x86)
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_TRUE@libunwind_x86_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
|
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_TRUE@libunwind_x86_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_TRUE@@REMOTE_ONLY_FALSE@libunwind_x86_la_LIBADD = libunwind.la -lc
|
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_TRUE@@REMOTE_ONLY_FALSE@libunwind_x86_la_LIBADD = libunwind.la -lc
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@x86_64_gen_offsets_SOURCES = x86_64/gen-offsets.c
|
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@libunwind_x86_64_la_SOURCES = $(libunwind_x86_64_la_SOURCES_x86_64)
|
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@libunwind_x86_64_la_SOURCES = $(libunwind_x86_64_la_SOURCES_x86_64)
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@libunwind_x86_64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
|
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@libunwind_x86_64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@@REMOTE_ONLY_FALSE@libunwind_x86_64_la_LIBADD = libunwind.la -lc
|
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@@REMOTE_ONLY_FALSE@libunwind_x86_64_la_LIBADD = libunwind.la -lc
|
||||||
|
@ -1427,11 +1418,6 @@ ia64/mk_Lcursor_i.$(OBJEXT): ia64/$(am__dirstamp) \
|
||||||
ia64/mk_Lcursor_i$(EXEEXT): $(ia64_mk_Lcursor_i_OBJECTS) $(ia64_mk_Lcursor_i_DEPENDENCIES) ia64/$(am__dirstamp)
|
ia64/mk_Lcursor_i$(EXEEXT): $(ia64_mk_Lcursor_i_OBJECTS) $(ia64_mk_Lcursor_i_DEPENDENCIES) ia64/$(am__dirstamp)
|
||||||
@rm -f ia64/mk_Lcursor_i$(EXEEXT)
|
@rm -f ia64/mk_Lcursor_i$(EXEEXT)
|
||||||
$(LINK) $(ia64_mk_Lcursor_i_LDFLAGS) $(ia64_mk_Lcursor_i_OBJECTS) $(ia64_mk_Lcursor_i_LDADD) $(LIBS)
|
$(LINK) $(ia64_mk_Lcursor_i_LDFLAGS) $(ia64_mk_Lcursor_i_OBJECTS) $(ia64_mk_Lcursor_i_LDADD) $(LIBS)
|
||||||
x86_64/gen-offsets.$(OBJEXT): x86_64/$(am__dirstamp) \
|
|
||||||
x86_64/$(DEPDIR)/$(am__dirstamp)
|
|
||||||
x86_64/gen-offsets$(EXEEXT): $(x86_64_gen_offsets_OBJECTS) $(x86_64_gen_offsets_DEPENDENCIES) x86_64/$(am__dirstamp)
|
|
||||||
@rm -f x86_64/gen-offsets$(EXEEXT)
|
|
||||||
$(LINK) $(x86_64_gen_offsets_LDFLAGS) $(x86_64_gen_offsets_OBJECTS) $(x86_64_gen_offsets_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
mostlyclean-compile:
|
mostlyclean-compile:
|
||||||
-rm -f *.$(OBJEXT)
|
-rm -f *.$(OBJEXT)
|
||||||
|
@ -1856,7 +1842,6 @@ mostlyclean-compile:
|
||||||
-rm -f x86_64/Lresume.lo
|
-rm -f x86_64/Lresume.lo
|
||||||
-rm -f x86_64/Lstep.$(OBJEXT)
|
-rm -f x86_64/Lstep.$(OBJEXT)
|
||||||
-rm -f x86_64/Lstep.lo
|
-rm -f x86_64/Lstep.lo
|
||||||
-rm -f x86_64/gen-offsets.$(OBJEXT)
|
|
||||||
-rm -f x86_64/is_fpreg.$(OBJEXT)
|
-rm -f x86_64/is_fpreg.$(OBJEXT)
|
||||||
-rm -f x86_64/is_fpreg.lo
|
-rm -f x86_64/is_fpreg.lo
|
||||||
-rm -f x86_64/longjmp.$(OBJEXT)
|
-rm -f x86_64/longjmp.$(OBJEXT)
|
||||||
|
@ -2078,7 +2063,6 @@ distclean-compile:
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/Lregs.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/Lregs.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/Lresume.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/Lresume.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/Lstep.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/Lstep.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/gen-offsets.Po@am__quote@
|
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/is_fpreg.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/is_fpreg.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/regname.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@x86_64/$(DEPDIR)/regname.Plo@am__quote@
|
||||||
|
|
||||||
|
@ -2348,8 +2332,6 @@ uninstall-am: uninstall-info-am uninstall-libLIBRARIES \
|
||||||
@ARCH_IA64_TRUE@ ia64/mk_Gcursor_i > $@
|
@ARCH_IA64_TRUE@ ia64/mk_Gcursor_i > $@
|
||||||
@ARCH_IA64_TRUE@Lcursor_i.h: ia64/mk_Lcursor_i
|
@ARCH_IA64_TRUE@Lcursor_i.h: ia64/mk_Lcursor_i
|
||||||
@ARCH_IA64_TRUE@ ia64/mk_Lcursor_i > $@
|
@ARCH_IA64_TRUE@ ia64/mk_Lcursor_i > $@
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@_ucontext_i.h: x86_64/gen-offsets
|
|
||||||
@ARCH_HPPA_FALSE@@ARCH_IA64_FALSE@@ARCH_X86_64_TRUE@@ARCH_X86_FALSE@ x86_64/gen-offsets > $@
|
|
||||||
|
|
||||||
# The -version-info flag accepts an argument of the form
|
# The -version-info flag accepts an argument of the form
|
||||||
# `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets
|
# `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets
|
||||||
|
|
|
@ -1,59 +0,0 @@
|
||||||
#include <ucontext.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
#define REG_OFFSET(reg) (offsetof(struct ucontext, uc_mcontext.gregs[REG_##reg]))
|
|
||||||
|
|
||||||
|
|
||||||
char *regs[] = { "RAX",
|
|
||||||
"RBX",
|
|
||||||
"RCX",
|
|
||||||
"RDX",
|
|
||||||
"RDI",
|
|
||||||
"RSI",
|
|
||||||
"RSP",
|
|
||||||
"RBP",
|
|
||||||
"R8",
|
|
||||||
"R9",
|
|
||||||
"R10",
|
|
||||||
"R11",
|
|
||||||
"R12",
|
|
||||||
"R13",
|
|
||||||
"R14",
|
|
||||||
"R15",
|
|
||||||
"RIP",
|
|
||||||
};
|
|
||||||
|
|
||||||
main()
|
|
||||||
{
|
|
||||||
printf("#ifndef UCONTEXT_I_H\n#define UCONTEXT_I_H\n");
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[0], REG_OFFSET(RAX));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[1], REG_OFFSET(RBX));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[2], REG_OFFSET(RCX));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[3], REG_OFFSET(RDX));
|
|
||||||
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[4], REG_OFFSET(RDI));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[5], REG_OFFSET(RSI));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[6], REG_OFFSET(RSP));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[7], REG_OFFSET(RBP));
|
|
||||||
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[8], REG_OFFSET(R8));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[9], REG_OFFSET(R9));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[10], REG_OFFSET(R10));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[11], REG_OFFSET(R11));
|
|
||||||
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[12], REG_OFFSET(R12));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[13], REG_OFFSET(R13));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[14], REG_OFFSET(R14));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[15], REG_OFFSET(R15));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[15], REG_OFFSET(R15));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[15], REG_OFFSET(R15));
|
|
||||||
printf("#define REG_OFFSET_%s\t%ld\n" , regs[16], REG_OFFSET(RIP));
|
|
||||||
|
|
||||||
printf("#define REG_OFFSET_FPREGS_PTR\t%ld\n" , offsetof(struct ucontext, uc_mcontext.fpregs));
|
|
||||||
printf("#define FPREG_OFFSET_MXCR\t%ld\n" , offsetof(struct _libc_fpstate, mxcsr));
|
|
||||||
printf("#endif /* UCONTEXT_I_H */\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
|
|
||||||
#include "_ucontext_i.h"
|
#include "offsets.h"
|
||||||
|
|
||||||
.global _x86_64_setcontext
|
.global _x86_64_setcontext
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue