Hello,
I am also facing the same issue with path size. Can you share the workaround what you are using for this issue?
In the
scripts/relocate_sdk.py the file name comparison is like below:
if (len(new_dl_path) >= p_filesz):
print("ERROR: could not relocate %s, interp size = %i and %i is needed." \
% (elf_file_name, p_memsz, len(new_dl_path) + 1))
break
dl_path = new_dl_path + b("\0") * (p_filesz - len(new_dl_path))
And, to fix the issue I made changes like below.
if (len(new_dl_path) >= 4096):
print("ERROR: could not relocate %s, interp size = %i and %i is needed." \
% (elf_file_name, p_memsz, len(new_dl_path) + 1))
break
dl_path = new_dl_path + b("\0") * (4096 - len(new_dl_path))
and commented below code.
#if old_size != os.path.getsize(e):
#print("New file size for %s is different. Looks like a relocation error!", e)
#sys.exit(-1)
Do you have any clue regarding,
- Why the installation path is depending of elf headers i.e., Why installation error when the
len(new_dl_path) is greater than
p_filesz?
- Changing this comparison (len(new_dl_path) >= 4096) will impact the installed SDK?