Skip to content

Commit

Permalink
Merge pull request #2788 from lubinszARM:pr_exec_2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 315166991
  • Loading branch information
gvisor-bot committed Jun 7, 2020
2 parents 427d208 + 744e8d6 commit 6260304
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/syscalls/linux/exec_binary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,12 @@ TEST(ElfTest, MissingText) {
ASSERT_THAT(RetryEINTR(waitpid)(child, &status, 0),
SyscallSucceedsWithValue(child));
// It runs off the end of the zeroes filling the end of the page.
#if defined(__x86_64__)
EXPECT_TRUE(WIFSIGNALED(status) && WTERMSIG(status) == SIGSEGV) << status;
#elif defined(__aarch64__)
// 0 is an invalid instruction opcode on arm64.
EXPECT_TRUE(WIFSIGNALED(status) && WTERMSIG(status) == SIGILL) << status;
#endif
}

// Typical ELF with a data + bss segment
Expand Down

0 comments on commit 6260304

Please sign in to comment.