Projects
openEuler:Mainline
valgrind
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:valgrind.spec
Changed
@@ -10,10 +10,14 @@ %define arch_val arm64 %define arch_old_val %{nil} %endif +%ifarch loongarch64 +%define arch_val loongarch64 +%define arch_old_val %{nil} +%endif Name: valgrind Version: 3.16.0 -Release: 3 +Release: 6 Epoch: 1 Summary: An instrumentation framework for building dynamic analysis tools License: GPLv2+ @@ -25,6 +29,8 @@ Patch3: valgrind-3.9.0-ldso-supp.patch Patch4: backport-Generate-a-ENOSYS-sys_ni_syscall-for-clone3-on-all-linux-arches.patch Patch5: valgrind-Implement-linux-rseq-syscall-as-ENOSYS.patch +Patch6: Add-LOONGARCH64-Linux-support.patch +Patch7: valgrind-Sync-LoongArch-with-glibc-2.36.patch BuildRequires: glibc glibc-devel gdb procps gcc-c++ perl(Getopt::Long) @@ -56,7 +62,9 @@ %undefine _hardened_build %undefine _strict_symbol_defs_build -OPTFLAGS="`echo " %{optflags} " | sed 's/ -m\(64\|321\) / /g;s/ -fexceptions / /g;s/ -fstack-protector\(-a-z*\) / / g;s/ -Wp,-D_FORTIFY_SOURCE=2 / /g;s/ -O2 / /g;s/ -mcpu=\(a-z0-9\+\) / /g;s/^ //;s/ $//'`" +optflags="`echo " %{optflags} -Wl,-z,now -fPIE -fPIC"`" +OPTFLAGS="`echo " $optflags " | sed 's/ -m\(64\|321\) / /g;s/ -fexceptions / /g;s/ -fstack-protector\(-a-z*\) / / g;s/ -Wp,-D_FORTIFY_SOURCE=2 / /g;s/ -O2 / /g;s/ -mcpu=\(a-z0-9\+\) / /g;s/^ //;s/ $//'`" + %configure CC="$CC" CFLAGS="$OPTFLAGS" CXXFLAGS="$OPTFLAGS" --with-mpicc=/bin/false GDB=%{_bindir}/gdb %make_build @@ -100,6 +108,15 @@ %{_mandir}/man1/* %changelog +* Tue Jan 03 2023 chenfeiyang <chenfeiyang@loongson.cn> - 1:3.16.0-6 +- Sync LoongArch with glibc 2.36 + +* Fri Dec 16 2022 chenfeiyang <chenfeiyang@loongson.cn> - 1:3.16.0-5 +- Add LOONGARCH64/Linux support + +* Thu Aug 25 2022 liyanan <liyanan32@h-partners.com> - 1:3.16.0-4 +- Add BIND_NOW and PIE safe complie option + * Wed Mar 02 2022 qinyu <qiny16@huawei.com> - 3.16.0-3 - Implement linux rseq syscall as ENOSYS
View file
_service:tar_scm:Add-LOONGARCH64-Linux-support.patch
Added
@@ -0,0 +1,123921 @@ +From 47cc7deb0bd4e625791d2db9246152466595aabd Mon Sep 17 00:00:00 2001 +From: Feiyang Chen <chenfeiyang@loongson.cn> +Date: Fri, 16 Dec 2022 09:22:08 +0800 +Subject: PATCH Add LOONGARCH64/Linux support + +--- + Makefile.all.am | 7 + + Makefile.in | 52 +- + Makefile.tool.am | 12 + + Makefile.vex.am | 14 +- + Makefile.vex.in | 215 +- + README | 1 + + VEX/auxprogs/genoffsets.c | 36 + + VEX/priv/guest_loongarch64_defs.h | 130 + + VEX/priv/guest_loongarch64_helpers.c | 870 + + VEX/priv/guest_loongarch64_toIR.c | 9694 +++ + VEX/priv/host_loongarch64_defs.c | 3015 + + VEX/priv/host_loongarch64_defs.h | 685 + + VEX/priv/host_loongarch64_isel.c | 2782 + + VEX/priv/ir_defs.c | 35 +- + VEX/priv/main_main.c | 109 + + VEX/pub/libvex.h | 22 + + VEX/pub/libvex_basictypes.h | 4 + + VEX/pub/libvex_guest_loongarch64.h | 171 + + VEX/pub/libvex_guest_offsets.h | 33 + + VEX/pub/libvex_ir.h | 28 +- + VEX/pub/libvex_trc_values.h | 1 + + aclocal.m4 | 83 +- + auxprogs/Makefile.in | 18 +- + cachegrind/Makefile.in | 30 +- + cachegrind/cg_arch.c | 7 + + cachegrind/cg_branchpred.c | 2 +- + cachegrind/tests/Makefile.in | 18 +- + cachegrind/tests/x86/Makefile.in | 18 +- + callgrind/Makefile.in | 30 +- + callgrind/tests/Makefile.in | 18 +- + compile | 6 +- + config.guess | 1440 +- + config.h | 17 +- + config.h.in | 13 +- + config.sub | 708 +- + configure | 8828 +-- + configure.ac | 28 +- + coregrind/Makefile.am | 12 +- + coregrind/Makefile.in | 265 +- + coregrind/launcher-linux.c | 11 +- + coregrind/m_aspacemgr/aspacemgr-common.c | 9 +- + coregrind/m_aspacemgr/aspacemgr-linux.c | 3 +- + coregrind/m_cache.c | 233 + + coregrind/m_coredump/coredump-elf.c | 42 + + coregrind/m_debuginfo/d3basics.c | 3 + + coregrind/m_debuginfo/debuginfo.c | 30 +- + coregrind/m_debuginfo/priv_storage.h | 19 +- + coregrind/m_debuginfo/readdwarf.c | 47 +- + coregrind/m_debuginfo/readelf.c | 4 +- + coregrind/m_debuginfo/storage.c | 9 + + coregrind/m_debuglog.c | 35 + + .../m_dispatch/dispatch-loongarch64-linux.S | 314 + + .../loongarch-base64-valgrind-s1.xml | 45 + + .../loongarch-base64-valgrind-s2.xml | 45 + + coregrind/m_gdbserver/loongarch-base64.xml | 45 + + .../loongarch64-linux-valgrind.xml | 15 + + coregrind/m_gdbserver/loongarch64-linux.xml | 13 + + coregrind/m_gdbserver/target.c | 2 + + .../m_gdbserver/valgrind-low-loongarch64.c | 195 + + coregrind/m_gdbserver/valgrind_low.h | 1 + + coregrind/m_initimg/initimg-linux.c | 17 +- + coregrind/m_libcassert.c | 20 + + coregrind/m_libcfile.c | 48 +- + coregrind/m_libcproc.c | 12 +- + coregrind/m_libcsetjmp.c | 66 + + coregrind/m_machine.c | 194 +- + coregrind/m_main.c | 37 +- + coregrind/m_options.c | 3 +- + coregrind/m_redir.c | 17 + + coregrind/m_scheduler/scheduler.c | 8 + + .../m_sigframe/sigframe-loongarch64-linux.c | 285 + + coregrind/m_signals.c | 76 +- + coregrind/m_stacktrace.c | 94 + + coregrind/m_syscall.c | 32 + + coregrind/m_syswrap/priv_syswrap-linux.h | 7 + + coregrind/m_syswrap/priv_types_n_macros.h | 3 +- + .../m_syswrap/syscall-loongarch64-linux.S | 143 + + coregrind/m_syswrap/syswrap-generic.c | 2 +- + coregrind/m_syswrap/syswrap-linux.c | 36 +- + .../m_syswrap/syswrap-loongarch64-linux.c | 644 + + coregrind/m_syswrap/syswrap-main.c | 86 +- + coregrind/m_trampoline.S | 48 + + coregrind/m_translate.c | 5 + + coregrind/m_vki.c | 6 +- + coregrind/pub_core_aspacemgr.h | 3 +- + coregrind/pub_core_basics.h | 8 +- + coregrind/pub_core_debuginfo.h | 4 + + coregrind/pub_core_machine.h | 13 + + coregrind/pub_core_mallocfree.h | 1 + + coregrind/pub_core_signals.h | 1 + + coregrind/pub_core_syscall.h | 1 + + coregrind/pub_core_trampoline.h | 6 + + coregrind/pub_core_transtab.h | 3 +- + coregrind/pub_core_transtab_asm.h | 2 +- + coregrind/vgdb-invoker-ptrace.c | 31 +- + depcomp | 2 +- + dhat/Makefile.in | 30 +- + dhat/tests/Makefile.in | 18 +- + docs/Makefile.in | 9 +- + docs/callgrind_annotate.1 | 4 +- + docs/callgrind_control.1 | 4 +- + docs/cg_annotate.1 | 4 +- + docs/cg_diff.1 | 4 +- + docs/cg_merge.1 | 4 +- + docs/html/FAQ.html | 2 +- + docs/html/QuickStart.html | 2 +- + docs/html/dh-manual.html | 28 +- + docs/html/dist.html | 2 +- + docs/html/dist.readme.html | 1 + + docs/html/faq.html | 4 +- + docs/html/index.html | 2 +- + docs/html/manual.html | 10 +- + docs/html/tech-docs.html | 2 +- + docs/ms_print.1 | 4 +- + docs/valgrind-di-server.1 | 4 +- + docs/valgrind-listener.1 | 4 +- + docs/valgrind.1 | 4 +- + docs/vgdb.1 | 4 +- + drd/Makefile.in | 30 +- + drd/drd_bitmap.h | 2 +- + drd/drd_load_store.c | 4 + + drd/tests/Makefile.in | 18 +- + drd/tests/pth_barrier_thr_cr.supp | 11 + + exp-bbv/Makefile.in | 30 +- + exp-bbv/tests/Makefile.in | 18 +- + exp-bbv/tests/amd64-linux/Makefile.in | 18 +- + exp-bbv/tests/arm-linux/Makefile.in | 18 +- + exp-bbv/tests/ppc32-linux/Makefile.in | 18 +- + exp-bbv/tests/x86-linux/Makefile.in | 18 +- + exp-bbv/tests/x86/Makefile.in | 18 +- + gdbserver_tests/Makefile.am | 1 + + gdbserver_tests/Makefile.in | 19 +- + gdbserver_tests/filter_helgrind_monitor | 2 + + .../filter_helgrind_monitor_loongarch64 | 43 + + gdbserver_tests/solaris/Makefile.in | 16 +- + helgrind/Makefile.in | 30 +- + helgrind/hg_main.c | 1 + + helgrind/tests/Makefile.am | 7 +- + helgrind/tests/Makefile.in | 25 +- + helgrind/tests/annotate_hbefore.c | 30 + + helgrind/tests/supported_pthread_tunable | 17 + + helgrind/tests/tc07_hbl1.c | 17 + + helgrind/tests/tc08_hbl2.c | 17 + + helgrind/tests/tc11_XCHG.c | 18 + + helgrind/tests/tls_threads.vgtest | 1 + + helgrind/tests/tls_threads_tunable.stderr.exp | 2 + + helgrind/tests/tls_threads_tunable.stdout.exp | 0 + helgrind/tests/tls_threads_tunable.vgtest | 4 + + include/Makefile.am | 3 + + include/Makefile.in | 14 +- + include/pub_tool_basics.h | 6 +- + include/pub_tool_guest.h | 3 + + include/pub_tool_libcsetjmp.h | 8 + + include/pub_tool_machine.h | 6 + + include/pub_tool_redir.h | 2 + + include/pub_tool_vkiscnums_asm.h | 4 + + include/valgrind.h | 526 +- + include/vgversion_dist.h | 2 +- + include/vki/vki-linux.h | 5 + + include/vki/vki-loongarch64-linux.h | 827 + + .../vki/vki-posixtypes-loongarch64-linux.h | 76 + + include/vki/vki-scnums-loongarch64-linux.h | 356 + + install-sh | 161 +- + lackey/Makefile.in | 30 +- + lackey/tests/Makefile.in | 9 +- + massif/Makefile.in | 30 +- + massif/tests/Makefile.am | 1 + + massif/tests/Makefile.in | 19 +- + massif/tests/big-alloc.post.exp-loongarch64 | 54 + + memcheck/Makefile.in | 30 +- + memcheck/mc_machine.c | 119 + + memcheck/mc_translate.c | 13 + + memcheck/tests/Makefile.am | 4 + + memcheck/tests/Makefile.in | 53 +- + memcheck/tests/amd64-linux/Makefile.in | 18 +- + memcheck/tests/amd64-solaris/Makefile.in | 18 +- + memcheck/tests/amd64/Makefile.in | 18 +- + memcheck/tests/arm64-linux/Makefile.in | 18 +- + memcheck/tests/atomic_incs.c | 84 +- + memcheck/tests/common/Makefile.in | 16 +- + memcheck/tests/darwin/Makefile.in | 18 +- + memcheck/tests/leak-segv-jmp.c | 15 +- + memcheck/tests/leak-segv-jmp.stderr.exp | 20 +- + memcheck/tests/leak.h | 21 + + memcheck/tests/linux/Makefile.in | 18 +- + memcheck/tests/loongarch64-linux/Makefile.am | 17 + + memcheck/tests/loongarch64-linux/Makefile.in | 965 + + .../tests/loongarch64-linux/filter_stderr | 3 + + memcheck/tests/loongarch64-linux/scalar.c | 1296 + + memcheck/tests/loongarch64-linux/scalar.h | 62 + + .../tests/loongarch64-linux/scalar.stderr.exp | 2716 + + .../tests/loongarch64-linux/scalar.vgtest | 3 + + memcheck/tests/mips32/Makefile.in | 18 +-
View file
_service:tar_scm:valgrind-Sync-LoongArch-with-glibc-2.36.patch
Added
@@ -0,0 +1,75 @@ +From c8c53b2ea49142f4e764520e0af71c0d48bbf00a Mon Sep 17 00:00:00 2001 +From: Feiyang Chen <chenfeiyang@loongson.cn> +Date: Tue, 3 Jan 2023 11:17:29 +0800 +Subject: PATCH valgrind: Sync LoongArch with glibc 2.36 + +--- + coregrind/vgdb-invoker-ptrace.c | 20 ++++---------------- + 1 file changed, 4 insertions(+), 16 deletions(-) + +diff --git a/coregrind/vgdb-invoker-ptrace.c b/coregrind/vgdb-invoker-ptrace.c +index 7865c53..d930589 100644 +--- a/coregrind/vgdb-invoker-ptrace.c ++++ b/coregrind/vgdb-invoker-ptrace.c +@@ -759,11 +759,7 @@ void restore_and_detach (pid_t pid) + } + + DEBUG(1, "setregs restore registers pid %d\n", pid_of_save_regs); +-#if defined(VGP_loongarch64_linux) +- if (!setregs(pid_of_save_regs, &user_save.gpr, sizeof(user_save.gpr))) { +-#else + if (!setregs(pid_of_save_regs, &user_save.regs, sizeof(user_save.regs))) { +-#endif + ERROR(errno, "setregs restore registers pid %d after cont\n", + pid_of_save_regs); + } +@@ -845,11 +841,7 @@ Bool invoker_invoke_gdbserver (pid_t pid) + return False; + } + +-#if defined(VGP_loongarch64_linux) +- if (!getregs(pid, &user_mod.gpr, sizeof(user_mod.gpr))) { +-#else + if (!getregs(pid, &user_mod.regs, sizeof(user_mod.regs))) { +-#endif + detach_from_all_threads(pid); + return False; + } +@@ -885,7 +877,7 @@ Bool invoker_invoke_gdbserver (pid_t pid) + #elif defined(VGA_mips64) + sp = user_mod.regs29; + #elif defined(VGA_loongarch64) +- sp = user_mod.gpr3; ++ sp = user_mod.regs3; + #else + I_die_here : (sp) architecture missing in vgdb-invoker-ptrace.c + #endif +@@ -1084,10 +1076,10 @@ Bool invoker_invoke_gdbserver (pid_t pid) + user_mod.regs25 = shared64->invoke_gdbserver; + #elif defined(VGA_loongarch64) + /* put check arg in register a0 */ +- user_mod.gpr4 = check; ++ user_mod.regs4 = check; + /* put NULL return address in ra */ +- user_mod.gpr1 = bad_return; +- user_mod.pc = shared64->invoke_gdbserver; ++ user_mod.regs1 = bad_return; ++ user_mod.csr_era = shared64->invoke_gdbserver; + #else + I_die_here: architecture missing in vgdb-invoker-ptrace.c + #endif +@@ -1096,11 +1088,7 @@ Bool invoker_invoke_gdbserver (pid_t pid) + assert(0); + } + +-#if defined(VGP_loongarch64_linux) +- if (!setregs(pid, &user_mod.gpr, sizeof(user_mod.gpr))) { +-#else + if (!setregs(pid, &user_mod.regs, sizeof(user_mod.regs))) { +-#endif + detach_from_all_threads(pid); + return False; + } +-- +2.33.0 +
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/valgrind.git</param> - <param name="revision">d0b8efd8de3e617ba56eaefb25b1c40e4620c5e6</param> + <param name="revision">master</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2