Improve Packer:addLoader(). We're still somewhat limited because of gcc-bug

#29823 (see http://gcc.gnu.org/PR29823).
This commit is contained in:
Markus F.X.J. Oberhumer
2006-11-16 18:52:20 +01:00
parent e61f481881
commit db7ae4ed5d
3 changed files with 33 additions and 38 deletions
+2 -1
View File
@@ -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);