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]

Re: Possible Bug with "n" Flag of .section Directive


Hi Nick,

> It seems OK to me,  Approved.

If you want to commit this, go right ahead. To fix a lone "n" flag would 
require adding more logic to styp_to_sec_flags to not add SEC_LOAD when 
SEC_NEVER_LOAD has been used:

  else
    {
      sec_flags |= SEC_ALLOC | SEC_LOAD;
    }

#ifdef STYP_LIT			/* A29k readonly text/data section type */
  if ((styp_flags & STYP_LIT) == STYP_LIT)

I'll leave said fix to whoever needs this to work.

BTW if someone doesn't beat to me to it, someday I'd like to take a crack 
reworking this function.

Mark


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