Commit 8634eaf8 authored by Johann's avatar Johann
Browse files

Only use .text sections for aout

Also do not specify alignment.

Change-Id: Id4a62bfa0fc3bc56e25689b5de7796bd6e864457
parent 41a0a0cb
...@@ -18,3 +18,4 @@ Avoid 'amdnop' when building with nasm. ...@@ -18,3 +18,4 @@ Avoid 'amdnop' when building with nasm.
Set 'private_extern' visibility for macho targets. Set 'private_extern' visibility for macho targets.
Copy PIC 'GLOBAL' macros from x86_abi_support.asm 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 instead of .rodata on macho to avoid broken tables in PIC mode.
Use .text with no alignment for aout
...@@ -87,13 +87,19 @@ ...@@ -87,13 +87,19 @@
%ifidn __OUTPUT_FORMAT__,macho32 %ifidn __OUTPUT_FORMAT__,macho32
SECTION .text align=%1 SECTION .text align=%1
fakegot: fakegot:
%elifidn __OUTPUT_FORMAT__,aout
SECTION .text
%else %else
SECTION .rodata align=%1 SECTION .rodata align=%1
%endif %endif
%endmacro %endmacro
%macro SECTION_TEXT 0-1 16 %macro SECTION_TEXT 0-1 16
SECTION .text align=%1 %ifidn __OUTPUT_FORMAT__,aout
SECTION .text
%else
SECTION .text align=%1
%endif
%endmacro %endmacro
; PIC macros are copied from vpx_ports/x86_abi_support.asm. The "define PIC" ; PIC macros are copied from vpx_ports/x86_abi_support.asm. The "define PIC"
......
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