Print this page
sync further changes from uts/aslr

Split Close
Expand all
Collapse all
          --- old/usr/src/test/os-tests/tests/secflags/secflags_elfdump.sh
          +++ new/usr/src/test/os-tests/tests/secflags/secflags_elfdump.sh
↓ open down ↓ 47 lines elided ↑ open up ↑
  48   48  EOF
  49   49  
  50   50  /usr/bin/elfdump -n core.${pid} | grep -B5 -A5 prsecflags_t > gcore-output.$$
  51   51  
  52   52  if ! diff -u gcore-expected.$$ gcore-output.$$; then
  53   53      exit 1;
  54   54  fi
  55   55  
  56   56  ## kernel-produced core
  57   57  kill -SEGV $pid
       58 +wait $pid >/dev/null 2>&1
  58   59  
  59   60  cat > core-expected.$$ <<EOF
  60   61      namesz: 0x5
  61   62      descsz: 0x28
  62   63      type:   [ NT_SECFLAGS ]
  63   64      name:
  64   65          CORE\0
  65   66      desc: (prsecflags_t)
  66   67          pr_version:    1
  67   68          pr_effective:  [ ASLR ]
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX