From 5f1af5ae04aeeee1a519f40886efeff27e3d0f18 Mon Sep 17 00:00:00 2001 From: Adam Stolcenburg Date: Thu, 3 Oct 2024 15:17:22 +0200 Subject: [PATCH] Increase pread() offset range to fix symbolization on 32-bit systems This allows reading symbols from libraries loaded above the 0x7fffffff address. b/299486087 --- third_party/symbolize/symbolize.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/third_party/symbolize/symbolize.cc b/third_party/symbolize/symbolize.cc index c5d7ddaae5f8..ef7edba5c60a 100644 --- a/third_party/symbolize/symbolize.cc +++ b/third_party/symbolize/symbolize.cc @@ -52,6 +52,9 @@ #include GLOG_BUILD_CONFIG_INCLUDE #endif // GLOG_BUILD_CONFIG_INCLUDE +// Allow pread() to use higher offsets on 32-bit systems. +#define _FILE_OFFSET_BITS 64 + #include "symbolize.h" #include "utilities.h"