Commit 9a6972c8 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by On2 (Google) Code Review
Browse files

Merge "x86inc: add some more format identifiers for elf file format recognition." into experimental

Showing with 10 additions and 0 deletions
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
%define mangle(x) x %define mangle(x) x
%elifidn __OUTPUT_FORMAT__,elf64 %elifidn __OUTPUT_FORMAT__,elf64
%define mangle(x) x %define mangle(x) x
%elifidn __OUTPUT_FORMAT__,elf
%define mangle(x) x
%elifidn __OUTPUT_FORMAT__,x64 %elifidn __OUTPUT_FORMAT__,x64
%define mangle(x) x %define mangle(x) x
%else %else
...@@ -515,6 +517,10 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 ...@@ -515,6 +517,10 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14
%xdefine current_function %1 %xdefine current_function %1
%ifidn __OUTPUT_FORMAT__,elf %ifidn __OUTPUT_FORMAT__,elf
global %1:function hidden global %1:function hidden
%elifidn __OUTPUT_FORMAT__,elf32
global %1:function hidden
%elifidn __OUTPUT_FORMAT__,elf64
global %1:function hidden
%else %else
global %1 global %1
%endif %endif
...@@ -550,6 +556,10 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 ...@@ -550,6 +556,10 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14
; executable by default. ; executable by default.
%ifidn __OUTPUT_FORMAT__,elf %ifidn __OUTPUT_FORMAT__,elf
SECTION .note.GNU-stack noalloc noexec nowrite progbits SECTION .note.GNU-stack noalloc noexec nowrite progbits
%elifidn __OUTPUT_FORMAT__,elf32
SECTION .note.GNU-stack noalloc noexec nowrite progbits
%elifidn __OUTPUT_FORMAT__,elf64
SECTION .note.GNU-stack noalloc noexec nowrite progbits
%endif %endif
; cpuflags ; cpuflags
......
Supports Markdown
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