diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2014-11-29 13:57:41 -0800 |
---|---|---|
committer | Dmitriy Ivanov <dimitry@google.com> | 2014-12-02 10:54:26 -0800 |
commit | ab972b9adf8789a9e1b03129cd7f0c22e6bba117 (patch) | |
tree | 33b816d65afbcd622e38730b7516ba59ddb48fac /tests/libs/dlopen_testlib_loopy_b.cpp | |
parent | f64c43ba6c9244c50e904961dc432f04b1dfcfd9 (diff) | |
download | bionic-ab972b9adf8789a9e1b03129cd7f0c22e6bba117.zip bionic-ab972b9adf8789a9e1b03129cd7f0c22e6bba117.tar.gz bionic-ab972b9adf8789a9e1b03129cd7f0c22e6bba117.tar.bz2 |
Count references for groups instead of instances
Count references on the group level to avoid
partially unloading function that might be
referenced by other libraries in the local_group
Bonus: with this change we can correctly unload recursively
linked libraries. is_recursive check is removed.
Also dynamic executables (not .so) with 0 DT_NEEDED libraries
are now correctly linked.
Change-Id: Idfa83baef402840599b93a875f2881d9f020dbcd
Diffstat (limited to 'tests/libs/dlopen_testlib_loopy_b.cpp')
-rw-r--r-- | tests/libs/dlopen_testlib_loopy_b.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/libs/dlopen_testlib_loopy_b.cpp b/tests/libs/dlopen_testlib_loopy_b.cpp new file mode 100644 index 0000000..01dcda9 --- /dev/null +++ b/tests/libs/dlopen_testlib_loopy_b.cpp @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <stdlib.h> + +extern "C" bool dlopen_test_loopy_function_impl() { + return false; +} |