Skip to content

Commit

Permalink
Increase pread() offset range to fix symbolization on 32-bit systems
Browse files Browse the repository at this point in the history
This allows reading symbols from libraries loaded above the 0x7fffffff address.

b/299486087
  • Loading branch information
astolcenburg committed Feb 3, 2025
1 parent 0491681 commit 5f1af5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions third_party/symbolize/symbolize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5f1af5a

Please sign in to comment.