]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
Re: readelf: use fseeko64 or fseeko if possible
authorAlan Modra <amodra@gmail.com>
Tue, 22 Nov 2022 21:15:49 +0000 (07:45 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 22 Nov 2022 21:21:41 +0000 (07:51 +1030)
commit63cf857e24be8e657dd2d3197da5c01a0f590d27
tree38e4a569e7e346f1f270beba33e221c008274e15
parentf3f7ecc942f3844559142b933aa40b5ef75e3d5e
Re: readelf: use fseeko64 or fseeko if possible

Replace the macros with a small wrapper function that verifies the fseek
offset arg isn't overlarge.

* readelf.c (FSEEK_FUNC): Delete, replace uses with..
(fseek64): ..this new function.
(process_program_headers): Don't cast p_offset to long.
binutils/readelf.c