aboutsummaryrefslogtreecommitdiff
path: root/libiberty/simple-object-elf.c
diff options
context:
space:
mode:
authorNikhil Benesch <nikhil.benesch@gmail.com>2020-10-04 02:03:36 -0400
committerIan Lance Taylor <iant@golang.org>2020-10-05 17:37:32 -0700
commit7164745e1c21ae85c52b727d61092ad0685b46e9 (patch)
tree7bdec0e840d3a7868cb172b7725a2689e434a1f5 /libiberty/simple-object-elf.c
parent7e9282ae62f5318686dcd58498337090531cd6fc (diff)
downloadgcc-7164745e1c21ae85c52b727d61092ad0685b46e9.zip
gcc-7164745e1c21ae85c52b727d61092ad0685b46e9.tar.gz
gcc-7164745e1c21ae85c52b727d61092ad0685b46e9.tar.bz2
gofrontend: correct file reading logic in Stream_from_file
The implementation of Stream_from_file mishandled several cases: * It reversed the check for whether bytes were already available in the peek buffer. * It considered positive return values from lseek to be an error, when only a -1 return value indicates an error. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/259437
Diffstat (limited to 'libiberty/simple-object-elf.c')
0 files changed, 0 insertions, 0 deletions