am f5e0ba94: Merge "Make gensyscalls.py use the ALIAS_SYMBOL macro."

* commit 'f5e0ba94d911ef2622ecfd3f7fabc4432a4806d3':
  Make gensyscalls.py use the ALIAS_SYMBOL macro.
This commit is contained in:
Christopher Ferris 2015-03-25 04:31:15 +00:00 committed by Android Git Automerger
commit 44a6dcc2a4
50 changed files with 50 additions and 105 deletions

View File

@ -13,5 +13,4 @@ ENTRY(_exit)
b __set_errno_internal b __set_errno_internal
END(_exit) END(_exit)
.globl _Exit ALIAS_SYMBOL(_Exit, _exit)
.equ _Exit, _exit

View File

@ -13,5 +13,4 @@ ENTRY(fstat64)
b __set_errno_internal b __set_errno_internal
END(fstat64) END(fstat64)
.globl fstat ALIAS_SYMBOL(fstat, fstat64)
.equ fstat, fstat64

View File

@ -13,5 +13,4 @@ ENTRY(fstatat64)
b __set_errno_internal b __set_errno_internal
END(fstatat64) END(fstatat64)
.globl fstatat ALIAS_SYMBOL(fstatat, fstatat64)
.equ fstatat, fstatat64

View File

@ -13,5 +13,4 @@ ENTRY(_exit)
ret ret
END(_exit) END(_exit)
.globl _Exit ALIAS_SYMBOL(_Exit, _exit)
.equ _Exit, _exit

View File

@ -13,5 +13,4 @@ ENTRY(fallocate)
ret ret
END(fallocate) END(fallocate)
.globl fallocate64 ALIAS_SYMBOL(fallocate64, fallocate)
.equ fallocate64, fallocate

View File

@ -13,5 +13,4 @@ ENTRY(fstat64)
ret ret
END(fstat64) END(fstat64)
.globl fstat ALIAS_SYMBOL(fstat, fstat64)
.equ fstat, fstat64

View File

@ -13,5 +13,4 @@ ENTRY(fstatat64)
ret ret
END(fstatat64) END(fstatat64)
.globl fstatat ALIAS_SYMBOL(fstatat, fstatat64)
.equ fstatat, fstatat64

View File

@ -13,5 +13,4 @@ ENTRY(ftruncate)
ret ret
END(ftruncate) END(ftruncate)
.globl ftruncate64 ALIAS_SYMBOL(ftruncate64, ftruncate)
.equ ftruncate64, ftruncate

View File

@ -13,5 +13,4 @@ ENTRY(getrlimit)
ret ret
END(getrlimit) END(getrlimit)
.globl getrlimit64 ALIAS_SYMBOL(getrlimit64, getrlimit)
.equ getrlimit64, getrlimit

View File

@ -13,5 +13,4 @@ ENTRY(lseek)
ret ret
END(lseek) END(lseek)
.globl lseek64 ALIAS_SYMBOL(lseek64, lseek)
.equ lseek64, lseek

View File

@ -13,5 +13,4 @@ ENTRY(mmap)
ret ret
END(mmap) END(mmap)
.globl mmap64 ALIAS_SYMBOL(mmap64, mmap)
.equ mmap64, mmap

View File

@ -13,5 +13,4 @@ ENTRY(pread64)
ret ret
END(pread64) END(pread64)
.globl pread ALIAS_SYMBOL(pread, pread64)
.equ pread, pread64

View File

@ -13,5 +13,4 @@ ENTRY(prlimit64)
ret ret
END(prlimit64) END(prlimit64)
.globl prlimit ALIAS_SYMBOL(prlimit, prlimit64)
.equ prlimit, prlimit64

View File

@ -13,5 +13,4 @@ ENTRY(pwrite64)
ret ret
END(pwrite64) END(pwrite64)
.globl pwrite ALIAS_SYMBOL(pwrite, pwrite64)
.equ pwrite, pwrite64

View File

@ -13,5 +13,4 @@ ENTRY(sendfile)
ret ret
END(sendfile) END(sendfile)
.globl sendfile64 ALIAS_SYMBOL(sendfile64, sendfile)
.equ sendfile64, sendfile

View File

@ -13,5 +13,4 @@ ENTRY(setrlimit)
ret ret
END(setrlimit) END(setrlimit)
.globl setrlimit64 ALIAS_SYMBOL(setrlimit64, setrlimit)
.equ setrlimit64, setrlimit

View File

