This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Rearrange SEC_XXX bits


On Mon, Feb 21, 2005 at 01:50:19PM -0800, H. J. Lu wrote:
> 
> This is an alternative where all the outputs are unchanged.

OK.  As a followup patch, it would be nice to convert all these flag
macros over to using bitfields.

Something like:

union {
  struct {
    unsigned int alloc:1;
    unsigned int load:1;
    more flags common to all formats.
  } com;
  struct {
    unsigned int alloc:1;
    unsigned int load:1;
    all common flags plus elf-only
  } elf;
  struct {
    unsigned int alloc:1;
    unsigned int load:1;
    all common flags plus coff-only
  } coff;
} flags;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]