mirror of
https://github.com/serge1/ELFIO.git
synced 2025-03-22 10:20:50 +00:00
Refactoring - remove unnecessary check
This commit is contained in:
parent
8d79cc0929
commit
d2c3fb6a14
@ -737,7 +737,8 @@ class elfio
|
||||
&& !( (sec->get_flags() & SHF_TLS) && (seg->get_type() != PT_TLS)
|
||||
&& ( SHT_NOBITS == sec->get_type())) )
|
||||
segment_memory += sec->get_size() + secAlign;
|
||||
if ( SHT_NOBITS != sec->get_type() && SHT_NULL != sec->get_type() )
|
||||
|
||||
if ( SHT_NOBITS != sec->get_type() )
|
||||
segment_filesize += sec->get_size() + secAlign;
|
||||
|
||||
// Nothing to be done when generating nested segments
|
||||
@ -755,8 +756,9 @@ class elfio
|
||||
if ( 0 != sec->get_index() )
|
||||
sec->set_offset(current_file_pos);
|
||||
|
||||
if ( SHT_NOBITS != sec->get_type() && SHT_NULL != sec->get_type() )
|
||||
if ( SHT_NOBITS != sec->get_type() )
|
||||
current_file_pos += sec->get_size();
|
||||
|
||||
section_generated[index] = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user