Make gensyscalls.py use the ALIAS_SYMBOL macro.
Change-Id: Ib94c0abb6fc85126ecc5ed3f1962b2b8b90b9952
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user