diff options
author | Dave Korn <dave.korn@artimi.com> | 2010-01-27 22:01:38 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2010-01-27 22:01:38 +0000 |
commit | 31907d5e90e584f98b90092bf85e66e7b4b4b721 (patch) | |
tree | 5f84803b0f6ae3acab3e95bda0150dae01d00164 /gas/testsuite | |
parent | 40b27cdc5906e0836e8791dce39c8608ee5f858d (diff) | |
download | gdb-31907d5e90e584f98b90092bf85e66e7b4b4b721.zip gdb-31907d5e90e584f98b90092bf85e66e7b4b4b721.tar.gz gdb-31907d5e90e584f98b90092bf85e66e7b4b4b721.tar.bz2 |
gas/ChangeLog:
* NEWS: Mention new feature.
* config/obj-coff.c (obj_coff_section): Accept digits and use
to override default section alignment power if specified.
* doc/as.texinfo (.section directive): Update documentation.
gas/testsuite/ChangeLog:
* gas/pe/section-align-1.s: New test source file.
* gas/pe/section-align-1.d: Likewise control script.
* gas/pe/section-align-2.s: Likewise ...
* gas/pe/section-align-2.d: ... and likewise.
* gas/pe/pe.exp: Invoke new testcases.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rwxr-xr-x | gas/testsuite/gas/pe/pe.exp | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/pe/section-align-1.d | 29 | ||||
-rw-r--r-- | gas/testsuite/gas/pe/section-align-1.s | 15 | ||||
-rw-r--r-- | gas/testsuite/gas/pe/section-align-3.d | 39 | ||||
-rw-r--r-- | gas/testsuite/gas/pe/section-align-3.s | 25 |
6 files changed, 119 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index b12983d..75e6054 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2010-01-27 Dave Korn <dave.korn.cygwin@gmail.com> + + * gas/pe/section-align-1.s: New test source file. + * gas/pe/section-align-1.d: Likewise control script. + * gas/pe/section-align-2.s: Likewise ... + * gas/pe/section-align-2.d: ... and likewise. + * gas/pe/pe.exp: Invoke new testcases. + 2010-01-27 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/avx-scalar-intel.d: New. diff --git a/gas/testsuite/gas/pe/pe.exp b/gas/testsuite/gas/pe/pe.exp index 87e2a3e..aadf972 100755 --- a/gas/testsuite/gas/pe/pe.exp +++ b/gas/testsuite/gas/pe/pe.exp @@ -32,3 +32,6 @@ run_dump_test "aligncomm-a" run_dump_test "aligncomm-b" run_dump_test "aligncomm-c" run_dump_test "aligncomm-d" + +run_dump_test "section-align-1" +run_dump_test "section-align-3" diff --git a/gas/testsuite/gas/pe/section-align-1.d b/gas/testsuite/gas/pe/section-align-1.d new file mode 100644 index 0000000..01fb471 --- /dev/null +++ b/gas/testsuite/gas/pe/section-align-1.d @@ -0,0 +1,29 @@ +#objdump: -h +#name: section alignment + +# Test that alignment works in .section directives. + +.*: .* + +Sections: +Idx Name *Size *VMA *LMA *File off *Algn + 0 \.text 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24] + ALLOC, LOAD, READONLY, CODE + 1 \.data 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24] + ALLOC, LOAD, DATA + 2 \.bss 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24] + ALLOC + 3 \.none 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*0 + ALLOC, LOAD, READONLY, DATA + 4 \.zero 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*0 + ALLOC, LOAD, READONLY, DATA + 5 \.one 0*0000001 0*0000000 0*0000000 0*00001a4 2\*\*0 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 6 \.two 0*0000002 0*0000000 0*0000000 0*00001a5 2\*\*0 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 7 \.three 0*0000003 0*0000000 0*0000000 0*00001a7 2\*\*0 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 8 \.four 0*0000004 0*0000000 0*0000000 0*00001aa 2\*\*0 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 9 \.five 0*0000005 0*0000000 0*0000000 0*00001ae 2\*\*0 + CONTENTS, ALLOC, LOAD, READONLY, DATA diff --git a/gas/testsuite/gas/pe/section-align-1.s b/gas/testsuite/gas/pe/section-align-1.s new file mode 100644 index 0000000..de1f9b5 --- /dev/null +++ b/gas/testsuite/gas/pe/section-align-1.s @@ -0,0 +1,15 @@ + + .section .none,"dr0" + .section .zero,"dr0" + .ascii "" + .section .one,"dr0" + .ascii "1" + .section .two,"dr0" + .ascii "12" + .section .three,"dr0" + .ascii "123" + .section .four,"dr0" + .ascii "1234" + .section .five,"dr0" + .ascii "12345" + .end diff --git a/gas/testsuite/gas/pe/section-align-3.d b/gas/testsuite/gas/pe/section-align-3.d new file mode 100644 index 0000000..1f37103 --- /dev/null +++ b/gas/testsuite/gas/pe/section-align-3.d @@ -0,0 +1,39 @@ +#objdump: -h +#name: section alignment + +# Test that alignment works in .section directives. + +.*: .* + +Sections: +Idx Name *Size *VMA *LMA *File off *Algn + 0 \.text 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24] + ALLOC, LOAD, READONLY, CODE + 1 \.data 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24] + ALLOC, LOAD, DATA + 2 \.bss 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24] + ALLOC + 3 \.none 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*3 + ALLOC, LOAD, READONLY, DATA + 4 \.zero 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*3 + ALLOC, LOAD, READONLY, DATA + 5 \.one 0*0000008 0*0000000 0*0000000 0*000026c 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 6 \.two 0*0000008 0*0000000 0*0000000 0*0000274 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 7 \.three 0*0000008 0*0000000 0*0000000 0*000027c 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 8 \.four 0*0000008 0*0000000 0*0000000 0*0000284 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 9 \.five 0*0000008 0*0000000 0*0000000 0*000028c 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 10 \.six 0*0000008 0*0000000 0*0000000 0*0000294 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 11 \.seven 0*0000008 0*0000000 0*0000000 0*000029c 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 12 \.eight 0*0000008 0*0000000 0*0000000 0*00002a4 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 13 \.nine 0*0000010 0*0000000 0*0000000 0*00002ac 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 14 \.ten 0*0000010 0*0000000 0*0000000 0*00002bc 2\*\*3 + CONTENTS, ALLOC, LOAD, READONLY, DATA diff --git a/gas/testsuite/gas/pe/section-align-3.s b/gas/testsuite/gas/pe/section-align-3.s new file mode 100644 index 0000000..fc7b9ea --- /dev/null +++ b/gas/testsuite/gas/pe/section-align-3.s @@ -0,0 +1,25 @@ + + .section .none,"dr3" + .section .zero,"dr3" + .ascii "" + .section .one,"dr3" + .ascii "1" + .section .two,"dr3" + .ascii "12" + .section .three,"dr3" + .ascii "123" + .section .four,"dr3" + .ascii "1234" + .section .five,"dr3" + .ascii "12345" + .section .six,"dr3" + .ascii "123456" + .section .seven,"dr3" + .ascii "1234567" + .section .eight,"dr3" + .ascii "12345678" + .section .nine,"dr3" + .ascii "123456789" + .section .ten,"dr3" + .ascii "1234567890" + .end |