Browse Source
2005-10-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/251 * binutils-all/group.s: New file. * binutils-all/objcopy.exp (objcopy_test_readelf): New procedure. Use it to test ELF group. ld/testsuite/ 2005-10-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/251 * ld-elf/group.2d: New file.readline_5_1-import-branch
6 changed files with 94 additions and 2 deletions
@ -0,0 +1,8 @@ |
|||
.section .text,"axG",%progbits,foo_group,comdat |
|||
.global foo |
|||
foo: |
|||
.word 0 |
|||
.section .data,"awG",%progbits,foo_group,comdat |
|||
.global bar |
|||
bar: |
|||
.word 0 |
|||
@ -0,0 +1,16 @@ |
|||
#source: ../../../binutils/testsuite/binutils-all/group.s |
|||
#ld: -r |
|||
#readelf: -Sg --wide |
|||
|
|||
#... |
|||
\[[ 0-9]+\] foo_group[ \t]+GROUP[ \t]+.* |
|||
#... |
|||
\[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG.* |
|||
#... |
|||
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG.* |
|||
#... |
|||
COMDAT group section \[[ 0-9]+\] `foo_group' \[foo_group\] contains 2 sections: |
|||
\[Index\] Name |
|||
\[[ 0-9]+\] .text.* |
|||
\[[ 0-9]+\] .data.* |
|||
#pass |
|||
@ -0,0 +1,7 @@ |
|||
#source: ../../../binutils/testsuite/binutils-all/unknown.s |
|||
#ld: -r |
|||
#readelf: -S |
|||
|
|||
#... |
|||
\[[ 0-9]+\] \.foo[ \t]+NOTE[ \t]+.* |
|||
#pass |
|||
Loading…
Reference in new issue