This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] gas: .lcomm gets an alignment argument in eBPF
- From: Jose E.Marchesi <jemarch at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 18 Jul 2019 11:12:58 -0000
- Subject: [binutils-gdb] gas: .lcomm gets an alignment argument in eBPF
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d0044bac9eb6c5476d29c41872bcf8f74a990d4f
commit d0044bac9eb6c5476d29c41872bcf8f74a990d4f
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Wed Jul 17 23:18:41 2019 +0200
gas: .lcomm gets an alignment argument in eBPF
gas/ChangeLog:
2019-07-17 Jose E. Marchesi <jose.marchesi@oracle.com>
* config/tc-bpf.c: Make .lcomm to get a third argument with the
alignment.
Diff:
---
gas/ChangeLog | 6 ++++++
gas/config/tc-bpf.c | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5d3bb61..6e457d9 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,6 +1,12 @@
2019-07-17 Jose E. Marchesi <jose.marchesi@oracle.com>
+ * config/tc-bpf.c: Make .lcomm to get a third argument with the
+ alignment.
+
+2019-07-17 Jose E. Marchesi <jose.marchesi@oracle.com>
+
* config/tc-bpf.c (md_pseudo_table): .half, .word and .dword.
+
* testsuite/gas/bpf/data.s: New file.
* testsuite/gas/bpf/data.d: Likewise.
* testsuite/gas/bpf/data-be.d: Likewise.
diff --git a/gas/config/tc-bpf.c b/gas/config/tc-bpf.c
index 3ebe81f..4b92b77 100644
--- a/gas/config/tc-bpf.c
+++ b/gas/config/tc-bpf.c
@@ -41,7 +41,8 @@ const pseudo_typeS md_pseudo_table[] =
{ "half", cons, 2 },
{ "word", cons, 4 },
{ "dword", cons, 8 },
- { NULL, NULL, 0 }
+ { "lcomm", s_lcomm, 1 },
+ { NULL, NULL, 0 }
};
/* ISA handling. */