Support reading section ".gnu_debugaltlink"
Differential revision: https://reviews.llvm.org/D40468 llvm-svn: 331148
This commit is contained in:
@@ -1823,6 +1823,7 @@ void ObjectFileELF::CreateSections(SectionList &unified_section_list) {
|
||||
static ConstString g_sect_name_arm_exidx(".ARM.exidx");
|
||||
static ConstString g_sect_name_arm_extab(".ARM.extab");
|
||||
static ConstString g_sect_name_go_symtab(".gosymtab");
|
||||
static ConstString g_sect_name_dwarf_gnu_debugaltlink(".gnu_debugaltlink");
|
||||
|
||||
SectionType sect_type = eSectionTypeOther;
|
||||
|
||||
@@ -1913,6 +1914,8 @@ void ObjectFileELF::CreateSections(SectionList &unified_section_list) {
|
||||
sect_type = eSectionTypeARMextab;
|
||||
else if (name == g_sect_name_go_symtab)
|
||||
sect_type = eSectionTypeGoSymtab;
|
||||
else if (name == g_sect_name_dwarf_gnu_debugaltlink)
|
||||
sect_type = eSectionTypeDWARFGNUDebugAltLink;
|
||||
|
||||
const uint32_t permissions =
|
||||
((header.sh_flags & SHF_ALLOC) ? ePermissionsReadable : 0u) |
|
||||
|
||||
Reference in New Issue
Block a user