public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
To: binutils@sources.redhat.com
Subject: [RFA:] Trivial test for .gnu.warning.SYMBOL
Date: Sun, 06 Feb 2005 14:33:00 -0000	[thread overview]
Message-ID: <200502061149.j16BnmvE019580@ignucius.se.axis.com> (raw)

I noticed the lack of even trivial test-cases for ".gnu.warning".
Here's one for .gnu.warning.SYMBOL.
Ok to commit?

ld/testsuite:
	* ld-elf/start.s, ld-elf/symbolref.s, ld-elf/symbol1w.s,
	ld-elf/warn1.d: New test.

--- /dev/null	Tue Oct 29 15:57:07 2002
+++ start.s	Sat Feb  5 03:12:33 2005
@@ -0,0 +1,4 @@
+	.text
+	.global _start
+_start:
+	.long 0
--- /dev/null	Tue Oct 29 15:57:07 2002
+++ symbol1ref.s	Sat Feb  5 03:12:49 2005
@@ -0,0 +1,3 @@
+	.text
+	.long symbol1
+
--- /dev/null	Tue Oct 29 15:57:07 2002
+++ symbol1w.s	Sat Feb  5 03:32:12 2005
@@ -0,0 +1,6 @@
+	.section .gnu.warning.symbol1
+	.asciz "witty one-liner"
+	.text
+	.global symbol1
+symbol1:
+	.long 0
--- /dev/null	Tue Oct 29 15:57:07 2002
+++ warn1.d	Sat Feb  5 05:06:00 2005
@@ -0,0 +1,13 @@
+#source: start.s
+#source: symbol1ref.s
+#source: symbol1w.s
+#ld: 
+#warning: ^[^\\n]*\): warning: witty one-liner$
+#readelf: -s
+
+# Check that warnings are generated for the .gnu.warning.SYMBOL
+# construct and that the symbol still appears as expected.
+
+#...
+[ 	]+[0-9]+:[ 	]+[0-9]+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL DEFAULT[ 	]+[1-9] symbol1
+#pass

brgds, H-P

             reply	other threads:[~2005-02-06 11:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-06 14:33 Hans-Peter Nilsson [this message]
2005-02-06 15:07 ` Ian Lance Taylor
2005-02-13 17:18 ` Eric Botcazou
2005-02-13 19:22   ` Hans-Peter Nilsson
2005-02-13 20:39     ` Eric Botcazou
2005-02-14  0:17       ` Hans-Peter Nilsson
2005-02-14  9:18         ` Eric Botcazou
2005-02-14 10:38           ` Hans-Peter Nilsson

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=200502061149.j16BnmvE019580@ignucius.se.axis.com \
    --to=hans-peter.nilsson@axis.com \
    --cc=binutils@sources.redhat.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).