Browse Source
* binutils-all/group-2.s: New. * binutils-all/strip-4.d: Likewise. * binutils-all/strip-5.d: Likewise. * binutils-all/objcopy.exp: Test objcopy on group-2.s. Run strip-4 and strip-5.cgen-1_1-branch
5 changed files with 49 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||
|
.section .text.foo,"axG",%progbits,.text.foo,comdat |
||||
|
.global foo |
||||
|
foo: |
||||
|
.word 0 |
||||
|
.section .data.bar,"awG",%progbits,.text.foo,comdat |
||||
|
.global bar |
||||
|
bar: |
||||
|
.word 0 |
||||
@ -0,0 +1,11 @@ |
|||||
|
#PROG: strip |
||||
|
#source: group-2.s |
||||
|
#readelf: -Sg --wide |
||||
|
#name: strip with section group 4 |
||||
|
|
||||
|
#... |
||||
|
\[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AX[ \t]+.* |
||||
|
#... |
||||
|
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WA[ \t]+.* |
||||
|
#... |
||||
|
There are no section groups in this file. |
||||
@ -0,0 +1,18 @@ |
|||||
|
#PROG: strip |
||||
|
#source: group-2.s |
||||
|
#strip: --strip-unneeded |
||||
|
#readelf: -Sg --wide |
||||
|
#name: strip with section group 5 |
||||
|
|
||||
|
#... |
||||
|
\[[ 0-9]+\] .group[ \t]+GROUP[ \t]+.* |
||||
|
#... |
||||
|
\[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG[ \t]+.* |
||||
|
#... |
||||
|
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.* |
||||
|
#... |
||||
|
COMDAT group section \[[ 0-9]+\] `.group' \[.text.foo\] contains 2 sections: |
||||
|
\[Index\] Name |
||||
|
\[[ 0-9]+\] .text.* |
||||
|
\[[ 0-9]+\] .data.* |
||||
|
#pass |
||||
Loading…
Reference in new issue