From 64cbc6ccd1140c8f81afbc93232914136427dd54 Mon Sep 17 00:00:00 2001 From: Peter Lin Date: Wed, 6 Dec 2023 07:52:32 +0000 Subject: Revert "Only export unwindstack:: functions." This reverts commit 82dec5e8083687f5d50dfb7b3c1d1d2041d9f9d6. Reason for revert: art_standalone_cmdline_tests failing b/315063112 Change-Id: I74d5bc05f8fd9a0d4d82895fcad1ac23c59d5af9 --- libunwindstack/Android.bp | 2 -- libunwindstack/AsmGetRegsX86.S | 3 --- libunwindstack/AsmGetRegsX86_64.S | 3 --- libunwindstack/exported.map | 7 ------- libunwindstack/include/unwindstack/RegsGetLocal.h | 2 +- 5 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 libunwindstack/exported.map diff --git a/libunwindstack/Android.bp b/libunwindstack/Android.bp index b1a3480..d2b02c6 100644 --- a/libunwindstack/Android.bp +++ b/libunwindstack/Android.bp @@ -196,11 +196,9 @@ cc_library { }, android: { runtime_libs: ["libdexfile"], // libdexfile_support dependency - version_script: "exported.map", }, linux: { runtime_libs: ["libdexfile"], // libdexfile_support dependency - version_script: "exported.map", }, }, diff --git a/libunwindstack/AsmGetRegsX86.S b/libunwindstack/AsmGetRegsX86.S index 323ee26..021e628 100644 --- a/libunwindstack/AsmGetRegsX86.S +++ b/libunwindstack/AsmGetRegsX86.S @@ -26,9 +26,6 @@ * SUCH DAMAGE. */ -// Use the mangled name to make it easy to export functions. -#define AsmGetRegs _ZN11unwindstack10AsmGetRegsEPv - .text .global AsmGetRegs .balign 16 diff --git a/libunwindstack/AsmGetRegsX86_64.S b/libunwindstack/AsmGetRegsX86_64.S index dc5ecad..4cd3b6f 100644 --- a/libunwindstack/AsmGetRegsX86_64.S +++ b/libunwindstack/AsmGetRegsX86_64.S @@ -26,9 +26,6 @@ * SUCH DAMAGE. */ -// Use the mangled name to make it easy to export functions. -#define AsmGetRegs _ZN11unwindstack10AsmGetRegsEPv - .text .global AsmGetRegs .balign 16 diff --git a/libunwindstack/exported.map b/libunwindstack/exported.map deleted file mode 100644 index bfd236c..0000000 --- a/libunwindstack/exported.map +++ /dev/null @@ -1,7 +0,0 @@ -LIBUNWINDSTACK { - global: - *unwindstack*; - - local: - *; -}; diff --git a/libunwindstack/include/unwindstack/RegsGetLocal.h b/libunwindstack/include/unwindstack/RegsGetLocal.h index ac98c5f..4cdab9a 100644 --- a/libunwindstack/include/unwindstack/RegsGetLocal.h +++ b/libunwindstack/include/unwindstack/RegsGetLocal.h @@ -129,7 +129,7 @@ inline __attribute__((__always_inline__)) void AsmGetRegs(void* reg_data) { #elif defined(__i386__) || defined(__x86_64__) -void AsmGetRegs(void* regs); +extern "C" void AsmGetRegs(void* regs); #endif -- cgit v1.2.3