summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Lin <linpeter@google.com>2023-12-06 07:52:32 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-12-06 07:52:32 +0000
commit64cbc6ccd1140c8f81afbc93232914136427dd54 (patch)
tree4d8f7afe0de7c22c8381ebccae20fc54ab90cb21
parent82dec5e8083687f5d50dfb7b3c1d1d2041d9f9d6 (diff)
downloadunwinding-64cbc6ccd1140c8f81afbc93232914136427dd54.tar.gz
Revert "Only export unwindstack:: functions."
This reverts commit 82dec5e8083687f5d50dfb7b3c1d1d2041d9f9d6. Reason for revert: art_standalone_cmdline_tests failing b/315063112 Change-Id: I74d5bc05f8fd9a0d4d82895fcad1ac23c59d5af9
-rw-r--r--libunwindstack/Android.bp2
-rw-r--r--libunwindstack/AsmGetRegsX86.S3
-rw-r--r--libunwindstack/AsmGetRegsX86_64.S3
-rw-r--r--libunwindstack/exported.map7
-rw-r--r--libunwindstack/include/unwindstack/RegsGetLocal.h2
5 files changed, 1 insertions, 16 deletions
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