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:
John Baldwin 2017-08-30 19:19:31 +00:00
parent a969350226
commit e896328044
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