+2002-06-12 Tom Rix <trix@redhat.com>
+
+ * gas/ppc/aix.exp: Run tests for all versions of powerpc AIX. Add
+ text alignment tests.
+ * gas/ppc/textalign-xcoff-001.d: New Test.
+ * gas/ppc/textalign-xcoff-002.d: New Test.
+ * gas/ppc/test1xcoff32.d : Change text section alignment.
+ * gas/ppc/booke_xcoff.d: Remove invalid pad.
+
2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
* gas/hppa/basic/add.s: Set code level to 1.1.
-# Copyright (C) 2001 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
# Contributed by Red Hat
# This program is free software; you can redistribute it and/or modify
}
-if [istarget powerpc*-*-aix4.3*] then {
+if [istarget powerpc-ibm-aix*] then {
# Make sure that symbols are correctly aligned
do_align_test
+
+ run_dump_test "textalign-xcoff-001"
+ run_dump_test "textalign-xcoff-002"
}
40: 7c 00 04 ac sync
44: 7c 09 55 ec dcba r9,r10
48: 7c 00 06 ac eieio
- 4c: 00 00 00 00 .long 0x0
Disassembly of section .data:
Sections:
Idx Name +Size +VMA +LMA +File off +Algn
- 0 \.text +00000068 0+0000 0+0000 000000a8 2\*\*3
+ 0 \.text +00000068 0+0000 0+0000 000000a8 2\*\*2
+CONTENTS, ALLOC, LOAD, RELOC, CODE
1 \.data +00000028 0+0068 0+0068 00000110 2\*\*3
+CONTENTS, ALLOC, LOAD, RELOC, DATA
--- /dev/null
+#objdump: -h
+#source: textalign-xcoff-001.s
+#as:
+
+.*: file format aixcoff-rs6000
+
+Sections:
+Idx Name Size VMA LMA File off Algn
+ 0 \.text 00000004 0000000000000000 0000000000000000 000000a8 2\*\*2
+ CONTENTS, ALLOC, LOAD, CODE
+ 1 \.data 00000008 0000000000000004 0000000000000004 000000ac 2\*\*3
+ CONTENTS, ALLOC, LOAD, RELOC, DATA
+ 2 \.bss 00000000 000000000000000c 000000000000000c 00000000 2\*\*3
+ ALLOC
--- /dev/null
+ .globl __start
+ .globl .__start
+
+__start:
+ .csect .data[DS]
+ .long .__start
+
+ .csect .text[pr]
+.__start:
+ nop
+
\ No newline at end of file
--- /dev/null
+#objdump: -h
+#source: textalign-xcoff-001.s
+#as: -mppc64 -a64
+
+.*: file format .*coff64-rs6000
+
+Sections:
+Idx Name Size VMA LMA File off Algn
+ 0 \.text 00000004 0000000000000000 0000000000000000 000000f0 2\*\*2
+ CONTENTS, ALLOC, LOAD, CODE
+ 1 \.data 00000008 0000000000000004 0000000000000004 000000f4 2\*\*3
+ CONTENTS, ALLOC, LOAD, RELOC, DATA
+ 2 \.bss 00000000 000000000000000c 000000000000000c 00000000 2\*\*3
+ ALLOC