mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 14:29:28 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69510
@ -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