Display the section name without linker-specific information
This commit is contained in:
parent
a0633653d2
commit
d839f7268a
@ -286,6 +286,7 @@ static int _pe_decode(FormatPlugin * format)
|
|||||||
size_t cnt;
|
size_t cnt;
|
||||||
struct pe_section_header psh;
|
struct pe_section_header psh;
|
||||||
char * p = NULL;
|
char * p = NULL;
|
||||||
|
char * q;
|
||||||
struct pe_image_header * pih;
|
struct pe_image_header * pih;
|
||||||
struct pe_image_header_pe32 * pih32;
|
struct pe_image_header_pe32 * pih32;
|
||||||
struct pe_image_header_pe32_plus * pih32p;
|
struct pe_image_header_pe32_plus * pih32p;
|
||||||
@ -378,6 +379,9 @@ static int _pe_decode(FormatPlugin * format)
|
|||||||
psh.vaddr = _htol32(psh.vaddr);
|
psh.vaddr = _htol32(psh.vaddr);
|
||||||
psh.raw_size = _htol32(psh.raw_size);
|
psh.raw_size = _htol32(psh.raw_size);
|
||||||
psh.raw_offset = _htol32(psh.raw_offset);
|
psh.raw_offset = _htol32(psh.raw_offset);
|
||||||
|
/* the $ sign has a special meaning for the linker */
|
||||||
|
if((q = strchr(psh.name, '$')) != NULL)
|
||||||
|
*q = '\0';
|
||||||
if(helper->decode(helper->format, psh.name, psh.raw_offset,
|
if(helper->decode(helper->format, psh.name, psh.raw_offset,
|
||||||
psh.raw_size, psh.vaddr + base) != 0)
|
psh.raw_size, psh.vaddr + base) != 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user