exec_osf1_imgact() should return -1 for non OSF1/ECOFF binaries, it should
not return ENOEXEC. This is because image activators should return -1 if they don't claim an image. They should return ENOEXEC if they do claim it, but cannot load it due to sime problem with the image. This bug was preventing static compilation of the osf/1 module. I'm surprised it did not cause more problems.
This commit is contained in:
parent
c8a6b0011c
commit
6e4708aa12
@ -102,7 +102,7 @@ exec_osf1_imgact(struct image_params *imgp)
|
||||
|
||||
/* check to make sure we have an alpha ecoff executable */
|
||||
if (ECOFF_BADMAG(execp))
|
||||
return ENOEXEC;
|
||||
return -1;
|
||||
|
||||
/* verfify it an OSF/1 exectutable */
|
||||
if (eap->magic != ECOFF_ZMAGIC) {
|
||||
|
Loading…
Reference in New Issue
Block a user