From: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
To: binutils@sourceware.org
Cc: amodra@gmail.com, jbeulich@suse.com, i@maskray.me,
Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Subject: [PATCH v2 6/6] gas: Add basic test for addrsig.
Date: Fri, 24 Jun 2022 00:13:54 +0900 [thread overview]
Message-ID: <20220623151353.62139-7-ishitatsuyuki@gmail.com> (raw)
In-Reply-To: <20220623151353.62139-1-ishitatsuyuki@gmail.com>
These are very basic tests to ensure that the addrsig directives are
correctly parsed and something is emitted.
---
gas/testsuite/gas/elf/addrsig.d | 7 +++++++
gas/testsuite/gas/elf/addrsig.s | 9 +++++++++
gas/testsuite/gas/elf/elf.exp | 1 +
3 files changed, 17 insertions(+)
create mode 100644 gas/testsuite/gas/elf/addrsig.d
create mode 100644 gas/testsuite/gas/elf/addrsig.s
diff --git a/gas/testsuite/gas/elf/addrsig.d b/gas/testsuite/gas/elf/addrsig.d
new file mode 100644
index 00000000000..0c1f7dcf440
--- /dev/null
+++ b/gas/testsuite/gas/elf/addrsig.d
@@ -0,0 +1,7 @@
+# name: .llvm_addrsig
+# objdump: -sj .llvm_addrsig
+
+.*: +file format .*
+
+Contents of section \.llvm_addrsig:
+ 0000 00020304 .*
diff --git a/gas/testsuite/gas/elf/addrsig.s b/gas/testsuite/gas/elf/addrsig.s
new file mode 100644
index 00000000000..c390ff52805
--- /dev/null
+++ b/gas/testsuite/gas/elf/addrsig.s
@@ -0,0 +1,9 @@
+ .addrsig
+ .addrsig_sym g1
+ .globl g2
+ .addrsig_sym g3
+ .addrsig_sym local
+ .addrsig_sym .Llocal
+local:
+.Llocal:
+.Llocal_hidden:
diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp
index 07f08a00a28..369fed64fa8 100644
--- a/gas/testsuite/gas/elf/elf.exp
+++ b/gas/testsuite/gas/elf/elf.exp
@@ -355,4 +355,5 @@ if { [is_elf_format] } then {
run_dump_test "bignums"
run_dump_test "section-symbol-redef"
run_dump_test "pr27228"
+ run_dump_test "addrsig"
}
--
2.36.1
next prev parent reply other threads:[~2022-06-23 15:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 15:13 [PATCH v2 0/6] gas: Add support for LLVM addrsig and addrsig_sym Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 1/6] elf: Add definition for SHT_LLVM_ADDRSIG Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 2/6] bfd: Output SH_LINK to .symtab " Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 3/6] objcopy: Remove SHT_LLVM_ADDRSIG sections by default Tatsuyuki Ishi
2022-06-23 15:40 ` Jan Beulich
2022-06-24 5:28 ` Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 4/6] ld: Discard LLVM_ADDRSIG sections Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 5/6] gas: Add support for LLVM addrsig and addrsig_sym directives on ELF Tatsuyuki Ishi
2022-06-23 15:13 ` Tatsuyuki Ishi [this message]
2022-06-28 9:20 ` [PATCH v2 0/6] gas: Add support for LLVM addrsig and addrsig_sym Alan Modra
2022-06-29 1:27 ` Tatsuyuki Ishi
2022-06-29 2:56 ` Alan Modra
2022-06-30 20:59 ` Fangrui Song
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220623151353.62139-7-ishitatsuyuki@gmail.com \
--to=ishitatsuyuki@gmail.com \
--cc=amodra@gmail.com \
--cc=binutils@sourceware.org \
--cc=i@maskray.me \
--cc=jbeulich@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).