Fix dts-probe-binaries to match recent binutils
Includes the following changes: * Un-break test Sanity/dts-probe-binaries for glibc 2.34 https://src.fedoraproject.org/rpms/binutils/c/58f355fcc3814a3174cf3c870adf57cdcef52cf7?branch=rawhide * Fix RHEL's test Sanity/dts-probe-binaries https://src.fedoraproject.org/rpms/binutils/c/64cf74e8a3e09bb14b64f2c7ac2b6822dbda34c5?branch=rawhide
This commit is contained in:
parent
4c1eb64467
commit
ee3721dc88
1 changed files with 4 additions and 10 deletions
|
|
@ -196,20 +196,13 @@ fi
|
|||
if [ "`rlGetPrimaryArch`" != "ppc64" ] || [ ! rlIsRHEL 7 ]; then
|
||||
rlAssertGrep "__gmon_start__" u
|
||||
fi
|
||||
if [ "$COLLECTIONS" != "devtoolset-11" ]; then
|
||||
rlAssertGrep "printf@@GLIBC" u
|
||||
rlAssertGrep "__libc_start_main@@GLIBC" u
|
||||
else
|
||||
rlAssertGrep "printf@GLIBC" u
|
||||
rlAssertGrep "__libc_start_main@GLIBC" u
|
||||
fi
|
||||
rlAssertGrep "printf@GLIBC" u
|
||||
rlAssertGrep "__libc_start_main@GLIBC" u
|
||||
# Try -P --size-sort.
|
||||
rlRun "nm -P --size-sort localplt > p"
|
||||
if test $(uname -m) = "ppc64" -a $(rlGetDistroRelease) -gt 5; then
|
||||
rlAssertGrep "__libc_csu_init D" p
|
||||
rlAssertGrep "main D" p
|
||||
else
|
||||
rlAssertGrep "__libc_csu_init T" p
|
||||
rlAssertGrep "main T" p
|
||||
fi
|
||||
rlAssertGrep "completed.* b" p
|
||||
|
|
@ -300,6 +293,7 @@ fi
|
|||
|
||||
# Try -h.
|
||||
rlRun "$READELF -Wh virt > h"
|
||||
rlRun "cat h"
|
||||
rlAssertGrep "ELF Header:" h
|
||||
rlAssertGrep "7f 45 4c 46" h
|
||||
rlAssertGrep "EXEC (Executable file)" h
|
||||
|
|
@ -367,7 +361,7 @@ fi
|
|||
rlRun "$READELF -Wh /bin/true > H"
|
||||
rlAssertGrep "ELF Header:" H
|
||||
rlAssertGrep "7f 45 4c 46" H
|
||||
if rlIsRHEL 8; then
|
||||
if rlIsRHEL ">= 8"; then
|
||||
rlAssertGrep "DYN (Shared object file)" H
|
||||
else
|
||||
rlAssertGrep "EXEC (Executable file)" H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue