This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Out of bits in flagwords, what's the preferred way of extending it?
- From: Michael Meissner <meissner at cygnus dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 7 Jan 2002 17:05:13 -0500
- Subject: Re: Out of bits in flagwords, what's the preferred way of extending it?
- References: <20020107183748.M531@sunsite.ms.mff.cuni.cz>
On Mon, Jan 07, 2002 at 06:37:48PM +0100, Jakub Jelinek wrote:
> Hi!
>
> I'd like to use a new bit in sec->flags, unfortunately there are none left
> (well, 2 are apparently COFF only, but is there some way how to figure out
> section creator type)?
> Should flagword simply be extended to 64 bits, or use 2 flags bitfields, or
> something else?
If it is still a concern that bfd support older (32-bit non-GCC and non-C99)
compilers, I suspect going to 64 bits will cause these systems to stop working.
My personal preference is to switch to bitfields, since it is more friendly to
the debugger (both gdb and the person debugging the code). I would suggest
adding clumps of bitfields with enough reserved bits to pad us to 32-bit
boundaries, and would be available to future use.
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482