public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Committed, adjustments for trivial test for .gnu.warning.SYMBOL
@ 2005-02-07 17:17 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2005-02-07 17:17 UTC (permalink / raw)
  To: binutils

Testing with the mips-elf toolchain showed that it default-sets
the type of symbols to OBJECT, so the readelf line didn't match.
As the purpose of that part of the test is to check that the
symbol attributes weren't munged by the warning support, it
seems better to test typical use and particularly where
attributes aren't default.  Hence, this is what I committed as
trivial changes, instead of the previous submitted code.  Same
changelog entry.

--- /dev/null	Tue Oct 29 15:57:07 2002
+++ symbol1w.s	Mon Feb  7 02:38:24 2005
@@ -0,0 +1,10 @@
+	.section .gnu.warning.symbol1
+	.asciz "witty one-liner"
+	.text
+	.type symbol1,@function
+	.global symbol1
+symbol1:
+.L1:
+	.long 0
+.L0:
+	.size symbol1,.L0-.L1
--- /dev/null	Tue Oct 29 15:57:07 2002
+++ warn1.d	Mon Feb  7 02:42:19 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-9a-f]+[ 	]+[48][ 	]+FUNC[	 ]+GLOBAL DEFAULT[ 	]+[1-9] symbol1
+#pass

brgds, H-P

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-07  2:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-07 17:17 Committed, adjustments for trivial test for .gnu.warning.SYMBOL Hans-Peter Nilsson

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).