Don't include GNU object attributes when building with clang.

LLVM's MIPS assembler parser does not understand the GNU as
'.gnu_attribute' keyword.  This could be re-enabled if LLVM is updated
in the future.  The desired floating point ABI is already described in
the .MIPS.abiflags section.

Reviewed by:	emaste
Sponsored by:	DARPA / AFRL
This commit is contained in:
jhb 2017-08-30 19:19:31 +00:00
parent 6330970227
commit 9d9338ffa9
2 changed files with 4 additions and 0 deletions

View File

@ -1,7 +1,9 @@
#include <machine/asm.h>
__FBSDID("$FreeBSD$");
#ifndef __clang__
.gnu_attribute 4, 0
#endif
.section .init,"ax",%progbits
.align 4
.globl _init

View File

@ -1,7 +1,9 @@
#include <machine/asm.h>
__FBSDID("$FreeBSD$");
#ifndef __clang__
.gnu_attribute 4, 0
#endif
.section .init,"ax",%progbits
.align 4
.set noreorder