Improve Packer:addLoader(). We're still somewhat limited because of gcc-bug
#29823 (see http://gcc.gnu.org/PR29823).
This commit is contained in:
+2
-1
@@ -344,7 +344,8 @@ void ElfLinker::setLoaderAlignOffset(int phase)
|
||||
|
||||
int ElfLinker::addLoader(const char *sname)
|
||||
{
|
||||
if (sname[0] == 0)
|
||||
assert(sname != NULL);
|
||||
if (!sname[0])
|
||||
return outputlen;
|
||||
|
||||
char *begin = strdup(sname);
|
||||
|
||||
Reference in New Issue
Block a user