projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build breakage from last commit (window-nat.c:windows_create_inferior)
[deliverable/binutils-gdb.git]
/
gold
/
tls.h
diff --git
a/gold/tls.h
b/gold/tls.h
index 7103d3febb3ec12e368420df8cc520688978b496..e91610fbb1b2e8703c9895bd326f5d2fd5cd3d2c 100644
(file)
--- a/
gold/tls.h
+++ b/
gold/tls.h
@@
-1,6
+1,6
@@
// tls.h -- Thread-Local Storage utility routines for gold -*- C++ -*-
// tls.h -- Thread-Local Storage utility routines for gold -*- C++ -*-
-// Copyright
2006, 200
7 Free Software Foundation, Inc.
+// Copyright
(C) 2006-201
7 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@
-50,10
+50,11
@@
inline void
check_range(const Relocate_info<size, big_endian>* relinfo,
size_t relnum,
typename elfcpp::Elf_types<size>::Elf_Addr rel_offset,
check_range(const Relocate_info<size, big_endian>* relinfo,
size_t relnum,
typename elfcpp::Elf_types<size>::Elf_Addr rel_offset,
-
off_t view_size, off_
t off)
+
section_size_type view_size, in
t off)
{
{
- off_t offset = rel_offset + off;
- if (offset < 0 || offset > view_size)
+ typename elfcpp::Elf_types<size>::Elf_Addr offset = rel_offset + off;
+ // Elf_Addr is unsigned, so this also tests for signed offset < 0.
+ if (offset > view_size)
gold_error_at_location(relinfo, relnum, rel_offset,
_("TLS relocation out of range"));
}
gold_error_at_location(relinfo, relnum, rel_offset,
_("TLS relocation out of range"));
}
This page took
0.022994 seconds
and
4
git commands to generate.