@ -13,5 +13,4 @@ ENTRY(truncate)
ret ret
END(truncate) END(truncate)
.globl truncate64 ALIAS_SYMBOL(truncate64, truncate)
.equ truncate64, truncate

View File

@ -18,5 +18,4 @@ ENTRY(_exit)
.set reorder .set reorder
END(_exit) END(_exit)
.globl _Exit ALIAS_SYMBOL(_Exit, _exit)
.equ _Exit, _exit

View File

@ -18,5 +18,4 @@ ENTRY(fstat64)
.set reorder .set reorder
END(fstat64) END(fstat64)
.globl fstat ALIAS_SYMBOL(fstat, fstat64)
.equ fstat, fstat64

View File

@ -18,5 +18,4 @@ ENTRY(fstatat64)
.set reorder .set reorder
END(fstatat64) END(fstatat64)
.globl fstatat ALIAS_SYMBOL(fstatat, fstatat64)
.equ fstatat, fstatat64

View File

@ -24,5 +24,4 @@ ENTRY(_exit)
.set pop .set pop
END(_exit) END(_exit)
.globl _Exit ALIAS_SYMBOL(_Exit, _exit)
.equ _Exit, _exit

View File

@ -24,5 +24,4 @@ ENTRY(fallocate)
.set pop .set pop
END(fallocate) END(fallocate)
.globl fallocate64 ALIAS_SYMBOL(fallocate64, fallocate)
.equ fallocate64, fallocate

View File

@ -24,5 +24,4 @@ ENTRY(ftruncate)
.set pop .set pop
END(ftruncate) END(ftruncate)
.globl ftruncate64 ALIAS_SYMBOL(ftruncate64, ftruncate)
.equ ftruncate64, ftruncate

View File

@ -24,5 +24,4 @@ ENTRY(getrlimit)
.set pop .set pop
END(getrlimit) END(getrlimit)
.globl getrlimit64 ALIAS_SYMBOL(getrlimit64, getrlimit)
.equ getrlimit64, getrlimit

View File

@ -24,5 +24,4 @@ ENTRY(lseek)
.set pop .set pop
END(lseek) END(lseek)
.globl lseek64 ALIAS_SYMBOL(lseek64, lseek)
.equ lseek64, lseek

View File

@ -24,5 +24,4 @@ ENTRY(mmap)
.set pop .set pop
END(mmap) END(mmap)
.globl mmap64 ALIAS_SYMBOL(mmap64, mmap)
.equ mmap64, mmap

View File

@ -24,5 +24,4 @@ ENTRY(pread64)
.set pop .set pop
END(pread64) END(pread64)
.globl pread ALIAS_SYMBOL(pread, pread64)
.equ pread, pread64

View File

@ -24,5 +24,4 @@ ENTRY(prlimit64)
.set pop .set pop
END(prlimit64) END(prlimit64)
.globl prlimit ALIAS_SYMBOL(prlimit, prlimit64)
.equ prlimit, prlimit64

View File

@ -24,5 +24,4 @@ ENTRY(pwrite64)
.set pop .set pop
END(pwrite64) END(pwrite64)
.globl pwrite ALIAS_SYMBOL(pwrite, pwrite64)
.equ pwrite, pwrite64

View File

@ -24,5 +24,4 @@ ENTRY(sendfile)
.set pop .set pop
END(sendfile) END(sendfile)
.globl sendfile64 ALIAS_SYMBOL(sendfile64, sendfile)
.equ sendfile64, sendfile

View File

@ -24,5 +24,4 @@ ENTRY(setrlimit)
.set pop .set pop
END(setrlimit) END(setrlimit)
.globl setrlimit64 ALIAS_SYMBOL(setrlimit64, setrlimit)
.equ setrlimit64, setrlimit

View File

@ -24,5 +24,4 @@ ENTRY(truncate)
.set pop .set pop
END(truncate) END(truncate)
.globl truncate64 ALIAS_SYMBOL(truncate64, truncate)
.equ truncate64, truncate

View File

@ -20,5 +20,4 @@ ENTRY(_exit)
ret ret
END(_exit) END(_exit)
.globl _Exit ALIAS_SYMBOL(_Exit, _exit)
.equ _Exit, _exit

View File

@ -25,5 +25,4 @@ ENTRY(fstat64)
ret ret
END(fstat64) END(fstat64)
.globl fstat ALIAS_SYMBOL(fstat, fstat64)
.equ fstat, fstat64

View File

