Make gensyscalls.py use the ALIAS_SYMBOL macro.

Change-Id: Ib94c0abb6fc85126ecc5ed3f1962b2b8b90b9952
This commit is contained in:
Christopher Ferris
2015-03-24 16:50:46 -07:00
parent ee4997ecc3
commit fa5faa0ce6
50 changed files with 50 additions and 105 deletions

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
#
@@ -284,7 +278,7 @@ def add_footer(pointer_length, stub, syscall):
# Add any aliases for this syscall.
aliases = syscall["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.
# Force hidden visibility for any functions which begin with 3 underscores