brandelf.py: do not write "Linux" any longer as newer ldd's (e.g.

from glibc-common-2.5-10.fc6) do not like this.
This commit is contained in:
Markus F.X.J. Oberhumer
2007-01-31 05:58:17 +01:00
parent 87844254d1
commit 6e5f5732b5
5 changed files with 18 additions and 15 deletions
+6 -3
View File
@@ -67,7 +67,8 @@ def do_file(fn):
elif opts.bfdname == "elf32-i386" and opts.elfosabi == "linux":
if e_ident[4:7] != "\x01\x01\x01":
raise Exception, "%s is not %s" % (fn, opts.bfdname)
write("\x00Linux\x00\x00\x00")
##write("\x00Linux\x00\x00\x00")
write("\x00" * 9)
elif opts.bfdname == "elf32-i386" and opts.elfosabi == "openbsd":
if e_ident[4:7] != "\x01\x01\x01":
raise Exception, "%s is not %s" % (fn, opts.bfdname)
@@ -75,11 +76,13 @@ def do_file(fn):
elif opts.bfdname == "elf32-powerpc" and opts.elfosabi == "linux":
if e_ident[4:7] != "\x01\x02\x01":
raise Exception, "%s is not %s" % (fn, opts.bfdname)
write("\x00Linux\x00\x00\x00")
##write("\x00Linux\x00\x00\x00")
write("\x00" * 9)
elif opts.bfdname == "elf64-x86_64" and opts.elfosabi == "linux":
if e_ident[4:7] != "\x02\x01\x01":
raise Exception, "%s is not %s" % (fn, opts.bfdname)
write("\x00Linux\x00\x00\x00")
##write("\x00Linux\x00\x00\x00")
write("\x00" * 9)
else:
done = 0
else: