SHF_ALLOC
(scn->ds_shdr.sh_flags == (SHF_ALLOC | SHF_EXECINSTR)));
(shp->sh_flags & SHF_ALLOC)) {
if (shp->sh_type == SHT_PROGBITS && (shp->sh_flags & SHF_ALLOC))
{ "SHF_ALLOC", SHF_ALLOC, SHF_ALLOC },
if (p->p_shdr.sh_flags & SHF_ALLOC)
{ MSG_ORIG(MSG_PHDRNAM_DYN), SHT_DYNAMIC, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_DYNSTR), SHT_STRTAB, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_DYNSYM), SHT_DYNSYM, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_LDYNSYM), SHT_SUNW_LDYNSYM, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_HASH), SHT_HASH, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_SYMINFO), SHT_SUNW_syminfo, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_SYMSORT), SHT_SUNW_symsort, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_TLSSORT), SHT_SUNW_tlssort, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_VER), SHT_SUNW_verneed, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_VER), SHT_SUNW_verdef, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_VER), SHT_SUNW_versym, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_INTERP), SHT_PROGBITS, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_CAP), SHT_SUNW_cap, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_CAPINFO), SHT_SUNW_capinfo, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_CAPCHAIN), SHT_SUNW_capchain, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_UNWIND), SHT_AMD64_UNWIND, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_MOVE), SHT_SUNW_move, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_REL), SHT_REL, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_RELA), SHT_RELA, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_PREINITARR), SHT_PREINIT_ARRAY, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_INITARR), SHT_INIT_ARRAY, SHF_ALLOC,
{ MSG_ORIG(MSG_PHDRNAM_FINIARR), SHT_FINI_ARRAY, SHF_ALLOC,
if ((tinfo->sh_flags & SHF_ALLOC) == 0) {
(strsec->sec_shdr->sh_flags & SHF_ALLOC) &&
outsec.os_flags = SHF_ALLOC;
#define M_PLT_SHF_FLAGS (SHF_ALLOC | SHF_EXECINSTR)
#define M_PLT_SHF_FLAGS (SHF_ALLOC | SHF_WRITE | SHF_EXECINSTR)
{ SHF_ALLOC, ALL, MSG_SHF_ALLOC_CF },
{ SHF_ALLOC, ALL, MSG_SHF_ALLOC_NF },
if (!(shdr->sh_flags & SHF_ALLOC))
EC_DESC_INIT(NULL, 0, SHF_ALLOC + SHF_WRITE + SHF_AMD64_LARGE,
SHF_ALLOC + SHF_AMD64_LARGE, lrodata, 0),
EC_DESC_INIT(NULL, 0, SHF_ALLOC + SHF_WRITE, SHF_ALLOC, text, 0),
EC_DESC_INIT(MSG_ORIG(MSG_SCN_TDATA), 0, SHF_ALLOC + SHF_WRITE,
SHF_ALLOC + SHF_WRITE, bss, 0),
EC_DESC_INIT(NULL, SHT_NOBITS, SHF_ALLOC + SHF_WRITE,
SHF_ALLOC + SHF_WRITE, bss, 0),
EC_DESC_INIT(NULL, SHT_NOBITS, SHF_ALLOC + SHF_WRITE + SHF_AMD64_LARGE,
SHF_ALLOC + SHF_WRITE + SHF_AMD64_LARGE, data, 0),
EC_DESC_INIT(NULL, 0, SHF_ALLOC + SHF_WRITE + SHF_AMD64_LARGE,
SHF_ALLOC + SHF_WRITE + SHF_AMD64_LARGE, ldata, 0),
EC_DESC_INIT(NULL, 0, SHF_ALLOC + SHF_WRITE, SHF_ALLOC + SHF_WRITE,
(SHF_ALLOC | SHF_EXECINSTR)) {
} else if (shdr->sh_flags & SHF_ALLOC) {
if (shdr->sh_flags & SHF_ALLOC) {
if (psym->sd_isc->is_shdr->sh_flags & SHF_ALLOC)
if (sdp->sd_isc->is_shdr->sh_flags & SHF_ALLOC)
if (sdp->sd_isc->is_shdr->sh_flags & SHF_ALLOC)
if (sdp->sd_isc->is_shdr->sh_flags & SHF_ALLOC)
if (sym->sd_isc->is_shdr->sh_flags & SHF_ALLOC)
if (sdp->sd_isc->is_shdr->sh_flags & SHF_ALLOC)
if (psym->sd_isc->is_shdr->sh_flags & SHF_ALLOC)
if (sdp->sd_isc->is_shdr->sh_flags & SHF_ALLOC)
if (enp->ec_attrmask & SHF_ALLOC) {
enp->ec_attrmask |= SHF_ALLOC;
enp->ec_attrbits |= SHF_ALLOC;
{ MSG_ORIG(MSG_MAPKW_ALLOC), SHF_ALLOC },
((osp->os_shdr->sh_flags & SHF_ALLOC) == 0)) {
osp->os_shdr->sh_flags |= SHF_ALLOC;
if (RELAUX_GET_OSDESC(reld)->os_shdr->sh_flags & SHF_ALLOC) {
((is_shdr->sh_flags & SHF_ALLOC) &&
shdr->sh_flags |= SHF_ALLOC;
sh_flags = SHF_ALLOC;
sh_flags = SHF_ALLOC;
if (OFL_ALLOW_DYNSYM(ofl) && (sh_flags & SHF_ALLOC))
shdr->sh_flags = SHF_ALLOC;
((shdr->sh_flags & SHF_ALLOC) == 0))
SET_SEC_INFO_WORD_ALIGN(ELF_T_BYTE, SHF_ALLOC, 0)
SET_SEC_INFO_WORD_ALIGN(ELF_T_SYM, SHF_ALLOC, sizeof (Sym))
SET_SEC_INFO_WORD_ALIGN(ELF_T_SYM, SHF_ALLOC, sizeof (Sym))
SET_SEC_INFO_WORD_ALIGN(ELF_T_WORD, SHF_ALLOC, sizeof (Word))
SET_SEC_INFO_WORD_ALIGN(ELF_T_WORD, SHF_ALLOC, sizeof (Word))
SET_SEC_INFO(ELF_T_BYTE, 0, SHF_ALLOC | SHF_WRITE, 0)
SET_SEC_INFO(ELF_T_ADDR, sizeof (Addr), SHF_ALLOC | SHF_WRITE,
SET_SEC_INFO_WORD_ALIGN(ELF_T_CAP, SHF_ALLOC, sizeof (Cap));
SET_SEC_INFO_WORD_ALIGN(ELF_T_WORD, SHF_ALLOC,
SET_SEC_INFO(ELF_T_XWORD, sizeof (Xword), SHF_ALLOC,
SET_SEC_INFO(ELF_T_WORD, sizeof (Word), SHF_ALLOC,
SHF_ALLOC | SHF_WRITE, sizeof (Move));
SHF_ALLOC | SHF_INFO_LINK, sizeof (Syminfo));
SET_SEC_INFO_WORD_ALIGN(ELF_T_BYTE, SHF_ALLOC, 0);
SET_SEC_INFO_WORD_ALIGN(ELF_T_BYTE, SHF_ALLOC,
shdr->sh_flags |= SHF_ALLOC;
((isp->is_shdr->sh_flags & SHF_ALLOC) == 0)) {
if ((sdp->sd_isc->is_shdr->sh_flags & (SHF_WRITE | SHF_ALLOC)) ==
SHF_ALLOC) {
shdr->sh_flags = SHF_ALLOC;
shdr->sh_flags = SHF_ALLOC | SHF_WRITE;
} else if ((!(shdr.sh_flags & SHF_ALLOC)) &&
} else if ((!(shdr.sh_flags & SHF_ALLOC)) && !(nflag)) {
} else if ((shdr.sh_flags & SHF_ALLOC) &&
} else if ((shdr.sh_flags & SHF_ALLOC) &&
if ((shdr.sh_flags & SHF_ALLOC) &&
ctfsect.cts_flags = SHF_ALLOC;
shp->sh_flags = SHF_ALLOC;
shp->sh_flags = SHF_ALLOC;
shp->sh_flags = SHF_ALLOC;
shp->sh_flags = SHF_ALLOC;
shp->sh_flags = SHF_ALLOC;
shp->sh_flags = SHF_ALLOC;
shp->sh_flags = SHF_ALLOC;
shp->sh_flags = SHF_ALLOC;
if (shdr.sh_flags & SHF_ALLOC && ess->es_has_phdr) {
if (shdr.sh_flags & SHF_ALLOC && ess->es_has_phdr) {
} else if (!(shdr.sh_flags & SHF_ALLOC)) {
sp->sh_flags = SHF_ALLOC;
sp->sh_flags = SHF_ALLOC;
sp->sh_flags = SHF_ALLOC | SHF_STRINGS;
sp->sh_flags = SHF_WRITE | SHF_ALLOC;
sp->sh_flags = SHF_WRITE | SHF_ALLOC | SHF_EXECINSTR;
if (!(sp->sh_flags & SHF_ALLOC) &&
if (!(sp->sh_flags & SHF_ALLOC) &&
htole32(SHF_EXECINSTR | SHF_ALLOC), /* sh_flags */
htole32(SHF_ALLOC | SHF_WRITE), /* sh_flags */
ctfsect.cts_flags = SHF_ALLOC;
SHT_NOBITS, SHF_ALLOC | SHF_EXECINSTR, 0),
SHT_NOBITS, SHF_WRITE | SHF_ALLOC, 0),
SHT_NOBITS, SHF_WRITE | SHF_ALLOC, 0),
if (!(shp->sh_flags & SHF_ALLOC))
if (!(shp->sh_flags & SHF_ALLOC) || shp->sh_size == 0)
if (shp->sh_flags & SHF_ALLOC) {
if (!(shp->sh_flags & SHF_ALLOC))
if (!(shp->sh_flags & SHF_ALLOC))
if (!(shp->sh_flags & SHF_ALLOC))
if (!(shp->sh_flags & SHF_ALLOC))
if ((shp->sh_flags & SHF_ALLOC) &&
if (!(shp->sh_flags & SHF_ALLOC))