Commit 25a24347 authored by Johann's avatar Johann
Browse files

Use libvpx defines to set name mangling rules

Change-Id: I03986bf2b05032d8a29e5bd629f7f6703269ab13
parent 35747296
...@@ -10,3 +10,5 @@ defines that help automatically allow assembly to work cross-platform. ...@@ -10,3 +10,5 @@ defines that help automatically allow assembly to work cross-platform.
Local Modifications: Local Modifications:
Get configuration from vpx_config.asm. Get configuration from vpx_config.asm.
Prefix functions with vpx by default. Prefix functions with vpx by default.
Manage name mangling (prefixing with '_') manually because 'PREFIX' does not
exist in libvpx.
...@@ -66,10 +66,16 @@ ...@@ -66,10 +66,16 @@
%endif %endif
%endif %endif
%ifdef PREFIX %ifidn __OUTPUT_FORMAT__,elf32
%define mangle(x) _ %+ x %define mangle(x) x
%else %elifidn __OUTPUT_FORMAT__,elf64
%define mangle(x) x
%elifidn __OUTPUT_FORMAT__,x64
%define mangle(x) x %define mangle(x) x
%elifidn __OUTPUT_FORMAT__,win64
%define mangle(x) x
%else
%define mangle(x) _ %+ x
%endif %endif
%macro SECTION_RODATA 0-1 16 %macro SECTION_RODATA 0-1 16
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment