diff options
author | Brett Werling <bwerl.dev@gmail.com> | 2022-11-17 08:34:19 -0600 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-11-22 08:19:27 +1030 |
commit | d82e33deccc23f7198e20177f6164323201064eb (patch) | |
tree | 979b58357143f48ba3e5bc247dca3e3bbe82eeb9 /binutils/configure | |
parent | 38c917d808fdb570ddb1215ccf8233a10484ba91 (diff) | |
download | gdb-d82e33deccc23f7198e20177f6164323201064eb.zip gdb-d82e33deccc23f7198e20177f6164323201064eb.tar.gz gdb-d82e33deccc23f7198e20177f6164323201064eb.tar.bz2 |
readelf: use fseeko64 or fseeko if possible
Changes readelf to make use first of fseeko64 and then fseeko,
depending on which of those is available. If neither is available,
reverts to the previous behavior of using fseek.
This is necessary when building readelf for LLP64 systems, where a
long will only be 32 bits wide. If the elf file in question is >= 2 GiB,
that is greater than the max long value and therefore fseek will fail
indicating that the offset is negative. On such systems, making use of
fseeko64 or fseeko will result in the ability so seek past the 2 GiB
max long boundary.
Note that large archive handling in readelf remains to be fixed.
Diffstat (limited to 'binutils/configure')
-rwxr-xr-x | binutils/configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/configure b/binutils/configure index 6176d69..46519a3 100755 --- a/binutils/configure +++ b/binutils/configure @@ -13155,7 +13155,7 @@ $as_echo "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt -for ac_func in getc_unlocked mkdtemp mkstemp utimensat utimes +for ac_func in getc_unlocked mkdtemp mkstemp utimensat utimes fseeko fseeko64 do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |