search for: getlinkorderdep

Displaying 2 results from an estimated 2 matches for "getlinkorderdep".

2018 Jan 27
0
[lld] Garbage collection of linked sections with the SHF_LINK_ORDER flag
...ive resulting that the section is kept even though the parent section is removed. To fix this issue, I propose changing the code marking sections live to the following loop: for (InputSectionBase *Sec : InputSections) {     if (Sec->Flags & SHF_LINK_ORDER)         Sec->Live = Sec->getLinkOrderDep()->Live;     else {         bool IsAlloc = (Sec->Flags & SHF_ALLOC);         bool IsRel = (Sec->Type == SHT_REL || Sec->Type == SHT_RELA);         if (!IsAlloc && !IsRel)         Sec->Live = true;     } } If an input section has the SHF_LINK_ORDER flag set, it prop...
2018 Jan 29
0
[lld] Garbage collection of linked sections with the SHF_LINK_ORDER flag
...ept even though the >parent >section is removed. > >To fix this issue, I propose changing the code marking sections live to >the following loop: > >for (InputSectionBase *Sec : InputSections) { > if (Sec->Flags & SHF_LINK_ORDER) > Sec->Live = Sec->getLinkOrderDep()->Live; > else { > bool IsAlloc = (Sec->Flags & SHF_ALLOC); > bool IsRel = (Sec->Type == SHT_REL || Sec->Type == SHT_RELA); > if (!IsAlloc && !IsRel) > Sec->Live = true; > } >} > >If an input section has...