Paul Turner wrote:
What does this mean "cannot restore segment prot after reloc?
The message is from the dynamic linker, which is part of glibc. See the glibc file elf/dl-reloc.c.
It means that you have a read-only section (like text) that contains relocs that require modifying the read-only section. This requires a mprotect call before we can modify it, and a second mprotect call after the fact to make the section read-only again after we change it. The second mprotect call failed.
Of course, if you have a proper shared library, you should not have any relocs against the text section. Maybe you forgot to compile something as PIC?
Jim _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils