aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2015-03-13 12:00:37 +0000
committerJiong Wang <jiong.wang@arm.com>2015-03-13 12:00:37 +0000
commitbc9706f8235a917f0b534f3790e2ac9981d53e94 (patch)
treeadc93b687c2d3bddad003a4a4175cafa027ea0d3 /gas
parenta1894d43936b689945b0cf2ce696904606f40c5c (diff)
downloadgdb-bc9706f8235a917f0b534f3790e2ac9981d53e94.zip
gdb-bc9706f8235a917f0b534f3790e2ac9981d53e94.tar.gz
gdb-bc9706f8235a917f0b534f3790e2ac9981d53e94.tar.bz2
[AArch64] Don't tail-pads sections to the alignment
2015-03-13 Jiong Wang <jiong.wang@arm.com> gas/ * config/tc-aarch64.h (SUB_SEGMENT_ALIGN): Define to be zero. gas/testsuite/ * gas/aarch64/tail_padding.s: New testcase. * gas/aarch64/tail_padding.d: New expectation file.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-aarch64.h2
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/aarch64/tail_padding.d17
-rw-r--r--gas/testsuite/gas/aarch64/tail_padding.s13
5 files changed, 41 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index eef846c..69b5bb9 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-13 Jiong Wang <jiong.wang@arm.com>
+
+ * config/tc-aarch64.h (SUB_SEGMENT_ALIGN): Define to be zero.
+
2015-03-12 Andrew Bennett <andrew.bennett@imgtec.com>
* config/tc-mips.c (mips_cpu_info_table): Add i6400 entry.
diff --git a/gas/config/tc-aarch64.h b/gas/config/tc-aarch64.h
index 19b9eae..86b70d6 100644
--- a/gas/config/tc-aarch64.h
+++ b/gas/config/tc-aarch64.h
@@ -146,6 +146,8 @@ struct aarch64_frag_type
goto LABEL; \
}
+#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0
+
#define DWARF2_LINE_MIN_INSN_LENGTH 4
/* The lr register is r30. */
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index c7650cc..065657c 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-13 Jiong Wang <jiong.wang@arm.com>
+
+ * gas/aarch64/tail_padding.s: New testcase.
+ * gas/aarch64/tail_padding.d: New expectation file.
+
2015-03-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* gas/s390/zarch-z13.d: Add more z13 instructions.
diff --git a/gas/testsuite/gas/aarch64/tail_padding.d b/gas/testsuite/gas/aarch64/tail_padding.d
new file mode 100644
index 0000000..3a5786a
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/tail_padding.d
@@ -0,0 +1,17 @@
+#readelf: -S
+#name: AArch64 section tail padding
+
+There are .* section headers, starting at offset .*:
+
+Section Headers:
+ \[Nr\] Name Type Address Offset
+ Size EntSize Flags Link Info Align
+ \[ 0\] NULL 0000000000000000 00000000
+ 0000000000000000 0000000000000000 0 0 0
+ \[ 1\] \.text PROGBITS 0000000000000000 00000040
+ 0000000000000000 0000000000000000 AX 0 0 1
+ \[ 2\] \.data PROGBITS 0000000000000000 00000040
+ 0000000000000008 0000000000000000 WA 0 0 64
+ \[ 3\] \.bss NOBITS 0000000000000000 00000080
+ 000000000000000c 0000000000000000 WA 0 0 64
+#...
diff --git a/gas/testsuite/gas/aarch64/tail_padding.s b/gas/testsuite/gas/aarch64/tail_padding.s
new file mode 100644
index 0000000..bbfba5b
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/tail_padding.s
@@ -0,0 +1,13 @@
+/* tail_padding.s Test file for AArch64 tail padding. */
+
+ .data
+ .p2align 6
+f:
+ .space 8
+
+ .bss
+ .p2align 6
+b:
+ .space 6
+ .local c
+ .comm c, 6