svn commit: r323028 - head/lib/csu/mips
John Baldwin
jhb at FreeBSD.org
Wed Aug 30 19:19:32 UTC 2017
Author: jhb
Date: Wed Aug 30 19:19:31 2017
New Revision: 323028
URL: https://svnweb.freebsd.org/changeset/base/323028
Log:
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
Modified:
head/lib/csu/mips/crti.S
head/lib/csu/mips/crtn.S
Modified: head/lib/csu/mips/crti.S
==============================================================================
--- head/lib/csu/mips/crti.S Wed Aug 30 18:56:24 2017 (r323027)
+++ head/lib/csu/mips/crti.S Wed Aug 30 19:19:31 2017 (r323028)
@@ -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
Modified: head/lib/csu/mips/crtn.S
==============================================================================
--- head/lib/csu/mips/crtn.S Wed Aug 30 18:56:24 2017 (r323027)
+++ head/lib/csu/mips/crtn.S Wed Aug 30 19:19:31 2017 (r323028)
@@ -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
More information about the svn-src-all
mailing list