Skip to content

Segmentation fault at fixup_reloc #115

@tiagoporsch

Description

@tiagoporsch

Hello, I'm trying to load a very simple DLL that just contains some string manipulation functions, however when I attempt to run my program it segfaults with

pelinker (fixup_reloc:390): fixup_block=0xf7f4c000, image=0xf7f48000
pelinker (fixup_reloc:391): fixup_block info: 1000 84
Segmentation fault

This is the all the code that runs before the segmentation fault:

struct pe_image image = {
    .entry  = NULL,
    .name   = "engine/SeedNKeyXcp.dll",
};
if (!pe_load_library(image.name, &image.image, &image.size))
    return 1;
link_pe_images(&image, 1);

How could I go about debugging this?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions