aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2019-01-16 13:37:35 -0800
committerJim Wilson <jimw@sifive.com>2019-01-16 13:37:35 -0800
commita4bf3d0720b1093dd148b7a728f92ce690a8a034 (patch)
treef49a3a49ed0bae1cbdba2605a5805a8d0967474a /gas
parent7d7a7d7ccf6047cc5b480064e9eb9489542c0dd7 (diff)
downloadgdb-a4bf3d0720b1093dd148b7a728f92ce690a8a034.zip
gdb-a4bf3d0720b1093dd148b7a728f92ce690a8a034.tar.gz
gdb-a4bf3d0720b1093dd148b7a728f92ce690a8a034.tar.bz2
Don't emit vendor attribute section if there is no attribute to emit.
2019-01-16 Kito Cheng <kito@andestech.com> bfd/ * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even for OBJ_ATTR_PROC. gas/ * testsuite/gas/riscv/attribute-empty.d: New.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/testsuite/gas/riscv/attribute-empty.d3
2 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 3228342..cd80c48 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,4 +1,8 @@
2019-01-16 Kito Cheng <kito@andestech.com>
+
+ * testsuite/gas/riscv/attribute-empty.d: New.
+
+2019-01-16 Kito Cheng <kito@andestech.com>
Nelson Chu <nelson@andestech.com>
* config/tc-riscv.c (DEFAULT_RISCV_ATTR): Define to 0 if not defined.
diff --git a/gas/testsuite/gas/riscv/attribute-empty.d b/gas/testsuite/gas/riscv/attribute-empty.d
new file mode 100644
index 0000000..4f0982a
--- /dev/null
+++ b/gas/testsuite/gas/riscv/attribute-empty.d
@@ -0,0 +1,3 @@
+#as: -mno-arch-attr
+#readelf: -A
+#source: empty.s