Changeset ab936440 in mainline for uspace/lib/c/generic/elf/elf_mod.c


Ignore:
Timestamp:
2019-02-12T20:42:42Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f31ca47
Parents:
7f7817a9 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
Message:

Merge branch 'master' into bdsh_alias

Conflicts:

uspace/app/bdsh/Makefile
uspace/app/bdsh/cmds/modules/modules.h

Ccheck correction and removing header which includes itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/elf/elf_mod.c

    r7f7817a9 rab936440  
    420420        seg_ptr = (void *) seg_addr;
    421421
    422         DPRINTF("Load segment at addr %p, size 0x%zx\n", (void *) seg_addr,
    423             entry->p_memsz);
     422        DPRINTF("Load segment v_addr=0x%zx at addr %p, size 0x%zx, flags %c%c%c\n",
     423            entry->p_vaddr,
     424            (void *) seg_addr,
     425            entry->p_memsz,
     426            (entry->p_flags & PF_R) ? 'r' : '-',
     427            (entry->p_flags & PF_W) ? 'w' : '-',
     428            (entry->p_flags & PF_X) ? 'x' : '-');
    424429
    425430        if (entry->p_align > 1) {
     
    427432                    (seg_addr % entry->p_align)) {
    428433                        DPRINTF("Align check 1 failed offset%%align=0x%zx, "
    429                             "vaddr%%align=0x%zx\n",
     434                            "vaddr%%align=0x%zx align=0x%zx\n",
    430435                            entry->p_offset % entry->p_align,
    431                             seg_addr % entry->p_align);
     436                            seg_addr % entry->p_align, entry->p_align);
    432437                        return EE_INVALID;
    433438                }
     
    484489                return EE_OK;
    485490
    486         rc = as_area_change_flags(seg_ptr, flags);
     491        DPRINTF("as_area_change_flags(%p, %x)\n",
     492            (uint8_t *) base + bias, flags);
     493        rc = as_area_change_flags((uint8_t *) base + bias, flags);
    487494        if (rc != EOK) {
    488495                DPRINTF("Failed to set memory area flags.\n");
Note: See TracChangeset for help on using the changeset viewer.