[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/5303] New: splay-tree doesn't support 64bit value
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/5303] New: splay-tree doesn't support 64bit value |
Date: |
9 Nov 2007 20:26:06 -0000 |
There are
#ifndef _WIN64
typedef unsigned long int libi_uhostptr_t;
typedef long int libi_shostptr_t;
#else
typedef unsigned long long libi_uhostptr_t;
typedef long long libi_shostptr_t;
#endif
...
/* Use typedefs for the key and data types to facilitate changing
these types, if necessary. These types should be sufficiently wide
that any pointer or scalar can be cast to these types, and then
cast back, without loss of precision. */
typedef libi_uhostptr_t splay_tree_key;
typedef libi_uhostptr_t splay_tree_value;
However, arange-set.c in BFD uses splay-tree on bfd_vma:
/* Get the low VMA address of a node. */
static bfd_vma
arange_set_node_low (splay_tree_node node)
{
return (bfd_vma) node->key;
}
It doesn't work on 32bit host with 64bit VMA.
--
Summary: splay-tree doesn't support 64bit value
Product: binutils
Version: 2.19 (HEAD)
Status: NEW
Severity: critical
Priority: P1
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl at lucon dot org
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=5303
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/5303] New: splay-tree doesn't support 64bit value,
hjl at lucon dot org <=