@ -35,5 +35,4 @@ ENTRY(fstatat64)
ret ret
END(fstatat64) END(fstatat64)
.globl fstatat ALIAS_SYMBOL(fstatat, fstatat64)
.equ fstatat, fstatat64

View File

@ -14,5 +14,4 @@ ENTRY(_exit)
ret ret
END(_exit) END(_exit)
.globl _Exit ALIAS_SYMBOL(_Exit, _exit)
.equ _Exit, _exit

View File

@ -15,5 +15,4 @@ ENTRY(fallocate)
ret ret
END(fallocate) END(fallocate)
.globl fallocate64 ALIAS_SYMBOL(fallocate64, fallocate)
.equ fallocate64, fallocate

View File

@ -14,5 +14,4 @@ ENTRY(fstat64)
ret ret
END(fstat64) END(fstat64)
.globl fstat ALIAS_SYMBOL(fstat, fstat64)
.equ fstat, fstat64

View File

@ -15,5 +15,4 @@ ENTRY(fstatat64)
ret ret
END(fstatat64) END(fstatat64)
.globl fstatat ALIAS_SYMBOL(fstatat, fstatat64)
.equ fstatat, fstatat64

View File

@ -14,5 +14,4 @@ ENTRY(ftruncate)
ret ret
END(ftruncate) END(ftruncate)
.globl ftruncate64 ALIAS_SYMBOL(ftruncate64, ftruncate)
.equ ftruncate64, ftruncate

View File

@ -14,5 +14,4 @@ ENTRY(getrlimit)
ret ret
END(getrlimit) END(getrlimit)
.globl getrlimit64 ALIAS_SYMBOL(getrlimit64, getrlimit)
.equ getrlimit64, getrlimit

View File

@ -14,5 +14,4 @@ ENTRY(lseek)
ret ret
END(lseek) END(lseek)
.globl lseek64 ALIAS_SYMBOL(lseek64, lseek)
.equ lseek64, lseek

View File

@ -15,5 +15,4 @@ ENTRY(mmap)
ret ret
END(mmap) END(mmap)
.globl mmap64 ALIAS_SYMBOL(mmap64, mmap)
.equ mmap64, mmap

View File

@ -15,5 +15,4 @@ ENTRY(pread64)
ret ret
END(pread64) END(pread64)
.globl pread ALIAS_SYMBOL(pread, pread64)
.equ pread, pread64

View File

@ -15,5 +15,4 @@ ENTRY(prlimit64)
ret ret
END(prlimit64) END(prlimit64)
.globl prlimit ALIAS_SYMBOL(prlimit, prlimit64)
.equ prlimit, prlimit64

View File

@ -15,5 +15,4 @@ ENTRY(pwrite64)
ret ret
END(pwrite64) END(pwrite64)
.globl pwrite ALIAS_SYMBOL(pwrite, pwrite64)
.equ pwrite, pwrite64

View File

@ -15,5 +15,4 @@ ENTRY(sendfile)
ret ret
END(sendfile) END(sendfile)
.globl sendfile64 ALIAS_SYMBOL(sendfile64, sendfile)
.equ sendfile64, sendfile

View File

@ -14,5 +14,4 @@ ENTRY(setrlimit)
ret ret
END(setrlimit) END(setrlimit)
.globl setrlimit64 ALIAS_SYMBOL(setrlimit64, setrlimit)
.equ setrlimit64, setrlimit

View File

@ -14,5 +14,4 @@ ENTRY(truncate)
ret ret
END(truncate) END(truncate)
.globl truncate64 ALIAS_SYMBOL(truncate64, truncate)
.equ truncate64, truncate

View File

@ -56,12 +56,6 @@ ENTRY(%(func)s)
""" """
function_alias = """
.globl %(alias)s
.equ %(alias)s, %(func)s
"""
# #
# ARM assembler templates for each syscall stub # ARM assembler templates for each syscall stub
# #
@ -284,7 +278,7 @@ def add_footer(pointer_length, stub, syscall):
# Add any aliases for this syscall. # Add any aliases for this syscall.
aliases = syscall["aliases"] aliases = syscall["aliases"]
for alias in aliases: for alias in aliases:
stub += function_alias % { "func" : syscall["func"], "alias" : alias } stub += "\nALIAS_SYMBOL(%s, %s)\n" % (alias, syscall["func"])
# Use hidden visibility on LP64 for any functions beginning with underscores. # Use hidden visibility on LP64 for any functions beginning with underscores.
# Force hidden visibility for any functions which begin with 3 underscores # Force hidden visibility for any functions which begin with 3 underscores