The branch stable/12 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7242b5c6d2165f7c6141e5edc878f36f3ab43e40

commit 7242b5c6d2165f7c6141e5edc878f36f3ab43e40
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2021-06-06 20:40:25 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2021-06-20 19:02:47 +0000

    stand: Fix __elfN(loadimage) return value
    
    Caller functions expect __elfN(loadimage) to return a value of zero on
    failure and the file size on success.
    
    PR:             256390
    Reviewed by:    markj
    
    (cherry picked from commit 1ea87e2a70c31454a8696ab2979d13d21c5575d2)
---
 stand/common/load_elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c
index 7139dc8b7c32..e81bb49a93b5 100644
--- a/stand/common/load_elf.c
+++ b/stand/common/load_elf.c
@@ -875,7 +875,7 @@ nosyms:
        p_start = sym.st_value + ef->off;
        if (__elfN(lookup_symbol)(fp, ef, "__stop_set_modmetadata_set",
            &sym) != 0)
-               return ENOENT;
+               return 0;
        p_end = sym.st_value + ef->off;
 
        if (__elfN(parse_modmetadata)(fp, ef, p_start, p_end) == 0)
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to