[Patch mach-o/gas] implement .zerofill
Iain Sandoe
developer@sandoe-acoustics.co.uk
Wed Jan 4 11:13:00 GMT 2012
On 2 Jan 2012, at 14:36, Tristan Gingold wrote:
>>>
>>> Do you have tests for .zerofill ?
>>
>> yes, (there's a second one to come, but I'll hold it until the
>> symbol sorting code is in).
>>
>> OK?
>
> Ok.
applied with the test.
Here's a second test, now that we have the symbol sorting in.
OK?
Iain
gas/testsuite:
* gas/mach-o/zerofill-2.d: New.
gas/testsuite/gas/mach-o/zerofill-2.d | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/gas/testsuite/gas/mach-o/zerofill-2.d b/gas/testsuite/gas/
mach-o/zerofill-2.d
new file mode 100644
index 0000000..eb9fd85
--- /dev/null
+++ b/gas/testsuite/gas/mach-o/zerofill-2.d
@@ -0,0 +1,12 @@
+#objdump: -t
+#source: zerofill-1.s
+.*: +file format mach-o.*
+#...
+SYMBOL TABLE:
+(00000000)?00000000 l.*0e SECT.*03 0000 \[__DATA.__zf_2\] zfs
+(00000000)?00000000 l.*0e SECT.*04 0000 \[__DATA.__zf_3\] withalign
+(00000000)?00000008 l.*0e SECT.*04 0000 \[__DATA.__zf_3\] withalign1
+(00000000)?00000000 g.*0f SECT.*01 0000 \[.text\] a
+(00000000)?00000001 g.*0f SECT.*01 0000 \[.text\] b
+(00000000)?00000002 g.*0f SECT.*01 0000 \[.text\] c
+(00000000)?00000003 g.*0f SECT.*01 0000 \[.text\] d
More information about the Binutils
mailing list