This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
w64 native support needs type abstraction for long
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 4 Apr 2007 11:13:07 +0200
- Subject: w64 native support needs type abstraction for long
Hello,
I am currently on the port of binutils (especially of libbfd for gdb) to
support native windows 64. Here I noticed, that in some places a "long"
type is used for helding pointer values (e.g. in
"/include/coff/internal.h" for structure internal_syment). I would like to
introduce for this the type "longptr_t" defined as follows
#ifndef LONGPTR_T
#define LONGPTR_T
#ifdef _WIN64
typedef long long longptr_t;
typedef unsigned long long ulongptr_t;
#else
typedef unsigned long ulongptr_t;
typedef long longptr_t;
#endif
#endif
and replace these by longptr_t/ulongptr_t. (AFAIK size_t or intptr_t is
not defined on all platforms).
Where I should place this new type ? I thoght about bfd.h.
Or should I use a different approach ?
Regards,
i.A. Kai Tietz
------------------------------------------------------------------------------------------
OneVision Software Entwicklungs GmbH & Co. KG
Dr.-Leo-Ritter-StraÃe 9 - 93049 Regensburg
Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
Handelsregister: HRA 6744, Amtsgericht Regensburg
KomplementÃrin: OneVision Software Entwicklungs Verwaltungs GmbH
Dr.-Leo-Ritter-StraÃe 9 â 93049 Regensburg
Handelsregister: HRB 8932, Amtsgericht Regensburg - GeschÃftsfÃhrer:
Ulrike DÃhler, Manuela Kluger