Skip to content

Commit

Permalink
second fix for issue #803
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Jan 19, 2022
1 parent f09e0c9 commit e674012
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bld/wl/c/loadelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ void FiniELFLoadFile( void )
{
ElfHdr hdr;

if( FmtData.dll )
NumPhdr = 1;

SetHeaders( &hdr );
#if 0
if( (LinkState & LS_HAVE_PPC_CODE) && (FmtData.type & MK_OS2) ) {
Expand Down Expand Up @@ -425,8 +428,15 @@ void ChkElfData( void )
AddSymElfSymTable( ElfSymTab, group->sym );
}
}
/* process local symbols */
for( sym = HeadSym; sym != NULL; sym = sym->link ) {
if( IsSymElfImpExp( sym ) && (sym->info & SYM_STATIC) ) {
AddSymElfSymTable( ElfSymTab, sym );
}
}
/* process global symbols */
for( sym = HeadSym; sym != NULL; sym = sym->link ) {
if( IsSymElfImpExp( sym ) ) {
if( IsSymElfImpExp( sym ) && (sym->info & SYM_STATIC) == 0 ) {
AddSymElfSymTable( ElfSymTab, sym );
}
}
Expand Down

0 comments on commit e674012

Please sign in to comment.