[bolt] Make test/X86/end-symbol.test not use "tac"
authorNico Weber <thakis@chromium.org>
Fri, 18 Nov 2022 16:33:23 +0000 (11:33 -0500)
committerNico Weber <thakis@chromium.org>
Fri, 18 Nov 2022 17:08:33 +0000 (12:08 -0500)
"tac" doesn't exist on macOS, so this makes the test pass there.

Differential Revision: https://reviews.llvm.org/D138305

bolt/test/X86/end-symbol.test

index 98018c3..18c11a8 100644 (file)
@@ -1,6 +1,6 @@
 # RUN: yaml2obj %p/Inputs/plt-sec.yaml &> %t.exe
 # RUN: llvm-bolt %t.exe -o %t.out
-# RUN: (llvm-readelf --program-headers %t.out | tac ; llvm-nm %t.out) \
+# RUN: (llvm-readelf --program-headers %t.out | grep LOAD | tail -n 1 ; llvm-nm %t.out) \
 # RUN:   | FileCheck %s
 
 ## Check that llvm-bolt correctly updates _end symbol to match the end of the