[PATCH] ELF: make .struct interact with .previous

Jan Beulich JBeulich@novell.com
Mon Apr 18 07:57:00 GMT 2005


>>> Alan Modra <amodra@bigpond.net.au> 18.04.05 01:34:05 >>>
>The struct test is using a .short, which looks like a data allocation
>pseudo-op to me.  If .short should have different alignment when you
>happen to use it in the absolute section, then md_cons_align should
>reflect that fact.

I agree to this; therefore I'd suggest the below adjustment to the test.

Jan

gas/testsuite/
2005-04-15  Jan Beulich  <jbeulich@novell.com>

	* gas/elf/struct.s: Adjust to not get into alignment issues.
	* gas/elf/struct.d: Adjust for the above and the test's name.

--- cpp/binutils/mainline-cvs/2005-04-11/gas/testsuite/gas/elf/struct.d.0	2005-04-12 11:48:51.000000000 +0200
+++ cpp/binutils/mainline-cvs/2005-04-11/gas/testsuite/gas/elf/struct.d	2005-04-18 09:54:43.846300704 +0200
@@ -1,10 +1,10 @@
 #nm: --extern-only
-#name: struct
+#name: ELF struct
 
 # Test the .struct pseudo-op.
 
 0+0 D l1
 0+4 D l2
-0+1 A w1
-0+3 A w2
-0+5 A w3
+0+2 A w1
+0+4 A w2
+0+6 A w3
--- cpp/binutils/mainline-cvs/2005-04-11/gas/testsuite/gas/elf/struct.s.0	2005-04-12 11:45:06.000000000 +0200
+++ cpp/binutils/mainline-cvs/2005-04-11/gas/testsuite/gas/elf/struct.s	2005-04-18 09:48:26.401681008 +0200
@@ -1,7 +1,7 @@
 	.globl	w1, w2, w3, l1, l2
 	.data
 l1:	.long	0
-	.struct 1
+	.struct 2
 w1:	.short	0
 w2:	.short	0
 w3:	.short	0


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-mainline-elf-struct-2.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20050418/567c6e0c/attachment.ksh>


More information about the Binutils mailing list