am d11eac34: Force export symbols on all x86 variants in libc.
* commit 'd11eac3455a059a092ceee92eda9905e1d661e94': Force export symbols on all x86 variants in libc.
This commit is contained in:
commit
27355affc1
15
libc/arch-x86/bionic/libgcc_compat.c
Normal file
15
libc/arch-x86/bionic/libgcc_compat.c
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* Generated by genlibgcc_compat.py */
|
||||||
|
|
||||||
|
extern char __divdi3;
|
||||||
|
extern char __moddi3;
|
||||||
|
extern char __popcountsi2;
|
||||||
|
extern char __udivdi3;
|
||||||
|
extern char __umoddi3;
|
||||||
|
|
||||||
|
void* __bionic_libgcc_compat_symbols[] = {
|
||||||
|
&__divdi3,
|
||||||
|
&__moddi3,
|
||||||
|
&__popcountsi2,
|
||||||
|
&__udivdi3,
|
||||||
|
&__umoddi3,
|
||||||
|
};
|
@ -25,6 +25,7 @@ libc_bionic_src_files_x86 := \
|
|||||||
libc_bionic_src_files_x86 += \
|
libc_bionic_src_files_x86 += \
|
||||||
arch-x86/bionic/__bionic_clone.S \
|
arch-x86/bionic/__bionic_clone.S \
|
||||||
arch-x86/bionic/_exit_with_stack_teardown.S \
|
arch-x86/bionic/_exit_with_stack_teardown.S \
|
||||||
|
arch-x86/bionic/libgcc_compat.c \
|
||||||
arch-x86/bionic/_setjmp.S \
|
arch-x86/bionic/_setjmp.S \
|
||||||
arch-x86/bionic/setjmp.S \
|
arch-x86/bionic/setjmp.S \
|
||||||
arch-x86/bionic/__set_tls.c \
|
arch-x86/bionic/__set_tls.c \
|
||||||
|
@ -76,9 +76,6 @@ libgcc_compat_header = "/* Generated by genlibgcc_compat.py */\n\n"
|
|||||||
class Generator:
|
class Generator:
|
||||||
def process(self):
|
def process(self):
|
||||||
android_build_top_path = os.environ["ANDROID_BUILD_TOP"]
|
android_build_top_path = os.environ["ANDROID_BUILD_TOP"]
|
||||||
build_path = android_build_top_path + "/bionic/libc"
|
|
||||||
file_name = "libgcc_compat.c"
|
|
||||||
file_path = build_path + "/arch-arm/bionic/" + file_name
|
|
||||||
|
|
||||||
print "* ANDROID_BUILD_TOP=" + android_build_top_path
|
print "* ANDROID_BUILD_TOP=" + android_build_top_path
|
||||||
|
|
||||||
@ -86,8 +83,12 @@ class Generator:
|
|||||||
arch = subprocess.check_output(["CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core make --no-print-directory -f build/core/config.mk dumpvar-TARGET_ARCH"],
|
arch = subprocess.check_output(["CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core make --no-print-directory -f build/core/config.mk dumpvar-TARGET_ARCH"],
|
||||||
cwd=android_build_top_path, shell=True).strip()
|
cwd=android_build_top_path, shell=True).strip()
|
||||||
|
|
||||||
if arch != 'arm':
|
if arch != 'arm' and arch != 'x86':
|
||||||
sys.exit("Error: Invalid TARGET_ARCH='" + arch + "' expecting 'arm'")
|
sys.exit("Error: Invalid TARGET_ARCH='" + arch + "' expecting 'arm' or 'x86'")
|
||||||
|
|
||||||
|
build_path = android_build_top_path + "/bionic/libc"
|
||||||
|
file_name = "libgcc_compat.c"
|
||||||
|
file_path = build_path + "/arch-" + arch + "/bionic/" + file_name
|
||||||
|
|
||||||
build_output_file_path = tempfile.mkstemp()[1]
|
build_output_file_path = tempfile.mkstemp()[1]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user