git: kernel: Handle zero-length ELF sections better

John Marino marino at
Tue Sep 22 04:23:12 PDT 2015

commit 96e935d23e2fe088e6edbff415efb2c365940b55
Author: John Marino <draco at>
Date:   Mon Sep 21 17:48:53 2015 +0200

    kernel: Handle zero-length ELF sections better
    FreeBSD simply skips all zero-length ELF sections when scanning an
    REL type file.  The first time we tried it, DF panicked with a lost
    bigs message.  It turns out this was because the skip should have been
    applied in 3 places and we missed the first one.
    The same approach is needed by the boot loader as well.

Summary of changes:
 sys/boot/common/load_elf_obj.c |  2 ++
 sys/kern/link_elf_obj.c        | 10 ++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list