Changeset 46266 in vbox for trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h
- Timestamp:
- May 25, 2013 7:51:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h
r46259 r46266 1095 1095 * Do the enumeration. 1096 1096 */ 1097 char szName[32]; 1097 1098 const Elf_Shdr *paShdrs = pModElf->paShdrs; 1098 1099 const Elf_Shdr *paOrgShdrs = pModElf->paOrgShdrs; … … 1100 1101 { 1101 1102 RTLDRSEG Seg; 1102 Seg.pchName = ELF_SH_STR(pModElf, paShdrs[iShdr].sh_name); 1103 Seg.cchName = (uint32_t)strlen(Seg.pchName); 1103 Seg.pszName = ELF_SH_STR(pModElf, paShdrs[iShdr].sh_name); 1104 Seg.cchName = (uint32_t)strlen(Seg.pszName); 1105 if (Seg.cchName == 0) 1106 { 1107 Seg.pszName = szName; 1108 Seg.cchName = (uint32_t)RTStrPrintf(szName, sizeof(szName), "UnamedSect%02u", iShdr); 1109 } 1104 1110 Seg.SelFlat = 0; 1105 1111 Seg.Sel16bit = 0;
Note:
See TracChangeset
for help on using the changeset viewer.