summaryrefslogtreecommitdiff
path: root/test/elf/Hexagon/maxalignment.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/elf/Hexagon/maxalignment.test')
-rw-r--r--test/elf/Hexagon/maxalignment.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/elf/Hexagon/maxalignment.test b/test/elf/Hexagon/maxalignment.test
new file mode 100644
index 0000000000000..cac1c200734fa
--- /dev/null
+++ b/test/elf/Hexagon/maxalignment.test
@@ -0,0 +1,8 @@
+# This tests that we lld is able to get the contentType properly for archives
+# when they intermittently get loaded at an address whose alignment is 2
+
+RUN: lld -flavor gnu -target hexagon --whole-archive %p/Inputs/libMaxAlignment.a \
+RUN: --noinhibit-exec -static -o %t
+RUN: llvm-nm %t | FileCheck %s
+
+CHECK: {{[0-9a-f]+}} D a