Lines Matching refs:sec_flags

395 sec_to_styp_flags (sec_name, sec_flags)  in sec_to_styp_flags()  argument
397 flagword sec_flags;
468 else if (sec_flags & SEC_CODE)
472 else if (sec_flags & SEC_DATA)
476 else if (sec_flags & SEC_READONLY)
484 else if (sec_flags & SEC_LOAD)
488 else if (sec_flags & SEC_ALLOC)
494 if (sec_flags & SEC_CLINK)
499 if (sec_flags & SEC_BLOCK)
504 if ((sec_flags & (SEC_NEVER_LOAD | SEC_COFF_SHARED_LIBRARY)) != 0)
520 sec_to_styp_flags (sec_name, sec_flags) in sec_to_styp_flags() argument
522 flagword sec_flags;
537 if ((sec_flags & SEC_CODE) != 0)
539 if ((sec_flags & SEC_DATA) != 0)
541 if ((sec_flags & SEC_ALLOC) != 0 && (sec_flags & SEC_LOAD) == 0)
547 if ((sec_flags & (SEC_NEVER_LOAD | SEC_COFF_SHARED_LIBRARY)) != 0)
550 if ((sec_flags & SEC_IS_COMMON) != 0)
552 if ((sec_flags & SEC_DEBUGGING) != 0)
554 if ((sec_flags & SEC_EXCLUDE) != 0)
556 if ((sec_flags & SEC_NEVER_LOAD) != 0)
560 if (sec_flags & SEC_LINK_ONCE)
570 if ((sec_flags & SEC_READONLY) == 0)
572 if (sec_flags & SEC_CODE)
574 if (sec_flags & SEC_SHARED)
599 flagword sec_flags = 0; local
603 sec_flags |= SEC_BLOCK;
608 sec_flags |= SEC_CLINK;
613 sec_flags |= SEC_NEVER_LOAD;
620 if (sec_flags & SEC_NEVER_LOAD)
621 sec_flags |= SEC_CODE | SEC_COFF_SHARED_LIBRARY;
623 sec_flags |= SEC_CODE | SEC_LOAD | SEC_ALLOC;
627 if (sec_flags & SEC_NEVER_LOAD)
628 sec_flags |= SEC_DATA | SEC_COFF_SHARED_LIBRARY;
630 sec_flags |= SEC_DATA | SEC_LOAD | SEC_ALLOC;
635 if (sec_flags & SEC_NEVER_LOAD)
636 sec_flags |= SEC_ALLOC | SEC_COFF_SHARED_LIBRARY;
639 sec_flags |= SEC_ALLOC;
650 sec_flags |= SEC_DEBUGGING;
654 sec_flags = 0;
657 if (sec_flags & SEC_NEVER_LOAD)
658 sec_flags |= SEC_CODE | SEC_COFF_SHARED_LIBRARY;
660 sec_flags |= SEC_CODE | SEC_LOAD | SEC_ALLOC;
664 if (sec_flags & SEC_NEVER_LOAD)
665 sec_flags |= SEC_DATA | SEC_COFF_SHARED_LIBRARY;
667 sec_flags |= SEC_DATA | SEC_LOAD | SEC_ALLOC;
672 if (sec_flags & SEC_NEVER_LOAD)
673 sec_flags |= SEC_ALLOC | SEC_COFF_SHARED_LIBRARY;
676 sec_flags |= SEC_ALLOC;
688 sec_flags |= SEC_DEBUGGING;
697 sec_flags = SEC_LOAD | SEC_ALLOC | SEC_READONLY;
700 sec_flags |= SEC_ALLOC | SEC_LOAD;
704 sec_flags = (SEC_LOAD | SEC_ALLOC | SEC_READONLY);
709 sec_flags = (SEC_LOAD | SEC_ALLOC);
720 sec_flags |= SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD;
726 * flags_ptr = sec_flags;
733 handle_COMDAT (abfd, sec_flags, hdr, name, section) in handle_COMDAT() argument
735 flagword sec_flags;
745 sec_flags |= SEC_LINK_ONCE;
765 return sec_flags;
889 sec_flags |= SEC_LINK_DUPLICATES_ONE_ONLY;
891 sec_flags &= ~SEC_LINK_ONCE;
896 sec_flags |= SEC_LINK_DUPLICATES_DISCARD;
900 sec_flags |= SEC_LINK_DUPLICATES_SAME_SIZE;
905 sec_flags |= SEC_LINK_DUPLICATES_SAME_CONTENTS;
918 sec_flags |= SEC_LINK_DUPLICATES_DISCARD;
920 sec_flags &= ~SEC_LINK_ONCE;
927 sec_flags |= SEC_LINK_DUPLICATES_DISCARD;
985 return sec_flags;
1008 flagword sec_flags; local
1012 sec_flags = SEC_READONLY;
1042 sec_flags |= SEC_NEVER_LOAD;
1061 sec_flags |= SEC_CODE;
1064 sec_flags &= ~ SEC_READONLY;
1071 sec_flags |= SEC_DEBUGGING;
1074 sec_flags |= SEC_SHARED;
1077 sec_flags |= SEC_EXCLUDE;
1080 sec_flags |= SEC_CODE | SEC_ALLOC | SEC_LOAD;
1083 sec_flags |= SEC_DATA | SEC_ALLOC | SEC_LOAD;
1086 sec_flags |= SEC_ALLOC;
1096 sec_flags |= SEC_DEBUGGING;
1101 sec_flags = handle_COMDAT (abfd, sec_flags, hdr, name, section);
1126 sec_flags |= SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD;
1130 * flags_ptr = sec_flags;