@@ -103,7 +103,7 @@ void* CLoader::get_symbol_address(const char * const symbol)
103
103
}
104
104
105
105
// is_relocation_page returns true if the specified RVA is a writable relocation page based on the bitmap.
106
- bool CLoader::is_relocation_page (const uint64_t rva, vector<uint8_t > *bitmap)
106
+ bool CLoader::is_relocation_page (const uint64_t rva, std:: vector<uint8_t > *bitmap)
107
107
{
108
108
uint64_t page_frame = rva >> SE_PAGE_SHIFT;
109
109
// NOTE:
@@ -181,7 +181,7 @@ int CLoader::build_mem_region(const section_info_t &sec_info)
181
181
return SGX_SUCCESS;
182
182
}
183
183
184
- int CLoader::build_sections (vector<uint8_t > *bitmap)
184
+ int CLoader::build_sections (std:: vector<uint8_t > *bitmap)
185
185
{
186
186
int ret = SGX_SUCCESS;
187
187
std::vector<Section*> sections = m_parser.get_sections ();
@@ -372,7 +372,7 @@ int CLoader::build_context(const uint64_t start_rva, layout_entry_t *layout)
372
372
ptcs->ogs_base += rva;
373
373
if (!(attributes & PAGE_ATTR_EREMOVE))
374
374
{
375
- m_tcs_list.push_back (make_pair (GET_PTR (tcs_t , m_start_addr, rva), false ));
375
+ m_tcs_list.push_back (std:: make_pair (GET_PTR (tcs_t , m_start_addr, rva), false ));
376
376
}
377
377
sinfo.flags = layout->si_flags ;
378
378
if (SGX_SUCCESS != (ret = build_pages (rva, ((uint64_t )layout->page_count ) << SE_PAGE_SHIFT, added_page, sinfo, attributes)))
@@ -417,7 +417,7 @@ int CLoader::build_context(const uint64_t start_rva, layout_entry_t *layout)
417
417
#ifndef SE_SIM
418
418
if (layout->id == LAYOUT_ID_TCS_DYN)
419
419
{
420
- m_tcs_list.push_back (make_pair (GET_PTR (tcs_t , m_start_addr, rva), true ));
420
+ m_tcs_list.push_back (std:: make_pair (GET_PTR (tcs_t , m_start_addr, rva), true ));
421
421
}
422
422
#endif
423
423
}
@@ -486,7 +486,7 @@ int CLoader::build_image(SGXLaunchToken * const lc, sgx_attributes_t * const sec
486
486
// If load_enclave_ex try to load the enclave for the 2nd time,
487
487
// the enclave image is already patched, and parser cannot read the information.
488
488
// For linux, there's no map conflict. We assume load_enclave_ex will not do the retry.
489
- vector<uint8_t > bitmap;
489
+ std:: vector<uint8_t > bitmap;
490
490
if (!m_parser.get_reloc_bitmap (bitmap))
491
491
return SGX_ERROR_INVALID_ENCLAVE;
492
492
@@ -564,12 +564,12 @@ int CLoader::validate_layout_table()
564
564
{
565
565
layout_t *layout_start = GET_PTR (layout_t , m_metadata, m_metadata->dirs [DIR_LAYOUT].offset );
566
566
layout_t *layout_end = GET_PTR (layout_t , m_metadata, m_metadata->dirs [DIR_LAYOUT].offset + m_metadata->dirs [DIR_LAYOUT].size );
567
- vector<pair<uint64_t , uint64_t >> rva_vector;
567
+ std:: vector<std:: pair<uint64_t , uint64_t >> rva_vector;
568
568
for (layout_t *layout = layout_start; layout < layout_end; layout++)
569
569
{
570
570
if (!IS_GROUP_ID (layout->entry .id )) // layout entry
571
571
{
572
- rva_vector.push_back (make_pair (layout->entry .rva , ((uint64_t )layout->entry .page_count ) << SE_PAGE_SHIFT));
572
+ rva_vector.push_back (std:: make_pair (layout->entry .rva , ((uint64_t )layout->entry .page_count ) << SE_PAGE_SHIFT));
573
573
if (layout->entry .content_offset )
574
574
{
575
575
if (false == is_metadata_buffer (layout->entry .content_offset , layout->entry .content_size ))
@@ -598,15 +598,15 @@ int CLoader::validate_layout_table()
598
598
{
599
599
return SGX_ERROR_INVALID_METADATA;
600
600
}
601
- rva_vector.push_back (make_pair (entry->rva + load_step, ((uint64_t )entry->page_count ) << SE_PAGE_SHIFT));
601
+ rva_vector.push_back (std:: make_pair (entry->rva + load_step, ((uint64_t )entry->page_count ) << SE_PAGE_SHIFT));
602
602
// no need to check integer overflow for entry->rva + load_step, because
603
603
// entry->rva and load_step are less than enclave_size, whose size is no more than 37 bit
604
604
}
605
605
}
606
606
}
607
607
}
608
608
sort (rva_vector.begin (), rva_vector.end ());
609
- for (vector<pair<uint64_t , uint64_t >>::iterator it = rva_vector.begin (); it != rva_vector.end (); it++)
609
+ for (std:: vector<std:: pair<uint64_t , uint64_t >>::iterator it = rva_vector.begin (); it != rva_vector.end (); it++)
610
610
{
611
611
if (!IS_PAGE_ALIGNED (it->first ))
612
612
{
0 commit comments