Ticket #6272: elf-add-support-for-undefined-weak-symbols.patch

File elf-add-support-for-undefined-weak-symbols.patch, 536 bytes (added by lucian, 14 years ago)
  • src/system/kernel/elf.cpp

     
    987987                    versionInfo = image->versions + versionIndex;
    988988            }
    989989
     990            if (ELF32_ST_BIND(symbol->st_info) == STB_WEAK) {
     991                _symbolAddress = NULL;
     992                return B_OK;
     993            }
     994
    990995            // it's undefined, must be outside this image, try the other image
    991996            newSymbol = elf_find_symbol(sharedImage, symbolName, versionInfo,
    992997                false);