Fix mis-paste (move section down 1 line)
authorJohn Marino <draco@marino.st>
Tue, 22 Sep 2015 00:16:27 +0000 (02:16 +0200)
committerJohn Marino <draco@marino.st>
Tue, 22 Sep 2015 00:16:27 +0000 (02:16 +0200)
sys/kern/link_elf_obj.c

index 67230f6..d15f823 100644 (file)
@@ -694,6 +694,7 @@ link_elf_obj_load_file(const char *filename, linker_file_t * result)
                switch (shdr[i].sh_type) {
                case SHT_PROGBITS:
                case SHT_NOBITS:
+                       alignmask = shdr[i].sh_addralign - 1;
                        if (alignmask == -1)
                                 alignmask = 0;
                        alignmask = shdr[i].sh_addralign - 1;