summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2015-08-10 12:08:18 -0700
committerJohann <johannkoenig@google.com>2015-08-10 12:08:18 -0700
commit8634eaf87a2c125d3bca8f0ee720b32feb684e67 (patch)
tree9a090b8ab188d74856ae68ac1f75e35c7b8df13d /third_party
parent41a0a0cb35771a46428c00d5c3829f6a6ea5c950 (diff)
downloadlibvpx-8634eaf87a2c125d3bca8f0ee720b32feb684e67.tar.gz
Only use .text sections for aout
Also do not specify alignment. Change-Id: Id4a62bfa0fc3bc56e25689b5de7796bd6e864457
Diffstat (limited to 'third_party')
-rw-r--r--third_party/x86inc/README.libvpx1
-rw-r--r--third_party/x86inc/x86inc.asm8
2 files changed, 8 insertions, 1 deletions
diff --git a/third_party/x86inc/README.libvpx b/third_party/x86inc/README.libvpx
index 013e08521..9a911711a 100644
--- a/third_party/x86inc/README.libvpx
+++ b/third_party/x86inc/README.libvpx
@@ -18,3 +18,4 @@ Avoid 'amdnop' when building with nasm.
Set 'private_extern' visibility for macho targets.
Copy PIC 'GLOBAL' macros from x86_abi_support.asm
Use .text instead of .rodata on macho to avoid broken tables in PIC mode.
+Use .text with no alignment for aout
diff --git a/third_party/x86inc/x86inc.asm b/third_party/x86inc/x86inc.asm
index 840a5190d..e88c85123 100644
--- a/third_party/x86inc/x86inc.asm
+++ b/third_party/x86inc/x86inc.asm
@@ -87,13 +87,19 @@
%ifidn __OUTPUT_FORMAT__,macho32
SECTION .text align=%1
fakegot:
+ %elifidn __OUTPUT_FORMAT__,aout
+ SECTION .text
%else
SECTION .rodata align=%1
%endif
%endmacro
%macro SECTION_TEXT 0-1 16
- SECTION .text align=%1
+ %ifidn __OUTPUT_FORMAT__,aout
+ SECTION .text
+ %else
+ SECTION .text align=%1
+ %endif
%endmacro
; PIC macros are copied from vpx_ports/x86_abi_support.asm. The "define PIC"