Fix a problem where the AArch64 ELF assembler was failing with
authorEric Christopher <echristo@gmail.com>
Mon, 26 Jan 2015 06:32:17 +0000 (06:32 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 26 Jan 2015 06:32:17 +0000 (06:32 +0000)
-no-exec-stack. This was due to it not deriving from the correct
asm info base class and missing the override for the exec
stack section query. Added another line to the noexec test
line to make sure this doesn't regress.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227074 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.h
test/MC/ELF/noexec.s

index 5d03c213c78269eda8720d07fba4c07ebaade715..9b88de7dabbc571fda6bf3006ed334d045cd4c71 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCASMINFO_H
 
 #include "llvm/MC/MCAsmInfoDarwin.h"
+#include "llvm/MC/MCAsmInfoELF.h"
 
 namespace llvm {
 class Target;
@@ -27,7 +28,7 @@ struct AArch64MCAsmInfoDarwin : public MCAsmInfoDarwin {
                               MCStreamer &Streamer) const override;
 };
 
-struct AArch64MCAsmInfoELF : public MCAsmInfo {
+struct AArch64MCAsmInfoELF : public MCAsmInfoELF {
   explicit AArch64MCAsmInfoELF(StringRef TT);
 };
 
index 28f50cb7f692bd0a30b8bdf53e7c47948f7b421f..1ff162073c7750c96ddbc242591e9ca047cb0582 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: llvm-mc -no-exec-stack -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck  %s
+// RUN: llvm-mc -no-exec-stack -filetype=obj -triple aarch64-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck %s
 
 // CHECK:        Section {
 // CHECK:          Index: 4